1 #include <dt-bindings/interrupt-controller/arm-gic.h>
2 #include <dt-bindings/rkfb/rk_fb.h>
4 #include "skeleton.dtsi"
5 #include "rk3228-clocks.dtsi"
8 compatible = "rockchip,rk3228";
9 interrupt-parent = <&gic>;
21 compatible = "arm,cortex-a7";
26 compatible = "arm,cortex-a7";
31 compatible = "arm,cortex-a7";
36 compatible = "arm,cortex-a7";
41 gic: interrupt-controller@32010000 {
42 compatible = "arm,cortex-a15-gic";
44 #interrupt-cells = <3>;
46 reg = <0x32011000 0x1000>,
51 compatible = "arm,cortex-a7-pmu";
52 interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>,
53 <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>,
54 <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>,
55 <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
58 reset: reset@110e0110{
59 compatible = "rockchip,reset";
60 reg = <0x110e0110 0x20>;
61 rockchip,reset-flag = <ROCKCHIP_RESET_HIWORD_MASK>;
66 compatible = "arm,armv7-timer";
67 interrupts = <GIC_PPI 13
68 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
70 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
71 clock-frequency = <24000000>;
74 uart_dbg: serial@11030000 {
75 compatible = "rockchip,serial";
76 reg = <0x11030000 0x100>;
77 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
78 clock-frequency = <24000000>;
79 clocks = <&xin24m>, <&xin24m>;
80 clock-names = "sclk_uart", "pclk_uart";
87 compatible = "rockchip,fiq-debugger";
88 rockchip,serial-id = <2>;
89 rockchip,signal-irq = <159>;
90 rockchip,wake-irq = <0>;
91 rockchip,irq-mode-enable = <1>; /* If enable uart uses irq instead of fiq */
92 rockchip,baudrate = <1500000>; /* Only 115200 and 1500000 */
96 rockchip_clocks_init: clocks-init{
97 compatible = "rockchip,clocks-init";
98 rockchip,clocks-init-parent =
99 <&clk_i2s0_pll &clk_cpll>, <&clk_i2s1_pll &clk_cpll>,
100 <&clk_i2s2_pll &clk_cpll>, <&clk_spdif_pll &clk_cpll>,
101 <&clk_gpu &clk_cpll>, <&dclk_vop0 &hdmi_phy_clk>,
102 <&aclk_bus &clk_cpll>, <&aclk_peri &clk_cpll>,
103 <&clk_sdmmc0 &clk_cpll>, <&clk_emmc &clk_cpll>,
104 <&clk_sdio &clk_cpll>, <&aclk_vpu &clk_cpll>,
105 <&hdmi_phy_clk &hdmiphy_out>, <&usb480m &usb480m_phy>;
106 rockchip,clocks-init-rate =
107 <&clk_gpll 600000000>, <&clk_core 700000000>,
108 <&clk_cpll 500000000>, <&aclk_bus 250000000>,
109 <&hclk_bus 125000000>, <&pclk_bus 62500000>,
110 <&aclk_peri 250000000>, <&hclk_peri 125000000>,
111 <&pclk_peri 62500000>, <&clk_mac 125000000>,
112 <&aclk_iep 250000000>, <&hclk_vio 125000000>,
113 <&aclk_rga 250000000>, <&clk_gpu 250000000>,
114 <&aclk_vpu 25000000>, <&clk_vdec_core 250000000>,
115 <&clk_vdec_cabac 250000000>;
117 rockchip,clocks-uboot-has-init =
122 rockchip_clocks_enable: clocks-enable {
123 compatible = "rockchip,clocks-enable";
141 <&clk_gates8 0>,/*aclk_intmem*/
142 <&clk_gates8 1>,/*clk_intmem_mbist*/
143 <&clk_gates8 2>,/*aclk_dmac_bus*/
144 <&clk_gates10 1>,/*g_aclk_bus*/
145 <&clk_gates13 9>,/*aclk_gic400*/
146 <&clk_gates8 3>,/*hclk_rom*/
147 <&clk_gates8 4>,/*pclk_ddrupctl*/
148 <&clk_gates8 6>,/*pclk_ddrmon*/
149 <&clk_gates9 4>,/*pclk_timer0*/
150 <&clk_gates9 5>,/*pclk_stimer*/
151 <&clk_gates10 0>,/*pclk_grf*/
152 <&clk_gates10 4>,/*pclk_cru*/
153 <&clk_gates10 6>,/*pclk_sgrf*/
154 <&clk_gates10 3>,/*pclk_ddrphy*/
155 <&clk_gates10 9>,/*pclk_phy_noc*/
161 <&clk_gates12 0>,/*aclk_peri_noc*/
162 <&clk_gates12 1>,/*hclk_peri_noc*/
163 <&clk_gates12 2>,/*pclk_peri_noc*/
165 <&clk_gates6 5>, /* g_clk_timer0 */
166 <&clk_gates6 6>, /* g_clk_timer1 */
168 <&clk_gates7 14>, /* g_aclk_gpu */
169 <&clk_gates7 15>, /* g_aclk_gpu_noc */
171 <&clk_gates1 3>;/*clk_jtag*/
175 #address-cells = <1>;
177 compatible = "arm,amba-bus";
178 interrupt-parent = <&gic>;
181 pdma: pdma@110f0000 {
182 compatible = "arm,pl330", "arm,primecell";
183 reg = <0x110f0000 0x4000>;
184 clocks = <&clk_gates8 2>;
185 clock-names = "apb_pclk";
186 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
187 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
192 i2s0: i2s0@100c0000 {
193 compatible = "rockchip-i2s";
194 reg = <0x100c0000 0x1000>;
196 clocks = <&clk_i2s0>, <&clk_gates8 7>;
197 clock-names = "i2s_clk", "i2s_hclk";
198 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
199 dmas = <&pdma 11>, <&pdma 12>;
201 dma-names = "tx", "rx";
204 i2s1: i2s1@100b0000 {
205 compatible = "rockchip-i2s";
206 reg = <0x100b0000 0x1000>;
208 clocks = <&clk_i2s1>, <&clk_i2s1_out>, <&clk_gates8 8>;
209 clock-names = "i2s_clk", "i2s_mclk", "i2s_hclk";
210 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
211 dmas = <&pdma 14>, <&pdma 15>;
213 dma-names = "tx", "rx";
217 i2s2: i2s2@100e0000 {
218 compatible = "rockchip-i2s";
219 reg = <0x100e0000 0x1000>;
221 clocks = <&clk_i2s2>, <&clk_gates8 9>;
222 clock-names = "i2s_clk", "i2s_hclk";
223 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
224 dmas = <&pdma 0>, <&pdma 1>;
226 dma-names = "tx", "rx";
230 spdif: spdif@100d0000 {
231 compatible = "rockchip-spdif";
232 reg = <0x100d0000 0x1000>;
233 clocks = <&clk_spdif>, <&clk_gates8 10>;
234 clock-names = "spdif_mclk", "spdif_hclk";
235 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
243 compatible = "arm,mali400";
244 reg = <0x20001000 0x200>,
252 reg-names = "Mali_L2",
260 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
261 <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
262 <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
263 <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
264 <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
265 <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
267 interrupt-names = "Mali_GP_IRQ",
276 compatible = "rockchip,rk-fb";
277 rockchip,disp-mode = <NO_DUAL>;
280 rk_screen: rk_screen {
281 compatible = "rockchip,screen";
285 compatible = "rockchip,rk3228-lcdc";
287 rockchip,cabc_mode = <0>;
288 rockchip,pwr18 = <0>;
289 rockchip,iommu-enabled = <1>;
290 reg = <0x20050000 0x300>;
291 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
292 clocks = <&aclk_vop>, <&dclk_vop0>, <&hclk_vio>;
293 clock-names = "aclk_lcdc", "dclk_lcdc", "hclk_lcdc";
298 compatible = "rockchip,vop_mmu";
299 reg = <0x20053f00 0x100>;
300 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
301 interrupt-names = "vop_mmu";
306 compatible = "rockchip,hevc_mmu";
307 reg = <0x20034440 0x40>,
309 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
310 interrupt-names = "hevc_mmu";
315 compatible = "rockchip,vpu_mmu";
316 reg = <0x20026800 0x100>;
317 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
318 interrupt-names = "vpu_mmu";
323 compatible = "rockchip,iep_mmu";
324 reg = <0x20078800 0x100>;
325 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
326 interrupt-names = "iep_mmu";
329 hdmi: hdmi@200a0000 {
330 compatible = "rockchip,rk3228-hdmi";
331 reg = <0x200a0000 0x20000>,
332 <0x12030000 0x10000>;
333 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>,
334 <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
335 clocks = <&clk_gates14 6>, <&clk_gates3 7>, <&clk_hdmi_cec>;
336 clock-names = "pclk_hdmi", "hdcp_clk_hdmi", "cec_clk_hdmi";
337 rockchip,hdmi_audio_source = <0>;
338 rockchip,hdcp_enable = <0>;
339 rockchip,cec_enable = <0>;
343 hdmi_hdcp2: hdmi_hdcp2@20090000 {
344 compatible = "rockchip,rk3228-hdmi-hdcp2";
345 reg = <0x20090000 0x10000>;
346 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
347 clocks = <&aclk_hdcp>,
351 clock-names = "aclk_hdcp2",
359 compatible = "rockchip,rk3228-tve";
360 reg = <0x20053e00 0x100>,
361 <0x12020000 0x10000>;
362 clocks = <&clk_gates10 8>;
363 clock-names = "pclk_vdac";
367 emmc: rksdmmc@30020000 {
368 compatible = "rockchip,rk_mmc", "rockchip,rk3228-sdmmc";
369 reg = <0x30020000 0x10000>;
370 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
371 #address-cells = <1>;
373 clocks = <&clk_emmc>, <&clk_gates7 0>;
374 clock-names = "clk_mmc", "hclk_mmc";
376 fifo-depth = <0x100>;
378 cru_regsbase = <0x124>;
379 cru_reset_offset = <3>;
382 sdmmc: rksdmmc@30000000 {
383 compatible = "rockchip,rk_mmc", "rockchip,rk3228-sdmmc";
384 reg = <0x30000000 0x10000>;
385 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
386 #address-cells = <1>;
388 clocks = <&clk_sdmmc0>, <&clk_gates5 10>;
389 clock-names = "clk_mmc", "hclk_mmc";
391 fifo-depth = <0x100>;
393 cru_regsbase = <0x124>;
394 cru_reset_offset = <1>;
397 sdio: rksdmmc@30010000 {
398 compatible = "rockchip,rk_mmc", "rockchip,rk3228-sdmmc";
399 reg = <0x30010000 0x10000>;
400 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
401 #address-cells = <1>;
403 clocks = <&clk_sdio>, <&clk_gates5 11>;
404 clock-names = "clk_mmc", "hclk_mmc";
406 fifo-depth = <0x100>;
408 cru_regsbase = <0x124>;
409 cru_reset_offset = <2>;