Skip to content

Commit

Permalink
overlays-02-add-rk3318-box-led-conf1(:1)
Browse files Browse the repository at this point in the history
Original-Subject: rk3318-box: add led configuration for YX_RK3328 boards and clones
None
X-Armbian: Patch-File: overlays-02-add-rk3318-box-led-conf1
X-Armbian: Patch-File-Counter: 1
X-Armbian: Patch-Rel-Directory: patch/kernel/archive/rockchip64-6.1
X-Armbian: Patch-Type: kernel
X-Armbian: Patch-Root-Type: core
X-Armbian: Patch-Sub-Type: common
X-Armbian: Original-Subject: rk3318-box: add led configuration for YX_RK3328 boards and clones
  • Loading branch information
paolosabatino authored and Armbian AutoPatcher committed Apr 17, 2021
1 parent f173228 commit c2db37a
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/arm64/boot/dts/rockchip/overlay/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
rockchip-spi-spidev.dtbo \
rockchip-uart4.dtbo \
rockchip-dwc3-0-host.dtbo \
rockchip-w1-gpio.dtbo
rockchip-w1-gpio.dtbo \
rockchip-rk3318-box-led-conf1.dtbo

scr-$(CONFIG_ARCH_ROCKCHIP) += \
rockchip-fixup.scr
Expand Down
4 changes: 4 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlay/README.rockchip-overlays
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,7 @@ Activates 1-Wire GPIO master
Requires an external pull-up resistor on the data pin
or enabling the internal pull-up

### rk3318-box-led-conf1

Activates led/gpio configuration for rk3318 tv box boards with signature
YX_RK3328 and clones
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/dts-v1/;
/plugin/;

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/pinctrl/rockchip.h>

/**
* Generic rk3318 board with base common configuration.
* Some boards with this configuration have signature: YX_RK3318 (circular board), RK3318_V1.x
*/

&gpio_led {

working {
gpios = <&gpio2 RK_PC7 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "mmc2";
};

/*
* no auxiliary led on YX_RK3328 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>;
};
*/

};

/*
* TODO: needs to find the GPIO for this
*
&gpio_keys {

reset {
gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_LOW>;
label = "reset";
linux,code = <KEY_RESTART>;
debounce-interval = <200>;
wakeup-source;
};

};
*/

0 comments on commit c2db37a

Please sign in to comment.