rockchip64-6.19: mekotronics-r58x-pro: add gpio-keys for the big dial in the front
This commit is contained in:
parent
4db14082b8
commit
a1d85a2a3a
@ -26,6 +26,25 @@
|
|||||||
stdout-path = "serial2:1500000n8";
|
stdout-path = "serial2:1500000n8";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
gpio_keys: gpio-keys {
|
||||||
|
compatible = "gpio-keys";
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&r58x_pro_dial_pins>;
|
||||||
|
|
||||||
|
vol_up: vol-up {
|
||||||
|
label = "VolumeUp";
|
||||||
|
linux,code = <KEY_VOLUMEUP>;
|
||||||
|
gpios = <&gpio3 RK_PD0 GPIO_ACTIVE_HIGH>;
|
||||||
|
// @TODO: wakeup-source; ?
|
||||||
|
};
|
||||||
|
|
||||||
|
vol_down: vol-down {
|
||||||
|
label = "VolumeDown";
|
||||||
|
linux,code = <KEY_VOLUMEDOWN>;
|
||||||
|
gpios = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
|
|
||||||
@ -508,6 +527,15 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&pinctrl {
|
&pinctrl {
|
||||||
|
dial {
|
||||||
|
r58x_pro_dial_pins: r58x-pro-dial-pins {
|
||||||
|
rockchip,pins =
|
||||||
|
/* Vol+ */
|
||||||
|
<3 RK_PD0 RK_FUNC_GPIO &pcfg_pull_up>,
|
||||||
|
/* Vol‑ */
|
||||||
|
<3 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
gpio-leds {
|
gpio-leds {
|
||||||
fourg_led_pin: fourg-led-pin {
|
fourg_led_pin: fourg-led-pin {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user