[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250425-b4-media-committers-25-04-25-camss-supplies-v1-0-2a3dd3a47a6a@linaro.org>
Date: Fri, 25 Apr 2025 13:01:50 +0100
From: Bryan O'Donoghue <bryan.odonoghue@...aro.org>
To: Robert Foss <rfoss@...nel.org>, Todor Tomov <todor.too@...il.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>
Cc: dmitry.baryshkov@....qualcomm.com, loic.poulain@....qualcomm.com,
vladimir.zapolskiy@...aro.org, krzk@...nel.org,
linux-arm-msm@...r.kernel.org, linux-media@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
Bryan O'Donoghue <bryan.odonoghue@...aro.org>
Subject: [PATCH 0/2] media: qcom: camss: x1e80100: Add support for
individual CSIPHY supplies
In x1e each CSIPHY has its own 0p8 and 1p2 voltage rail. These voltage
rails in previous SoCs were shared between PHYs, over time the hardware
differentiated out the rails per PHY but CAMSS didn't keep-up with or know
about that change.
We have two options to support individual rails per PHY.
- Logical naming of the supply lines
In this case supply names describe the PHY and its expected voltage input
For example vdd-csiphy0-0p8-supply for the 0v8 voltage rail to CSIPHY 0.
- Pin naming of the supply lines
In this case supply names will align to the name of the SoC pin.
For example on x1e the supply name would be vdd vdd-a-csi-0-1-1p2.
This series chooses the first approach for the following reasons:
- Naming coherency across SoCs and PCBs.
Virtually every CSIPHY has 0p8 and 1p2 voltage rails and these are akin
to an architectural feature of these PHYs or at the very least a common
pattern across SoCs.
This means that the pin name on x1e might be VDD_A_CSI_0_1_1P2 and on
qcm2290 VDD_A_CSI_0_1P2 but the yaml standard will be for the regulator
name to be vdd-csiphy0-1p2-supply.
- Accounting for upstreamers who don't have schematic or qcom IP access
Not everybody making upstream submissions has access to schematics or to
Qualcomm's SoC-level pin definitions instead working from
vendor/downstream DT information.
It should still be possible to construct a valid upstream definition from
that downstream DT.
- The counter arugment.
The counter argument is that aligning the pin-names to the regulator
names is less error prone and I agree with that statement.
What I'd say here is - the requirement for CAMSS regulator defintions
in DT at least from my perspective is a putative upstreamer should
be able to show how they have tested a given DT submission.
If that submission isn't tested, it isn't working and should be rejected.
That should then address the concern of having as another example:
vdd-csiphy0-0p8-supply = <&vreg_oops_wrong_regulator>;
I'm promulgating this series in the context of x1e but it should also
unblock qcm2290 and sm8650.
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@...aro.org>
---
Bryan O'Donoghue (2):
dt-bindings: media: qcom,x1e80100-camss: Fixup csiphy supply names
media: qcom: camss: x1e80100: Fixup x1e csiphy supply names
.../bindings/media/qcom,x1e80100-camss.yaml | 52 +++++++++++++++++-----
drivers/media/platform/qcom/camss/camss.c | 16 +++----
2 files changed, 48 insertions(+), 20 deletions(-)
---
base-commit: 1d1e564fce1bc361af1a1980a7f915a0475a008a
change-id: 20250425-b4-media-committers-25-04-25-camss-supplies-6285c5006da2
Best regards,
--
Bryan O'Donoghue <bryan.odonoghue@...aro.org>
Powered by blists - more mailing lists