ARM: dts: at91: at91sam9g45: add AC97
authorDmitry Rezvanov <dmitry.rezvanov@yandex.ru>
Sun, 18 Jun 2017 12:40:49 +0000 (21:40 +0900)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 30 Aug 2017 16:30:56 +0000 (18:30 +0200)
AT91SAM9G45 has an AC97 controller, but it is not described in the dts
file.
This patch adds AC97 node in device tree.

Signed-off-by: Dmitry Rezvanov <dmitry.rezvanov@yandex.ru>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
arch/arm/boot/dts/at91sam9g45.dtsi
arch/arm/boot/dts/at91sam9m10g45ek.dts

index a4808c4fbc05897983df72024fc0f7667d75fbac..64fa3f9a39d3353ea18eb806a62b2498045a4d81 100644 (file)
                                      >;
 
                                /* shared pinctrl settings */
+                               ac97 {
+                                       pinctrl_ac97: ac97-0 {
+                                               atmel,pins =
+                                                       <AT91_PIOD 6 AT91_PERIPH_A AT91_PINCTRL_NONE    /* AC97RX */
+                                                        AT91_PIOD 7 AT91_PERIPH_A AT91_PINCTRL_NONE    /* AC97TX */
+                                                        AT91_PIOD 8 AT91_PERIPH_A AT91_PINCTRL_NONE    /* AC97FS */
+                                                        AT91_PIOD 9 AT91_PERIPH_A AT91_PINCTRL_NONE>;  /* AC97CK */
+                                       };
+                               };
+
                                adc0 {
                                        pinctrl_adc0_adtrg: adc0_adtrg {
                                                atmel,pins = <AT91_PIOD 28 AT91_PERIPH_A AT91_PINCTRL_NONE>;
                                status = "disabled";
                        };
 
+                       ac97: sound@fffac000 {
+                               compatible = "atmel,at91sam9263-ac97c";
+                               reg = <0xfffac000 0x4000>;
+                               interrupts = <24 IRQ_TYPE_LEVEL_HIGH 4>;
+                               pinctrl-names = "default";
+                               pinctrl-0 = <&pinctrl_ac97>;
+                               clocks = <&ac97_clk>;
+                               clock-names = "ac97_clk";
+                               status = "disabled";
+                       };
+
                        adc0: adc@fffb0000 {
                                #address-cells = <1>;
                                #size-cells = <0>;
index 2522c330830561989dd31d985b1349cc50062d27..94c52c555f832d69cab669b64204f614fd00bced 100644 (file)
                                status = "okay";
                        };
 
+                       ac97: sound@fffac000 {
+                               status = "okay";
+                       };
+
                        adc0: adc@fffb0000 {
                                pinctrl-names = "default";
                                pinctrl-0 = <