Add the PCK-600 power controller, system controller, DE3.5 planes and
mixer, TCON TOP1, TCON TV0, DW-HDMI 2.0, and HDMI PHY nodes for A733.

Signed-off-by: Alastair D'Silva <[email protected]>
---
 .../arm64/boot/dts/allwinner/sun60i-a733.dtsi | 186 ++++++++++++++++++
 1 file changed, 186 insertions(+)

diff --git a/arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi 
b/arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi
index fe62d0e0b013..ba2e9790f578 100644
--- a/arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi
@@ -3,7 +3,9 @@
 #include <dt-bindings/clock/allwinner,sun60i-a733-ccu.h>
 #include <dt-bindings/clock/allwinner,sun60i-a733-r-ccu.h>
 #include <dt-bindings/clock/sun6i-rtc.h>
+#include <dt-bindings/clock/sun8i-tcon-top.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/power/allwinner,sun60i-a733-pck-600.h>
 #include <dt-bindings/reset/allwinner,sun60i-a733-ccu.h>
 #include <dt-bindings/reset/allwinner,sun60i-a733-r-ccu.h>
 
@@ -109,6 +111,12 @@ cpu7: cpu@700 {
                };
        };
 
+       de: display-engine {
+               compatible = "allwinner,sun60i-a733-display-engine";
+               allwinner,pipelines = <&mixer0>;
+               status = "disabled";
+       };
+
        hosc: clock-hosc {
                compatible = "fixed-clock";
                #clock-cells = <0>;
@@ -467,6 +475,14 @@ i2c12: i2c@251c000 {
                        status = "disabled";
                };
 
+               syscon: syscon@3000000 {
+                       compatible = "allwinner,sun60i-a733-system-control";
+                       reg = <0x03000000 0x1000>;
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+                       ranges;
+               };
+
                gic: interrupt-controller@3400000 {
                        compatible = "arm,gic-v3";
                        reg = <0x03400000 0x10000>, <0x03460000 0x100000>;
@@ -546,6 +562,176 @@ mmc2: mmc@4022000 {
                        status = "disabled";
                };
 
+               de35_planes: planes@5100000 {
+                       compatible = "allwinner,sun60i-a733-de35-planes";
+                       reg = <0x05100000 0x180000>;
+               };
+
+               mixer0: mixer@5280000 {
+                       compatible = "allwinner,sun60i-a733-de35-mixer-0";
+                       reg = <0x05280000 0x20000>, <0x05008000 0x200>;
+                       reg-names = "display", "top";
+                       clocks = <&ccu CLK_BUS_DE0>,
+                                <&ccu CLK_DE0>,
+                                <&ccu CLK_AHB_DE>,
+                                <&ccu CLK_MBUS_DESYS>;
+                       clock-names = "bus", "mod", "ahb", "mbus";
+                       resets = <&ccu RST_BUS_DE0>,
+                                <&ccu RST_BUS_DE_SYS>;
+                       power-domains = <&pck600 PD_DE_SYS>;
+                       allwinner,planes = <&de35_planes>;
+
+                       ports {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               mixer0_out: port@1 {
+                                       reg = <1>;
+
+                                       mixer0_out_tcon_top: endpoint {
+                                               remote-endpoint = 
<&tcon_top_mixer0_in_mixer0>;
+                                       };
+                               };
+                       };
+               };
+
+               tcon_top1: tcon-top@5510000 {
+                       compatible = "allwinner,sun60i-a733-tcon-top";
+                       reg = <0x05510000 0x1000>;
+                       clocks = <&ccu CLK_BUS_DPSS_TOP1>,
+                                <&ccu CLK_HDMI_TV>,
+                                <&ccu CLK_AHB_VID_COUT1>;
+                       clock-names = "bus", "tcon-tv0", "ahb";
+                       clock-output-names = "tcon-top-tv0";
+                       resets = <&ccu RST_BUS_DPSS_TOP1>,
+                                <&ccu RST_BUS_VIDEO_OUT1>;
+                       power-domains = <&pck600 PD_VO1>;
+                       #clock-cells = <1>;
+
+                       ports {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               tcon_top_mixer0_in: port@0 {
+                                       reg = <0>;
+
+                                       tcon_top_mixer0_in_mixer0: endpoint {
+                                               remote-endpoint = 
<&mixer0_out_tcon_top>;
+                                       };
+                               };
+
+                               tcon_top_mixer0_out: port@1 {
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+                                       reg = <1>;
+
+                                       tcon_top_mixer0_out_tcon_tv0: 
endpoint@2 {
+                                               reg = <2>;
+                                               remote-endpoint = 
<&tcon_tv0_in_tcon_top>;
+                                       };
+                               };
+
+                               tcon_top_hdmi_in: port@4 {
+                                       reg = <4>;
+
+                                       tcon_top_hdmi_in_tcon_tv0: endpoint {
+                                               remote-endpoint = 
<&tcon_tv0_out_hdmi>;
+                                       };
+                               };
+
+                               tcon_top_hdmi_out: port@5 {
+                                       reg = <5>;
+
+                                       tcon_top_hdmi_out_hdmi: endpoint {
+                                               remote-endpoint = 
<&hdmi_in_tcon_top>;
+                                       };
+                               };
+                       };
+               };
+
+               hdmi: hdmi@5520000 {
+                       compatible = "allwinner,sun60i-a733-dw-hdmi";
+                       reg = <0x05520000 0x10000>;
+                       reg-io-width = <1>;
+                       interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH 0>;
+                       clocks = <&ccu CLK_BUS_HDMI_TV>,
+                                <&ccu CLK_HDMI_SFR>,
+                                <&tcon_top1 CLK_TCON_TOP_TV0>,
+                                <&ccu CLK_AHB_VID_COUT1>;
+                       clock-names = "iahb", "isfr", "tmds", "ahb";
+                       resets = <&ccu RST_BUS_HDMI_MAIN>,
+                                <&ccu RST_BUS_HDMI_SUB>,
+                                <&ccu RST_BUS_HDMI_HDCP>;
+                       reset-names = "ctrl", "sub", "hdcp";
+                       phys = <&hdmi_phy>;
+                       phy-names = "phy";
+                       power-domains = <&pck600 PD_VO1>;
+                       status = "disabled";
+
+                       ports {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               hdmi_in: port@0 {
+                                       reg = <0>;
+
+                                       hdmi_in_tcon_top: endpoint {
+                                               remote-endpoint = 
<&tcon_top_hdmi_out_hdmi>;
+                                       };
+                               };
+
+                               hdmi_out: port@1 {
+                                       reg = <1>;
+                               };
+                       };
+               };
+
+               hdmi_phy: hdmi-phy@5600000 {
+                       compatible = "allwinner,sun60i-a733-hdmi-phy";
+                       reg = <0x05600000 0x1000>;
+                       clocks = <&hosc>;
+                       clock-names = "ref";
+                       allwinner,rescal = <&syscon>;
+                       power-domains = <&pck600 PD_VO1>;
+                       #phy-cells = <0>;
+               };
+
+               tcon_tv0: lcd-controller@5730000 {
+                       compatible = "allwinner,sun60i-a733-tcon-tv";
+                       reg = <0x05730000 0x1000>;
+                       interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH 0>;
+                       clocks = <&ccu CLK_BUS_TCON_TV0>,
+                                <&tcon_top1 CLK_TCON_TOP_TV0>;
+                       clock-names = "ahb", "tcon-ch1";
+                       resets = <&ccu RST_BUS_TCON_TV0>;
+                       reset-names = "lcd";
+                       power-domains = <&pck600 PD_VO1>;
+
+                       ports {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               tcon_tv0_in: port@0 {
+                                       reg = <0>;
+
+                                       tcon_tv0_in_tcon_top: endpoint {
+                                               remote-endpoint = 
<&tcon_top_mixer0_out_tcon_tv0>;
+                                       };
+                               };
+
+                               tcon_tv0_out: port@1 {
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+                                       reg = <1>;
+
+                                       tcon_tv0_out_hdmi: endpoint@1 {
+                                               reg = <1>;
+                                               remote-endpoint = 
<&tcon_top_hdmi_in_tcon_tv0>;
+                                       };
+                               };
+                       };
+               };
+
                r_ccu: clock-controller@7010000 {
                        compatible = "allwinner,sun60i-a733-r-ccu";
                        reg = <0x07010000 0x250>;
-- 
2.53.0

Reply via email to