2 * Copyright 2012 Maxime Ripard
4 * Maxime Ripard <maxime.ripard@free-electrons.com>
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
11 * a) This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
23 * b) Permission is hereby granted, free of charge, to any person
24 * obtaining a copy of this software and associated documentation
25 * files (the "Software"), to deal in the Software without
26 * restriction, including without limitation the rights to use,
27 * copy, modify, merge, publish, distribute, sublicense, and/or
28 * sell copies of the Software, and to permit persons to whom the
29 * Software is furnished to do so, subject to the following
32 * The above copyright notice and this permission notice shall be
33 * included in all copies or substantial portions of the Software.
35 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42 * OTHER DEALINGS IN THE SOFTWARE.
45 #include "skeleton.dtsi"
49 #include <dt-bindings/pinctrl/sun4i-a10.h>
50 #include <dt-bindings/thermal/thermal.h>
53 interrupt-parent = <&intc>;
61 compatible = "allwinner,simple-framebuffer",
63 allwinner,pipeline = "de_be0-lcd0";
64 clocks = <&ccu CLK_AHB_LCD>, <&ccu CLK_AHB_DE_BE>, <&ccu CLK_DE_BE>,
65 <&ccu CLK_TCON_CH0>, <&ccu CLK_DRAM_DE_BE>;
73 polling-delay-passive = <250>;
74 polling-delay = <1000>;
75 thermal-sensors = <&rtp>;
80 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
85 cpu_alert0: cpu_alert0 {
87 temperature = <85000>;
94 temperature = <100000>;
103 compatible = "allwinner,sun5i-a13-display-engine";
104 allwinner,pipelines = <&fe0>;
108 tcon0: lcd-controller@01c0c000 {
109 compatible = "allwinner,sun5i-a13-tcon";
110 reg = <0x01c0c000 0x1000>;
112 resets = <&ccu RST_LCD>;
114 clocks = <&ccu CLK_AHB_LCD>,
120 clock-output-names = "tcon-pixel-clock";
124 #address-cells = <1>;
128 #address-cells = <1>;
132 tcon0_in_be0: endpoint@0 {
134 remote-endpoint = <&be0_out_tcon0>;
139 #address-cells = <1>;
147 compatible = "allwinner,sun5i-a13-pwm";
148 reg = <0x01c20e00 0xc>;
149 clocks = <&ccu CLK_HOSC>;
154 fe0: display-frontend@01e00000 {
155 compatible = "allwinner,sun5i-a13-display-frontend";
156 reg = <0x01e00000 0x20000>;
158 clocks = <&ccu CLK_DE_FE>, <&ccu CLK_DE_FE>,
159 <&ccu CLK_DRAM_DE_FE>;
160 clock-names = "ahb", "mod",
162 resets = <&ccu RST_DE_FE>;
166 #address-cells = <1>;
170 #address-cells = <1>;
174 fe0_out_be0: endpoint@0 {
176 remote-endpoint = <&be0_in_fe0>;
182 be0: display-backend@01e60000 {
183 compatible = "allwinner,sun5i-a13-display-backend";
184 reg = <0x01e60000 0x10000>;
185 clocks = <&ccu CLK_AHB_DE_BE>, <&ccu CLK_DE_BE>,
186 <&ccu CLK_DRAM_DE_BE>;
187 clock-names = "ahb", "mod",
189 resets = <&ccu RST_DE_BE>;
192 assigned-clocks = <&ccu CLK_DE_BE>;
193 assigned-clock-rates = <300000000>;
196 #address-cells = <1>;
200 #address-cells = <1>;
204 be0_in_fe0: endpoint@0 {
206 remote-endpoint = <&fe0_out_be0>;
211 #address-cells = <1>;
215 be0_out_tcon0: endpoint@0 {
217 remote-endpoint = <&tcon0_in_be0>;
226 compatible = "allwinner,sun5i-a13-ccu";
230 clock-latency = <244144>; /* 8 32k periods */
240 #cooling-cells = <2>;
241 cooling-min-level = <0>;
242 cooling-max-level = <5>;
246 compatible = "allwinner,sun5i-a13-pinctrl";
248 lcd_rgb666_pins: lcd_rgb666@0 {
249 pins = "PD2", "PD3", "PD4", "PD5", "PD6", "PD7",
250 "PD10", "PD11", "PD12", "PD13", "PD14", "PD15",
251 "PD18", "PD19", "PD20", "PD21", "PD22", "PD23",
252 "PD24", "PD25", "PD26", "PD27";
256 uart1_pins_a: uart1@0 {
257 pins = "PE10", "PE11";
261 uart1_pins_b: uart1@1 {