Add dt-bindings and dtsi changes for CAMSS on IQ-9075-evk
Subsystems (8)
cover Add dt-bindings and dtsi changes for CAMSS on IQ-9075-evk
This series adds dt-bindings and dtsi for CAMSS on IQ-9075-evk.
QCS9075 is compatible IoT-industrial grade variant of SA8775p SoC.
The IQ-9075-evk board has 4 CSI interfaces.
This change only enables the third camera interface with the imx577 sensor.
---
This patch series depends on patch series:
https://lore.kernel.org/all/[email protected]
https://lore.kernel.org/all/[email protected]
https://lore.kernel.org/all/[email protected]
---
---
Wenmeng Liu (4):
dt-bindings: media: camss: Add supplies for qcom,sa8775p-camss binding
dt-bindings: media: Add sa8775p cci dt binding
arm64: dts: qcom: sa8775p: Add CCI definitions
arm64: dts: qcom: qcs9075-rb8: Enable IMX577 camera sensor
.../devicetree/bindings/i2c/qcom,i2c-cci.yaml | 2 + .../bindings/media/qcom,sa8775p-camss.yaml | 13 + arch/arm64/boot/dts/qcom/qcs9075-iq-9075-evk.dts | 110 ++++++ arch/arm64/boot/dts/qcom/sa8775p.dtsi | 400 +++++++++++++++++++++ 4 files changed, 525 insertions(+)
---
base-commit: c77f0b49aeee66efb17322db16934f21c7eacb81
change-id: 20250514-rb8_camera-7694fd69b448
Best regards,
Signature · 1 line
Wenmeng Liu <[email protected]>
PATCH 1/4 dt-bindings: media: camss: Add supplies for qcom,sa8775p-camss binding
Add supplies bindings for qcom,sa8775p-camss.
--- .../devicetree/bindings/media/qcom,sa8775p-camss.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+)
Documentation/devicetree/bindings/media/qcom,sa8775p-camss.yaml +13 -0
@@ -125,6 +125,14 @@ properties: items: - const: top + vdda-phy-supply: + description: + Phandle to a regulator supply to PHY core block. + + vdda-pll-supply: + description: + Phandle to 1.8V regulator supply to PHY refclk pll block. + ports: $ref: /schemas/graph.yaml#/properties/ports
@@ -164,6 +172,8 @@ required: - iommus - power-domains - power-domain-names + - vdda-phy-supply + - vdda-pll-supply additionalProperties: false
@@ -343,6 +353,9 @@ examples: power-domains = <&camcc CAM_CC_TITAN_TOP_GDSC>; power-domain-names = "top"; + vdda-phy-supply = <&vreg_l4a_0p88>; + vdda-pll-supply = <&vreg_l1c_1p2>; + ports { #address-cells = <1>; #size-cells = <0>;
Signature · 1 line
2.34.1
Bryan O'Donoghue
maintainerRe: [PATCH 1/4] dt-bindings: media: camss: Add supplies for qcom,sa8775p-camss binding
Quoted 37 lines · Wenmeng Liu
Add supplies bindings for qcom,sa8775p-camss.
Signed-off-by Wenmeng Liu <[email protected]>--- .../devicetree/bindings/media/qcom,sa8775p-camss.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+)Documentation/devicetree/bindings/media/qcom,sa8775p-camss.yaml +10
-0@@ -125,6 +125,14 @@ properties: items: - const: top + vdda-phy-supply: + description: + Phandle to a regulator supply to PHY core block. + + vdda-pll-supply: + description: + Phandle to 1.8V regulator supply to PHY refclk pll block. + ports: $ref: /schemas/graph.yaml#/properties/ports@@ -164,6 +172,8 @@ required: - iommus - power-domains - power-domain-names + - vdda-phy-supply + - vdda-pll-supply additionalProperties: false
Documentation/devicetree/bindings/media/qcom,sa8775p-camss.yaml examples: · line 361
Quoted 9 lines
Documentation/devicetree/bindings/media/qcom,sa8775p-camss.yaml +3
-0@@ -343,6 +353,9 @@ examples: power-domains = <&camcc CAM_CC_TITAN_TOP_GDSC>; power-domain-names = "top"; + vdda-phy-supply = <&vreg_l4a_0p88>; + vdda-pll-supply = <&vreg_l1c_1p2>; + ports { #address-cells = <1>; #size-cells = <0>;
You can drop this from your next submission.
We are fixing the PHY schema to give a 1:1 relationship between PHYs and their associated rails.
---
bod
PATCH 2/4 dt-bindings: media: Add sa8775p cci dt binding
In reply to Wenmeng LiuAdd sa8775p cci i2c support in dt-binding documentation.
--- Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml +2 -0
@@ -25,6 +25,7 @@ properties: - items: - enum: + - qcom,sa8775p-cci - qcom,sc7280-cci - qcom,sc8280xp-cci - qcom,sdm670-cci
@@ -184,6 +185,7 @@ allOf: compatible: contains: enum: + - qcom,sa8775p-cci - qcom,sc7280-cci - qcom,sm8250-cci - qcom,sm8450-cci
Signature · 1 line
2.34.1
Re: [PATCH 2/4] dt-bindings: media: Add sa8775p cci dt binding
Quoted 21 lines · Wenmeng Liu
Add sa8775p cci i2c support in dt-binding documentation.
Signed-off-by Wenmeng Liu <[email protected]>--- Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml | 2 ++ 1 file changed, 2 insertions(+)Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml +1
-0@@ -25,6 +25,7 @@ properties: - items: - enum: + - qcom,sa8775p-cci - qcom,sc7280-cci - qcom,sc8280xp-cci - qcom,sdm670-cci
Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml allOf: · line 191
Quoted 7 lines
Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml +1
-0@@ -184,6 +185,7 @@ allOf: compatible: contains: enum: + - qcom,sa8775p-cci - qcom,sc7280-cci - qcom,sm8250-cci - qcom,sm8450-cci
Re: [PATCH 2/4] dt-bindings: media: Add sa8775p cci dt binding
In reply to Wenmeng Liu$subject is wrong mentioning "media" instead of "i2c"
PATCH 3/4 arm64: dts: qcom: sa8775p: Add CCI definitions
In reply to Wenmeng LiuQualcomm SA8775P SoC contains 4 Camera Control Interface controllers.
--- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 268 ++++++++++++++++++++++++++++++++++ 1 file changed, 268 insertions(+)
arch/arm64/boot/dts/qcom/sa8775p.dtsi +268 -0
@@ -3941,6 +3941,162 @@ videocc: clock-controller@abf0000 { #power-domain-cells = <1>; }; + cci0: cci@ac13000 { + compatible = "qcom,sa8775p-cci", "qcom,msm8996-cci"; + #address-cells = <1>; + #size-cells = <0>; + + reg = <0x0 0xac13000 0x0 0x1000>; + interrupts = <GIC_SPI 460 IRQ_TYPE_EDGE_RISING>; + power-domains = <&camcc CAM_CC_TITAN_TOP_GDSC>; + clocks = <&camcc CAM_CC_CAMNOC_AXI_CLK>, + <&camcc CAM_CC_SLOW_AHB_CLK_SRC>, + <&camcc CAM_CC_CPAS_AHB_CLK>, + <&camcc CAM_CC_CCI_0_CLK>, + <&camcc CAM_CC_CCI_0_CLK_SRC>; + clock-names = "camnoc_axi", + "slow_ahb_src", + "cpas_ahb", + "cci", + "cci_src"; + pinctrl-0 = <&cci0_0_default &cci0_1_default>; + pinctrl-1 = <&cci0_0_sleep &cci0_1_sleep>; + pinctrl-names = "default", "sleep"; + + status = "disabled"; + + cci0_i2c0: i2c-bus@0 { + reg = <0>; + clock-frequency = <1000000>; + #address-cells = <1>; + #size-cells = <0>; + }; + + cci0_i2c1: i2c-bus@1 { + reg = <1>; + clock-frequency = <1000000>; + #address-cells = <1>; + #size-cells = <0>; + }; + }; + + cci1: cci@ac14000 { + compatible = "qcom,sa8775p-cci", "qcom,msm8996-cci"; + #address-cells = <1>; + #size-cells = <0>; + + reg = <0x0 0xac14000 0x0 0x1000>; + interrupts = <GIC_SPI 271 IRQ_TYPE_EDGE_RISING>; + power-domains = <&camcc CAM_CC_TITAN_TOP_GDSC>; + clocks = <&camcc CAM_CC_CAMNOC_AXI_CLK>, + <&camcc CAM_CC_SLOW_AHB_CLK_SRC>, + <&camcc CAM_CC_CPAS_AHB_CLK>, + <&camcc CAM_CC_CCI_1_CLK>, + <&camcc CAM_CC_CCI_1_CLK_SRC>; + clock-names = "camnoc_axi", + "slow_ahb_src", + "cpas_ahb", + "cci", + "cci_src"; + pinctrl-0 = <&cci1_0_default &cci1_1_default>; + pinctrl-1 = <&cci1_0_sleep &cci1_1_sleep>; + pinctrl-names = "default", "sleep"; + + status = "disabled"; + + cci1_i2c0: i2c-bus@0 { + reg = <0>; + clock-frequency = <1000000>; + #address-cells = <1>; + #size-cells = <0>; + }; + + cci1_i2c1: i2c-bus@1 { + reg = <1>; + clock-frequency = <1000000>; + #address-cells = <1>; + #size-cells = <0>; + }; + }; + + cci2: cci@ac15000 { + compatible = "qcom,sa8775p-cci", "qcom,msm8996-cci"; + #address-cells = <1>; + #size-cells = <0>; + + reg = <0x0 0xac15000 0x0 0x1000>; + interrupts = <GIC_SPI 651 IRQ_TYPE_EDGE_RISING>; + power-domains = <&camcc CAM_CC_TITAN_TOP_GDSC>; + clocks = <&camcc CAM_CC_CAMNOC_AXI_CLK>, + <&camcc CAM_CC_SLOW_AHB_CLK_SRC>, + <&camcc CAM_CC_CPAS_AHB_CLK>, + <&camcc CAM_CC_CCI_2_CLK>, + <&camcc CAM_CC_CCI_2_CLK_SRC>; + clock-names = "camnoc_axi", + "slow_ahb_src", + "cpas_ahb", + "cci", + "cci_src"; + pinctrl-0 = <&cci2_0_default &cci2_1_default>; + pinctrl-1 = <&cci2_0_sleep &cci2_1_sleep>; + pinctrl-names = "default", "sleep"; + + status = "disabled"; + + cci2_i2c0: i2c-bus@0 { + reg = <0>; + clock-frequency = <1000000>; + #address-cells = <1>; + #size-cells = <0>; + }; + + cci2_i2c1: i2c-bus@1 { + reg = <1>; + clock-frequency = <1000000>; + #address-cells = <1>; + #size-cells = <0>; + }; + }; + + cci3: cci@ac16000 { + compatible = "qcom,sa8775p-cci", "qcom,msm8996-cci"; + #address-cells = <1>; + #size-cells = <0>; + + reg = <0x0 0xac16000 0x0 0x1000>; + interrupts = <GIC_SPI 771 IRQ_TYPE_EDGE_RISING>; + power-domains = <&camcc CAM_CC_TITAN_TOP_GDSC>; + clocks = <&camcc CAM_CC_CAMNOC_AXI_CLK>, + <&camcc CAM_CC_SLOW_AHB_CLK_SRC>, + <&camcc CAM_CC_CPAS_AHB_CLK>, + <&camcc CAM_CC_CCI_3_CLK>, + <&camcc CAM_CC_CCI_3_CLK_SRC>; + clock-names = "camnoc_axi", + "slow_ahb_src", + "cpas_ahb", + "cci", + "cci_src"; + pinctrl-0 = <&cci3_0_default &cci3_1_default>; + pinctrl-1 = <&cci3_0_sleep &cci3_1_sleep>; + pinctrl-names = "default", "sleep"; + + status = "disabled"; + + cci3_i2c0: i2c-bus@0 { + reg = <0>; + clock-frequency = <1000000>; + #address-cells = <1>; + #size-cells = <0>; + }; + + cci3_i2c1: i2c-bus@1 { + reg = <1>; + clock-frequency = <1000000>; + #address-cells = <1>; + #size-cells = <0>; + }; + }; + camss: isp@ac7a000 { compatible = "qcom,sa8775p-camss";
@@ -4599,6 +4755,118 @@ tlmm: pinctrl@f000000 { #interrupt-cells = <2>; gpio-ranges = <&tlmm 0 0 149>; wakeup-parent = <&pdc>; + + cci0_0_default: cci0-0-default-state { + pins = "gpio60", "gpio61"; + function = "cci_i2c"; + drive-strength = <2>; + bias-pull-up = <2200>; + }; + + cci0_0_sleep: cci0-0-sleep-state { + pins = "gpio60", "gpio61"; + function = "cci_i2c"; + drive-strength = <2>; + bias-pull-down; + }; + + cci0_1_default: cci0-1-default-state { + pins = "gpio52", "gpio53"; + function = "cci_i2c"; + drive-strength = <2>; + bias-pull-up = <2200>; + }; + + cci0_1_sleep: cci0-1-sleep-state { + pins = "gpio52", "gpio53"; + function = "cci_i2c"; + drive-strength = <2>; + bias-pull-down; + }; + + cci1_0_default: cci1-0-default-state { + pins = "gpio62", "gpio63"; + function = "cci_i2c"; + drive-strength = <2>; + bias-pull-up = <2200>; + }; + + cci1_0_sleep: cci1-0-sleep-state { + pins = "gpio62", "gpio63"; + function = "cci_i2c"; + drive-strength = <2>; + bias-pull-down; + }; + + cci1_1_default: cci1-1-default-state { + pins = "gpio54", "gpio55"; + function = "cci_i2c"; + drive-strength = <2>; + bias-pull-up = <2200>; + }; + + cci1_1_sleep: cci1-1-sleep-state { + pins = "gpio54", "gpio55"; + function = "cci_i2c"; + drive-strength = <2>; + bias-pull-down; + }; + + cci2_0_default: cci2-0-default-state { + pins = "gpio64", "gpio65"; + function = "cci_i2c"; + drive-strength = <2>; + bias-pull-up = <2200>; + }; + + cci2_0_sleep: cci2-0-sleep-state { + pins = "gpio64", "gpio65"; + function = "cci_i2c"; + drive-strength = <2>; + bias-pull-down; + }; + + cci2_1_default: cci2-1-default-state { + pins = "gpio56", "gpio57"; + function = "cci_i2c"; + drive-strength = <2>; + bias-pull-up = <2200>; + }; + + cci2_1_sleep: cci2-1-sleep-state { + pins = "gpio56", "gpio57"; + function = "cci_i2c"; + drive-strength = <2>; + bias-pull-down; + }; + + cci3_0_default: cci3-0-default-state { + pins = "gpio66", "gpio67"; + function = "cci_i2c"; + drive-strength = <2>; + bias-pull-up = <2200>; + }; + + cci3_0_sleep: cci3-0-sleep-state { + pins = "gpio66", "gpio67"; + function = "cci_i2c"; + drive-strength = <2>; + bias-pull-down; + }; + + cci3_1_default: cci3-1-default-state { + pins = "gpio58", "gpio59"; + function = "cci_i2c"; + drive-strength = <2>; + bias-pull-up = <2200>; + }; + + cci3_1_sleep: cci3-1-sleep-state { + pins = "gpio58", "gpio59"; + function = "cci_i2c"; + drive-strength = <2>; + bias-pull-down; + }; }; sram: sram@146d8000 {
Signature · 1 line
2.34.1
Bryan O'Donoghue
maintainerRe: [PATCH 3/4] arm64: dts: qcom: sa8775p: Add CCI definitions
Quoted 12 lines · Wenmeng Liu
Qualcomm SA8775P SoC contains 4 Camera Control Interface controllers.
Signed-off-by Wenmeng Liu <[email protected]>--- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 268 ++++++++++++++++++++++++++++++++++ 1 file changed, 268 insertions(+)arch/arm64/boot/dts/qcom/sa8775p.dtsi +0
-0
arch/arm64/boot/dts/qcom/sa8775p.dtsi videocc: clock-controller@abf0000 { · line 3947
Quoted 7 lines
arch/arm64/boot/dts/qcom/sa8775p.dtsi +4
-0@@ -3941,6 +3941,162 @@ videocc: clock-controller@abf0000 { #power-domain-cells = <1>; }; + cci0: cci@ac13000 { + compatible = "qcom,sa8775p-cci", "qcom,msm8996-cci"; + #address-cells = <1>; + #size-cells = <0>;
The ordering here is not consistent with upstream. Please stick to that for your examples:
arch/arm64/boot/dts/qcom/sc8280xp.dtsi Documentation/devicetree/bindings/dts-coding-style.rst
---
bod
Re: [PATCH 3/4] arm64: dts: qcom: sa8775p: Add CCI definitions
In reply to Wenmeng LiuQuoted 12 lines · Wenmeng Liu
Qualcomm SA8775P SoC contains 4 Camera Control Interface controllers.
Signed-off-by Wenmeng Liu <[email protected]>--- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 268 ++++++++++++++++++++++++++++++++++ 1 file changed, 268 insertions(+)arch/arm64/boot/dts/qcom/sa8775p.dtsi +0
-0
arch/arm64/boot/dts/qcom/sa8775p.dtsi videocc: clock-controller@abf0000 { · line 3947
Quoted 7 lines
arch/arm64/boot/dts/qcom/sa8775p.dtsi +4
-0@@ -3941,6 +3941,162 @@ videocc: clock-controller@abf0000 { #power-domain-cells = <1>; }; + cci0: cci@ac13000 { + compatible = "qcom,sa8775p-cci", "qcom,msm8996-cci"; + #address-cells = <1>; + #size-cells = <0>;
put these two above status, please
arch/arm64/boot/dts/qcom/sa8775p.dtsi videocc: clock-controller@abf0000 { · line 3949
Quoted 2 lines
arch/arm64/boot/dts/qcom/sa8775p.dtsi +2
-0+ + reg = <0x0 0xac13000 0x0 0x1000>;
0x0ac13000 so that it's nicely paddded to 8 hex digits
arch/arm64/boot/dts/qcom/sa8775p.dtsi videocc: clock-controller@abf0000 { · line 3956
Quoted 7 lines
arch/arm64/boot/dts/qcom/sa8775p.dtsi +7
-0+ interrupts = <GIC_SPI 460 IRQ_TYPE_EDGE_RISING>; + power-domains = <&camcc CAM_CC_TITAN_TOP_GDSC>; + clocks = <&camcc CAM_CC_CAMNOC_AXI_CLK>, + <&camcc CAM_CC_SLOW_AHB_CLK_SRC>, + <&camcc CAM_CC_CPAS_AHB_CLK>, + <&camcc CAM_CC_CCI_0_CLK>, + <&camcc CAM_CC_CCI_0_CLK_SRC>;
Only CCI_0 and the SLOW_AHB clocks should be necessary
[...]
arch/arm64/boot/dts/qcom/sa8775p.dtsi tlmm: pinctrl@f000000 { · line 4763
Quoted 5 lines
arch/arm64/boot/dts/qcom/sa8775p.dtsi +5
-0+ cci0_0_default: cci0-0-default-state { + pins = "gpio60", "gpio61"; + function = "cci_i2c"; + drive-strength = <2>; + bias-pull-up = <2200>;
Please set your editor's tab width to 8 spaces
Konrad
PATCH 4/4 arm64: dts: qcom: qcs9075-rb8: Enable IMX577 camera sensor
In reply to Wenmeng LiuThe qcs9075-iq-9075-evk board has 4 camera CSI interfaces. Enable the third interface with an imx577 sensor for qcs9075-iq-9075-evk.
An example media-ctl pipeline for the imx577 is:
media-ctl --reset
media-ctl -V '"imx577 '0-001a'":0[fmt:SRGGB10/4056x3040 field:none]' media-ctl -V '"msm_csiphy3":0[fmt:SRGGB10/4056x3040]' media-ctl -V '"msm_csid0":0[fmt:SRGGB10/4056x3040]' media-ctl -V '"msm_vfe0_rdi0":0[fmt:SRGGB10/4056x3040]' media-ctl -l '"msm_csiphy3":1->"msm_csid0":0[1]' media-ctl -l '"msm_csid0":1->"msm_vfe0_rdi0":0[1]'
yavta -B capture-mplane -c -I -n 5 -f SRGGB10P -s 4056x3040 -F /dev/video0
--- arch/arm64/boot/dts/qcom/qcs9075-iq-9075-evk.dts | 110 +++++++++++++++++++ arch/arm64/boot/dts/qcom/sa8775p.dtsi | 132 +++++++++++++++++++++++ 2 files changed, 242 insertions(+)
arch/arm64/boot/dts/qcom/qcs9075-iq-9075-evk.dts +110 -0
@@ -20,6 +20,38 @@ aliases { chosen { stdout-path = "serial0:115200n8"; }; + + vreg_cam0_1p8: vreg_cam0_1p8 { + compatible = "regulator-fixed"; + regulator-name = "vreg_cam0_1p8"; + startup-delay-us = <10000>; + enable-active-high; + gpio = <&pmm8654au_0_gpios 7 GPIO_ACTIVE_HIGH>; + }; + + vreg_cam1_1p8: vreg_cam1_1p8 { + compatible = "regulator-fixed"; + regulator-name = "vreg_cam1_1p8"; + startup-delay-us = <10000>; + enable-active-high; + gpio = <&pmm8654au_0_gpios 8 GPIO_ACTIVE_HIGH>; + }; + + vreg_cam2_1p8: vreg_cam2_1p8 { + compatible = "regulator-fixed"; + regulator-name = "vreg_cam2_1p8"; + startup-delay-us = <10000>; + enable-active-high; + gpio = <&pmm8654au_0_gpios 9 GPIO_ACTIVE_HIGH>; + }; + + vreg_cam3_1p8: vreg_cam3_1p8 { + compatible = "regulator-fixed"; + regulator-name = "vreg_cam3_1p8"; + startup-delay-us = <10000>; + enable-active-high; + gpio = <&pmm8654au_0_gpios 10 GPIO_ACTIVE_HIGH>; + }; }; &apps_rsc {
@@ -241,6 +273,84 @@ vreg_l8e: ldo8 { }; }; +&camcc { + status = "okay"; +}; + +&camss { + vdda-pll-supply = <&vreg_l1c>; + vdda-phy-supply = <&vreg_l4a>; + + status = "okay"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@3 { + reg = <3>; + csiphy3_ep: endpoint { + clock-lanes = <7>; + data-lanes = <0 1 2 3>; + remote-endpoint = <&imx577_ep3>; + }; + }; + }; +}; + +&cci0 { + status = "disabled"; + pinctrl-0 = <&cci0_0_default>; + pinctrl-1 = <&cci0_0_sleep>; +}; + +&cci1 { + status = "disabled"; + pinctrl-0 = <&cci1_0_default>; + pinctrl-1 = <&cci1_0_sleep>; +}; + +&cci2 { + status = "disabled"; + pinctrl-0 = <&cci2_0_default>; + pinctrl-1 = <&cci2_0_sleep>; +}; + +&cci3 { + status = "okay"; + pinctrl-0 = <&cci3_0_default>; + pinctrl-1 = <&cci3_0_sleep>; +}; + +&cci3_i2c0 { + camera@1a { + compatible = "sony,imx577"; + reg = <0x1a>; + + reset-gpios = <&tlmm 135 GPIO_ACTIVE_LOW>; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&cam3_default>; + pinctrl-1 = <&cam3_suspend>; + + clocks = <&camcc CAM_CC_MCLK3_CLK>; + assigned-clocks = <&camcc CAM_CC_MCLK3_CLK>; + assigned-clock-rates = <24000000>; + + dovdd-supply = <&vreg_s4a>; + avdd-supply = <&vreg_cam3_1p8>; + /* dvdd-supply = <&vdc_5v>; */ + + port { + imx577_ep3: endpoint { + clock-lanes = <7>; + link-frequencies = /bits/ 64 <600000000>; + data-lanes = <0 1 2 3>; + remote-endpoint = <&csiphy3_ep>; + }; + }; + }; +}; + &qupv3_id_1 { status = "okay"; };
arch/arm64/boot/dts/qcom/sa8775p.dtsi +132 -0
138 lines not on this page · raw message
Signature · 1 line
2.34.1
Bryan O'Donoghue
maintainerRe: [PATCH 4/4] arm64: dts: qcom: qcs9075-rb8: Enable IMX577 camera sensor
Quoted 52 lines · Wenmeng Liu
The qcs9075-iq-9075-evk board has 4 camera CSI interfaces. Enable the third interface with an imx577 sensor for qcs9075-iq-9075-evk.
An example media-ctl pipeline for the imx577 is:
media-ctl --reset
media-ctl -V '"imx577 '0-001a'":0[fmt:SRGGB10/4056x3040 field:none]' media-ctl -V '"msm_csiphy3":0[fmt:SRGGB10/4056x3040]' media-ctl -V '"msm_csid0":0[fmt:SRGGB10/4056x3040]' media-ctl -V '"msm_vfe0_rdi0":0[fmt:SRGGB10/4056x3040]' media-ctl -l '"msm_csiphy3":1->"msm_csid0":0[1]' media-ctl -l '"msm_csid0":1->"msm_vfe0_rdi0":0[1]'yavta -B capture-mplane -c -I -n 5 -f SRGGB10P -s 4056x3040 -F
/dev/video0Signed-off-by Wenmeng Liu <[email protected]>--- arch/arm64/boot/dts/qcom/qcs9075-iq-9075-evk.dts | 110 +++++++++++++++++++ arch/arm64/boot/dts/qcom/sa8775p.dtsi | 132 +++++++++++++++++++++++ 2 files changed, 242 insertions(+)arch/arm64/boot/dts/qcom/qcs9075-iq-9075-evk.dts +23
-0@@ -20,6 +20,38 @@ aliases { chosen { stdout-path = "serial0:115200n8"; }; + + vreg_cam0_1p8: vreg_cam0_1p8 { + compatible = "regulator-fixed"; + regulator-name = "vreg_cam0_1p8"; + startup-delay-us = <10000>; + enable-active-high; + gpio = <&pmm8654au_0_gpios 7 GPIO_ACTIVE_HIGH>; + }; + + vreg_cam1_1p8: vreg_cam1_1p8 { + compatible = "regulator-fixed"; + regulator-name = "vreg_cam1_1p8"; + startup-delay-us = <10000>; + enable-active-high; + gpio = <&pmm8654au_0_gpios 8 GPIO_ACTIVE_HIGH>; + }; + + vreg_cam2_1p8: vreg_cam2_1p8 { + compatible = "regulator-fixed"; + regulator-name = "vreg_cam2_1p8"; + startup-delay-us = <10000>; + enable-active-high; + gpio = <&pmm8654au_0_gpios 9 GPIO_ACTIVE_HIGH>;
arch/arm64/boot/dts/qcom/qcs9075-iq-9075-evk.dts aliases { · line 55
Quoted 10 lines
arch/arm64/boot/dts/qcom/qcs9075-iq-9075-evk.dts +9
-0+ }; + + vreg_cam3_1p8: vreg_cam3_1p8 { + compatible = "regulator-fixed"; + regulator-name = "vreg_cam3_1p8"; + startup-delay-us = <10000>; + enable-active-high; + gpio = <&pmm8654au_0_gpios 10 GPIO_ACTIVE_HIGH>; + }; };
I would submit the regulators as a separate patch - especially because you only use 1/4 of the regulators you are adding here.
That in itself deserves a commit log explanation.
Quoted 43 lines
arch/arm64/boot/dts/qcom/qcs9075-iq-9075-evk.dts +38
-0&apps_rsc {@@ -241,6 +273,84 @@ vreg_l8e: ldo8 { }; }; +&camcc { + status = "okay"; +}; + +&camss { + vdda-pll-supply = <&vreg_l1c>; + vdda-phy-supply = <&vreg_l4a>; + + status = "okay"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@3 { + reg = <3>; + csiphy3_ep: endpoint { + clock-lanes = <7>; + data-lanes = <0 1 2 3>; + remote-endpoint = <&imx577_ep3>; + }; + }; + }; +}; + +&cci0 { + status = "disabled"; + pinctrl-0 = <&cci0_0_default>; + pinctrl-1 = <&cci0_0_sleep>; +}; + +&cci1 { + status = "disabled"; + pinctrl-0 = <&cci1_0_default>; + pinctrl-1 = <&cci1_0_sleep>; +}; + +&cci2 {
arch/arm64/boot/dts/qcom/qcs9075-iq-9075-evk.dts vreg_l8e: ldo8 { · line 323
Quoted 10 lines
arch/arm64/boot/dts/qcom/qcs9075-iq-9075-evk.dts +10
-0+ status = "disabled"; + pinctrl-0 = <&cci2_0_default>; + pinctrl-1 = <&cci2_0_sleep>; +}; + +&cci3 { + status = "okay"; + pinctrl-0 = <&cci3_0_default>; + pinctrl-1 = <&cci3_0_sleep>; +};
You should only have to enable the bus you are using..
Quoted 8 lines
arch/arm64/boot/dts/qcom/qcs9075-iq-9075-evk.dts +8
-0+ +&cci3_i2c0 { + camera@1a { + compatible = "sony,imx577"; + reg = <0x1a>; + + reset-gpios = <&tlmm 135 GPIO_ACTIVE_LOW>; + pinctrl-names = "default", "suspend";
arch/arm64/boot/dts/qcom/qcs9075-iq-9075-evk.dts vreg_l8e: ldo8 { · line 341
Quoted 10 lines
arch/arm64/boot/dts/qcom/qcs9075-iq-9075-evk.dts +10
-0+ pinctrl-0 = <&cam3_default>; + pinctrl-1 = <&cam3_suspend>; + + clocks = <&camcc CAM_CC_MCLK3_CLK>; + assigned-clocks = <&camcc CAM_CC_MCLK3_CLK>; + assigned-clock-rates = <24000000>; + + dovdd-supply = <&vreg_s4a>; + avdd-supply = <&vreg_cam3_1p8>; + /* dvdd-supply = <&vdc_5v>; */
Either include vdc_5v or drop the comment.
Quoted 149 lines
arch/arm64/boot/dts/qcom/qcs9075-iq-9075-evk.dts +12
-0+ + port { + imx577_ep3: endpoint { + clock-lanes = <7>; + link-frequencies = /bits/ 64 <600000000>; + data-lanes = <0 1 2 3>; + remote-endpoint = <&csiphy3_ep>; + }; + }; + }; +}; + &qupv3_id_1 { status = "okay"; };arch/arm64/boot/dts/qcom/sa8775p.dtsi +125
-0@@ -4756,6 +4756,138 @@ tlmm: pinctrl@f000000 { gpio-ranges = <&tlmm 0 0 149>; wakeup-parent = <&pdc>; + cam0_default: cam0-default { + mclk { + pins = "gpio72"; + function = "cam_mclk"; + drive-strength = <2>; + bias-disable; + }; + + rst { + pins = "gpio132"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + }; + + cam0_suspend: cam0-suspend { + mclk { + pins = "gpio72"; + function = "cam_mclk"; + drive-strength = <2>; + bias-disable; + }; + + rst { + pins = "gpio132"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + output-low; + }; + }; + + cam1_default: cam1-default { + mclk { + pins = "gpio73"; + function = "cam_mclk"; + drive-strength = <2>; + bias-disable; + }; + + rst { + pins = "gpio133"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + }; + + cam1_suspend: cam1-suspend { + mclk { + pins = "gpio73"; + function = "cam_mclk"; + drive-strength = <2>; + bias-disable; + }; + + rst { + pins = "gpio133"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + output-low; + }; + }; + + cam2_default: cam2-default { + mclk { + pins = "gpio74"; + function = "cam_mclk"; + drive-strength = <2>; + bias-disable; + }; + + rst { + pins = "gpio134"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + }; + + cam2_suspend: cam2-suspend { + mclk { + pins = "gpio74"; + function = "cam_mclk"; + drive-strength = <2>; + bias-disable; + }; + + rst { + pins = "gpio134"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + output-low; + }; + }; + + cam3_default: cam3-default { + mclk { + pins = "gpio75"; + function = "cam_mclk"; + drive-strength = <2>; + bias-disable; + }; + + rst { + pins = "gpio135"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + }; + + cam3_suspend: cam3-suspend { + mclk { + pins = "gpio75"; + function = "cam_mclk"; + drive-strength = <2>; + bias-disable; + }; + + rst { + pins = "gpio135";
arch/arm64/boot/dts/qcom/sa8775p.dtsi tlmm: pinctrl@f000000 { · line 4893
Quoted 10 lines
arch/arm64/boot/dts/qcom/sa8775p.dtsi +7
-0+ function = "gpio"; + drive-strength = <2>; + bias-pull-down; + output-low; + }; + }; + cci0_0_default: cci0-0-default-state { pins = "gpio60", "gpio61"; function = "cci_i2c";
---
bod
Re: [PATCH 4/4] arm64: dts: qcom: qcs9075-rb8: Enable IMX577 camera sensor
In reply to Wenmeng LiuQuoted 17 lines · Wenmeng Liu
The qcs9075-iq-9075-evk board has 4 camera CSI interfaces. Enable the third interface with an imx577 sensor for qcs9075-iq-9075-evk.
An example media-ctl pipeline for the imx577 is:
media-ctl --reset
media-ctl -V '"imx577 '0-001a'":0[fmt:SRGGB10/4056x3040 field:none]' media-ctl -V '"msm_csiphy3":0[fmt:SRGGB10/4056x3040]' media-ctl -V '"msm_csid0":0[fmt:SRGGB10/4056x3040]' media-ctl -V '"msm_vfe0_rdi0":0[fmt:SRGGB10/4056x3040]' media-ctl -l '"msm_csiphy3":1->"msm_csid0":0[1]' media-ctl -l '"msm_csid0":1->"msm_vfe0_rdi0":0[1]'yavta -B capture-mplane -c -I -n 5 -f SRGGB10P -s 4056x3040 -F
/dev/video0Signed-off-by Wenmeng Liu <[email protected]>---
[...]
arch/arm64/boot/dts/qcom/qcs9075-iq-9075-evk.dts vreg_l8e: ldo8 { · line 305
Quoted 5 lines
+&cci0 {
arch/arm64/boot/dts/qcom/qcs9075-iq-9075-evk.dts +4
-0+ status = "disabled"; + pinctrl-0 = <&cci0_0_default>; + pinctrl-1 = <&cci0_0_sleep>; +};
Let's keep them enabled
Quoted 8 lines
arch/arm64/boot/dts/qcom/qcs9075-iq-9075-evk.dts +8
-0+ +&cci1 { + status = "disabled"; + pinctrl-0 = <&cci1_0_default>; + pinctrl-1 = <&cci1_0_sleep>; +}; + +&cci2 {
arch/arm64/boot/dts/qcom/qcs9075-iq-9075-evk.dts vreg_l8e: ldo8 { · line 323
Quoted 10 lines
arch/arm64/boot/dts/qcom/qcs9075-iq-9075-evk.dts +10
-0+ status = "disabled"; + pinctrl-0 = <&cci2_0_default>; + pinctrl-1 = <&cci2_0_sleep>; +}; + +&cci3 { + status = "okay"; + pinctrl-0 = <&cci3_0_default>; + pinctrl-1 = <&cci3_0_sleep>; +};
the preferred style is:
&cci3 {
foo = "foo";
bar = "bar";
status = "okay";
};arch/arm64/boot/dts/qcom/qcs9075-iq-9075-evk.dts vreg_l8e: ldo8 { · line 333
Quoted 10 lines
arch/arm64/boot/dts/qcom/qcs9075-iq-9075-evk.dts +10
-0+ +&cci3_i2c0 { + camera@1a { + compatible = "sony,imx577"; + reg = <0x1a>; + + reset-gpios = <&tlmm 135 GPIO_ACTIVE_LOW>; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&cam3_default>; + pinctrl-1 = <&cam3_suspend>;
property-n
property-names
please
arch/arm64/boot/dts/qcom/qcs9075-iq-9075-evk.dts vreg_l8e: ldo8 { · line 341
Quoted 8 lines
arch/arm64/boot/dts/qcom/qcs9075-iq-9075-evk.dts +8
-0+ + clocks = <&camcc CAM_CC_MCLK3_CLK>; + assigned-clocks = <&camcc CAM_CC_MCLK3_CLK>; + assigned-clock-rates = <24000000>; + + dovdd-supply = <&vreg_s4a>; + avdd-supply = <&vreg_cam3_1p8>; + /* dvdd-supply = <&vdc_5v>; */
Please either add it or remove the comment
[...]
Quoted 11 lines
arch/arm64/boot/dts/qcom/sa8775p.dtsi +10
-0+ cam0_default: cam0-default { + mclk { + pins = "gpio72"; + function = "cam_mclk"; + drive-strength = <2>; + bias-disable; + }; + + rst { + pins = "gpio132";
arch/arm64/boot/dts/qcom/sa8775p.dtsi tlmm: pinctrl@f000000 { · line 4778
Quoted 10 lines
arch/arm64/boot/dts/qcom/sa8775p.dtsi +10
-0+ function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + }; + + cam0_suspend: cam0-suspend { + mclk { + pins = "gpio72"; + function = "cam_mclk";
Don't you want to park the pin to "gpio" in suspend?
arch/arm64/boot/dts/qcom/sa8775p.dtsi tlmm: pinctrl@f000000 { · line 4788
Quoted 10 lines
arch/arm64/boot/dts/qcom/sa8775p.dtsi +10
-0+ drive-strength = <2>; + bias-disable; + }; + + rst { + pins = "gpio132"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + output-low;
The GPIO framework should take care of output
Konrad