1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
10 model = "Firefly ROC-RK3308-CC board";
11 compatible = "firefly,roc-rk3308-cc", "rockchip,rk3308";
13 stdout-path = "serial2:1500000n8";
17 compatible = "gpio-ir-receiver";
18 gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
19 pinctrl-names = "default";
20 pinctrl-0 = <&ir_recv_pin>;
24 compatible = "pwm-ir-tx";
25 pwms = <&pwm5 0 25000 0>;
29 compatible = "gpio-leds";
32 label = "firefly:red:power";
33 linux,default-trigger = "ir-power-click";
35 gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
39 label = "firefly:blue:user";
40 linux,default-trigger = "ir-user-click";
41 default-state = "off";
42 gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_HIGH>;
46 typec_vcc5v: typec-vcc5v {
47 compatible = "regulator-fixed";
48 regulator-name = "typec_vcc5v";
49 regulator-min-microvolt = <5000000>;
50 regulator-max-microvolt = <5000000>;
55 vcc5v0_sys: vcc5v0-sys {
56 compatible = "regulator-fixed";
57 regulator-name = "vcc5v0_sys";
58 regulator-min-microvolt = <5000000>;
59 regulator-max-microvolt = <5000000>;
62 vin-supply = <&typec_vcc5v>;
66 compatible = "regulator-fixed";
67 regulator-name = "vcc_io";
68 regulator-min-microvolt = <3300000>;
69 regulator-max-microvolt = <3300000>;
72 vin-supply = <&vcc5v0_sys>;
75 vcc_sdmmc: vcc-sdmmc {
76 compatible = "regulator-gpio";
77 regulator-name = "vcc_sdmmc";
78 regulator-min-microvolt = <1800000>;
79 regulator-max-microvolt = <3300000>;
80 gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_HIGH>;
83 vin-supply = <&vcc5v0_sys>;
87 compatible = "regulator-fixed";
88 gpio = <&gpio4 RK_PD6 GPIO_ACTIVE_LOW>;
89 regulator-name = "vcc_sd";
90 regulator-min-microvolt = <3300000>;
91 regulator-max-microvolt = <3300000>;
94 vim-supply = <&vcc_io>;
98 compatible = "pwm-regulator";
99 pwms = <&pwm0 0 5000 1>;
100 regulator-name = "vdd_core";
101 regulator-min-microvolt = <827000>;
102 regulator-max-microvolt = <1340000>;
103 regulator-init-microvolt = <1015000>;
104 regulator-settling-time-up-us = <250>;
107 pwm-supply = <&vcc5v0_sys>;
111 compatible = "regulator-fixed";
112 regulator-name = "vdd_log";
113 regulator-min-microvolt = <1050000>;
114 regulator-max-microvolt = <1050000>;
117 vin-supply = <&vcc5v0_sys>;
122 cpu-supply = <&vdd_core>;
133 clock-frequency = <400000>;
137 compatible = "nxp,pcf8563";
145 pinctrl-names = "active";
146 pinctrl-0 = <&pwm5_pin_pull_down>;
150 pinctrl-names = "default";
151 pinctrl-0 = <&rtc_32k>;
154 ir_recv_pin: ir-recv-pin {
155 rockchip,pins = <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
161 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
168 pinctrl-0 = <&pwm0_pin_pull_down>;
174 card-detect-delay = <300>;
178 vmmc-supply = <&vcc_sd>;
179 vqmmc-supply = <&vcc_sdmmc>;