ARM: dts: Configure interconnect target module for dra7 dispc
authorTony Lindgren <tony@atomide.com>
Wed, 4 Mar 2020 16:10:42 +0000 (08:10 -0800)
committerTony Lindgren <tony@atomide.com>
Wed, 4 Mar 2020 16:10:42 +0000 (08:10 -0800)
We can now probe devices with device tree only configuration using
ti-sysc interconnect target module driver. Let's configure the
module, but keep the legacy "ti,hwmods" peroperty until the child
devices are probing with ti-sysc interconnect driver.

Cc: Jyri Sarha <jsarha@ti.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/dra7.dtsi

index cf90a0e7528cead1a6bb1a27d6bb3a9c1d1f620d..594b53a79f169d24b60a33b3227685e5b05969cb 100644 (file)
                                #size-cells = <1>;
                                ranges = <0 0 0x800000>;
 
-                               dispc@1000 {
-                                       compatible = "ti,dra7-dispc";
-                                       reg = <0x1000 0x1000>;
-                                       interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
-                                       ti,hwmods = "dss_dispc";
-                                       clocks = <&dss_clkctrl DRA7_DSS_DSS_CORE_CLKCTRL 8>;
+                               target-module@1000 {
+                                       compatible = "ti,sysc-omap2", "ti,sysc";
+                                       reg = <0x1000 0x4>,
+                                             <0x1010 0x4>,
+                                             <0x1014 0x4>;
+                                       reg-names = "rev", "sysc", "syss";
+                                       ti,sysc-sidle = <SYSC_IDLE_FORCE>,
+                                                       <SYSC_IDLE_NO>,
+                                                       <SYSC_IDLE_SMART>;
+                                       ti,sysc-midle = <SYSC_IDLE_FORCE>,
+                                                       <SYSC_IDLE_NO>,
+                                                       <SYSC_IDLE_SMART>;
+                                       ti,sysc-mask = <(SYSC_OMAP2_CLOCKACTIVITY |
+                                                        SYSC_OMAP2_ENAWAKEUP |
+                                                        SYSC_OMAP2_SOFTRESET |
+                                                        SYSC_OMAP2_AUTOIDLE)>;
+                                       ti,syss-mask = <1>;
+                                       clocks = <&dss_clkctrl DRA7_DSS_CORE_CLKCTRL 8>;
                                        clock-names = "fck";
-                                       /* CTRL_CORE_SMA_SW_1 */
-                                       syscon-pol = <&scm_conf 0x534>;
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+                                       ranges = <0 0x1000 0x1000>;
+
+                                       dispc@0 {
+                                               compatible = "ti,dra7-dispc";
+                                               reg = <0 0x1000>;
+                                               interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
+                                               ti,hwmods = "dss_dispc";
+                                               clocks = <&dss_clkctrl DRA7_DSS_DSS_CORE_CLKCTRL 8>;
+                                               clock-names = "fck";
+                                               /* CTRL_CORE_SMA_SW_1 */
+                                               syscon-pol = <&scm_conf 0x534>;
+                                       };
                                };
 
                                hdmi: encoder@40000 {