arm64: dts: qcom: sdm630-nile: add pinctrl for camera key
Quoted 16 lines · Sebastian Raase
Add pinctrl configuration for gpio-keys. Without this, camera button half-presses are not detected.
Tested on discovery and pioneer.
Fixes e781633b6067 ("arm64: dts: qcom: Add support for Sony Xperia XA2/Plus/Ultra (Nile platform)")Signed-off-by Sebastian Raase <[email protected]>--- arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+)arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi +0
-0
arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi cam_vana_rear_vreg: cam-vana-rear-regulator { · line 94
Quoted 5 lines
arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi +2
-0@@ -90,6 +90,8 @@ cam_vana_rear_vreg: cam-vana-rear-regulator { gpio-keys { compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&gpio_keys_default>;
A nit: Please reverse the order: pinctrl-0 then names
arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi ts_lcd_id_active: ts-lcd-id-active-state { · line 640
Quoted 8 lines
arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi +1
-0key-camera-focus { label = "Camera Focus";@@ -635,6 +637,13 @@ ts_lcd_id_active: ts-lcd-id-active-state { bias-disable; }; + gpio_keys_default: gpio-keys-default {
Looks missing suffix (state) and test, so:
It does not look like you tested the DTS against bindings. Please run make dtbs_check W=1 (see Documentation/devicetree/bindings/writing-schema.rst or
https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
for instructions).
Best regards,
Krzysztof
PATCH 1/1 arm64: dts: qcom: sdm630-nile: add pinctrl for camera key
Add pinctrl configuration for gpio-keys. Without this, camera button half-presses are not detected.
Tested on discovery and pioneer.
--- arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+)
arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi +9 -0
@@ -90,6 +90,8 @@ cam_vana_rear_vreg: cam-vana-rear-regulator { gpio-keys { compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&gpio_keys_default>; key-camera-focus { label = "Camera Focus";
@@ -635,6 +637,13 @@ ts_lcd_id_active: ts-lcd-id-active-state { bias-disable; }; + gpio_keys_default: gpio-keys-default { + pins = "gpio64", "gpio113"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + imx300_vana_default: imx300-vana-default-state { pins = "gpio50"; function = "gpio";
Signature · 1 line
2.42.0
PATCH v2 1/1 arm64: dts: qcom: sdm630-nile: add pinctrl for camera key
Add pinctrl configuration for gpio-keys. Without this, camera button half-presses are not detected.
Tested on discovery and pioneer.
--- arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+)
arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi +9 -0
@@ -90,6 +90,8 @@ cam_vana_rear_vreg: cam-vana-rear-regulator { gpio-keys { compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&gpio_keys_default>; key-camera-focus { label = "Camera Focus";
@@ -635,6 +637,13 @@ ts_lcd_id_active: ts-lcd-id-active-state { bias-disable; }; + gpio_keys_default: gpio-keys-default-state { + pins = "gpio64", "gpio113"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + imx300_vana_default: imx300-vana-default-state { pins = "gpio50"; function = "gpio";
Signature · 1 line
2.42.0
Hi Krzysztof,
Quoted 18 lines · On Thu, 14 Mar 2024 21:37:30 +0100 Krzysztof Kozlowski…
Quoted 17 lines · Sebastian Raase
Add pinctrl configuration for gpio-keys. Without this, camera button half-presses are not detected.
Tested on discovery and pioneer.
Fixes e781633b6067 ("arm64: dts: qcom: Add support for Sony Xperia XA2/Plus/Ultra (Nile platform)")Signed-off-by Sebastian Raase <[email protected]>--- arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+)arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi +0
-0@@ -90,6 +90,8 @@ cam_vana_rear_vreg: cam-vana-rear-regulator {
Quoted 6 lines
arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi cam_vana_rear_vreg: cam-vana-rear-regulator { · line 94
Quoted 4 lines
arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi +2
-0gpio-keys { compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&gpio_keys_default>;A nit: Please reverse the order: pinctrl-0 then names
All existing pinctrl definitions use pinctrl-names first, so I followed the existing file. Is this still okay?
Quoted 11 lines
arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi ts_lcd_id_active: ts-lcd-id-active-state { · line 640
Quoted 8 lines
arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi +1
-0key-camera-focus { label = "Camera Focus";@@ -635,6 +637,13 @@ ts_lcd_id_active: ts-lcd-id-active-state { bias-disable; }; + gpio_keys_default: gpio-keys-default {Looks missing suffix (state) and test, so:
Quoted 5 lines
It does not look like you tested the DTS against bindings. Please run
make dtbs_check W=1(seeDocumentation/devicetree/bindings/writing-schema.rstor
https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
for instructions).
I did add the suffix and ran the test, and the warning is gone now. Sent an updated patch.
Quoted 2 lines
Best regards,
Krzysztof
Best Regards,
Sebastian
Quoted 16 lines · Sebastian Raase
Add pinctrl configuration for gpio-keys. Without this, camera button half-presses are not detected.
Tested on discovery and pioneer.
Fixes e781633b6067 ("arm64: dts: qcom: Add support for Sony Xperia XA2/Plus/Ultra (Nile platform)")Signed-off-by Sebastian Raase <[email protected]>--- arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+)arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi +0
-0
arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi cam_vana_rear_vreg: cam-vana-rear-regulator { · line 94
Quoted 5 lines
arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi +2
-0@@ -90,6 +90,8 @@ cam_vana_rear_vreg: cam-vana-rear-regulator { gpio-keys { compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&gpio_keys_default>;
It's fine to keep the "non-preferred" order, I'll probably send some changes to nile and fix up the style while at it in the near future.
Konrad
P.S.
For your next submissions, please send the follow-up revisions in new mail threads
Quoted 20 lines · Konrad Dybcio
Quoted 17 lines · Sebastian Raase
Add pinctrl configuration for gpio-keys. Without this, camera button half-presses are not detected.
Tested on discovery and pioneer.
Fixes e781633b6067 ("arm64: dts: qcom: Add support for Sony Xperia XA2/Plus/Ultra (Nile platform)")Signed-off-by Sebastian Raase <[email protected]>--- arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+)arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi +0
-0@@ -90,6 +90,8 @@ cam_vana_rear_vreg: cam-vana-rear-regulator {
Quoted 7 lines
arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi cam_vana_rear_vreg: cam-vana-rear-regulator { · line 94
Quoted 4 lines
arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi +2
-0gpio-keys { compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&gpio_keys_default>;It's fine to keep the "non-preferred" order, I'll probably send some changes to nile and fix up the style while at it in the near future.
Sebastian,
Although it is also preferred to implement feedback the reviewer is asking. I don't understand why you insisted to keep the other order.
Best regards,
Krzysztof
Quoted 8 lines · Sebastian Raase
Quoted 6 lines
arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi cam_vana_rear_vreg: cam-vana-rear-regulator { · line 94
Quoted 4 lines
arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi +2
-0gpio-keys { compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&gpio_keys_default>;A nit: Please reverse the order: pinctrl-0 then names
All existing pinctrl definitions use pinctrl-names first, so I followed the existing file. Is this still okay?
No, not all. If you are sending v2, why you cannot fix this in new code?
Best regards,
Krzysztof
Hi Krzysztof,
Quoted 27 lines · Konrad Dybcio
Quoted 18 lines · Sebastian Raase
Quoted 17 lines
Add pinctrl configuration for gpio-keys. Without this, camera button half-presses are not detected.
Tested on discovery and pioneer.
Fixes e781633b6067 ("arm64: dts: qcom: Add support for Sony Xperia XA2/Plus/Ultra (Nile platform)")Signed-off-by Sebastian Raase <[email protected]>--- arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+)arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi +0
-0@@ -90,6 +90,8 @@ cam_vana_rear_vreg: cam-vana-rear-regulator {Quoted 7 lines
arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi cam_vana_rear_vreg: cam-vana-rear-regulator { · line 94
Quoted 4 lines
arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi +2
-0gpio-keys { compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&gpio_keys_default>;It's fine to keep the "non-preferred" order, I'll probably send some changes to nile and fix up the style while at it in the near future.
Quoted 3 lines
Sebastian,
Although it is also preferred to implement feedback the reviewer is asking. I don't understand why you insisted to keep the other order.
I simply followed the existing style and did not know any better. Since you called it a "nit", I wrongly assumed that was acceptable.
Fixed in v3.
Quoted 2 lines
Best regards,
Krzysztof
Best Regards,
Sebastian