xref: /rk3399_rockchip-uboot/arch/arm/dts/sun5i-r8.dtsi (revision c6b968da78ce3fa7224c0ddf15fe170c7c05b27e)
1f0e8e8daSMaxime Ripard/*
2f0e8e8daSMaxime Ripard * Copyright 2015 Free Electrons
3f0e8e8daSMaxime Ripard * Copyright 2015 NextThing Co
4f0e8e8daSMaxime Ripard *
5f0e8e8daSMaxime Ripard * Maxime Ripard <maxime.ripard@free-electrons.com>
6f0e8e8daSMaxime Ripard *
7f0e8e8daSMaxime Ripard * This file is dual-licensed: you can use it either under the terms
8f0e8e8daSMaxime Ripard * of the GPL or the X11 license, at your option. Note that this dual
9f0e8e8daSMaxime Ripard * licensing only applies to this file, and not this project as a
10f0e8e8daSMaxime Ripard * whole.
11f0e8e8daSMaxime Ripard *
12f0e8e8daSMaxime Ripard *  a) This file is free software; you can redistribute it and/or
13f0e8e8daSMaxime Ripard *     modify it under the terms of the GNU General Public License as
14f0e8e8daSMaxime Ripard *     published by the Free Software Foundation; either version 2 of the
15f0e8e8daSMaxime Ripard *     License, or (at your option) any later version.
16f0e8e8daSMaxime Ripard *
17f0e8e8daSMaxime Ripard *     This file is distributed in the hope that it will be useful,
18f0e8e8daSMaxime Ripard *     but WITHOUT ANY WARRANTY; without even the implied warranty of
19f0e8e8daSMaxime Ripard *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20f0e8e8daSMaxime Ripard *     GNU General Public License for more details.
21f0e8e8daSMaxime Ripard *
22f0e8e8daSMaxime Ripard * Or, alternatively,
23f0e8e8daSMaxime Ripard *
24f0e8e8daSMaxime Ripard *  b) Permission is hereby granted, free of charge, to any person
25f0e8e8daSMaxime Ripard *     obtaining a copy of this software and associated documentation
26f0e8e8daSMaxime Ripard *     files (the "Software"), to deal in the Software without
27f0e8e8daSMaxime Ripard *     restriction, including without limitation the rights to use,
28f0e8e8daSMaxime Ripard *     copy, modify, merge, publish, distribute, sublicense, and/or
29f0e8e8daSMaxime Ripard *     sell copies of the Software, and to permit persons to whom the
30f0e8e8daSMaxime Ripard *     Software is furnished to do so, subject to the following
31f0e8e8daSMaxime Ripard *     conditions:
32f0e8e8daSMaxime Ripard *
33f0e8e8daSMaxime Ripard *     The above copyright notice and this permission notice shall be
34f0e8e8daSMaxime Ripard *     included in all copies or substantial portions of the Software.
35f0e8e8daSMaxime Ripard *
36f0e8e8daSMaxime Ripard *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
37f0e8e8daSMaxime Ripard *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
38f0e8e8daSMaxime Ripard *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
39f0e8e8daSMaxime Ripard *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
40f0e8e8daSMaxime Ripard *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
41f0e8e8daSMaxime Ripard *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
42f0e8e8daSMaxime Ripard *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
43f0e8e8daSMaxime Ripard *     OTHER DEALINGS IN THE SOFTWARE.
44f0e8e8daSMaxime Ripard */
45f0e8e8daSMaxime Ripard
46f0e8e8daSMaxime Ripard#include "sun5i-a13.dtsi"
47f0e8e8daSMaxime Ripard
48f0e8e8daSMaxime Ripard/ {
49f0e8e8daSMaxime Ripard	chosen {
50f0e8e8daSMaxime Ripard		framebuffer@1 {
51f0e8e8daSMaxime Ripard			compatible = "allwinner,simple-framebuffer",
52f0e8e8daSMaxime Ripard				     "simple-framebuffer";
53f0e8e8daSMaxime Ripard			allwinner,pipeline = "de_be0-lcd0-tve0";
54*860fbdd4SHans de Goede			clocks = <&ahb_gates 34>, <&ahb_gates 36>,
55*860fbdd4SHans de Goede				 <&ahb_gates 44>, <&de_be_clk>,
56*860fbdd4SHans de Goede				 <&tcon_ch1_clk>, <&dram_gates 26>;
57f0e8e8daSMaxime Ripard			status = "disabled";
58f0e8e8daSMaxime Ripard		};
59f0e8e8daSMaxime Ripard	};
60*860fbdd4SHans de Goede
61*860fbdd4SHans de Goede	soc@01c00000 {
62*860fbdd4SHans de Goede		tve0: tv-encoder@01c0a000 {
63*860fbdd4SHans de Goede			compatible = "allwinner,sun4i-a10-tv-encoder";
64*860fbdd4SHans de Goede			reg = <0x01c0a000 0x1000>;
65*860fbdd4SHans de Goede			clocks = <&ahb_gates 34>;
66*860fbdd4SHans de Goede			resets = <&tcon_ch0_clk 0>;
67*860fbdd4SHans de Goede			status = "disabled";
68*860fbdd4SHans de Goede
69*860fbdd4SHans de Goede			port {
70*860fbdd4SHans de Goede				#address-cells = <1>;
71*860fbdd4SHans de Goede				#size-cells = <0>;
72*860fbdd4SHans de Goede
73*860fbdd4SHans de Goede				tve0_in_tcon0: endpoint@0 {
74*860fbdd4SHans de Goede					reg = <0>;
75*860fbdd4SHans de Goede					remote-endpoint = <&tcon0_out_tve0>;
76*860fbdd4SHans de Goede				};
77*860fbdd4SHans de Goede			};
78*860fbdd4SHans de Goede		};
79*860fbdd4SHans de Goede	};
80*860fbdd4SHans de Goede};
81*860fbdd4SHans de Goede
82*860fbdd4SHans de Goede&tcon0_out {
83*860fbdd4SHans de Goede	tcon0_out_tve0: endpoint@1 {
84*860fbdd4SHans de Goede		reg = <1>;
85*860fbdd4SHans de Goede		remote-endpoint = <&tve0_in_tcon0>;
86*860fbdd4SHans de Goede	};
87f0e8e8daSMaxime Ripard};
88