Commit | Line | Data |
---|---|---|
d4da2ebb MR |
1 | /* |
2 | * Copyright 2012 Maxime Ripard | |
3 | * | |
4 | * Maxime Ripard <maxime.ripard@free-electrons.com> | |
5 | * | |
1d86b4b5 MR |
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 | |
9 | * whole. | |
d4da2ebb | 10 | * |
1d86b4b5 MR |
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. | |
15 | * | |
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. | |
20 | * | |
1d86b4b5 MR |
21 | * Or, alternatively, |
22 | * | |
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 | |
30 | * conditions: | |
31 | * | |
32 | * The above copyright notice and this permission notice shall be | |
33 | * included in all copies or substantial portions of the Software. | |
34 | * | |
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. | |
d4da2ebb MR |
43 | */ |
44 | ||
71455701 | 45 | #include "skeleton.dtsi" |
d4da2ebb | 46 | |
51fbba42 | 47 | #include "sun5i.dtsi" |
32a5d2d1 | 48 | |
092a0c3b | 49 | #include <dt-bindings/pinctrl/sun4i-a10.h> |
51fbba42 | 50 | #include <dt-bindings/thermal/thermal.h> |
d4da2ebb MR |
51 | |
52 | / { | |
69144e3b MR |
53 | interrupt-parent = <&intc>; |
54 | ||
fd18c7ea HG |
55 | chosen { |
56 | #address-cells = <1>; | |
57 | #size-cells = <1>; | |
58 | ranges; | |
59 | ||
60 | framebuffer@0 { | |
61 | compatible = "allwinner,simple-framebuffer", | |
62 | "simple-framebuffer"; | |
63 | allwinner,pipeline = "de_be0-lcd0"; | |
6b709910 MR |
64 | clocks = <&ahb_gates 36>, <&ahb_gates 44>, <&de_be_clk>, |
65 | <&tcon_ch0_clk>, <&dram_gates 26>; | |
fd18c7ea HG |
66 | status = "disabled"; |
67 | }; | |
68 | }; | |
69 | ||
32a5d2d1 CYT |
70 | thermal-zones { |
71 | cpu_thermal { | |
72 | /* milliseconds */ | |
73 | polling-delay-passive = <250>; | |
74 | polling-delay = <1000>; | |
75 | thermal-sensors = <&rtp>; | |
76 | ||
77 | cooling-maps { | |
78 | map0 { | |
79 | trip = <&cpu_alert0>; | |
80 | cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; | |
81 | }; | |
82 | }; | |
83 | ||
84 | trips { | |
85 | cpu_alert0: cpu_alert0 { | |
86 | /* milliCelsius */ | |
87 | temperature = <850000>; | |
88 | hysteresis = <2000>; | |
89 | type = "passive"; | |
90 | }; | |
91 | ||
92 | cpu_crit: cpu_crit { | |
93 | /* milliCelsius */ | |
94 | temperature = <100000>; | |
95 | hysteresis = <2000>; | |
96 | type = "critical"; | |
97 | }; | |
98 | }; | |
69144e3b MR |
99 | }; |
100 | }; | |
101 | ||
69144e3b | 102 | clocks { |
3dce8324 | 103 | ahb_gates: clk@01c20060 { |
69144e3b | 104 | #clock-cells = <1>; |
70be4ee6 | 105 | compatible = "allwinner,sun5i-a13-ahb-gates-clk"; |
69144e3b MR |
106 | reg = <0x01c20060 0x8>; |
107 | clocks = <&ahb>; | |
dd4de433 MR |
108 | clock-indices = <0>, <1>, |
109 | <2>, <5>, <6>, | |
110 | <7>, <8>, <9>, | |
111 | <10>, <13>, | |
112 | <14>, <20>, | |
113 | <21>, <22>, | |
15bd920f MR |
114 | <28>, <32>, <34>, |
115 | <36>, <40>, <44>, | |
dd4de433 MR |
116 | <46>, <51>, |
117 | <52>; | |
d8cacaa3 MR |
118 | clock-output-names = "ahb_usbotg", "ahb_ehci", |
119 | "ahb_ohci", "ahb_ss", "ahb_dma", | |
120 | "ahb_bist", "ahb_mmc0", "ahb_mmc1", | |
121 | "ahb_mmc2", "ahb_nand", | |
122 | "ahb_sdram", "ahb_spi0", | |
123 | "ahb_spi1", "ahb_spi2", | |
15bd920f MR |
124 | "ahb_stimer", "ahb_ve", "ahb_tve", |
125 | "ahb_lcd", "ahb_csi", "ahb_de_be", | |
d8cacaa3 MR |
126 | "ahb_de_fe", "ahb_iep", |
127 | "ahb_mali400"; | |
69144e3b MR |
128 | }; |
129 | ||
3dce8324 | 130 | apb0_gates: clk@01c20068 { |
69144e3b | 131 | #clock-cells = <1>; |
70be4ee6 | 132 | compatible = "allwinner,sun5i-a13-apb0-gates-clk"; |
69144e3b MR |
133 | reg = <0x01c20068 0x4>; |
134 | clocks = <&apb0>; | |
dd4de433 MR |
135 | clock-indices = <0>, <5>, |
136 | <6>; | |
d8cacaa3 MR |
137 | clock-output-names = "apb0_codec", "apb0_pio", |
138 | "apb0_ir"; | |
69144e3b MR |
139 | }; |
140 | ||
3dce8324 | 141 | apb1_gates: clk@01c2006c { |
69144e3b | 142 | #clock-cells = <1>; |
70be4ee6 | 143 | compatible = "allwinner,sun5i-a13-apb1-gates-clk"; |
69144e3b MR |
144 | reg = <0x01c2006c 0x4>; |
145 | clocks = <&apb1>; | |
dd4de433 MR |
146 | clock-indices = <0>, <1>, |
147 | <2>, <17>, | |
148 | <19>; | |
69144e3b | 149 | clock-output-names = "apb1_i2c0", "apb1_i2c1", |
dd4de433 MR |
150 | "apb1_i2c2", "apb1_uart1", |
151 | "apb1_uart3"; | |
69144e3b | 152 | }; |
541ac155 MR |
153 | |
154 | dram_gates: clk@01c20100 { | |
155 | #clock-cells = <1>; | |
156 | compatible = "allwinner,sun5i-a13-dram-gates-clk", | |
157 | "allwinner,sun4i-a10-gates-clk"; | |
158 | reg = <0x01c20100 0x4>; | |
159 | clocks = <&pll5 0>; | |
160 | clock-indices = <0>, | |
161 | <1>, | |
162 | <25>, | |
163 | <26>, | |
164 | <29>, | |
165 | <31>; | |
166 | clock-output-names = "dram_ve", | |
167 | "dram_csi", | |
168 | "dram_de_fe", | |
169 | "dram_de_be", | |
170 | "dram_ace", | |
171 | "dram_iep"; | |
172 | }; | |
6b709910 MR |
173 | |
174 | de_be_clk: clk@01c20104 { | |
175 | #clock-cells = <0>; | |
176 | #reset-cells = <0>; | |
177 | compatible = "allwinner,sun4i-a10-display-clk"; | |
178 | reg = <0x01c20104 0x4>; | |
179 | clocks = <&pll3>, <&pll7>, <&pll5 1>; | |
180 | clock-output-names = "de-be"; | |
181 | }; | |
182 | ||
183 | de_fe_clk: clk@01c2010c { | |
184 | #clock-cells = <0>; | |
185 | #reset-cells = <0>; | |
186 | compatible = "allwinner,sun4i-a10-display-clk"; | |
187 | reg = <0x01c2010c 0x4>; | |
188 | clocks = <&pll3>, <&pll7>, <&pll5 1>; | |
189 | clock-output-names = "de-fe"; | |
190 | }; | |
191 | ||
192 | tcon_ch0_clk: clk@01c20118 { | |
193 | #clock-cells = <0>; | |
194 | #reset-cells = <1>; | |
195 | compatible = "allwinner,sun4i-a10-tcon-ch0-clk"; | |
196 | reg = <0x01c20118 0x4>; | |
197 | clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>; | |
198 | clock-output-names = "tcon-ch0-sclk"; | |
199 | }; | |
200 | ||
201 | tcon_ch1_clk: clk@01c2012c { | |
202 | #clock-cells = <0>; | |
203 | compatible = "allwinner,sun4i-a10-tcon-ch1-clk"; | |
204 | reg = <0x01c2012c 0x4>; | |
205 | clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>; | |
206 | clock-output-names = "tcon-ch1-sclk"; | |
207 | }; | |
69144e3b | 208 | }; |
51763bd7 HG |
209 | |
210 | soc@01c00000 { | |
211 | pwm: pwm@01c20e00 { | |
212 | compatible = "allwinner,sun5i-a13-pwm"; | |
213 | reg = <0x01c20e00 0xc>; | |
214 | clocks = <&osc24M>; | |
215 | #pwm-cells = <3>; | |
216 | status = "disabled"; | |
217 | }; | |
218 | }; | |
51fbba42 | 219 | }; |
69144e3b | 220 | |
51fbba42 MR |
221 | &cpu0 { |
222 | clock-latency = <244144>; /* 8 32k periods */ | |
223 | operating-points = < | |
8358aada | 224 | /* kHz uV */ |
51fbba42 | 225 | 1008000 1400000 |
8358aada MR |
226 | 912000 1350000 |
227 | 864000 1300000 | |
228 | 624000 1200000 | |
229 | 576000 1200000 | |
230 | 432000 1200000 | |
51fbba42 MR |
231 | >; |
232 | #cooling-cells = <2>; | |
233 | cooling-min-level = <0>; | |
234 | cooling-max-level = <5>; | |
235 | }; | |
69144e3b | 236 | |
51fbba42 MR |
237 | &pio { |
238 | compatible = "allwinner,sun5i-a13-pinctrl"; | |
f1741fda | 239 | |
51fbba42 MR |
240 | uart1_pins_a: uart1@0 { |
241 | allwinner,pins = "PE10", "PE11"; | |
242 | allwinner,function = "uart1"; | |
243 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; | |
244 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; | |
245 | }; | |
4411902a | 246 | |
51fbba42 MR |
247 | uart1_pins_b: uart1@1 { |
248 | allwinner,pins = "PG3", "PG4"; | |
249 | allwinner,function = "uart1"; | |
250 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; | |
251 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; | |
9e2dcb2f | 252 | }; |
d4da2ebb | 253 | }; |