ARM: dts: omap4-l4-abe: Add McASP configuration
authorPeter Ujfalusi <peter.ujfalusi@gmail.com>
Sat, 17 Jul 2021 12:09:25 +0000 (15:09 +0300)
committerTony Lindgren <tony@atomide.com>
Tue, 27 Jul 2021 08:47:42 +0000 (11:47 +0300)
OMAP4 has a single McASP instance with single serializer and locked for DIT
mode.
To be able to enable the support the following fixes needed:
- Add the DAT port ranges to the target module's ranges

We can already fill in the op-mode and serial-dir  for McASP as it only
supports this configuration, but keep the module disabled as there is no
known device available where it is used.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/omap4-l4-abe.dtsi

index 8287fda..7ae8b62 100644 (file)
                };
 
                target-module@28000 {                   /* 0x40128000, ap 8 08.0 */
+                                                       /* 0x4012a000, ap 10 0a.0 */
                        compatible = "ti,sysc-mcasp", "ti,sysc";
                        reg = <0x28000 0x4>,
                              <0x28004 0x4>;
                        #address-cells = <1>;
                        #size-cells = <1>;
                        ranges = <0x0 0x28000 0x1000>,
-                                <0x49028000 0x49028000 0x1000>;
-
-                       /*
-                        * Child device unsupported by davinci-mcasp. At least
-                        * RX path is disabled for omap4, and only DIT mode
-                        * works with no I2S. See also old Android kernel
-                        * omap-mcasp driver for more information.
-                        */
-               };
-
-               target-module@2a000 {                   /* 0x4012a000, ap 10 0a.0 */
-                       compatible = "ti,sysc";
-                       status = "disabled";
-                       #address-cells = <1>;
-                       #size-cells = <1>;
-                       ranges = <0x0 0x2a000 0x1000>,
+                                <0x49028000 0x49028000 0x1000>,
+                                <0x2000 0x2a000 0x1000>,
                                 <0x4902a000 0x4902a000 0x1000>;
+
+                       mcasp0: mcasp@0 {
+                               compatible = "ti,omap4-mcasp-audio";
+                               reg = <0x0 0x2000>,
+                                     <0x4902a000 0x1000>;      /* L3 data port */
+                               reg-names = "mpu","dat";
+                               interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
+                               interrupt-names = "tx";
+                               dmas = <&sdma 8>;
+                               dma-names = "tx";
+                               clocks = <&abe_clkctrl OMAP4_MCASP_CLKCTRL 0>;
+                               clock-names = "fck";
+                               op-mode = <1>;  /* MCASP_DIT_MODE */
+                               serial-dir = < 1 >; /* 1 TX serializers */
+                               status = "disabled";
+                       };
                };
 
                target-module@2e000 {                   /* 0x4012e000, ap 12 0c.0 */