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-settling-time-up-us = <250>;
114 compatible = "regulator-fixed";
115 regulator-name = "vdd_log";
118 regulator-min-microvolt = <1050000>;
119 regulator-max-microvolt = <1050000>;
120 vin-supply = <&vcc5v0_sys>;
125 cpu-supply = <&vdd_core>;
133 vmmc-supply = <&vcc_io>;
138 clock_in_out = "output";
139 phy-supply = <&vcc_io>;
140 snps,reset-gpio = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
141 snps,reset-active-low;
142 snps,reset-delays-us = <0 50000 50000>;
151 pinctrl-names = "default";
152 pinctrl-0 = <&rtc_32k>;
155 green_led_gio: green-led-gpio {
156 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
159 heartbeat_led_gpio: heartbeat-led-gpio {
160 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
165 otg_vbus_drv: otg-vbus-drv {
166 rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
171 wifi_enable_h: wifi-enable-h {
172 rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
175 wifi_host_wake: wifi-host-wake {
176 rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_down>;
183 pinctrl-0 = <&pwm0_pin_pull_down>;
187 vref-supply = <&vcc_1v8>;
192 #address-cells = <1>;
196 keep-power-in-suspend;
197 max-frequency = <1000000>;
198 mmc-pwrseq = <&sdio_pwrseq>;
212 u2phy_host: host-port {
213 phy-supply = <&vcc5v0_otg>;
217 u2phy_otg: otg-port {
218 phy-supply = <&vcc5v0_otg>;
231 compatible = "realtek,rtl8723bs-bt";
232 device-wake-gpios = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>;
233 host-wake-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>;
246 dr_mode = "peripheral";