forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
overlays-09-add-rk3318-box-led-conf2(:1)
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
1 parent
a547063
commit bd05139
Showing
3 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
arch/arm64/boot/dts/rockchip/overlay/rockchip-rk3318-box-led-conf2.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
}; | ||
|