125 lines
2.1 KiB
Plaintext
125 lines
2.1 KiB
Plaintext
/dts-v1/;
|
|
/plugin/;
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/input/input.h>
|
|
#include <dt-bindings/pinctrl/rockchip.h>
|
|
|
|
/*
|
|
* gpio configuration for AEMS IPB900 boards
|
|
*
|
|
* - enables working and auxiliary leds
|
|
* - fixes low strength on sdio pins for wifi
|
|
*/
|
|
|
|
/ {
|
|
|
|
fragment@0 {
|
|
target-path = "/gpio-leds";
|
|
__overlay__ {
|
|
|
|
working {
|
|
gpios = <&gpio1 RK_PA7 GPIO_ACTIVE_LOW>;
|
|
linux,default-trigger = "none";
|
|
};
|
|
|
|
auxiliary {
|
|
gpios = <&gpio3 RK_PC5 GPIO_ACTIVE_LOW>;
|
|
label = "auxiliary";
|
|
linux,default-trigger = "mmc2";
|
|
default-state = "off";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&gpio_led_aux>;
|
|
};
|
|
|
|
};
|
|
};
|
|
|
|
fragment@1 {
|
|
target-path = "/pinctrl/gpio-items";
|
|
__overlay__ {
|
|
|
|
gpio_led_aux: gpio-led-aux {
|
|
rockchip,pins = <1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
|
|
reset_key: reset-key {
|
|
rockchip,pins = <3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
};
|
|
|
|
};
|
|
};
|
|
|
|
fragment@2 {
|
|
target = <&gpio_keys>;
|
|
__overlay__ {
|
|
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&reset_key>;
|
|
|
|
reset {
|
|
gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_LOW>;
|
|
label = "reset";
|
|
linux,code = <KEY_RESTART>;
|
|
debounce-interval = <200>;
|
|
wakeup-source;
|
|
};
|
|
|
|
};
|
|
};
|
|
|
|
fragment@3 {
|
|
target = <&sdio_bus4>;
|
|
__overlay__ {
|
|
rockchip,pins = <3 2 1 &pcfg_pull_none_8ma>,
|
|
<3 3 1 &pcfg_pull_none_8ma>,
|
|
<3 4 1 &pcfg_pull_none_8ma>,
|
|
<3 5 1 &pcfg_pull_none_8ma>;
|
|
};
|
|
|
|
};
|
|
|
|
fragment@4 {
|
|
target = <&sdio_clk>;
|
|
__overlay__ {
|
|
rockchip,pins = <3 0 1 &pcfg_pull_none_8ma>;
|
|
};
|
|
};
|
|
|
|
fragment@5 {
|
|
target = <&sdio_cmd>;
|
|
__overlay__ {
|
|
rockchip,pins = <3 1 1 &pcfg_pull_none_8ma>;
|
|
};
|
|
};
|
|
|
|
fragment@6 {
|
|
target = <&dmc_opp_table>;
|
|
__overlay__ {
|
|
compatible = "operating-points-v2";
|
|
|
|
opp-330000000 {
|
|
opp-hz = /bits/ 64 <330000000>;
|
|
opp-microvolt = <1100000>;
|
|
};
|
|
|
|
opp-534000000 {
|
|
opp-hz = /bits/ 64 <534000000>;
|
|
opp-microvolt = <1100000>;
|
|
};
|
|
|
|
opp-660000000 {
|
|
opp-hz = /bits/ 64 <660000000>;
|
|
opp-microvolt = <1100000>;
|
|
};
|
|
|
|
opp-786000000 {
|
|
opp-hz = /bits/ 64 <786000000>;
|
|
opp-microvolt = <1150000>;
|
|
};
|
|
};
|
|
};
|
|
|
|
|
|
};
|