History

Merge tag 'at91-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nferre/linux-at91 into fixes

Merge "at91: fixes for 3.19 #1 (ter)" from Nicolas Ferre: First fixes batch for AT91 on 3.19: - fix some DT entries - correct clock entry for the at91sam9263 LCD - add a phy_fixup for Eth1 on sama5d4 * tag 'at91-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nferre/linux-at91: ARM: at91: board-dt-sama5: add phy_fixup to override NAND_Tree ARM: at91/dt: sam9263: Add missing clocks to lcdc node ARM: at91: sama5d3: dt: correct the sound route ARM: at91/dt: sama5d4: fix the timer reg length

Olof Johansson committed 11 years ago

Commit 6fda93b2 parents c9b75d5 b8659754 files · +22 −2Browse files

Unified · Split

4 files
  1. arch/arm/boot/dts/at91sam9263.dtsi +2 −0
  2. arch/arm/boot/dts/sama5d3xmb.dtsi +1 −1
  3. arch/arm/boot/dts/sama5d4.dtsi +1 −1
  4. arch/arm/mach-at91/board-dt-sama5.c +18 −0
arch/arm/boot/dts/at91sam9263.dtsi+2−0
@@ -953,6 +953,8 @@ · 952 unmodified lines
953953 interrupts = <26 IRQ_TYPE_LEVEL_HIGH 3>;
954954 pinctrl-names = "default";
955955 pinctrl-0 = <&pinctrl_fb>;
956+ clocks = <&lcd_clk>, <&lcd_clk>;
957+ clock-names = "lcdc_clk", "hclk";
956958 status = "disabled";
957959 };
958960
arch/arm/boot/dts/sama5d3xmb.dtsi+1−1
@@ -176,7 +176,7 @@ · 175 unmodified lines
176176 "Headphone Jack", "HPOUTR",
177177 "IN2L", "Line In Jack",
178178 "IN2R", "Line In Jack",
179− "MICBIAS", "IN1L",
179+ "Mic", "MICBIAS",
180180 "IN1L", "Mic";
181181
182182 atmel,ssc-controller = <&ssc0>;
arch/arm/boot/dts/sama5d4.dtsi+1−1
@@ -1008,7 +1008,7 @@ · 1007 unmodified lines
10081008
10091009 pit: timer@fc068630 {
10101010 compatible = "atmel,at91sam9260-pit";
1011− reg = <0xfc068630 0xf>;
1011+ reg = <0xfc068630 0x10>;
10121012 interrupts = <3 IRQ_TYPE_LEVEL_HIGH 5>;
10131013 clocks = <&h32ck>;
10141014 };
arch/arm/mach-at91/board-dt-sama5.c+18−0
@@ -17,6 +17,7 @@ · 16 unmodified lines
1717 #include <linux/of_platform.h>
1818 #include <linux/phy.h>
1919 #include <linux/clk-provider.h>
20+#include <linux/phy.h>
2021
2122 #include <asm/setup.h>
2223 #include <asm/irq.h>
@@ -26,8 +27,25 @@ · 3 unmodified lines
2627
2728 #include "generic.h"
2829
30+static int ksz8081_phy_fixup(struct phy_device *phy)
31+{
32+ int value;
33+
34+ value = phy_read(phy, 0x16);
35+ value &= ~0x20;
36+ phy_write(phy, 0x16, value);
37+
38+ return 0;
39+}
40+
2941 static void __init sama5_dt_device_init(void)
3042 {
43+ if (of_machine_is_compatible("atmel,sama5d4ek") &&
44+ IS_ENABLED(CONFIG_PHYLIB)) {
45+ phy_register_fixup_for_id("fc028000.etherne:00",
46+ ksz8081_phy_fixup);
47+ }
48+
3149 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
3250 }
3351