Skip to content

Commit

Permalink
overlays-09-add-rk3318-box-led-conf2(:1)
Browse files Browse the repository at this point in the history
Original-Subject: rk3318-box: add X88_PRO_B led/gpio configuration
None
X-Armbian: Patch-File: overlays-09-add-rk3318-box-led-conf2
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 X88_PRO_B led/gpio configuration
  • Loading branch information
paolosabatino authored and Armbian AutoPatcher committed Apr 23, 2021
1 parent a547063 commit bd05139
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm64/boot/dts/rockchip/overlay/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
5 changes: 5 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlay/README.rockchip-overlays
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/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";
};

0 comments on commit bd05139

Please sign in to comment.