Add volume button support for R36S "soysauce" variant

This commit is contained in:
Douglas Teles
2026-04-02 15:38:20 -03:00
parent e181ab706c
commit 66c946377a
2 changed files with 32 additions and 0 deletions
@@ -41,6 +41,17 @@
};
};
/* Volume buttons: GPIO3_PC6/PC5 on soysauce (base has GPIO2_PA0/PA1) */
gpio-keys-vol {
button-vol-down {
gpios = <&gpio3 RK_PC5 GPIO_ACTIVE_LOW>;
};
button-volume-up {
gpios = <&gpio3 RK_PC6 GPIO_ACTIVE_LOW>;
};
};
joypad: odroidgo3-joypad {
compatible = "archr-joypad", "odroidgo3-joypad";
pwms = <&pwm0 0 200000000 0>;
@@ -194,6 +205,11 @@
&pinctrl {
btns {
btn_pins_vol: btn-pins-vol {
rockchip,pins = <3 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>,
<3 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
};
btn_pins: btn-pins {
rockchip,pins =
<3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>,
@@ -41,6 +41,17 @@
};
};
/* Volume buttons: GPIO3_PC6/PC5 on soysauce (base has GPIO2_PA0/PA1) */
gpio-keys-vol {
button-vol-down {
gpios = <&gpio3 RK_PC5 GPIO_ACTIVE_LOW>;
};
button-volume-up {
gpios = <&gpio3 RK_PC6 GPIO_ACTIVE_LOW>;
};
};
joypad: odroidgo3-joypad {
compatible = "archr-joypad", "odroidgo3-joypad";
pwms = <&pwm0 0 200000000 0>;
@@ -194,6 +205,11 @@
&pinctrl {
btns {
btn_pins_vol: btn-pins-vol {
rockchip,pins = <3 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>,
<3 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
};
btn_pins: btn-pins {
rockchip,pins =
<3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>,