Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

Merge "at91: dt for 3.20 #2" from Nicolas Ferre:

Second DT batch for 3.20:
- correct some pin configuration for at91sam9x5ek
- add pioD on sama5d4 following a modification of pinctrl driver
- add more precise nand compatibility string for sama5d4
- audio modifications for wm8904 or ac97

* tag 'at91-dt2' of git://git.kernel.org/pub/scm/linux/kernel/git/nferre/linux-at91:
ARM: at91/dt: sam9263: Add ac97 device node
dt: atmel_ac97c: Add device tree documentation
ARM: at91: at91sam9n12ek/dt: use dt ids for wm8904
ARM: at91: sama5d3xek/dt: use dt ids for wm8904
ARM: at91: sama5d4: dts: change the nand compatible string
ARM: at91/dt: sama5d4: add pioD controller
ARM: at91/dt: disable pull-up on vbus-gpio (PB16) to reduce power consumption

Signed-off-by: Olof Johansson <olof@lixom.net>

+66 -3
+20
Documentation/devicetree/bindings/sound/atmel_ac97c.txt
··· 1 + * Atmel AC97 controller 2 + 3 + Required properties: 4 + - compatible: "atmel,at91sam9263-ac97c" 5 + - reg: Address and length of the register set for the device 6 + - interrupts: Should contain AC97 interrupt 7 + - ac97-gpios: Please refer to soc-ac97link.txt, only ac97-reset is used 8 + Optional properties: 9 + - pinctrl-names, pinctrl-0: Please refer to pinctrl-bindings.txt 10 + 11 + Example: 12 + sound@fffa0000 { 13 + compatible = "atmel,at91sam9263-ac97c"; 14 + pinctrl-names = "default"; 15 + pinctrl-0 = <&pinctrl_ac97>; 16 + reg = <0xfffa0000 0x4000>; 17 + interrupts = <18 IRQ_TYPE_LEVEL_HIGH 5>; 18 + 19 + ac97-gpios = <&pioB 0 0 &pioB 2 0 &pioC 29 GPIO_ACTIVE_LOW>; 20 + };
+21
arch/arm/boot/dts/at91sam9263.dtsi
··· 695 695 }; 696 696 }; 697 697 698 + ac97 { 699 + pinctrl_ac97: ac97-0 { 700 + atmel,pins = 701 + <AT91_PIOB 0 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB12 periph A AC97FS pin */ 702 + AT91_PIOB 1 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB13 periph A AC97CK pin */ 703 + AT91_PIOB 2 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB14 periph A AC97TX pin */ 704 + AT91_PIOB 3 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB14 periph A AC97RX pin */ 705 + }; 706 + }; 707 + 698 708 pioA: gpio@fffff200 { 699 709 compatible = "atmel,at91rm9200-gpio"; 700 710 reg = <0xfffff200 0x200>; ··· 830 820 pinctrl-0 = <&pinctrl_ssc1_tx &pinctrl_ssc1_rx>; 831 821 clocks = <&ssc1_clk>; 832 822 clock-names = "pclk"; 823 + status = "disabled"; 824 + }; 825 + 826 + ac97: sound@fffa0000 { 827 + compatible = "atmel,at91sam9263-ac97c"; 828 + reg = <0xfffa0000 0x4000>; 829 + interrupts = <18 IRQ_TYPE_LEVEL_HIGH 5>; 830 + pinctrl-names = "default"; 831 + pinctrl-0 = <&pinctrl_ac97>; 832 + clocks = <&ac97_clk>; 833 + clock-names = "ac97_clk"; 833 834 status = "disabled"; 834 835 }; 835 836
+1 -1
arch/arm/boot/dts/at91sam9n12ek.dts
··· 54 54 status = "okay"; 55 55 56 56 wm8904: codec@1a { 57 - compatible = "wm8904"; 57 + compatible = "wlf,wm8904"; 58 58 reg = <0x1a>; 59 59 clocks = <&pck0>; 60 60 clock-names = "mclk";
+9
arch/arm/boot/dts/at91sam9x5ek.dtsi
··· 53 53 }; 54 54 55 55 usb2: gadget@f803c000 { 56 + pinctrl-names = "default"; 57 + pinctrl-0 = <&pinctrl_board_usb2>; 56 58 atmel,vbus-gpio = <&pioB 16 GPIO_ACTIVE_HIGH>; 57 59 status = "okay"; 58 60 }; ··· 80 78 pinctrl_board_mmc1: mmc1-board { 81 79 atmel,pins = 82 80 <AT91_PIOD 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD14 gpio CD pin pull up and deglitch */ 81 + }; 82 + }; 83 + 84 + usb2 { 85 + pinctrl_board_usb2: usb2-board { 86 + atmel,pins = 87 + <AT91_PIOB 16 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PB16 gpio vbus sense, deglitch */ 83 88 }; 84 89 }; 85 90 };
+1 -1
arch/arm/boot/dts/sama5d3xmb.dtsi
··· 45 45 */ 46 46 i2c0: i2c@f0014000 { 47 47 wm8904: wm8904@1a { 48 - compatible = "wm8904"; 48 + compatible = "wlf,wm8904"; 49 49 reg = <0x1a>; 50 50 clocks = <&pck0>; 51 51 clock-names = "mclk";
+14 -1
arch/arm/boot/dts/sama5d4.dtsi
··· 62 62 gpio0 = &pioA; 63 63 gpio1 = &pioB; 64 64 gpio2 = &pioC; 65 + gpio3 = &pioD; 65 66 gpio4 = &pioE; 66 67 tcb0 = &tcb0; 67 68 tcb1 = &tcb1; ··· 273 272 }; 274 273 275 274 nand0: nand@80000000 { 276 - compatible = "atmel,at91rm9200-nand"; 275 + compatible = "atmel,sama5d4-nand", "atmel,at91rm9200-nand"; 277 276 #address-cells = <1>; 278 277 #size-cells = <1>; 279 278 ranges; ··· 1120 1119 interrupt-controller; 1121 1120 #interrupt-cells = <2>; 1122 1121 clocks = <&pioC_clk>; 1122 + }; 1123 + 1124 + pioD: gpio@fc068000 { 1125 + compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; 1126 + reg = <0xfc068000 0x100>; 1127 + interrupts = <5 IRQ_TYPE_LEVEL_HIGH 1>; 1128 + #gpio-cells = <2>; 1129 + gpio-controller; 1130 + interrupt-controller; 1131 + #interrupt-cells = <2>; 1132 + clocks = <&pioD_clk>; 1133 + status = "disabled"; 1123 1134 }; 1124 1135 1125 1136 pioE: gpio@fc06d000 {