111 lines
3.1 KiB
Diff
111 lines
3.1 KiB
Diff
From 984e45a2fe4643ff96b43e0057c7e019aa8be7d6 Mon Sep 17 00:00:00 2001
|
|
From: Paolo Sabatino <paolo.sabatino@gmail.com>
|
|
Date: Fri, 23 Apr 2021 13:11:51 +0000
|
|
Subject: [PATCH] rk3318-box: add X88_PRO_B led/gpio configuration
|
|
|
|
---
|
|
arch/arm64/boot/dts/rockchip/overlay/Makefile | 1 +
|
|
.../rockchip/overlay/README.rockchip-overlays | 5 ++
|
|
.../overlay/rockchip-rk3318-box-led-conf2.dts | 64 +++++++++++++++++++
|
|
3 files changed, 70 insertions(+)
|
|
create mode 100644 arch/arm64/boot/dts/rockchip/overlay/rockchip-rk3318-box-led-conf2.dts
|
|
|
|
diff --git a/arch/arm64/boot/dts/rockchip/overlay/Makefile b/arch/arm64/boot/dts/rockchip/overlay/Makefile
|
|
index f227d5997..c28c7a5eb 100644
|
|
--- a/arch/arm64/boot/dts/rockchip/overlay/Makefile
|
|
+++ b/arch/arm64/boot/dts/rockchip/overlay/Makefile
|
|
@@ -12,6 +12,7 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
|
|
rockchip-dwc3-0-host.dtbo \
|
|
rockchip-w1-gpio.dtbo \
|
|
rockchip-rk3318-box-led-conf1.dtbo \
|
|
+ rockchip-rk3318-box-led-conf2.dtbo \
|
|
rockchip-rk3318-box-emmc-ddr.dtbo \
|
|
rockchip-rk3318-box-wlan-ap6334.dtbo \
|
|
rockchip-rk3318-box-wlan-ext.dtbo \
|
|
diff --git a/arch/arm64/boot/dts/rockchip/overlay/README.rockchip-overlays b/arch/arm64/boot/dts/rockchip/overlay/README.rockchip-overlays
|
|
index 1b547bea7..4172bd731 100644
|
|
--- a/arch/arm64/boot/dts/rockchip/overlay/README.rockchip-overlays
|
|
+++ b/arch/arm64/boot/dts/rockchip/overlay/README.rockchip-overlays
|
|
@@ -124,6 +124,11 @@ or enabling the internal pull-up
|
|
Activates led/gpio configuration for rk3318 tv box boards with signature
|
|
YX_RK3328 and clones
|
|
|
|
+### rk3318-box-led-conf2
|
|
+
|
|
+Activates led/gpio configuration for rk3318 tv box boards withs signature
|
|
+X88_PRO_B and clones
|
|
+
|
|
### rk3318-box-emmc-ddr
|
|
|
|
Activates eMMC DDR capability for rk3318 tv box boards. Probably all the eMMC chips
|
|
diff --git a/arch/arm64/boot/dts/rockchip/overlay/rockchip-rk3318-box-led-conf2.dts b/arch/arm64/boot/dts/rockchip/overlay/rockchip-rk3318-box-led-conf2.dts
|
|
new file mode 100644
|
|
index 000000000000..b8ed044ee52a
|
|
--- /dev/null
|
|
+++ b/arch/arm64/boot/dts/rockchip/overlay/rockchip-rk3318-box-led-conf2.dts
|
|
@@ -0,0 +1,63 @@
|
|
+/dts-v1/;
|
|
+/plugin/;
|
|
+
|
|
+#include <dt-bindings/gpio/gpio.h>
|
|
+#include <dt-bindings/input/input.h>
|
|
+#include <dt-bindings/pinctrl/rockchip.h>
|
|
+
|
|
+
|
|
+&gpio_led {
|
|
+
|
|
+ working {
|
|
+ gpios = <&gpio2 RK_PA6 GPIO_ACTIVE_LOW>;
|
|
+ linux,default-trigger = "mmc2";
|
|
+ };
|
|
+
|
|
+ /*
|
|
+ * no auxiliary led on X88_PRO_B boards
|
|
+ *
|
|
+ auxiliary {
|
|
+ gpios = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>;
|
|
+ label = "auxiliary";
|
|
+ linux,default-trigger = "mmc2";
|
|
+ default-state = "off";
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&gpio_led_aux>;
|
|
+ };
|
|
+ */
|
|
+
|
|
+};
|
|
+
|
|
+&vcc_otg_vbus {
|
|
+ gpio = <&gpio0 RK_PD3 GPIO_ACTIVE_HIGH>;
|
|
+};
|
|
+
|
|
+&working_led {
|
|
+ rockchip,pins = <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none_2ma>;
|
|
+};
|
|
+
|
|
+&io_domains {
|
|
+ vccio6-supply = <&vcc_18>;
|
|
+};
|
|
+
|
|
+/*
|
|
+ * Following section enables the sdio bus on sdmmc_ext controller
|
|
+ */
|
|
+&sdio {
|
|
+ /delete-property/ mmc-pwrseq;
|
|
+ status = "disabled";
|
|
+};
|
|
+
|
|
+&sdio_ext {
|
|
+ mmc-pwrseq = <&sdio_pwrseq>;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&sdmmc_ext {
|
|
+ status = "disabled";
|
|
+};
|
|
+
|
|
+&spdif {
|
|
+ pinctrl-0 = <&spdifm1_tx>;
|
|
+};
|
|
+
|
|
|