Skip to contentSkip to conversation

ARM: dts: sun8i-v3s: Add CSI0 MCLK pin definition

PATCH In review Paul Kocialkowski 3 participants 5 messages Dec 18, 2020 – Jan 18, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: sun8i-v3s: Add CSI0 MCLK pin definition

This adds a device-tree definition for the CSI0 MCLK pin, which can be used for feeding MIPI CSI-2 sensors.

---
 arch/arm/boot/dts/sun8i-v3s.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/boot/dts/sun8i-v3s.dtsi +6 -0
index a9f5795d4e57..bff822b9fa01 100644
@@ -337,6 +337,12 @@ pio: pinctrl@1c20800 {
 			interrupt-controller;
 			#interrupt-cells = <3>;
 
+			/omit-if-no-ref/
+			csi0_mclk_pin: csi0-mclk-pin {
+				pins = "PE20";
+				function = "csi_mipi";
+			};
+
 			/omit-if-no-ref/
 			csi1_8bit_pins: csi1-8bit-pins {
 				pins = "PE0", "PE2", "PE3", "PE8", "PE9",
Signature · 1 line
2.29.2
#1 lore raw

Hi!

Dne petek, 18. december 2020 ob 20:50:33 CET je Paul Kocialkowski napisal(a):

Quoted 4 lines

This adds a device-tree definition for the CSI0 MCLK pin, which can be used for feeding MIPI CSI-2 sensors.

Is this used anywhere? Current policy is to add pin definitions only if any user exists.

Best regards,
Jernej

Quoted 11 lines
---
 arch/arm/boot/dts/sun8i-v3s.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
(quoted diff) +0 -0

b/arch/arm/boot/dts/sun8i-v3s.dtsi index a9f5795d4e57..bff822b9fa01 100644

arch/arm/boot/dts/sun8i-v3s.dtsi +0 -0
@@ -337,6 +337,12 @@ pio: pinctrl@1c20800 {
 			interrupt-controller;
 			#interrupt-cells = <3>;

arch/arm/boot/dts/sun8i-v3s.dtsi pio: pinctrl@1c20800 { · line 348

Quoted 10 lines
arch/arm/boot/dts/sun8i-v3s.dtsi +6 -0
 
+			/omit-if-no-ref/
+			csi0_mclk_pin: csi0-mclk-pin {
+				pins = "PE20";
+				function = "csi_mipi";
+			};
+
 			/omit-if-no-ref/
 			csi1_8bit_pins: csi1-8bit-pins {
 				pins = "PE0", "PE2", "PE3", 

"PE8", "PE9",

#2 lore raw

Hi,

Quoted 8 lines · Jernej Škrabec

Dne petek, 18. december 2020 ob 20:50:33 CET je Paul Kocialkowski napisal(a):

Quoted 4 lines

This adds a device-tree definition for the CSI0 MCLK pin, which can be used for feeding MIPI CSI-2 sensors.

Is this used anywhere? Current policy is to add pin definitions only if any user exists.

Ah right, sorry. I'll resend this when adding a board that uses it!

Cheers,

Paul

Quoted 29 lines

Best regards,
Jernej

Quoted 11 lines
---
 arch/arm/boot/dts/sun8i-v3s.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
(quoted diff) +0 -0

b/arch/arm/boot/dts/sun8i-v3s.dtsi index a9f5795d4e57..bff822b9fa01 100644

arch/arm/boot/dts/sun8i-v3s.dtsi +0 -0
@@ -337,6 +337,12 @@ pio: pinctrl@1c20800 {
 			interrupt-controller;
 			#interrupt-cells = <3>;

arch/arm/boot/dts/sun8i-v3s.dtsi pio: pinctrl@1c20800 { · line 348

Quoted 10 lines
arch/arm/boot/dts/sun8i-v3s.dtsi +6 -0
 
+			/omit-if-no-ref/
+			csi0_mclk_pin: csi0-mclk-pin {
+				pins = "PE20";
+				function = "csi_mipi";
+			};
+
 			/omit-if-no-ref/
 			csi1_8bit_pins: csi1-8bit-pins {
 				pins = "PE0", "PE2", "PE3", 

"PE8", "PE9",

Signature · 5 lines
Developer of free digital technology and hardware support.

Website: https://www.paulk.fr/
Coding blog: https://code.paulk.fr/
Git repositories: https://git.paulk.fr/ https://git.code.paulk.fr/
#3 lore raw
In reply to Jernej Škrabec
Quoted 11 lines · Jernej Škrabec

Hi!

Dne petek, 18. december 2020 ob 20:50:33 CET je Paul Kocialkowski napisal(a):

Quoted 4 lines

This adds a device-tree definition for the CSI0 MCLK pin, which can be used for feeding MIPI CSI-2 sensors.

Is this used anywhere? Current policy is to add pin definitions only if any user exists.

IIRC we sort of loosened that requirement with the use of /omit-if-no-ref/. The A20 dtsi file has a whole bunch of pins defined that are not directly used but are available for users to reference, especially in overlays. The "-@" parameter for the device tree compiler, used to build overlay compatible DTBs, makes the compiler ignore /omit-if-no-ref/ and include all the nodes.

ChenYu

Quoted 29 lines

Best regards,
Jernej

Quoted 11 lines
---
 arch/arm/boot/dts/sun8i-v3s.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
(quoted diff) +0 -0

b/arch/arm/boot/dts/sun8i-v3s.dtsi index a9f5795d4e57..bff822b9fa01 100644

arch/arm/boot/dts/sun8i-v3s.dtsi +0 -0
@@ -337,6 +337,12 @@ pio: pinctrl@1c20800 {
                      interrupt-controller;
                      #interrupt-cells = <3>;

arch/arm/boot/dts/sun8i-v3s.dtsi pio: pinctrl@1c20800 { · line 348

Quoted 10 lines
arch/arm/boot/dts/sun8i-v3s.dtsi +6 -0
 
+                     /omit-if-no-ref/
+                     csi0_mclk_pin: csi0-mclk-pin {
+                             pins = "PE20";
+                             function = "csi_mipi";
+                     };
+
                      /omit-if-no-ref/
                      csi1_8bit_pins: csi1-8bit-pins {
                              pins = "PE0", "PE2", "PE3",

"PE8", "PE9",

#4 lore raw
Quoted 14 lines · Chen-Yu Tsai
Quoted 11 lines · Jernej Škrabec

Hi!

Dne petek, 18. december 2020 ob 20:50:33 CET je Paul Kocialkowski napisal(a):

Quoted 4 lines

This adds a device-tree definition for the CSI0 MCLK pin, which can be used for feeding MIPI CSI-2 sensors.

Is this used anywhere? Current policy is to add pin definitions only if any user exists.

Quoted 6 lines

IIRC we sort of loosened that requirement with the use of /omit-if-no-ref/. The A20 dtsi file has a whole bunch of pins defined that are not directly used but are available for users to reference, especially in overlays. The "-@" parameter for the device tree compiler, used to build overlay compatible DTBs, makes the compiler ignore /omit-if-no-ref/ and include all the nodes.

I've queued up this patch for 5.12.

ChenYu