From 66c946377a58206707aa344eacf46816b4ebe556 Mon Sep 17 00:00:00 2001 From: Douglas Teles Date: Thu, 2 Apr 2026 15:38:20 -0300 Subject: [PATCH] Add volume button support for R36S "soysauce" variant --- config/archr-dts/rk3326-gameconsole-soysauce.dts | 16 ++++++++++++++++ .../dts/rockchip/rk3326-gameconsole-soysauce.dts | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/config/archr-dts/rk3326-gameconsole-soysauce.dts b/config/archr-dts/rk3326-gameconsole-soysauce.dts index 18c9b3accf..74b236bd6f 100644 --- a/config/archr-dts/rk3326-gameconsole-soysauce.dts +++ b/config/archr-dts/rk3326-gameconsole-soysauce.dts @@ -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>, diff --git a/projects/ArchR/devices/RK3326/linux/dts/rockchip/rk3326-gameconsole-soysauce.dts b/projects/ArchR/devices/RK3326/linux/dts/rockchip/rk3326-gameconsole-soysauce.dts index 18c9b3accf..74b236bd6f 100644 --- a/projects/ArchR/devices/RK3326/linux/dts/rockchip/rk3326-gameconsole-soysauce.dts +++ b/projects/ArchR/devices/RK3326/linux/dts/rockchip/rk3326-gameconsole-soysauce.dts @@ -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>,