From: David Heidelberg <[email protected]> Put clock pins configuration for camera master clock into the dtsi.
Reviewed-by: Vladimir Zapolskiy <[email protected]> Reviewed-by: Konrad Dybcio <[email protected]> Signed-off-by: David Heidelberg <[email protected]> --- Inspired by Richard's patch set for SDM670, I noticed that SDM845 follows the same pattern. This change prepares for enabling additional cameras. These pinctrl settings have been verified against the downstream SDM845 kernel. Since most of these are not yet used in mainline, testing was done on sdm845-next using OnePlus 6 cameras with downstream drivers. Thank you David --- Changes in v3: - Dropped 2nd patch ("arm64: dts: qcom: sdm845-db845c: Use pad fn instead of defining own") as there is no documentation or people who can answer questions for now, so we can move forward with the main camera work. - Link to v2: https://lore.kernel.org/r/[email protected] Changes in v2: - Added mclk3. (Vladimir) - Reword commit messages. - Corrected commit msg name. (Konrad) - Link to v1: https://lore.kernel.org/r/[email protected] --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 56 ++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index bf2f9c04adba7..c0f21a745fb0c 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -2805,6 +2805,62 @@ tlmm: pinctrl@3400000 { gpio-ranges = <&tlmm 0 0 151>; wakeup-parent = <&pdc_intc>; + cam_mclk0_default: cam-mclk0-default-state { + pins = "gpio13"; + function = "cam_mclk"; + drive-strength = <2>; + bias-disable; + }; + + cam_mclk0_sleep: cam-mclk0-sleep-state { + pins = "gpio13"; + function = "cam_mclk"; + drive-strength = <2>; + bias-pull-down; + }; + + cam_mclk1_default: cam-mclk1-default-state { + pins = "gpio14"; + function = "cam_mclk"; + drive-strength = <2>; + bias-disable; + }; + + cam_mclk1_sleep: cam-mclk1-sleep-state { + pins = "gpio14"; + function = "cam_mclk"; + drive-strength = <2>; + bias-pull-down; + }; + + cam_mclk2_default: cam-mclk2-default-state { + pins = "gpio15"; + function = "cam_mclk"; + drive-strength = <2>; + bias-disable; + }; + + cam_mclk2_sleep: cam-mclk2-sleep-state { + pins = "gpio15"; + function = "cam_mclk"; + drive-strength = <2>; + bias-pull-down; + }; + + cam_mclk3_default: cam-mclk3-default-state { + pins = "gpio16"; + function = "cam_mclk"; + drive-strength = <2>; + bias-disable; + }; + + cam_mclk3_sleep: cam-mclk3-sleep-state { + pins = "gpio16"; + function = "cam_mclk"; + drive-strength = <2>; + bias-pull-down; + }; + cci0_default: cci0-default-state { /* SDA, SCL */ pins = "gpio17", "gpio18"; --- base-commit: 0f853ca2a798ead9d24d39cad99b0966815c582a change-id: 20251213-sdm845-mclk-041f2a952e31 Best regards, -- David Heidelberg <[email protected]>

