Linux Audio

Check our new training course

Loading...
v5.4
  1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2/*
  3 * Copyright (c) 2014, 2015 FUKAUMI Naoki <naobsd@gmail.com>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  4 */
  5
  6/dts-v1/;
  7#include <dt-bindings/input/input.h>
  8#include "rk3066a.dtsi"
  9
 10/ {
 11	model = "Rayeager PX2";
 12	compatible = "chipspark,rayeager-px2", "rockchip,rk3066a";
 13
 14	memory@60000000 {
 15		device_type = "memory";
 16		reg = <0x60000000 0x40000000>;
 17	};
 18
 19	ir: ir-receiver {
 20		compatible = "gpio-ir-receiver";
 21		gpios = <&gpio6 RK_PA1 GPIO_ACTIVE_LOW>;
 22		pinctrl-names = "default";
 23		pinctrl-0 = <&ir_int>;
 24	};
 25
 26	keys: gpio-keys {
 27		compatible = "gpio-keys";
 
 
 28
 29		power {
 30			wakeup-source;
 31			gpios = <&gpio6 RK_PA2 GPIO_ACTIVE_LOW>;
 32			label = "GPIO Power";
 33			linux,code = <KEY_POWER>;
 34			pinctrl-names = "default";
 35			pinctrl-0 = <&pwr_key>;
 36		};
 37	};
 38
 39	vdd_log: vdd-log {
 40		compatible = "pwm-regulator";
 41		pwms = <&pwm3 0 1000>;
 42		regulator-name = "vdd_log";
 43		regulator-min-microvolt = <1200000>;
 44		regulator-max-microvolt = <1200000>;
 45		regulator-always-on;
 46		voltage-table = <1000000 100>,
 47				<1200000 42>;
 48		status = "okay";
 49	};
 50
 51	vsys: vsys-regulator {
 52		compatible = "regulator-fixed";
 53		regulator-name = "vsys";
 54		regulator-min-microvolt = <5000000>;
 55		regulator-max-microvolt = <5000000>;
 56		regulator-always-on;
 57		regulator-boot-on;
 58	};
 59
 60	/* input for 5V_STDBY is VSYS or DC5V, selectable by jumper J4 */
 61	vcc_stdby: 5v-stdby-regulator {
 62		compatible = "regulator-fixed";
 63		regulator-name = "5v_stdby";
 64		regulator-min-microvolt = <5000000>;
 65		regulator-max-microvolt = <5000000>;
 66		regulator-always-on;
 67		regulator-boot-on;
 68	};
 69
 70	vcc_emmc: emmc-regulator {
 71		compatible = "regulator-fixed";
 72		regulator-name = "emmc_vccq";
 73		regulator-min-microvolt = <3000000>;
 74		regulator-max-microvolt = <3000000>;
 75		vin-supply = <&vsys>;
 76	};
 77
 78	vcc_sata: sata-regulator {
 79		compatible = "regulator-fixed";
 80		enable-active-high;
 81		gpio = <&gpio4 RK_PC6 GPIO_ACTIVE_HIGH>;
 82		pinctrl-names = "default";
 83		pinctrl-0 = <&sata_pwr>;
 84		regulator-name = "usb_5v";
 85		regulator-min-microvolt = <5000000>;
 86		regulator-max-microvolt = <5000000>;
 87		regulator-always-on;
 88		vin-supply = <&vcc_stdby>;
 89	};
 90
 91	vcc_sd: sdmmc-regulator {
 92		compatible = "regulator-fixed";
 93		gpio = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>;
 94		pinctrl-names = "default";
 95		pinctrl-0 = <&sdmmc_pwr>;
 96		regulator-name = "vcc_sd";
 97		regulator-min-microvolt = <3300000>;
 98		regulator-max-microvolt = <3300000>;
 99		startup-delay-us = <100000>;
100		vin-supply = <&vcc_io>;
101	};
102
103	vcc_host: usb-host-regulator {
104		compatible = "regulator-fixed";
105		enable-active-high;
106		gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
107		pinctrl-names = "default";
108		pinctrl-0 = <&host_drv>;
109		regulator-name = "host-pwr";
110		regulator-min-microvolt = <5000000>;
111		regulator-max-microvolt = <5000000>;
112		regulator-always-on;
113		vin-supply = <&vcc_stdby>;
114	};
115
116	vcc_otg: usb-otg-regulator {
117		compatible = "regulator-fixed";
118		enable-active-high;
119		gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
120		pinctrl-names = "default";
121		pinctrl-0 = <&otg_drv>;
122		regulator-name = "vcc_otg";
123		regulator-min-microvolt = <5000000>;
124		regulator-max-microvolt = <5000000>;
125		regulator-always-on;
126		vin-supply = <&vcc_stdby>;
127	};
128};
129
130&cpu0 {
131	cpu0-supply = <&vdd_arm>;
132};
133
134&emac {
135	pinctrl-names = "default";
136	pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&rmii_rst>;
137	phy = <&phy0>;
138	phy-supply = <&vcc_rmii>;
139	status = "okay";
140
141	phy0: ethernet-phy@0 {
142		reg = <0>;
143		reset-gpios = <&gpio1 RK_PD6 GPIO_ACTIVE_LOW>;
144	};
145};
146
147&emmc {
 
148	bus-width = <8>;
149	cap-mmc-highspeed;
 
150	non-removable;
 
151	pinctrl-names = "default";
152	pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_rst>;
153	vmmc-supply = <&vcc_emmc>;
154	vqmmc-supply = <&vcc_emmc>;
155	status = "okay";
156};
157
158&i2c0 {
159	clock-frequency = <400000>;
160	status = "okay";
161
162	ak8963: ak8963@d {
163		compatible = "asahi-kasei,ak8975";
164		reg = <0x0d>;
165		interrupt-parent = <&gpio4>;
166		interrupts = <RK_PC1 IRQ_TYPE_EDGE_RISING>;
167		pinctrl-names = "default";
168		pinctrl-0 = <&comp_int>;
169	};
170
171	mma8452: mma8452@1d {
172		compatible = "fsl,mma8452";
173		reg = <0x1d>;
174		interrupt-parent = <&gpio4>;
175		interrupts = <RK_PC0 IRQ_TYPE_EDGE_RISING>;
176		pinctrl-names = "default";
177		pinctrl-0 = <&gsensor_int>;
178	};
179};
180
181&i2c1 {
182	clock-frequency = <400000>;
183	status = "okay";
184
185	tps: tps@2d {
186		reg = <0x2d>;
187		interrupt-parent = <&gpio6>;
188		interrupts = <RK_PA4 IRQ_TYPE_EDGE_RISING>;
189		pinctrl-names = "default";
190		pinctrl-0 = <&pmic_int>, <&pwr_hold>;
191
192		vcc1-supply = <&vsys>;
193		vcc2-supply = <&vsys>;
194		vcc3-supply = <&vsys>;
195		vcc4-supply = <&vsys>;
196		vcc5-supply = <&vcc_io>;
197		vcc6-supply = <&vcc_io>;
198		vcc7-supply = <&vsys>;
199		vccio-supply = <&vsys>;
200
201		regulators {
202			vcc_rtc: regulator@0 {
203				regulator-name = "vcc_rtc";
204				regulator-always-on;
205			};
206
207			vcc_io: regulator@1 {
208				regulator-name = "vcc_io";
209				regulator-min-microvolt = <3300000>;
210				regulator-max-microvolt = <3300000>;
211				regulator-always-on;
212			};
213
214			vdd_arm: regulator@2 {
215				regulator-name = "vdd_arm";
216				regulator-min-microvolt = <600000>;
217				regulator-max-microvolt = <1500000>;
218				regulator-always-on;
219				regulator-boot-on;
220			};
221
222			vcc_ddr: regulator@3 {
223				regulator-name = "vcc_ddr";
224				regulator-min-microvolt = <600000>;
225				regulator-max-microvolt = <1500000>;
226				regulator-always-on;
227				regulator-boot-on;
228			};
229
230			vcc18: regulator@5 {
231				regulator-name = "vcc18";
232				regulator-min-microvolt = <1800000>;
233				regulator-max-microvolt = <1800000>;
234				regulator-always-on;
235			};
236
237			vdd_11: regulator@6 {
238				regulator-name = "vdd_11";
239				regulator-min-microvolt = <1100000>;
240				regulator-max-microvolt = <1100000>;
241				regulator-always-on;
242			};
243
244			vcc_25: regulator@7 {
245				regulator-name = "vcc_25";
246				regulator-min-microvolt = <2500000>;
247				regulator-max-microvolt = <2500000>;
248				regulator-always-on;
249			};
250
251			vccio_wl: regulator@8 {
252				regulator-name = "vccio_wl";
253				regulator-min-microvolt = <1800000>;
254				regulator-max-microvolt = <1800000>;
255			};
256
257			vcc25_hdmi: regulator@9 {
258				regulator-name = "vcc25_hdmi";
259				regulator-min-microvolt = <2500000>;
260				regulator-max-microvolt = <2500000>;
261			};
262
263			vcca_33: regulator@10 {
264				regulator-name = "vcca_33";
265				regulator-min-microvolt = <3300000>;
266				regulator-max-microvolt = <3300000>;
267			};
268
269			vcc_rmii: regulator@11 {
270				regulator-name = "vcc_rmii";
271				regulator-min-microvolt = <3300000>;
272				regulator-max-microvolt = <3300000>;
273			};
274
275			vcc28_cif: regulator@12 {
276				regulator-name = "vcc28_cif";
277				regulator-min-microvolt = <2800000>;
278				regulator-max-microvolt = <2800000>;
279			};
280		};
281	};
282};
283
284#include "tps65910.dtsi"
285
286&i2c2 {
287	status = "okay";
288};
289
290&i2c3 {
291	status = "okay";
292};
293
294&i2c4 {
295	status = "okay";
296};
297
298&mmc0 {
299	bus-width = <4>;
300	disable-wp;
 
301	pinctrl-names = "default";
302	pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
303	vmmc-supply = <&vcc_sd>;
304	cap-mmc-highspeed;
305	cap-sd-highspeed;
306	status = "okay";
307};
308
309&mmc1 {
 
310	bus-width = <4>;
 
311	non-removable;
 
312	pinctrl-names = "default";
313	pinctrl-0 = <&sd1_clk>, <&sd1_cmd>, <&sd1_bus4>;
314	vmmc-supply = <&vccio_wl>;
315	status = "okay";
316};
317
318&pinctrl {
319	pcfg_output_high: pcfg-output-high {
320		output-high;
321	};
322
323	ak8963 {
324		comp_int: comp-int {
325			rockchip,pins = <4 RK_PC1 RK_FUNC_GPIO &pcfg_pull_default>;
326		};
327	};
328
329	emac {
330		rmii_rst: rmii-rst {
331			rockchip,pins = <1 RK_PD6 RK_FUNC_GPIO &pcfg_output_high>;
332		};
333	};
334
335	ir {
336		ir_int: ir-int {
337			rockchip,pins = <6 RK_PA1 RK_FUNC_GPIO &pcfg_pull_default>;
338		};
339	};
340
341	keys {
342		pwr_key: pwr-key {
343			rockchip,pins = <6 RK_PA2 RK_FUNC_GPIO &pcfg_pull_default>;
344		};
345	};
346
347	mma8452 {
348		gsensor_int: gsensor-int {
349			rockchip,pins = <4 RK_PC0 RK_FUNC_GPIO &pcfg_pull_default>;
350		};
351	};
352
353	mmc {
354		sdmmc_pwr: sdmmc-pwr {
355			rockchip,pins = <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_default>;
356		};
357	};
358
359	usb_host {
360		host_drv: host-drv {
361			rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_default>;
362		};
363
364		hub_rst: hub-rst {
365			rockchip,pins = <1 RK_PD7 RK_FUNC_GPIO &pcfg_output_high>;
366		};
367
368		sata_pwr: sata-pwr {
369			rockchip,pins = <4 RK_PC6 RK_FUNC_GPIO &pcfg_pull_default>;
370		};
371
372		sata_reset: sata-reset {
373			rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_output_high>;
374		};
375	};
376
377	usb_otg {
378		otg_drv: otg-drv {
379			rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_default>;
380		};
381	};
382
383	tps {
384		pmic_int: pmic-int {
385			rockchip,pins = <6 RK_PA4 RK_FUNC_GPIO &pcfg_pull_default>;
386		};
387
388		pwr_hold: pwr-hold {
389			rockchip,pins = <6 RK_PB0 RK_FUNC_GPIO &pcfg_output_high>;
390		};
391	};
392};
393
394&pwm1 {
395	status = "okay";
396};
397
398&pwm2 {
399	status = "okay";
400};
401
402&pwm3 {
403	status = "okay";
404};
405
406&saradc {
407	vref-supply = <&vcc_25>;
408	status = "okay";
409};
410
411&spi0 {
412	status = "okay";
413};
414
415&uart0 {
416	pinctrl-names = "default";
417	pinctrl-0 = <&uart0_xfer>, <&uart0_cts>, <&uart0_rts>;
418	status = "okay";
419};
420
421&uart2 {
422	status = "okay";
423};
424
425&uart3 {
426	pinctrl-names = "default";
427	pinctrl-0 = <&uart3_xfer>, <&uart3_cts>, <&uart3_rts>;
428	status = "okay";
429};
430
431&usb_host {
432	pinctrl-names = "default";
433	pinctrl-0 = <&hub_rst>, <&sata_reset>;
434	status = "okay";
435};
436
437&usbphy {
438	status = "okay";
439};
440
441&usb_otg {
442	status = "okay";
443};
444
445&wdt {
446	status = "okay";
447};
v4.6
 
  1/*
  2 * Copyright (c) 2014, 2015 FUKAUMI Naoki <naobsd@gmail.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 "rk3066a.dtsi"
 45
 46/ {
 47	model = "Rayeager PX2";
 48	compatible = "chipspark,rayeager-px2", "rockchip,rk3066a";
 49
 50	memory {
 51		device_type = "memory";
 52		reg = <0x60000000 0x40000000>;
 53	};
 54
 55	ir: ir-receiver {
 56		compatible = "gpio-ir-receiver";
 57		gpios = <&gpio6 1 GPIO_ACTIVE_LOW>;
 58		pinctrl-names = "default";
 59		pinctrl-0 = <&ir_int>;
 60	};
 61
 62	keys: gpio-keys {
 63		compatible = "gpio-keys";
 64		#address-cells = <1>;
 65		#size-cells = <0>;
 66
 67		button@0 {
 68			wakeup-source;
 69			gpios = <&gpio6 2 GPIO_ACTIVE_LOW>;
 70			label = "GPIO Power";
 71			linux,code = <116>;
 72			pinctrl-names = "default";
 73			pinctrl-0 = <&pwr_key>;
 74		};
 75	};
 76
 77	vdd_log: vdd-log {
 78		compatible = "pwm-regulator";
 79		pwms = <&pwm3 0 1000>;
 80		regulator-name = "vdd_log";
 81		regulator-min-microvolt = <1200000>;
 82		regulator-max-microvolt = <1200000>;
 83		regulator-always-on;
 84		voltage-table = <1000000 100>,
 85				<1200000 42>;
 86		status = "okay";
 87	};
 88
 89	vsys: vsys-regulator {
 90		compatible = "regulator-fixed";
 91		regulator-name = "vsys";
 92		regulator-min-microvolt = <5000000>;
 93		regulator-max-microvolt = <5000000>;
 94		regulator-always-on;
 95		regulator-boot-on;
 96	};
 97
 98	/* input for 5V_STDBY is VSYS or DC5V, selectable by jumper J4 */
 99	vcc_stdby: 5v-stdby-regulator {
100		compatible = "regulator-fixed";
101		regulator-name = "5v_stdby";
102		regulator-min-microvolt = <5000000>;
103		regulator-max-microvolt = <5000000>;
104		regulator-always-on;
105		regulator-boot-on;
106	};
107
108	vcc_emmc: emmc-regulator {
109		compatible = "regulator-fixed";
110		regulator-name = "emmc_vccq";
111		regulator-min-microvolt = <3000000>;
112		regulator-max-microvolt = <3000000>;
113		vin-supply = <&vsys>;
114	};
115
116	vcc_sata: sata-regulator {
117		compatible = "regulator-fixed";
118		enable-active-high;
119		gpio = <&gpio4 22 GPIO_ACTIVE_HIGH>;
120		pinctrl-names = "default";
121		pinctrl-0 = <&sata_pwr>;
122		regulator-name = "usb_5v";
123		regulator-min-microvolt = <5000000>;
124		regulator-max-microvolt = <5000000>;
125		regulator-always-on;
126		vin-supply = <&vcc_stdby>;
127	};
128
129	vcc_sd: sdmmc-regulator {
130		compatible = "regulator-fixed";
131		gpio = <&gpio3 7 GPIO_ACTIVE_LOW>;
132		pinctrl-names = "default";
133		pinctrl-0 = <&sdmmc_pwr>;
134		regulator-name = "vcc_sd";
135		regulator-min-microvolt = <3300000>;
136		regulator-max-microvolt = <3300000>;
137		startup-delay-us = <100000>;
138		vin-supply = <&vcc_io>;
139	};
140
141	vcc_host: usb-host-regulator {
142		compatible = "regulator-fixed";
143		enable-active-high;
144		gpio = <&gpio0 6 GPIO_ACTIVE_HIGH>;
145		pinctrl-names = "default";
146		pinctrl-0 = <&host_drv>;
147		regulator-name = "host-pwr";
148		regulator-min-microvolt = <5000000>;
149		regulator-max-microvolt = <5000000>;
150		regulator-always-on;
151		vin-supply = <&vcc_stdby>;
152	};
153
154	vcc_otg: usb-otg-regulator {
155		compatible = "regulator-fixed";
156		enable-active-high;
157		gpio = <&gpio0 5 GPIO_ACTIVE_HIGH>;
158		pinctrl-names = "default";
159		pinctrl-0 = <&otg_drv>;
160		regulator-name = "vcc_otg";
161		regulator-min-microvolt = <5000000>;
162		regulator-max-microvolt = <5000000>;
163		regulator-always-on;
164		vin-supply = <&vcc_stdby>;
165	};
166};
167
168&cpu0 {
169	cpu0-supply = <&vdd_arm>;
170};
171
172&emac {
173	pinctrl-names = "default";
174	pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&rmii_rst>;
175	phy = <&phy0>;
176	phy-supply = <&vcc_rmii>;
177	status = "okay";
178
179	phy0: ethernet-phy@0 {
180		reg = <0>;
 
181	};
182};
183
184&emmc {
185	broken-cd;
186	bus-width = <8>;
187	cap-mmc-highspeed;
188	disable-wp;
189	non-removable;
190	num-slots = <1>;
191	pinctrl-names = "default";
192	pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_rst>;
193	vmmc-supply = <&vcc_emmc>;
194	vqmmc-supply = <&vcc_emmc>;
195	status = "okay";
196};
197
198&i2c0 {
199	clock-frequency = <400000>;
200	status = "okay";
201
202	ak8963: ak8963@0d {
203		compatible = "asahi-kasei,ak8975";
204		reg = <0x0d>;
205		interrupt-parent = <&gpio4>;
206		interrupts = <17 IRQ_TYPE_EDGE_RISING>;
207		pinctrl-names = "default";
208		pinctrl-0 = <&comp_int>;
209	};
210
211	mma8452: mma8452@1d {
212		compatible = "fsl,mma8452";
213		reg = <0x1d>;
214		interrupt-parent = <&gpio4>;
215		interrupts = <16 IRQ_TYPE_EDGE_RISING>;
216		pinctrl-names = "default";
217		pinctrl-0 = <&gsensor_int>;
218	};
219};
220
221&i2c1 {
222	clock-frequency = <400000>;
223	status = "okay";
224
225	tps: tps@2d {
226		reg = <0x2d>;
227		interrupt-parent = <&gpio6>;
228		interrupts = <4 IRQ_TYPE_EDGE_RISING>;
229		pinctrl-names = "default";
230		pinctrl-0 = <&pmic_int>, <&pwr_hold>;
231
232		vcc1-supply = <&vsys>;
233		vcc2-supply = <&vsys>;
234		vcc3-supply = <&vsys>;
235		vcc4-supply = <&vsys>;
236		vcc5-supply = <&vcc_io>;
237		vcc6-supply = <&vcc_io>;
238		vcc7-supply = <&vsys>;
239		vccio-supply = <&vsys>;
240
241		regulators {
242			vcc_rtc: regulator@0 {
243				regulator-name = "vcc_rtc";
244				regulator-always-on;
245			};
246
247			vcc_io: regulator@1 {
248				regulator-name = "vcc_io";
249				regulator-min-microvolt = <3300000>;
250				regulator-max-microvolt = <3300000>;
251				regulator-always-on;
252			};
253
254			vdd_arm: regulator@2 {
255				regulator-name = "vdd_arm";
256				regulator-min-microvolt = <600000>;
257				regulator-max-microvolt = <1500000>;
258				regulator-always-on;
259				regulator-boot-on;
260			};
261
262			vcc_ddr: regulator@3 {
263				regulator-name = "vcc_ddr";
264				regulator-min-microvolt = <600000>;
265				regulator-max-microvolt = <1500000>;
266				regulator-always-on;
267				regulator-boot-on;
268			};
269
270			vcc18: regulator@5 {
271				regulator-name = "vcc18";
272				regulator-min-microvolt = <1800000>;
273				regulator-max-microvolt = <1800000>;
274				regulator-always-on;
275			};
276
277			vdd_11: regulator@6 {
278				regulator-name = "vdd_11";
279				regulator-min-microvolt = <1100000>;
280				regulator-max-microvolt = <1100000>;
281				regulator-always-on;
282			};
283
284			vcc_25: regulator@7 {
285				regulator-name = "vcc_25";
286				regulator-min-microvolt = <2500000>;
287				regulator-max-microvolt = <2500000>;
288				regulator-always-on;
289			};
290
291			vccio_wl: regulator@8 {
292				regulator-name = "vccio_wl";
293				regulator-min-microvolt = <1800000>;
294				regulator-max-microvolt = <1800000>;
295			};
296
297			vcc25_hdmi: regulator@9 {
298				regulator-name = "vcc25_hdmi";
299				regulator-min-microvolt = <2500000>;
300				regulator-max-microvolt = <2500000>;
301			};
302
303			vcca_33: regulator@10 {
304				regulator-name = "vcca_33";
305				regulator-min-microvolt = <3300000>;
306				regulator-max-microvolt = <3300000>;
307			};
308
309			vcc_rmii: regulator@11 {
310				regulator-name = "vcc_rmii";
311				regulator-min-microvolt = <3300000>;
312				regulator-max-microvolt = <3300000>;
313			};
314
315			vcc28_cif: regulator@12 {
316				regulator-name = "vcc28_cif";
317				regulator-min-microvolt = <2800000>;
318				regulator-max-microvolt = <2800000>;
319			};
320		};
321	};
322};
323
324#include "tps65910.dtsi"
325
326&i2c2 {
327	status = "okay";
328};
329
330&i2c3 {
331	status = "okay";
332};
333
334&i2c4 {
335	status = "okay";
336};
337
338&mmc0 {
339	bus-width = <4>;
340	disable-wp;
341	num-slots = <1>;
342	pinctrl-names = "default";
343	pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
344	vmmc-supply = <&vcc_sd>;
345	cap-mmc-highspeed;
346	cap-sd-highspeed;
347	status = "okay";
348};
349
350&mmc1 {
351	broken-cd;
352	bus-width = <4>;
353	disable-wp;
354	non-removable;
355	num-slots = <1>;
356	pinctrl-names = "default";
357	pinctrl-0 = <&sd1_clk>, <&sd1_cmd>, <&sd1_bus4>;
358	vmmc-supply = <&vccio_wl>;
359	status = "okay";
360};
361
362&pinctrl {
363	pcfg_output_high: pcfg-output-high {
364		output-high;
365	};
366
367	ak8963 {
368		comp_int: comp-int {
369			rockchip,pins = <4 17 RK_FUNC_GPIO &pcfg_pull_default>;
370		};
371	};
372
373	emac {
374		rmii_rst: rmii-rst {
375			rockchip,pins = <1 30 RK_FUNC_GPIO &pcfg_output_high>;
376		};
377	};
378
379	ir {
380		ir_int: ir-int {
381			rockchip,pins = <6 1 RK_FUNC_GPIO &pcfg_pull_default>;
382		};
383	};
384
385	keys {
386		pwr_key: pwr-key {
387			rockchip,pins = <6 2 RK_FUNC_GPIO &pcfg_pull_default>;
388		};
389	};
390
391	mma8452 {
392		gsensor_int: gsensor-int {
393			rockchip,pins = <4 16 RK_FUNC_GPIO &pcfg_pull_default>;
394		};
395	};
396
397	mmc {
398		sdmmc_pwr: sdmmc-pwr {
399			rockchip,pins = <3 7 RK_FUNC_GPIO &pcfg_pull_default>;
400		};
401	};
402
403	usb_host {
404		host_drv: host-drv {
405			rockchip,pins = <0 6 RK_FUNC_GPIO &pcfg_pull_default>;
406		};
407
408		hub_rst: hub-rst {
409			rockchip,pins = <1 31 RK_FUNC_GPIO &pcfg_output_high>;
410		};
411
412		sata_pwr: sata-pwr {
413			rockchip,pins = <4 22 RK_FUNC_GPIO &pcfg_pull_default>;
414		};
415
416		sata_reset: sata-reset {
417			rockchip,pins = <0 13 RK_FUNC_GPIO &pcfg_output_high>;
418		};
419	};
420
421	usb_otg {
422		otg_drv: otg-drv {
423			rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_default>;
424		};
425	};
426
427	tps {
428		pmic_int: pmic-int {
429			rockchip,pins = <6 4 RK_FUNC_GPIO &pcfg_pull_default>;
430		};
431
432		pwr_hold: pwr-hold {
433			rockchip,pins = <6 8 RK_FUNC_GPIO &pcfg_output_high>;
434		};
435	};
436};
437
438&pwm1 {
439	status = "okay";
440};
441
442&pwm2 {
443	status = "okay";
444};
445
446&pwm3 {
447	status = "okay";
448};
449
450&saradc {
451	vref-supply = <&vcc_25>;
452	status = "okay";
453};
454
455&spi0 {
456	status = "okay";
457};
458
459&uart0 {
460	pinctrl-names = "default";
461	pinctrl-0 = <&uart0_xfer>, <&uart0_cts>, <&uart0_rts>;
462	status = "okay";
463};
464
465&uart2 {
466	status = "okay";
467};
468
469&uart3 {
470	pinctrl-names = "default";
471	pinctrl-0 = <&uart3_xfer>, <&uart3_cts>, <&uart3_rts>;
472	status = "okay";
473};
474
475&usb_host {
476	pinctrl-names = "default";
477	pinctrl-0 = <&hub_rst>, <&sata_reset>;
478	status = "okay";
479};
480
481&usbphy {
482	status = "okay";
483};
484
485&usb_otg {
486	status = "okay";
487};
488
489&wdt {
490	status = "okay";
491};