Linux Audio

Check our new training course

Open-source upstreaming

Need help get the support for your hardware in upstream Linux?
Loading...
Note: File does not exist in v6.13.7.
  1/*
  2 * This file is dual-licensed: you can use it either under the terms
  3 * of the GPL or the X11 license, at your option. Note that this dual
  4 * licensing only applies to this file, and not this project as a
  5 * whole.
  6 *
  7 *  a) This file is free software; you can redistribute it and/or
  8 *     modify it under the terms of the GNU General Public License as
  9 *     published by the Free Software Foundation; either version 2 of the
 10 *     License, or (at your option) any later version.
 11 *
 12 *     This file is distributed in the hope that it will be useful,
 13 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 14 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 15 *     GNU General Public License for more details.
 16 *
 17 *  Or, alternatively,
 18 *
 19 *  b) Permission is hereby granted, free of charge, to any person
 20 *     obtaining a copy of this software and associated documentation
 21 *     files (the "Software"), to deal in the Software without
 22 *     restriction, including without limitation the rights to use,
 23 *     copy, modify, merge, publish, distribute, sublicense, and/or
 24 *     sell copies of the Software, and to permit persons to whom the
 25 *     Software is furnished to do so, subject to the following
 26 *     conditions:
 27 *
 28 *     The above copyright notice and this permission notice shall be
 29 *     included in all copies or substantial portions of the Software.
 30 *
 31 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 32 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 33 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 34 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 35 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 36 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 37 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 38 *     OTHER DEALINGS IN THE SOFTWARE.
 39 */
 40
 41/dts-v1/;
 42
 43#include "rv1108.dtsi"
 44
 45/ {
 46	model = "Rockchip RV1108 Evaluation board";
 47	compatible = "rockchip,rv1108-evb", "rockchip,rv1108";
 48
 49	memory@60000000 {
 50		device_type = "memory";
 51		reg = <0x60000000 0x08000000>;
 52	};
 53
 54	chosen {
 55		stdout-path = "serial2:1500000n8";
 56	};
 57
 58	backlight: backlight {
 59		compatible = "pwm-backlight";
 60		brightness-levels = <
 61			  0   1   2   3   4   5   6   7
 62			  8   9  10  11  12  13  14  15
 63			 16  17  18  19  20  21  22  23
 64			 24  25  26  27  28  29  30  31
 65			 32  33  34  35  36  37  38  39
 66			 40  41  42  43  44  45  46  47
 67			 48  49  50  51  52  53  54  55
 68			 56  57  58  59  60  61  62  63
 69			 64  65  66  67  68  69  70  71
 70			 72  73  74  75  76  77  78  79
 71			 80  81  82  83  84  85  86  87
 72			 88  89  90  91  92  93  94  95
 73			 96  97  98  99 100 101 102 103
 74			104 105 106 107 108 109 110 111
 75			112 113 114 115 116 117 118 119
 76			120 121 122 123 124 125 126 127
 77			128 129 130 131 132 133 134 135
 78			136 137 138 139 140 141 142 143
 79			144 145 146 147 148 149 150 151
 80			152 153 154 155 156 157 158 159
 81			160 161 162 163 164 165 166 167
 82			168 169 170 171 172 173 174 175
 83			176 177 178 179 180 181 182 183
 84			184 185 186 187 188 189 190 191
 85			192 193 194 195 196 197 198 199
 86			200 201 202 203 204 205 206 207
 87			208 209 210 211 212 213 214 215
 88			216 217 218 219 220 221 222 223
 89			224 225 226 227 228 229 230 231
 90			232 233 234 235 236 237 238 239
 91			240 241 242 243 244 245 246 247
 92			248 249 250 251 252 253 254 255>;
 93		default-brightness-level = <200>;
 94		pwms = <&pwm0 0 25000 0>;
 95	};
 96
 97	vcc_sys: vsys-regulator {
 98		compatible = "regulator-fixed";
 99		regulator-name = "vsys";
100		regulator-min-microvolt = <5000000>;
101		regulator-max-microvolt = <5000000>;
102		regulator-boot-on;
103	};
104};
105
106&cpu0 {
107	cpu-supply = <&vdd_core>;
108};
109
110&i2c0 {
111	status = "okay";
112	i2c-scl-rising-time-ns = <275>;
113	i2c-scl-falling-time-ns = <16>;
114	clock-frequency = <400000>;
115
116	rk805: pmic@18 {
117		compatible = "rockchip,rk805";
118		reg = <0x18>;
119		interrupt-parent = <&gpio0>;
120		interrupts = <RK_PB4 IRQ_TYPE_LEVEL_LOW>;
121		rockchip,system-power-controller;
122
123		vcc1-supply = <&vcc_sys>;
124		vcc2-supply = <&vcc_sys>;
125		vcc3-supply = <&vcc_sys>;
126		vcc4-supply = <&vcc_sys>;
127		vcc5-supply = <&vcc_sys>;
128		vcc6-supply = <&vcc_sys>;
129
130		regulators {
131			vdd_core: DCDC_REG1 {
132				regulator-name= "vdd_core";
133				regulator-min-microvolt = <700000>;
134				regulator-max-microvolt = <1500000>;
135				regulator-always-on;
136				regulator-boot-on;
137				regulator-state-mem {
138					regulator-state-enabled;
139					regulator-state-uv = <900000>;
140				};
141			};
142
143			vdd_cam: DCDC_REG2 {
144				regulator-name= "vdd_cam";
145				regulator-min-microvolt = <700000>;
146				regulator-max-microvolt = <2000000>;
147				regulator-state-mem {
148					regulator-state-disabled;
149				};
150			};
151
152			vcc_ddr: DCDC_REG3 {
153				regulator-name= "vcc_ddr";
154				regulator-always-on;
155				regulator-boot-on;
156				regulator-state-mem {
157					regulator-state-enabled;
158				};
159			};
160
161			vcc_io: DCDC_REG4 {
162				regulator-name= "vcc_io";
163				regulator-min-microvolt = <3300000>;
164				regulator-max-microvolt = <3300000>;
165				regulator-always-on;
166				regulator-boot-on;
167				regulator-state-mem {
168					regulator-state-enabled;
169					regulator-state-uv = <3300000>;
170				};
171			};
172
173			vdd_10: LDO_REG1 {
174				regulator-name= "vdd_10";
175				regulator-min-microvolt = <1000000>;
176				regulator-max-microvolt = <1000000>;
177				regulator-always-on;
178				regulator-boot-on;
179				regulator-state-mem {
180					regulator-state-disabled;
181				};
182			};
183
184			vcc_18: LDO_REG2 {
185				regulator-name= "vcc_18";
186				regulator-min-microvolt = <1800000>;
187				regulator-max-microvolt = <1800000>;
188				regulator-always-on;
189				regulator-boot-on;
190				regulator-state-mem {
191					regulator-state-disabled;
192				};
193			};
194
195			vdd10_pmu: LDO_REG3 {
196				regulator-name= "vdd10_pmu";
197				regulator-min-microvolt = <1000000>;
198				regulator-max-microvolt = <1000000>;
199				regulator-always-on;
200				regulator-boot-on;
201				regulator-state-mem {
202					regulator-state-enabled;
203					regulator-state-uv = <1000000>;
204				};
205			};
206		};
207	};
208
209	bma250: accelerometer@19 {
210		compatible = "bosch,bma250e";
211		reg = <0x19>;
212		interrupt-parent = <&gpio0>;
213		interrupts = <RK_PB3 IRQ_TYPE_LEVEL_LOW>;
214	};
215};
216
217&pwm0 {
218	status = "okay";
219};
220
221&sdmmc {
222	status = "okay";
223};
224
225&tsadc {
226	status = "okay";
227};
228
229&u2phy {
230	status = "okay";
231
232	u2phy_host: host-port {
233		status = "okay";
234	};
235
236	u2phy_otg: otg-port {
237		status = "okay";
238	};
239};
240
241&uart0 {
242	status = "okay";
243};
244
245&uart1 {
246	status = "okay";
247};
248
249&uart2 {
250	status = "okay";
251};
252
253&usb_host_ehci {
254	status = "okay";
255};
256
257&usb_host_ohci {
258	status = "okay";
259};
260
261&usb_otg {
262	status = "okay";
263};