Re: [PATCH v6 2/5] dt-bindings: media: Add qcom,x1e80100-camss

From: Vladimir Zapolskiy
Date: Thu Apr 24 2025 - 07:01:45 EST


On 4/24/25 13:17, Bryan O'Donoghue wrote:
On 24/04/2025 11:07, Krzysztof Kozlowski wrote:
On 24/04/2025 11:34, Bryan O'Donoghue wrote:
On 24/04/2025 07:40, Krzysztof Kozlowski wrote:
+ vdd-csiphy-0p8-supply:
Same comment as other series on the lists - this is wrong name. There
are no pins named like this and all existing bindings use different name.

The existing bindings are unfortunately not granular enough.

I'll post s series to capture pin-names per the SoC pinout shortly.
How are the pins/supplies actually called?

Best regards,
Krzysztof

I don't think strictly algning to pin-names is what we want.

Here are the input pins

VDD_A_CSI_0_1_1P2
VDD_A_CSI_2_4_1P2
VDD_A_CSI_0_1_0P9
VDD_A_CSI_2_4_0P9

I think the right way to represent this

yaml:
csiphy0-1p2-supply
csiphy1-1p2-supply
csiphy2-1p2-supply
csiphy3-1p2-supply

dts:

vdd-csiphy0-0p9-supply = <&vreg_l2c_0p8>;
vdd-csiphy1-0p9-supply = <&vreg_l2c_0p8>;

etc

vdda-csiphy0-1p2-supply = <&vreg_l1c_1p2>;

because that captures the fact we could have separate lines for each
phy, names it generically and then leaves it up to the dts
implementation to represent what actually happened on the PCB.

That would also work for qcm2290 and sm8650.

https://lore.kernel.org/linux-arm-msm/20250423221954.1926453-2-vladimir.zapolskiy@xxxxxxxxxx/

So for sm8650 instead of

+ vdda-csi01-0p9-supply:
+
+ vdda-csi24-0p9-supply:
+
+ vdda-csi35-0p9-supply:
+
+ vdda-csi01-1p2-supply:
+
+ vdda-csi24-1p2-supply:
+
+ vdda-csi35-1p2-supply:

you would have

+ vdda-csiphy0-0p9-supply:
+
+ vdda-csiphy1-0p9-supply:

+ vdda-csiphy0-1p2-supply:
+
+ vdda-csiphy1-1p2-supply:


This option will work for SM8650, if the list of the given 6 supplies,
where one supply property represens a pad to power up two CSIPHYs, is
extended to the list of 12 supplies, one for each individual CSIPHY.

Both options will be technically equivalent/correct, an alternative
one is just two times longer.

I would appreciate to get a maintainer's decision here.

--
Best wishes,
Vladimir