]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: dts: am437x-gp-evm: McASP1 node for audio support
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 2 Jul 2015 14:06:27 +0000 (17:06 +0300)
committerTony Lindgren <tony@atomide.com>
Tue, 14 Jul 2015 11:26:52 +0000 (04:26 -0700)
Add node for McASP1 along with the needed pinctrl entries.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am437x-gp-evm.dts

index 32446c079fd3291490a448a31b7cb1647d30e003..98fcf6f17961938892853363a9ebb3e3a7f8a39c 100644 (file)
                        0x234 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart3_rtsn.uart3_rtsn */
                >;
        };
+
+       mcasp1_pins: mcasp1_pins {
+               pinctrl-single,pins = <
+                       0x108 (PIN_OUTPUT_PULLDOWN | MUX_MODE4) /* mii1_col.mcasp1_axr2 */
+                       0x10c (PIN_INPUT_PULLDOWN | MUX_MODE4)  /* mii1_crs.mcasp1_aclkx */
+                       0x110 (PIN_INPUT_PULLDOWN | MUX_MODE4)  /* mii1_rxerr.mcasp1_fsx */
+                       0x144 (PIN_INPUT_PULLDOWN | MUX_MODE4)  /* rmii1_ref_clk.mcasp1_axr3 */
+               >;
+       };
+
+       mcasp1_sleep_pins: mcasp1_sleep_pins {
+               pinctrl-single,pins = <
+                       0x108 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+                       0x10c (PIN_INPUT_PULLDOWN | MUX_MODE7)
+                       0x110 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+                       0x144 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+               >;
+       };
 };
 
 &i2c0 {
                };
        };
 };
+
+&mcasp1 {
+       pinctrl-names = "default", "sleep";
+       pinctrl-0 = <&mcasp1_pins>;
+       pinctrl-1 = <&mcasp1_sleep_pins>;
+
+       status = "okay";
+
+       op-mode = <0>; /* MCASP_IIS_MODE */
+       tdm-slots = <2>;
+       /* 4 serializers */
+       serial-dir = <  /* 0: INACTIVE, 1: TX, 2: RX */
+               0 0 1 2
+       >;
+       tx-num-evt = <32>;
+       rx-num-evt = <32>;
+};