xref: /OK3568_Linux_fs/kernel/arch/arm/boot/dts/rv1106g-evb1-v10.dts (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2022 Rockchip Electronics Co., Ltd.
4 */
5
6/dts-v1/;
7
8#include "rv1106.dtsi"
9#include "rv1106-evb-v10.dtsi"
10#include "rv1106-evb-cam.dtsi"
11
12/ {
13	model = "Rockchip RV1106G EVB1 V10 Board";
14	compatible = "rockchip,rv1106g-evb1-v10", "rockchip,rv1106";
15
16	sdio_pwrseq: sdio-pwrseq {
17		compatible = "mmc-pwrseq-simple";
18		pinctrl-names = "default";
19		pinctrl-0 = <&wifi_enable_h &wifi_vbat>;
20
21		/*
22		 * On the module itself this is one of these (depending
23		 * on the actual card populated):
24		 * - SDIO_RESET_L_WL_REG_ON
25		 * - PDN (power down when low)
26		 */
27		post-power-on-delay-ms = <300>;
28		reset-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>,
29			      <&gpio1 RK_PA0 GPIO_ACTIVE_LOW>;
30	};
31
32	vcc_1v8: vcc-1v8 {
33		compatible = "regulator-fixed";
34		regulator-name = "vcc_1v8";
35		regulator-always-on;
36		regulator-boot-on;
37		regulator-min-microvolt = <1800000>;
38		regulator-max-microvolt = <1800000>;
39	};
40
41	vcc_3v3: vcc-3v3 {
42		compatible = "regulator-fixed";
43		regulator-name = "vcc_3v3";
44		regulator-always-on;
45		regulator-boot-on;
46		regulator-min-microvolt = <3300000>;
47		regulator-max-microvolt = <3300000>;
48	};
49
50	vcc3v3_sd: vcc3v3-sd {
51		compatible = "regulator-fixed";
52		gpio = <&gpio0 RK_PA1 GPIO_ACTIVE_LOW>;
53		regulator-name = "vcc3v3_sd";
54		regulator-min-microvolt = <3300000>;
55		regulator-max-microvolt = <3300000>;
56		pinctrl-names = "default";
57		pinctrl-0 = <&sdmmc_pwren>;
58	};
59
60	vcc5v0_usb: vcc5v0-usb {
61		compatible = "regulator-fixed";
62		regulator-name = "vcc5v0_usb";
63		regulator-min-microvolt = <5000000>;
64		regulator-max-microvolt = <5000000>;
65		enable-active-high;
66		gpio = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>;
67		pinctrl-names = "default";
68		pinctrl-0 = <&usb_pwren>;
69	};
70
71	vccio_sd: vccio-sd {
72		compatible = "regulator-gpio";
73		regulator-name = "vccio_sd";
74		regulator-min-microvolt = <1800000>;
75		regulator-max-microvolt = <3300000>;
76		gpios = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>;
77		states = <3300000 1
78			  1800000 0>;
79		pinctrl-names = "default";
80		pinctrl-0 = <&sdmmc_volt>;
81	};
82
83	wireless_wlan: wireless-wlan {
84		compatible = "wlan-platdata";
85		wifi_chip_type = "rtl8189fs";
86		pinctrl-names = "default";
87		pinctrl-0 = <&wifi_host_wake_irq>;
88		WIFI,host_wake_irq = <&gpio2 RK_PB0 GPIO_ACTIVE_HIGH>;
89		status = "okay";
90	};
91};
92
93&pinctrl {
94	sdio-pwrseq {
95		wifi_enable_h: wifi-enable-h {
96			rockchip,pins = <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
97		};
98
99		wifi_vbat: wifi-vbat {
100			rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
101		};
102	};
103
104	sdmmc {
105		/omit-if-no-ref/
106		sdmmc_pwren: sdmmc-pwren {
107			rockchip,pins = <0 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
108		};
109
110		/omit-if-no-ref/
111		sdmmc_volt: sdmmc-volt {
112			rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
113		};
114	};
115
116	usb {
117		usb_pwren: usb-pwren {
118			rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
119		};
120	};
121
122	wireless-wlan {
123		wifi_host_wake_irq: wifi-host-wake-irq {
124			rockchip,pins = <2 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
125		};
126	};
127};
128
129&sdio {
130	max-frequency = <200000000>;
131	no-sd;
132	no-mmc;
133	bus-width = <4>;
134	cap-sd-highspeed;
135	cap-sdio-irq;
136	keep-power-in-suspend;
137	mmc-pwrseq = <&sdio_pwrseq>;
138	non-removable;
139	sd-uhs-sdr104;
140	pinctrl-names = "default";
141	pinctrl-0 = <&sdmmc1m0_cmd &sdmmc1m0_clk &sdmmc1m0_bus4 &clk_32k>;
142	status = "okay";
143};
144
145&sdmmc {
146	max-frequency = <200000000>;
147	no-sdio;
148	no-mmc;
149	bus-width = <4>;
150	cap-mmc-highspeed;
151	cap-sd-highspeed;
152	disable-wp;
153	pinctrl-names = "normal", "idle";
154	pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_det &sdmmc0_bus4>;
155	pinctrl-1 = <&sdmmc0_idle_pins &sdmmc0_det>;
156	sd-uhs-sdr12;
157	sd-uhs-sdr25;
158	sd-uhs-sdr50;
159	sd-uhs-sdr104;
160	vmmc-supply = <&vcc3v3_sd>;
161	vqmmc-supply = <&vccio_sd>;
162	status = "okay";
163};
164
165&u2phy_otg {
166	vbus-supply = <&vcc5v0_usb>;
167};
168