diff options
author | Jernej Skrabec <jernej.skrabec@siol.net> | 2018-03-01 16:34:40 -0500 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@bootlin.com> | 2018-03-02 04:38:22 -0500 |
commit | cb34d8256e0155f12b1c55b198d392a10131493f (patch) | |
tree | 6e390205e256880599d03c30214e3da7b57fcb5b | |
parent | 5f49ddb1a7bc265fdade9317842da7e7a9a6bcac (diff) |
ARM: dts: sunxi: h3/h5: Add HDMI pipeline
This commit adds all entries needed for HDMI to function properly.
Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
-rw-r--r-- | arch/arm/boot/dts/sunxi-h3-h5.dtsi | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b/arch/arm/boot/dts/sunxi-h3-h5.dtsi index 7741166d34d8..1be1a02d6df2 100644 --- a/arch/arm/boot/dts/sunxi-h3-h5.dtsi +++ b/arch/arm/boot/dts/sunxi-h3-h5.dtsi | |||
@@ -105,6 +105,12 @@ | |||
105 | }; | 105 | }; |
106 | }; | 106 | }; |
107 | 107 | ||
108 | de: display-engine { | ||
109 | compatible = "allwinner,sun8i-h3-display-engine"; | ||
110 | allwinner,pipelines = <&mixer0>; | ||
111 | status = "disabled"; | ||
112 | }; | ||
113 | |||
108 | soc { | 114 | soc { |
109 | compatible = "simple-bus"; | 115 | compatible = "simple-bus"; |
110 | #address-cells = <1>; | 116 | #address-cells = <1>; |
@@ -123,6 +129,29 @@ | |||
123 | #reset-cells = <1>; | 129 | #reset-cells = <1>; |
124 | }; | 130 | }; |
125 | 131 | ||
132 | mixer0: mixer@1100000 { | ||
133 | compatible = "allwinner,sun8i-h3-de2-mixer-0"; | ||
134 | reg = <0x01100000 0x100000>; | ||
135 | clocks = <&display_clocks CLK_BUS_MIXER0>, | ||
136 | <&display_clocks CLK_MIXER0>; | ||
137 | clock-names = "bus", | ||
138 | "mod"; | ||
139 | resets = <&display_clocks RST_MIXER0>; | ||
140 | |||
141 | ports { | ||
142 | #address-cells = <1>; | ||
143 | #size-cells = <0>; | ||
144 | |||
145 | mixer0_out: port@1 { | ||
146 | reg = <1>; | ||
147 | |||
148 | mixer0_out_tcon0: endpoint { | ||
149 | remote-endpoint = <&tcon0_in_mixer0>; | ||
150 | }; | ||
151 | }; | ||
152 | }; | ||
153 | }; | ||
154 | |||
126 | syscon: syscon@1c00000 { | 155 | syscon: syscon@1c00000 { |
127 | compatible = "allwinner,sun8i-h3-system-controller", | 156 | compatible = "allwinner,sun8i-h3-system-controller", |
128 | "syscon"; | 157 | "syscon"; |
@@ -138,6 +167,41 @@ | |||
138 | #dma-cells = <1>; | 167 | #dma-cells = <1>; |
139 | }; | 168 | }; |
140 | 169 | ||
170 | tcon0: lcd-controller@1c0c000 { | ||
171 | compatible = "allwinner,sun8i-h3-tcon-tv", | ||
172 | "allwinner,sun8i-a83t-tcon-tv"; | ||
173 | reg = <0x01c0c000 0x1000>; | ||
174 | interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; | ||
175 | clocks = <&ccu CLK_BUS_TCON0>, <&ccu CLK_TCON0>; | ||
176 | clock-names = "ahb", "tcon-ch1"; | ||
177 | resets = <&ccu RST_BUS_TCON0>; | ||
178 | reset-names = "lcd"; | ||
179 | |||
180 | ports { | ||
181 | #address-cells = <1>; | ||
182 | #size-cells = <0>; | ||
183 | |||
184 | tcon0_in: port@0 { | ||
185 | reg = <0>; | ||
186 | |||
187 | tcon0_in_mixer0: endpoint { | ||
188 | remote-endpoint = <&mixer0_out_tcon0>; | ||
189 | }; | ||
190 | }; | ||
191 | |||
192 | tcon0_out: port@1 { | ||
193 | #address-cells = <1>; | ||
194 | #size-cells = <0>; | ||
195 | reg = <1>; | ||
196 | |||
197 | tcon0_out_hdmi: endpoint@1 { | ||
198 | reg = <1>; | ||
199 | remote-endpoint = <&hdmi_in_tcon0>; | ||
200 | }; | ||
201 | }; | ||
202 | }; | ||
203 | }; | ||
204 | |||
141 | mmc0: mmc@1c0f000 { | 205 | mmc0: mmc@1c0f000 { |
142 | /* compatible and clocks are in per SoC .dtsi file */ | 206 | /* compatible and clocks are in per SoC .dtsi file */ |
143 | reg = <0x01c0f000 0x1000>; | 207 | reg = <0x01c0f000 0x1000>; |
@@ -682,6 +746,50 @@ | |||
682 | interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; | 746 | interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; |
683 | }; | 747 | }; |
684 | 748 | ||
749 | hdmi: hdmi@1ee0000 { | ||
750 | compatible = "allwinner,sun8i-h3-dw-hdmi", | ||
751 | "allwinner,sun8i-a83t-dw-hdmi"; | ||
752 | reg = <0x01ee0000 0x10000>; | ||
753 | reg-io-width = <1>; | ||
754 | interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>; | ||
755 | clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>, | ||
756 | <&ccu CLK_HDMI>; | ||
757 | clock-names = "iahb", "isfr", "tmds"; | ||
758 | resets = <&ccu RST_BUS_HDMI1>; | ||
759 | reset-names = "ctrl"; | ||
760 | phys = <&hdmi_phy>; | ||
761 | phy-names = "hdmi-phy"; | ||
762 | status = "disabled"; | ||
763 | |||
764 | ports { | ||
765 | #address-cells = <1>; | ||
766 | #size-cells = <0>; | ||
767 | |||
768 | hdmi_in: port@0 { | ||
769 | reg = <0>; | ||
770 | |||
771 | hdmi_in_tcon0: endpoint { | ||
772 | remote-endpoint = <&tcon0_out_hdmi>; | ||
773 | }; | ||
774 | }; | ||
775 | |||
776 | hdmi_out: port@1 { | ||
777 | reg = <1>; | ||
778 | }; | ||
779 | }; | ||
780 | }; | ||
781 | |||
782 | hdmi_phy: hdmi-phy@1ef0000 { | ||
783 | compatible = "allwinner,sun8i-h3-hdmi-phy"; | ||
784 | reg = <0x01ef0000 0x10000>; | ||
785 | clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>, | ||
786 | <&ccu 6>; | ||
787 | clock-names = "bus", "mod", "pll-0"; | ||
788 | resets = <&ccu RST_BUS_HDMI0>; | ||
789 | reset-names = "phy"; | ||
790 | #phy-cells = <0>; | ||
791 | }; | ||
792 | |||
685 | rtc: rtc@1f00000 { | 793 | rtc: rtc@1f00000 { |
686 | compatible = "allwinner,sun6i-a31-rtc"; | 794 | compatible = "allwinner,sun6i-a31-rtc"; |
687 | reg = <0x01f00000 0x54>; | 795 | reg = <0x01f00000 0x54>; |