1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2023 Rockchip Electronics Co., Ltd.
9 #include <dt-bindings/leds/common.h>
10 #include "rk3588-coolpi-cm5.dtsi"
13 model = "RK3588 CoolPi CM5 EVB";
14 compatible = "coolpi,pi-cm5-evb", "coolpi,pi-cm5", "rockchip,rk3588";
16 backlight: backlight {
17 compatible = "pwm-backlight";
18 enable-gpios = <&gpio4 RK_PA3 GPIO_ACTIVE_HIGH>;
19 pinctrl-names = "default";
21 power-supply = <&vcc12v_dcin>;
22 pwms = <&pwm2 0 25000 0>;
26 compatible = "gpio-leds";
29 color = <LED_COLOR_ID_GREEN>;
30 function = LED_FUNCTION_STATUS;
31 gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_HIGH>;
32 linux,default-trigger = "heartbeat";
36 vcc12v_dcin: vcc12v-dcin-regulator {
37 compatible = "regulator-fixed";
38 regulator-name = "vcc12v_dcin";
41 regulator-min-microvolt = <12000000>;
42 regulator-max-microvolt = <12000000>;
45 vcc5v0_sys: vcc5v0-sys-regulator {
46 compatible = "regulator-fixed";
47 regulator-name = "vcc5v0_sys";
50 regulator-min-microvolt = <5000000>;
51 regulator-max-microvolt = <5000000>;
52 vin-supply = <&vcc12v_dcin>;
55 vcc3v3_sys: vcc3v3-sys-regulator {
56 compatible = "regulator-fixed";
57 regulator-name = "vcc3v3_sys";
60 regulator-min-microvolt = <3300000>;
61 regulator-max-microvolt = <3300000>;
62 vin-supply = <&vcc12v_dcin>;
65 vcc3v3_lcd: vcc3v3-lcd-regulator {
66 compatible = "regulator-fixed";
67 regulator-name = "vcc3v3_lcd";
69 gpio = <&gpio1 RK_PC4 GPIO_ACTIVE_HIGH>;
70 pinctrl-names = "default";
71 pinctrl-0 = <&lcdpwr_en>;
72 vin-supply = <&vcc3v3_sys>;
75 vcc5v0_usb_host1: vcc5v0_usb_host2: vcc5v0-usb-host-regulator {
76 compatible = "regulator-fixed";
77 regulator-name = "vcc5v0_host";
81 regulator-min-microvolt = <5000000>;
82 regulator-max-microvolt = <5000000>;
83 gpio = <&gpio1 RK_PD5 GPIO_ACTIVE_HIGH>;
84 pinctrl-names = "default";
85 pinctrl-0 = <&usb_host_pwren>;
86 vin-supply = <&vcc5v0_sys>;
89 vcc5v0_usb30_otg: vcc5v0-usb30-otg-regulator {
90 compatible = "regulator-fixed";
91 regulator-name = "vcc5v0_otg";
95 regulator-min-microvolt = <5000000>;
96 regulator-max-microvolt = <5000000>;
97 gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;
98 pinctrl-names = "default";
99 pinctrl-0 = <&usb_otg_pwren>;
100 vin-supply = <&vcc5v0_sys>;
106 reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;
107 vpcie3v3-supply = <&vcc3v3_sys>;
108 pinctrl-names = "default";
109 pinctrl-0 = <&pcie_clkreq &pcie_wake &pcie_rst &wifi_pwron &bt_pwron>;
119 reset-gpios = <&gpio3 RK_PB0 GPIO_ACTIVE_HIGH>;
120 vpcie3v3-supply = <&vcc3v3_sys>;
127 reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>;
128 vpcie3v3-supply = <&vcc3v3_sys>;
134 lcdpwr_en: lcdpwr-en {
135 rockchip,pins = <1 RK_PC4 RK_FUNC_GPIO &pcfg_pull_down>;
139 rockchip,pins = <4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
144 usb_host_pwren: usb-host-pwren {
145 rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_up>;
148 usb_otg_pwren: usb-otg-pwren {
149 rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
155 rockchip,pins = <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
158 pcie_clkreq: pcie-clkreq {
159 rockchip,pins = <4 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
163 rockchip,pins = <4 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>;
166 wifi_pwron: wifi-pwron {
167 rockchip,pins = <3 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>;
170 pcie_wake: pcie-wake {
171 rockchip,pins = <4 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up>;
193 phy-supply = <&vcc5v0_usb_host1>;
198 phy-supply = <&vcc5v0_usb_host2>;