arm64: dts: qcom: sdm845-tama: Add volume up and camera GPIO keys
authorMarijn Suijten <marijn.suijten@somainline.org>
Mon, 9 Jan 2023 23:41:32 +0000 (00:41 +0100)
committerBjorn Andersson <andersson@kernel.org>
Wed, 11 Jan 2023 04:53:44 +0000 (22:53 -0600)
commit4ce03bb80faed41e04b7d6f089275d262f4cfc79
tree7b16a3de1ab0e2a9a8bda3bd3008734d047ffae3
parent19e509d5ea229244b9205f8671bb75b13738a1f9
arm64: dts: qcom: sdm845-tama: Add volume up and camera GPIO keys

Tama has four GPIO-wired keys: two for camera focus and shutter /
snapshot, and two more for volume up and down.  As per the comment these
used to not work because the necessary pin bias was missing, which is
now set via pinctrl on pm8998_gpios.

The missing bias has also been added to the existing volume down button,
which receives a node name and label cleanup at the same time to be more
consistent with other DTS and the newly added buttons.  Its deprecated
gpio-key,wakeup property has also been replaced with wakeup-source.

Note that volume up is also available through the usual PON RESIN node,
but unlike other platforms only triggers when the power button is held
down at the same time making it unsuitable to serve as KEY_VOLUMEUP.

Fixes: 30a7f99befc6 ("arm64: dts: qcom: Add support for SONY Xperia XZ2 / XZ2C / XZ3 (Tama platform)")
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230109234133.365644-1-marijn.suijten@somainline.org
arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi