Devicetree
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: qcom: sm8250-xiaomi-elish: Remove camera_front_active pinctrl
@ 2026-07-10  6:22 Xin Xu
  2026-07-10  6:32 ` sashiko-bot
  2026-07-10  8:45 ` Konrad Dybcio
  0 siblings, 2 replies; 4+ messages in thread
From: Xin Xu @ 2026-07-10  6:22 UTC (permalink / raw)
  To: andersson, konradybcio; +Cc: linux-arm-msm, devicetree, linux-kernel, Xin Xu

Remove the redundant camera_front_active pinctrl node, as its GPIO 109
configuration duplicates the reset-gpios property.

Signed-off-by: Xin Xu <xxsemail@qq.com>
---
 arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi
index 19aff83ecf7b..26801d6a1ec5 100644
--- a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi
@@ -570,7 +570,7 @@ camera_front: camera@10 {
 
 		reset-gpios = <&tlmm 109 GPIO_ACTIVE_LOW>;
 
-		pinctrl-0 = <&cam_mclk3_default &camera_front_active>;
+		pinctrl-0 = <&cam_mclk3_default>;
 		pinctrl-names = "default";
 
 		orientation = <0>; /* Front facing */
@@ -947,13 +947,6 @@ pm8008_reset_default: pm8008-reset-default-state {
 		bias-pull-up;
 	};
 
-	camera_front_active: camera-front-active-state {
-		pins = "gpio109";
-		function = "gpio";
-		drive-strength = <2>;
-		bias-disable;
-	};
-
 	wlan_en_state: wlan-default-state {
 		pins = "gpio20";
 		function = "gpio";
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: dts: qcom: sm8250-xiaomi-elish: Remove camera_front_active pinctrl
  2026-07-10  6:22 [PATCH] arm64: dts: qcom: sm8250-xiaomi-elish: Remove camera_front_active pinctrl Xin Xu
@ 2026-07-10  6:32 ` sashiko-bot
  2026-07-10  8:45 ` Konrad Dybcio
  1 sibling, 0 replies; 4+ messages in thread
From: sashiko-bot @ 2026-07-10  6:32 UTC (permalink / raw)
  To: Xin Xu; +Cc: robh, devicetree, conor+dt

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Removal of explicit electrical pin configuration for camera reset GPIO
--

--- Patch [1]: [PATCH] arm64: dts: qcom: sm8250-xiaomi-elish: Remove camera_front_active pinctrl ---
commit 0022e4fa862c463785a16fefb223c9ad61f2fc67
Author: Xin Xu <xxsemail@qq.com>

arm64: dts: qcom: sm8250-xiaomi-elish: Remove camera_front_active pinctrl

This commit removes the camera_front_active pinctrl node and its reference,
stating that the GPIO 109 configuration duplicates the reset-gpios property.

> diff --git a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi
> index 19aff83ecf7b6..26801d6a1ec5f 100644
> --- a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi
> @@ -570,7 +570,7 @@ camera_front: camera@10 {
>  
>  		reset-gpios = <&tlmm 109 GPIO_ACTIVE_LOW>;
>  
> -		pinctrl-0 = <&cam_mclk3_default &camera_front_active>;
> +		pinctrl-0 = <&cam_mclk3_default>;
>  		pinctrl-names = "default";
>  
>  		orientation = <0>; /* Front facing */

[ ... ]

> @@ -947,13 +947,6 @@ pm8008_reset_default: pm8008-reset-default-state {
>  		bias-pull-up;
>  	};
>  
> -	camera_front_active: camera-front-active-state {
> -		pins = "gpio109";
> -		function = "gpio";
> -		drive-strength = <2>;
> -		bias-disable;
> -	};
> -

[Severity: Medium]
Does removing this pinctrl node leave the pin without a guaranteed electrical
configuration?

The reset-gpios property configures pin routing and logical polarity, but it
doesn't apply explicit electrical properties like drive-strength and
bias-disable.

If the bootloader leaves a pull-up or pull-down resistor enabled on this GPIO,
could the GPIO output driver end up fighting it and causing constant power
leakage?

>  	wlan_en_state: wlan-default-state {
>  		pins = "gpio20";
>  		function = "gpio";

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/tencent_AEB4238D8669271E5C1CD19C2C61A45AD108@qq.com?part=1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: dts: qcom: sm8250-xiaomi-elish: Remove camera_front_active pinctrl
  2026-07-10  6:22 [PATCH] arm64: dts: qcom: sm8250-xiaomi-elish: Remove camera_front_active pinctrl Xin Xu
  2026-07-10  6:32 ` sashiko-bot
@ 2026-07-10  8:45 ` Konrad Dybcio
  2026-07-10 12:25   ` Xin Xu
  1 sibling, 1 reply; 4+ messages in thread
From: Konrad Dybcio @ 2026-07-10  8:45 UTC (permalink / raw)
  To: Xin Xu, andersson, konradybcio; +Cc: linux-arm-msm, devicetree, linux-kernel

On 7/10/26 8:22 AM, Xin Xu wrote:
> Remove the redundant camera_front_active pinctrl node, as its GPIO 109
> configuration duplicates the reset-gpios property.
> 
> Signed-off-by: Xin Xu <xxsemail@qq.com>
> ---

The reset-gpios property lets the kernel consume it as a GPIO.
The pinctrl state ensures the correct pinmux/pinconf properties
are applied.

Konrad

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: dts: qcom: sm8250-xiaomi-elish: Remove camera_front_active pinctrl
  2026-07-10  8:45 ` Konrad Dybcio
@ 2026-07-10 12:25   ` Xin Xu
  0 siblings, 0 replies; 4+ messages in thread
From: Xin Xu @ 2026-07-10 12:25 UTC (permalink / raw)
  To: konrad.dybcio
  Cc: andersson, devicetree, konradybcio, linux-arm-msm, linux-kernel,
	xxsemail

On Fri, 2026-07-10 at 10:45 +0200, Konrad Dybcio wrote:
> On 7/10/26 8:22 AM, Xin Xu wrote:
> > Remove the redundant camera_front_active pinctrl node, as its GPIO
> > 109
> > configuration duplicates the reset-gpios property.
> > 
> > Signed-off-by: Xin Xu <xxsemail@qq.com>
> > ---
> 
> The reset-gpios property lets the kernel consume it as a GPIO.
> The pinctrl state ensures the correct pinmux/pinconf properties
> are applied.
> 
> Konrad

Thanks for catching this. Since it worked fine in practice without the pinctrl,
I assumed it was redundant. I’ll drop the patch.

Xin Xu


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-07-10 12:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-10  6:22 [PATCH] arm64: dts: qcom: sm8250-xiaomi-elish: Remove camera_front_active pinctrl Xin Xu
2026-07-10  6:32 ` sashiko-bot
2026-07-10  8:45 ` Konrad Dybcio
2026-07-10 12:25   ` Xin Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox