Linux Audio

Check our new training course

Loading...
v4.17
 
  1/*
  2 * Copyright (C) 2017 Jagan Teki <jagan@amarulasolutions.com>
  3 *
  4 * This file is dual-licensed: you can use it either under the terms
  5 * of the GPL or the X11 license, at your option. Note that this dual
  6 * licensing only applies to this file, and not this project as a
  7 * whole.
  8 *
  9 *  a) This file is free software; you can redistribute it and/or
 10 *     modify it under the terms of the GNU General Public License as
 11 *     published by the Free Software Foundation; either version 2 of the
 12 *     License, or (at your option) any later version.
 13 *
 14 *     This file is distributed in the hope that it will be useful,
 15 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 16 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 17 *     GNU General Public License for more details.
 18 *
 19 * Or, alternatively,
 20 *
 21 *  b) Permission is hereby granted, free of charge, to any person
 22 *     obtaining a copy of this software and associated documentation
 23 *     files (the "Software"), to deal in the Software without
 24 *     restriction, including without limitation the rights to use,
 25 *     copy, modify, merge, publish, distribute, sublicense, and/or
 26 *     sell copies of the Software, and to permit persons to whom the
 27 *     Software is furnished to do so, subject to the following
 28 *     conditions:
 29 *
 30 *     The above copyright notice and this permission notice shall be
 31 *     included in all copies or substantial portions of the Software.
 32 *
 33 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 34 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 35 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 36 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 37 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 38 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 39 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 40 *     OTHER DEALINGS IN THE SOFTWARE.
 41 */
 42
 43/dts-v1/;
 44#include "rk3288.dtsi"
 45
 46/ {
 47	model = "Amarula Vyasa-RK3288";
 48	compatible = "amarula,vyasa-rk3288", "rockchip,rk3288";
 49
 50	chosen {
 51		stdout-path = &uart2;
 52	};
 53
 54	memory {
 55		reg = <0x0 0x0 0x0 0x80000000>;
 56		device_type = "memory";
 57	};
 58
 59	dc12_vbat: dc12-vbat {
 60		compatible = "regulator-fixed";
 61		regulator-name = "dc12_vbat";
 62		regulator-min-microvolt = <12000000>;
 63		regulator-max-microvolt = <12000000>;
 64		regulator-always-on;
 65		regulator-boot-on;
 66	};
 67
 68	vboot_3v3: vboot-3v3 {
 69		compatible = "regulator-fixed";
 70		regulator-name = "vboot_3v3";
 71		regulator-min-microvolt = <3300000>;
 72		regulator-max-microvolt = <3300000>;
 73		regulator-always-on;
 74		regulator-boot-on;
 75		vin-supply = <&dc12_vbat>;
 76	};
 77
 78	vcc_sys: vsys-regulator {
 79		compatible = "regulator-fixed";
 80		regulator-name = "vcc_sys";
 81		regulator-min-microvolt = <3700000>;
 82		regulator-max-microvolt = <3700000>;
 83		regulator-always-on;
 84		regulator-boot-on;
 85		vin-supply = <&dc12_vbat>;
 86	};
 87
 88	vboot_5v: vboot-5v {
 89		compatible = "regulator-fixed";
 90		regulator-name = "vboot_sv";
 91		regulator-min-microvolt = <5000000>;
 92		regulator-max-microvolt = <5000000>;
 93		regulator-always-on;
 94		regulator-boot-on;
 95		vin-supply = <&dc12_vbat>;
 96	};
 97
 98	v3g_3v3: v3g-3v3 {
 99		compatible = "regulator-fixed";
100		regulator-name = "v3g_3v3";
101		regulator-min-microvolt = <3300000>;
102		regulator-max-microvolt = <3300000>;
103		regulator-always-on;
104		regulator-boot-on;
105		vin-supply = <&dc12_vbat>;
106	};
107
108	vsus_5v: vsus-5v {
109		compatible = "regulator-fixed";
110		regulator-name = "vsus_5v";
111		regulator-min-microvolt = <5000000>;
112		regulator-max-microvolt = <5000000>;
113		regulator-always-on;
114		regulator-boot-on;
115		vin-supply = <&vcc_io>;
116	};
117
118	vusb1_5v: vusb1-5v {
119		compatible = "regulator-fixed";
120		regulator-name = "vusb1_5v";
121		enable-active-high;
122		gpio = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>; /* OTG_VBUS_DRV */
123		pinctrl-names = "default";
124		pinctrl-0 = <&otg_vbus_drv>;
125		regulator-min-microvolt = <5000000>;
126		regulator-max-microvolt = <5000000>;
127		regulator-always-on;
128		regulator-boot-on;
129		vin-supply = <&vsus_5v>;
130	};
131
132	vusb2_5v: vusb2-5v {
133		compatible = "regulator-fixed";
134		regulator-name = "vusb2_5v";
135		enable-active-high;
136		gpio = <&gpio8 RK_PB1 GPIO_ACTIVE_HIGH>; /* USB2_PWR_EN */
137		pinctrl-names = "default";
138		pinctrl-0 = <&usb2_pwr_en>;
139		regulator-min-microvolt = <5000000>;
140		regulator-max-microvolt = <5000000>;
141		regulator-always-on;
142		regulator-boot-on;
143		vin-supply = <&vsus_5v>;
144	};
145
146	ext_gmac: external-gmac-clock {
147		compatible = "fixed-clock";
148		#clock-cells = <0>;
149		clock-frequency = <125000000>;
150		clock-output-names = "ext_gmac";
151	};
152};
153
154&cpu0 {
155	cpu0-supply = <&vdd_cpu>;
156};
157
158&emmc {
159	bus-width = <8>;
160	cap-mmc-highspeed;
161	disable-wp;
162	non-removable;
163	pinctrl-names = "default";
164	pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
165	vmmc-supply = <&vcc_io>;
166	status = "okay";
167};
168
169&gmac {
170	assigned-clocks = <&cru SCLK_MAC>;
171	assigned-clock-parents = <&ext_gmac>;
172	clock_in_out = "input";
173	pinctrl-names = "default";
174	pinctrl-0 = <&rgmii_pins>, <&phy_rst>, <&phy_pmeb>, <&phy_int>;
175	phy-supply = <&vcc_lan>;
176	phy-mode = "rgmii";
177	snps,reset-active-low;
178	snps,reset-delays-us = <0 10000 1000000>;
179	snps,reset-gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_LOW>;
180	tx_delay = <0x30>;
181	rx_delay = <0x10>;
182	status = "okay";
183};
184
185&gpu {
186	mali-supply = <&vdd_gpu>;
187	status = "okay";
188};
189
190&hdmi {
191	ddc-i2c-bus = <&i2c2>;
192	status = "okay";
193};
194
195&i2c0 {
196	clock-frequency = <400000>;
197	status = "okay";
198
199	rk808: pmic@1b {
200		compatible = "rockchip,rk808";
201		reg = <0x1b>;
202		interrupt-parent = <&gpio0>;
203		interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>;
204		#clock-cells = <1>;
205		clock-output-names = "xin32k", "rk808-clkout2";
206		pinctrl-names = "default";
207		pinctrl-0 = <&pmic_int &global_pwroff>;
208		rockchip,system-power-controller;
209		wakeup-source;
210
211		vcc1-supply = <&vcc_sys>;
212		vcc2-supply = <&vcc_sys>;
213		vcc3-supply = <&vcc_sys>;
214		vcc4-supply = <&vcc_sys>;
215		vcc6-supply = <&vcc_sys>;
216		vcc7-supply = <&vcc_sys>;
217		vcc8-supply = <&vcc_io>;
218		vcc9-supply = <&vcc_sys>;
219		vcc10-supply = <&vcc_sys>;
220		vcc11-supply = <&vcc_sys>;
221		vcc12-supply = <&vcc_io>;
222
223		regulators {
224			vdd_cpu: DCDC_REG1 {
225				regulator-name = "vdd_arm";
226				regulator-min-microvolt = <750000>;
227				regulator-max-microvolt = <1350000>;
228				regulator-always-on;
229				regulator-boot-on;
230				regulator-state-mem {
231					regulator-off-in-suspend;
232				};
233			};
234
235			vdd_gpu: DCDC_REG2 {
236				regulator-name = "vdd_gpu";
237				regulator-min-microvolt = <850000>;
238				regulator-max-microvolt = <1250000>;
239				regulator-always-on;
240				regulator-boot-on;
241				regulator-state-mem {
242					regulator-on-in-suspend;
243					regulator-suspend-microvolt = <1000000>;
244				};
245			};
246
247			vcc_ddr: DCDC_REG3 {
248				regulator-name = "vcc_ddr";
249				regulator-always-on;
250				regulator-boot-on;
251				regulator-state-mem {
252					regulator-on-in-suspend;
253				};
254			};
255
256			vcc_io: DCDC_REG4 {
257				regulator-name = "vcc_io";
258				regulator-min-microvolt = <3300000>;
259				regulator-max-microvolt = <3300000>;
260				regulator-always-on;
261				regulator-boot-on;
262				regulator-state-mem {
263					regulator-on-in-suspend;
264					regulator-suspend-microvolt = <3300000>;
265				};
266			};
267
268			vcca_tp: LDO_REG1 {
269				regulator-name = "vcc_tp";
270				regulator-min-microvolt = <3300000>;
271				regulator-max-microvolt = <3300000>;
272				regulator-always-on;
273				regulator-boot-on;
274				regulator-state-mem {
275					regulator-on-in-suspend;
276					regulator-suspend-microvolt = <3300000>;
277				};
278			};
279
280			vcc_codec: LDO_REG2 {
281				regulator-name = "vcc_codec";
282				regulator-min-microvolt = <3300000>;
283				regulator-max-microvolt = <3300000>;
284				regulator-always-on;
285				regulator-boot-on;
286				regulator-state-mem {
287					regulator-off-in-suspend;
288				};
289			};
290
291			vdd_10: LDO_REG3 {
292				regulator-name = "vdd_10";
293				regulator-min-microvolt = <1000000>;
294				regulator-max-microvolt = <1000000>;
295				regulator-always-on;
296				regulator-boot-on;
297				regulator-state-mem {
298					regulator-on-in-suspend;
299					regulator-suspend-microvolt = <1000000>;
300				};
301			};
302
303			vcc_gps: LDO_REG4 {
304				regulator-name = "vcc_gps";
305				regulator-min-microvolt = <1800000>;
306				regulator-max-microvolt = <1800000>;
307				regulator-always-on;
308				regulator-boot-on;
309				regulator-state-mem {
310					regulator-on-in-suspend;
311					regulator-suspend-microvolt = <1800000>;
312				};
313			};
314
315			vccio_sd: LDO_REG5 {
316				regulator-name = "vccio_sd";
317				regulator-min-microvolt = <1800000>;
318				regulator-max-microvolt = <3300000>;
319				regulator-always-on;
320				regulator-boot-on;
321				regulator-state-mem {
322					regulator-on-in-suspend;
323					regulator-suspend-microvolt = <3300000>;
324				};
325			};
326
327			vcc10_lcd: LDO_REG6 {
328				regulator-name = "vcc10_lcd";
329				regulator-min-microvolt = <1000000>;
330				regulator-max-microvolt = <1000000>;
331				regulator-always-on;
332				regulator-boot-on;
333				regulator-state-mem {
334					regulator-on-in-suspend;
335					regulator-suspend-microvolt = <1800000>;
336				};
337			};
338
339			vcc_18: LDO_REG7 {
340				regulator-name = "vcc_18";
341				regulator-min-microvolt = <1800000>;
342				regulator-max-microvolt = <1800000>;
343				regulator-always-on;
344				regulator-boot-on;
345				regulator-state-mem {
346					regulator-on-in-suspend;
347					regulator-suspend-microvolt = <1800000>;
348				};
349			};
350
351			vcc18_lcd: LDO_REG8 {
352				regulator-name = "vcc18_lcd";
353				regulator-min-microvolt = <1800000>;
354				regulator-max-microvolt = <1800000>;
355				regulator-always-on;
356				regulator-boot-on;
357				regulator-state-mem {
358					regulator-on-in-suspend;
359					regulator-suspend-microvolt = <1800000>;
360				};
361			};
362
363			vcc_sd: SWITCH_REG1 {
364				regulator-name = "vcc_sd";
365				regulator-min-microvolt = <3300000>;
366				regulator-max-microvolt = <3300000>;
367				regulator-always-on;
368				regulator-boot-on;
369				regulator-state-mem {
370					regulator-on-in-suspend;
371				};
372			};
373
374			vcc_lan: SWITCH_REG2 {
375				regulator-name = "vcc_lan";
376				regulator-min-microvolt = <3300000>;
377				regulator-max-microvolt = <3300000>;
378				regulator-always-on;
379				regulator-boot-on;
380				regulator-state-mem {
381					regulator-on-in-suspend;
382				};
383			};
384		};
385	};
386};
387
388&i2c2 {
389	status = "okay";
390};
391
392&io_domains {
393	status = "okay";
394
395	audio-supply = <&vcc_18>;
396	bb-supply = <&vcc_io>;
397	dvp-supply = <&vcc_io>;
398	flash0-suuply = <&vcc_18>;
399	flash1-supply = <&vcc_lan>;
400	gpio30-supply = <&vcc_io>;
401	gpio1830 = <&vcc_io>;
402	lcdc-supply = <&vcc_io>;
403	sdcard-supply = <&vccio_sd>;
404	wifi-supply = <&vcc_18>;
405};
406
407&sdmmc {
408	bus-width = <4>;
409	cap-mmc-highspeed;
410	cap-sd-highspeed;
411	card-detect-delay = <200>;
412	disable-wp;
413	pinctrl-names = "default";
414	pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>;
415	vmmc-supply = <&vcc_sd>;
416	vqmmc-supply = <&vccio_sd>;
417	status = "okay";
418};
419
420&tsadc {
421	rockchip,hw-tshut-mode = <1>; /* tshut mode 0:CRU 1:GPIO */
422	rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */
423	status = "okay";
424};
425
426&uart2 {
427	status = "okay";
428};
429
430&usbphy {
431	status = "okay";
432};
433
434&usb_host0_ehci {
435	status = "okay";
436};
437
438&usb_host1 {
439	pinctrl-names = "default";
440	pinctrl-0 = <&phy_pwr_en>;
441	status = "okay";
442};
443
444&usb_otg {
445	status = "okay";
446};
447
448&vopb {
449	status = "okay";
450};
451
452&vopb_mmu {
453	status = "okay";
454};
455
456&vopl {
457	status = "okay";
458};
459
460&vopl_mmu {
461	status = "okay";
462};
463
464&wdt {
465	status = "okay";
466};
467
468&pinctrl {
469	pcfg_output_high: pcfg-output-high {
470		output-high;
471	};
472
473	gmac {
474		phy_int: phy-int {
475			rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>;
476		};
477
478		phy_pmeb: phy-pmeb {
479			rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
480		};
481
482		phy_rst: phy-rst {
483			rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_output_high>;
484		};
485	};
486
487	pmic {
488		pmic_int: pmic-int {
489			rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
490		};
491	};
492
493	usb_host {
494		phy_pwr_en: phy-pwr-en {
495			rockchip,pins = <RK_GPIO2 RK_PB1 RK_FUNC_GPIO &pcfg_output_high>;
496		};
497
498		usb2_pwr_en: usb2-pwr-en {
499			rockchip,pins = <8 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
500		};
501	};
502
503	usb_otg {
504		otg_vbus_drv: otg-vbus-drv {
505			rockchip,pins = <RK_GPIO0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
506
507		};
508	};
509};
v5.4
  1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2/*
  3 * Copyright (C) 2017 Jagan Teki <jagan@amarulasolutions.com>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  4 */
  5
  6/dts-v1/;
  7#include "rk3288.dtsi"
  8
  9/ {
 10	model = "Amarula Vyasa-RK3288";
 11	compatible = "amarula,vyasa-rk3288", "rockchip,rk3288";
 12
 13	chosen {
 14		stdout-path = &uart2;
 15	};
 16
 17	memory {
 18		reg = <0x0 0x0 0x0 0x80000000>;
 19		device_type = "memory";
 20	};
 21
 22	dc12_vbat: dc12-vbat {
 23		compatible = "regulator-fixed";
 24		regulator-name = "dc12_vbat";
 25		regulator-min-microvolt = <12000000>;
 26		regulator-max-microvolt = <12000000>;
 27		regulator-always-on;
 28		regulator-boot-on;
 29	};
 30
 31	vboot_3v3: vboot-3v3 {
 32		compatible = "regulator-fixed";
 33		regulator-name = "vboot_3v3";
 34		regulator-min-microvolt = <3300000>;
 35		regulator-max-microvolt = <3300000>;
 36		regulator-always-on;
 37		regulator-boot-on;
 38		vin-supply = <&dc12_vbat>;
 39	};
 40
 41	vcc_sys: vsys-regulator {
 42		compatible = "regulator-fixed";
 43		regulator-name = "vcc_sys";
 44		regulator-min-microvolt = <3700000>;
 45		regulator-max-microvolt = <3700000>;
 46		regulator-always-on;
 47		regulator-boot-on;
 48		vin-supply = <&dc12_vbat>;
 49	};
 50
 51	vboot_5v: vboot-5v {
 52		compatible = "regulator-fixed";
 53		regulator-name = "vboot_sv";
 54		regulator-min-microvolt = <5000000>;
 55		regulator-max-microvolt = <5000000>;
 56		regulator-always-on;
 57		regulator-boot-on;
 58		vin-supply = <&dc12_vbat>;
 59	};
 60
 61	v3g_3v3: v3g-3v3 {
 62		compatible = "regulator-fixed";
 63		regulator-name = "v3g_3v3";
 64		regulator-min-microvolt = <3300000>;
 65		regulator-max-microvolt = <3300000>;
 66		regulator-always-on;
 67		regulator-boot-on;
 68		vin-supply = <&dc12_vbat>;
 69	};
 70
 71	vsus_5v: vsus-5v {
 72		compatible = "regulator-fixed";
 73		regulator-name = "vsus_5v";
 74		regulator-min-microvolt = <5000000>;
 75		regulator-max-microvolt = <5000000>;
 76		regulator-always-on;
 77		regulator-boot-on;
 78		vin-supply = <&vcc_io>;
 79	};
 80
 81	vusb1_5v: vusb1-5v {
 82		compatible = "regulator-fixed";
 83		regulator-name = "vusb1_5v";
 84		enable-active-high;
 85		gpio = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>; /* OTG_VBUS_DRV */
 86		pinctrl-names = "default";
 87		pinctrl-0 = <&otg_vbus_drv>;
 88		regulator-min-microvolt = <5000000>;
 89		regulator-max-microvolt = <5000000>;
 90		regulator-always-on;
 91		regulator-boot-on;
 92		vin-supply = <&vsus_5v>;
 93	};
 94
 95	vusb2_5v: vusb2-5v {
 96		compatible = "regulator-fixed";
 97		regulator-name = "vusb2_5v";
 98		enable-active-high;
 99		gpio = <&gpio8 RK_PB1 GPIO_ACTIVE_HIGH>; /* USB2_PWR_EN */
100		pinctrl-names = "default";
101		pinctrl-0 = <&usb2_pwr_en>;
102		regulator-min-microvolt = <5000000>;
103		regulator-max-microvolt = <5000000>;
104		regulator-always-on;
105		regulator-boot-on;
106		vin-supply = <&vsus_5v>;
107	};
108
109	ext_gmac: external-gmac-clock {
110		compatible = "fixed-clock";
111		#clock-cells = <0>;
112		clock-frequency = <125000000>;
113		clock-output-names = "ext_gmac";
114	};
115};
116
117&cpu0 {
118	cpu0-supply = <&vdd_cpu>;
119};
120
121&emmc {
122	bus-width = <8>;
123	cap-mmc-highspeed;
 
124	non-removable;
125	pinctrl-names = "default";
126	pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
127	vmmc-supply = <&vcc_io>;
128	status = "okay";
129};
130
131&gmac {
132	assigned-clocks = <&cru SCLK_MAC>;
133	assigned-clock-parents = <&ext_gmac>;
134	clock_in_out = "input";
135	pinctrl-names = "default";
136	pinctrl-0 = <&rgmii_pins>, <&phy_rst>, <&phy_pmeb>, <&phy_int>;
137	phy-supply = <&vcc_lan>;
138	phy-mode = "rgmii";
139	snps,reset-active-low;
140	snps,reset-delays-us = <0 10000 1000000>;
141	snps,reset-gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_LOW>;
142	tx_delay = <0x30>;
143	rx_delay = <0x10>;
144	status = "okay";
145};
146
147&gpu {
148	mali-supply = <&vdd_gpu>;
149	status = "okay";
150};
151
152&hdmi {
153	ddc-i2c-bus = <&i2c2>;
154	status = "okay";
155};
156
157&i2c0 {
158	clock-frequency = <400000>;
159	status = "okay";
160
161	rk808: pmic@1b {
162		compatible = "rockchip,rk808";
163		reg = <0x1b>;
164		interrupt-parent = <&gpio0>;
165		interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>;
166		#clock-cells = <1>;
167		clock-output-names = "xin32k", "rk808-clkout2";
168		pinctrl-names = "default";
169		pinctrl-0 = <&pmic_int &global_pwroff>;
170		rockchip,system-power-controller;
171		wakeup-source;
172
173		vcc1-supply = <&vcc_sys>;
174		vcc2-supply = <&vcc_sys>;
175		vcc3-supply = <&vcc_sys>;
176		vcc4-supply = <&vcc_sys>;
177		vcc6-supply = <&vcc_sys>;
178		vcc7-supply = <&vcc_sys>;
179		vcc8-supply = <&vcc_io>;
180		vcc9-supply = <&vcc_sys>;
181		vcc10-supply = <&vcc_sys>;
182		vcc11-supply = <&vcc_sys>;
183		vcc12-supply = <&vcc_io>;
184
185		regulators {
186			vdd_cpu: DCDC_REG1 {
187				regulator-name = "vdd_arm";
188				regulator-min-microvolt = <750000>;
189				regulator-max-microvolt = <1350000>;
190				regulator-always-on;
191				regulator-boot-on;
192				regulator-state-mem {
193					regulator-off-in-suspend;
194				};
195			};
196
197			vdd_gpu: DCDC_REG2 {
198				regulator-name = "vdd_gpu";
199				regulator-min-microvolt = <850000>;
200				regulator-max-microvolt = <1250000>;
201				regulator-always-on;
202				regulator-boot-on;
203				regulator-state-mem {
204					regulator-on-in-suspend;
205					regulator-suspend-microvolt = <1000000>;
206				};
207			};
208
209			vcc_ddr: DCDC_REG3 {
210				regulator-name = "vcc_ddr";
211				regulator-always-on;
212				regulator-boot-on;
213				regulator-state-mem {
214					regulator-on-in-suspend;
215				};
216			};
217
218			vcc_io: DCDC_REG4 {
219				regulator-name = "vcc_io";
220				regulator-min-microvolt = <3300000>;
221				regulator-max-microvolt = <3300000>;
222				regulator-always-on;
223				regulator-boot-on;
224				regulator-state-mem {
225					regulator-on-in-suspend;
226					regulator-suspend-microvolt = <3300000>;
227				};
228			};
229
230			vcca_tp: LDO_REG1 {
231				regulator-name = "vcc_tp";
232				regulator-min-microvolt = <3300000>;
233				regulator-max-microvolt = <3300000>;
234				regulator-always-on;
235				regulator-boot-on;
236				regulator-state-mem {
237					regulator-on-in-suspend;
238					regulator-suspend-microvolt = <3300000>;
239				};
240			};
241
242			vcc_codec: LDO_REG2 {
243				regulator-name = "vcc_codec";
244				regulator-min-microvolt = <3300000>;
245				regulator-max-microvolt = <3300000>;
246				regulator-always-on;
247				regulator-boot-on;
248				regulator-state-mem {
249					regulator-off-in-suspend;
250				};
251			};
252
253			vdd_10: LDO_REG3 {
254				regulator-name = "vdd_10";
255				regulator-min-microvolt = <1000000>;
256				regulator-max-microvolt = <1000000>;
257				regulator-always-on;
258				regulator-boot-on;
259				regulator-state-mem {
260					regulator-on-in-suspend;
261					regulator-suspend-microvolt = <1000000>;
262				};
263			};
264
265			vcc_gps: LDO_REG4 {
266				regulator-name = "vcc_gps";
267				regulator-min-microvolt = <1800000>;
268				regulator-max-microvolt = <1800000>;
269				regulator-always-on;
270				regulator-boot-on;
271				regulator-state-mem {
272					regulator-on-in-suspend;
273					regulator-suspend-microvolt = <1800000>;
274				};
275			};
276
277			vccio_sd: LDO_REG5 {
278				regulator-name = "vccio_sd";
279				regulator-min-microvolt = <1800000>;
280				regulator-max-microvolt = <3300000>;
281				regulator-always-on;
282				regulator-boot-on;
283				regulator-state-mem {
284					regulator-on-in-suspend;
285					regulator-suspend-microvolt = <3300000>;
286				};
287			};
288
289			vcc10_lcd: LDO_REG6 {
290				regulator-name = "vcc10_lcd";
291				regulator-min-microvolt = <1000000>;
292				regulator-max-microvolt = <1000000>;
293				regulator-always-on;
294				regulator-boot-on;
295				regulator-state-mem {
296					regulator-on-in-suspend;
297					regulator-suspend-microvolt = <1800000>;
298				};
299			};
300
301			vcc_18: LDO_REG7 {
302				regulator-name = "vcc_18";
303				regulator-min-microvolt = <1800000>;
304				regulator-max-microvolt = <1800000>;
305				regulator-always-on;
306				regulator-boot-on;
307				regulator-state-mem {
308					regulator-on-in-suspend;
309					regulator-suspend-microvolt = <1800000>;
310				};
311			};
312
313			vcc18_lcd: LDO_REG8 {
314				regulator-name = "vcc18_lcd";
315				regulator-min-microvolt = <1800000>;
316				regulator-max-microvolt = <1800000>;
317				regulator-always-on;
318				regulator-boot-on;
319				regulator-state-mem {
320					regulator-on-in-suspend;
321					regulator-suspend-microvolt = <1800000>;
322				};
323			};
324
325			vcc_sd: SWITCH_REG1 {
326				regulator-name = "vcc_sd";
327				regulator-min-microvolt = <3300000>;
328				regulator-max-microvolt = <3300000>;
329				regulator-always-on;
330				regulator-boot-on;
331				regulator-state-mem {
332					regulator-on-in-suspend;
333				};
334			};
335
336			vcc_lan: SWITCH_REG2 {
337				regulator-name = "vcc_lan";
338				regulator-min-microvolt = <3300000>;
339				regulator-max-microvolt = <3300000>;
340				regulator-always-on;
341				regulator-boot-on;
342				regulator-state-mem {
343					regulator-on-in-suspend;
344				};
345			};
346		};
347	};
348};
349
350&i2c2 {
351	status = "okay";
352};
353
354&io_domains {
355	status = "okay";
356
357	audio-supply = <&vcc_18>;
358	bb-supply = <&vcc_io>;
359	dvp-supply = <&vcc_io>;
360	flash0-suuply = <&vcc_18>;
361	flash1-supply = <&vcc_lan>;
362	gpio30-supply = <&vcc_io>;
363	gpio1830 = <&vcc_io>;
364	lcdc-supply = <&vcc_io>;
365	sdcard-supply = <&vccio_sd>;
366	wifi-supply = <&vcc_18>;
367};
368
369&sdmmc {
370	bus-width = <4>;
371	cap-mmc-highspeed;
372	cap-sd-highspeed;
373	card-detect-delay = <200>;
374	disable-wp;
375	pinctrl-names = "default";
376	pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>;
377	vmmc-supply = <&vcc_sd>;
378	vqmmc-supply = <&vccio_sd>;
379	status = "okay";
380};
381
382&tsadc {
383	rockchip,hw-tshut-mode = <1>; /* tshut mode 0:CRU 1:GPIO */
384	rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */
385	status = "okay";
386};
387
388&uart2 {
389	status = "okay";
390};
391
392&usbphy {
393	status = "okay";
394};
395
396&usb_host0_ehci {
397	status = "okay";
398};
399
400&usb_host1 {
401	pinctrl-names = "default";
402	pinctrl-0 = <&phy_pwr_en>;
403	status = "okay";
404};
405
406&usb_otg {
407	status = "okay";
408};
409
410&vopb {
411	status = "okay";
412};
413
414&vopb_mmu {
415	status = "okay";
416};
417
418&vopl {
419	status = "okay";
420};
421
422&vopl_mmu {
423	status = "okay";
424};
425
426&wdt {
427	status = "okay";
428};
429
430&pinctrl {
431	pcfg_output_high: pcfg-output-high {
432		output-high;
433	};
434
435	gmac {
436		phy_int: phy-int {
437			rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>;
438		};
439
440		phy_pmeb: phy-pmeb {
441			rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
442		};
443
444		phy_rst: phy-rst {
445			rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_output_high>;
446		};
447	};
448
449	pmic {
450		pmic_int: pmic-int {
451			rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
452		};
453	};
454
455	usb_host {
456		phy_pwr_en: phy-pwr-en {
457			rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_output_high>;
458		};
459
460		usb2_pwr_en: usb2-pwr-en {
461			rockchip,pins = <8 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
462		};
463	};
464
465	usb_otg {
466		otg_vbus_drv: otg-vbus-drv {
467			rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
468
469		};
470	};
471};