1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2019 Akash Gajjar <akash@openedev.com>
4 * Copyright (c) 2019 Jagan Teki <jagan@openedev.com>
11 model = "Radxa ROCK Pi S";
12 compatible = "radxa,rockpis", "rockchip,rk3308";
21 stdout-path = "serial0:1500000n8";
25 compatible = "gpio-leds";
26 pinctrl-names = "default";
27 pinctrl-0 = <&green_led_gio>, <&heartbeat_led_gpio>;
31 gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
32 label = "rockpis:green:power";
33 linux,default-trigger = "default-on";
38 gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
39 label = "rockpis:blue:user";
40 linux,default-trigger = "heartbeat";
44 sdio_pwrseq: sdio-pwrseq {
45 compatible = "mmc-pwrseq-simple";
46 pinctrl-0 = <&wifi_enable_h>;
47 pinctrl-names = "default";
48 reset-gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>;
52 compatible = "regulator-fixed";
53 regulator-name = "vcc_1v8";
56 regulator-min-microvolt = <1800000>;
57 regulator-max-microvolt = <1800000>;
58 vin-supply = <&vcc_io>;
62 compatible = "regulator-fixed";
63 regulator-name = "vcc_io";
66 regulator-min-microvolt = <3300000>;
67 regulator-max-microvolt = <3300000>;
68 vin-supply = <&vcc5v0_sys>;
72 compatible = "regulator-fixed";
73 regulator-name = "vcc_ddr";
76 regulator-min-microvolt = <1500000>;
77 regulator-max-microvolt = <1500000>;
78 vin-supply = <&vcc5v0_sys>;
81 vcc5v0_otg: vcc5v0-otg {
82 compatible = "regulator-fixed";
84 gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
85 pinctrl-names = "default";
86 pinctrl-0 = <&otg_vbus_drv>;
87 regulator-name = "vcc5v0_otg";
89 vin-supply = <&vcc5v0_sys>;
92 vcc5v0_sys: vcc5v0-sys {
93 compatible = "regulator-fixed";
94 regulator-name = "vcc5v0_sys";
97 regulator-min-microvolt = <5000000>;
98 regulator-max-microvolt = <5000000>;
102 compatible = "pwm-regulator";
103 pwms = <&pwm0 0 5000 1>;
104 pwm-supply = <&vcc5v0_sys>;
105 regulator-name = "vdd_core";
106 regulator-min-microvolt = <827000>;
107 regulator-max-microvolt = <1340000>;
108 regulator-init-microvolt = <1015000>;
109 regulator-settling-time-up-us = <250>;
115 compatible = "regulator-fixed";
116 regulator-name = "vdd_log";
119 regulator-min-microvolt = <1050000>;
120 regulator-max-microvolt = <1050000>;
121 vin-supply = <&vcc5v0_sys>;
126 cpu-supply = <&vdd_core>;
134 vmmc-supply = <&vcc_io>;
139 clock_in_out = "output";
140 phy-supply = <&vcc_io>;
141 snps,reset-gpio = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
142 snps,reset-active-low;
143 snps,reset-delays-us = <0 50000 50000>;
152 pinctrl-names = "default";
153 pinctrl-0 = <&rtc_32k>;
156 green_led_gio: green-led-gpio {
157 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
160 heartbeat_led_gpio: heartbeat-led-gpio {
161 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
166 otg_vbus_drv: otg-vbus-drv {
167 rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
172 wifi_enable_h: wifi-enable-h {
173 rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
176 wifi_host_wake: wifi-host-wake {
177 rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_down>;
184 pinctrl-0 = <&pwm0_pin_pull_down>;
188 vref-supply = <&vcc_1v8>;
193 #address-cells = <1>;
197 keep-power-in-suspend;
198 max-frequency = <1000000>;
199 mmc-pwrseq = <&sdio_pwrseq>;
213 u2phy_host: host-port {
214 phy-supply = <&vcc5v0_otg>;
218 u2phy_otg: otg-port {
219 phy-supply = <&vcc5v0_otg>;
232 compatible = "realtek,rtl8723bs-bt";
233 device-wake-gpios = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>;
234 host-wake-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>;
247 dr_mode = "peripheral";