From bff07d91b61cc3e14c91bcfca4076611eae26ad2 Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Wed, 25 Sep 2024 17:35:02 +0800 Subject: [PATCH] rockchip: add rgb led and wlan rfkill for cyber 3588 aib Signed-off-by: Tianling Shen --- .../src/arch/arm/dts/rk3588-cyber3588-aib.dts | 30 +++++++++++++++++-- .../dts/rockchip/rk3588-cyber3588-aib.dts | 30 +++++++++++++++++-- 2 files changed, 56 insertions(+), 4 deletions(-) diff --git a/package/boot/uboot-rockchip/src/arch/arm/dts/rk3588-cyber3588-aib.dts b/package/boot/uboot-rockchip/src/arch/arm/dts/rk3588-cyber3588-aib.dts index 1a95901b17..6d8e4033ee 100644 --- a/package/boot/uboot-rockchip/src/arch/arm/dts/rk3588-cyber3588-aib.dts +++ b/package/boot/uboot-rockchip/src/arch/arm/dts/rk3588-cyber3588-aib.dts @@ -30,13 +30,25 @@ gpio-leds { compatible = "gpio-leds"; pinctrl-names = "default"; - pinctrl-0 = <&status_led_pin>; + pinctrl-0 = <&red_led_pin>, <&green_led_pin>, <&blue_led_pin>; status_led: led-0 { color = ; function = LED_FUNCTION_STATUS; gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_HIGH>; }; + + led-1 { + color = ; + function = LED_FUNCTION_STATUS; + gpios = <&gpio1 RK_PA3 GPIO_ACTIVE_HIGH>; + }; + + led-2 { + color = ; + function = LED_FUNCTION_STATUS; + gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>; + }; }; fan: pwm-fan { @@ -47,6 +59,13 @@ #cooling-cells = <2>; }; + rfkill-wlan { + compatible = "rfkill-gpio"; + label = "rfkill-wlan"; + radio-type = "wlan"; + shutdown-gpios = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>; + }; + vcc12v_dcin: vcc12v-dcin-regulator { compatible = "regulator-fixed"; regulator-name = "vcc12v_dcin"; @@ -489,10 +508,17 @@ &pinctrl { gpio-leds { - status_led_pin: status-led-pin { + red_led_pin: status-led-pin { rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; }; + green_led_pin: status-led-pin { + rockchip,pins = <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + blue_led_pin: status-led-pin { + rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; + }; }; gmac { diff --git a/target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3588-cyber3588-aib.dts b/target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3588-cyber3588-aib.dts index 540367314c..c8fe1a1882 100644 --- a/target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3588-cyber3588-aib.dts +++ b/target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3588-cyber3588-aib.dts @@ -35,13 +35,25 @@ gpio-leds { compatible = "gpio-leds"; pinctrl-names = "default"; - pinctrl-0 = <&status_led_pin>; + pinctrl-0 = <&red_led_pin>, <&green_led_pin>, <&blue_led_pin>; status_led: led-0 { color = ; function = LED_FUNCTION_STATUS; gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_HIGH>; }; + + led-1 { + color = ; + function = LED_FUNCTION_STATUS; + gpios = <&gpio1 RK_PA3 GPIO_ACTIVE_HIGH>; + }; + + led-2 { + color = ; + function = LED_FUNCTION_STATUS; + gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>; + }; }; fan: pwm-fan { @@ -52,6 +64,13 @@ #cooling-cells = <2>; }; + rfkill-wlan { + compatible = "rfkill-gpio"; + label = "rfkill-wlan"; + radio-type = "wlan"; + shutdown-gpios = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>; + }; + vcc12v_dcin: vcc12v-dcin-regulator { compatible = "regulator-fixed"; regulator-name = "vcc12v_dcin"; @@ -522,10 +541,17 @@ &pinctrl { gpio-leds { - status_led_pin: status-led-pin { + red_led_pin: status-led-pin { rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; }; + green_led_pin: status-led-pin { + rockchip,pins = <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + blue_led_pin: status-led-pin { + rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; + }; }; gmac {