Skip to contentSkip to conversation

move Rockchip ISP bindings out of staging / add ISP DT nodes for RK3399

PATCH Applied Helen Koike 7 participants 20 messages Apr 3, 2020 – Jul 1, 2020

Subsystems (6)

v2 of 6 Applied Latest is v6 →

lore
Share & tools
lore
#0 lore raw

v2 cover move Rockchip ISP bindings out of staging / add ISP DT nodes for RK3399

Move the bindings out of drivers/staging and place them in Documentation/devicetree/bindings instead.

Also, add DT nodes for RK3399 and verify with make ARCH=arm64 dtbs_check and make ARCH=arm64 dt_binding_check.

Tested by verifying images streamed from RockPi 4 board with imx219 module.

Changes in v2:
Add patches modifying bindings, as sugested by Johan Jonker in v1, before moving them out of staging.

Johan, I added a Suggested-by tag in the commits, please let me know if you prefer not having the tag there.

Helen Koike (7):
media: staging: dt-bindings: rkisp1: add missing required nodes
media: staging: dt-bindings: rkisp1: add required items in i2c example
media: staging: dt-bindings: rkisp1: re-order properties
media: staging: dt-bindings: phy-rockchip-dphy-rx0: remove non-used
reg property
dt-bindings: phy: phy-rockchip-dphy-rx0: move rockchip dphy rx0
bindings out of staging
dt-bindings: media: rkisp1: move rockchip-isp1 bindings out of staging
media: MAINTAINERS: rkisp1: add path to dt-bindings

Shunqian Zheng (2):
arm64: dts: rockchip: add rx0 mipi-phy for rk3399
arm64: dts: rockchip: add isp0 node for rk3399

 .../bindings/media/rockchip-isp1.yaml         | 45 ++++++++++++-------
 .../bindings/phy/rockchip-mipi-dphy-rx0.yaml  |  3 --
 MAINTAINERS                                   |  1 +
 arch/arm64/boot/dts/rockchip/rk3399.dtsi      | 38 ++++++++++++++++
 4 files changed, 68 insertions(+), 19 deletions(-)
 rename {drivers/staging/media/rkisp1/Documentation => Documentation}/devicetree/bindings/media/rockchip-isp1.yaml (91%)
 rename {drivers/staging/media/phy-rockchip-dphy-rx0/Documentation => Documentation}/devicetree/bindings/phy/rockchip-mipi-dphy-rx0.yaml (98%)
Signature · 1 line
2.26.0
#1 lore raw

PATCH v2 1/9 media: staging: dt-bindings: rkisp1: add missing required nodes

Add missing required nodes in json-schema yaml file for Rockchip ISP1 dt-bindings.

---

Changes in v2:
- New patch in the series

---
 .../devicetree/bindings/media/rockchip-isp1.yaml          | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/staging/media/rkisp1/Documentation/devicetree/bindings/media/rockchip-isp1.yaml +8 -0
index af246b71eac6b..a77b6ec500c95 100644
@@ -94,11 +94,19 @@ properties:
 
               remote-endpoint: true
 
+        required:
+          - reg
+          - "#address-cells"
+          - "#size-cells"
+
     required:
+      - "#address-cells"
+      - "#size-cells"
       - port@0
 
 required:
   - compatible
+  - reg
   - interrupts
   - clocks
   - clock-names
Signature · 1 line
2.26.0
#2 lore raw

PATCH v2 2/9 media: staging: dt-bindings: rkisp1: add required items in i2c example

In reply to Helen Koike

Add missing required items in Rockchip ISP1 dt-bindings example for a complete i2c node.

---

Changes in v2:
- new patch in the series

---
 .../devicetree/bindings/media/rockchip-isp1.yaml             | 5 +++++
 1 file changed, 5 insertions(+)
drivers/staging/media/rkisp1/Documentation/devicetree/bindings/media/rockchip-isp1.yaml +5 -0
index a77b6ec500c95..8c7904845788d 100644
@@ -169,6 +169,11 @@ examples:
         };
 
         i2c7: i2c@ff160000 {
+            compatible = "rockchip,rk3399-i2c";
+            reg = <0x0 0xff160000 0x0 0x1000>;
+            interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH 0>;
+            clocks = <&cru SCLK_I2C7>, <&cru PCLK_I2C7>;
+            clock-names = "i2c", "pclk";
             clock-frequency = <400000>;
             #address-cells = <1>;
             #size-cells = <0>;
Signature · 1 line
2.26.0
#3 lore raw

PATCH v2 3/9 media: staging: dt-bindings: rkisp1: re-order properties

In reply to Helen Koike

Organize properties order in dt-binbings to move it out of staging.

On top: compatible, reg and interrupts.
Then alphabetical order, then properties starting with '#'.

---

V2:
- this is a new patch in the series

---
 .../bindings/media/rockchip-isp1.yaml         | 32 +++++++++----------
 1 file changed, 16 insertions(+), 16 deletions(-)
drivers/staging/media/rkisp1/Documentation/devicetree/bindings/media/rockchip-isp1.yaml +16 -16
index 8c7904845788d..e5b9c0574e352 100644
@@ -23,19 +23,6 @@ properties:
   interrupts:
     maxItems: 1
 
-  iommus:
-    maxItems: 1
-
-  power-domains:
-    maxItems: 1
-
-  phys:
-    maxItems: 1
-    description: phandle for the PHY port
-
-  phy-names:
-    const: dphy
-
   clocks:
     items:
       - description: ISP clock
@@ -52,6 +39,19 @@ properties:
       - const: hclk_isp
       - const: hclk_isp_wrap
 
+  iommus:
+    maxItems: 1
+
+  phys:
+    maxItems: 1
+    description: phandle for the PHY port
+
+  phy-names:
+    const: dphy
+
+  power-domains:
+    maxItems: 1
+
   # See ./video-interfaces.txt for details
   ports:
     type: object
@@ -110,10 +110,10 @@ required:
   - interrupts
   - clocks
   - clock-names
-  - power-domains
   - iommus
   - phys
   - phy-names
+  - power-domains
   - ports
 
 additionalProperties: false
@@ -139,19 +139,19 @@ examples:
             clock-names = "clk_isp",
                           "aclk_isp", "aclk_isp_wrap",
                           "hclk_isp", "hclk_isp_wrap";
-            power-domains = <&power RK3399_PD_ISP0>;
             iommus = <&isp0_mmu>;
             phys = <&dphy>;
             phy-names = "dphy";
+            power-domains = <&power RK3399_PD_ISP0>;
 
             ports {
                 #address-cells = <1>;
                 #size-cells = <0>;
 
                 port@0 {
+                    reg = <0>;
                     #address-cells = <1>;
                     #size-cells = <0>;
-                    reg = <0>;
 
                     mipi_in_wcam: endpoint@0 {
                         reg = <0>;
Signature · 1 line
2.26.0
#4 lore raw

PATCH v2 4/9 media: staging: dt-bindings: phy-rockchip-dphy-rx0: remove non-used reg property

In reply to Helen Koike

reg property is not used in Rockchip MIPI DPHY RX0 bindings, thus remove it.

---

Changes in v2:
- this is a new patch in the series

---
 .../devicetree/bindings/phy/rockchip-mipi-dphy-rx0.yaml        | 3 ---
 1 file changed, 3 deletions(-)
drivers/staging/media/phy-rockchip-dphy-rx0/Documentation/devicetree/bindings/phy/rockchip-mipi-dphy-rx0.yaml +0 -3
index 5dacece35702b..7d888d3588239 100644
@@ -18,9 +18,6 @@ properties:
   compatible:
     const: rockchip,rk3399-mipi-dphy-rx0
 
-  reg:
-    maxItems: 1
-
   clocks:
     items:
       - description: MIPI D-PHY ref clock
Signature · 1 line
2.26.0
#5 lore raw

PATCH v2 5/9 dt-bindings: phy: phy-rockchip-dphy-rx0: move rockchip dphy rx0 bindings out of staging

In reply to Helen Koike

Move phy-rockchip-dphy-rx0 bindings to Documentation/devicetree/bindings/phy

Verified with:
make ARCH=arm64 dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/phy/rockchip-mipi-dphy-rx0.yaml

---

V2:
- no changes

 .../devicetree/bindings/phy/rockchip-mipi-dphy-rx0.yaml           | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename {drivers/staging/media/phy-rockchip-dphy-rx0/Documentation => Documentation}/devicetree/bindings/phy/rockchip-mipi-dphy-rx0.yaml (100%)
Documentation/devicetree/bindings/phy/rockchip-mipi-dphy-rx0.yaml renamed from drivers/staging/media/phy-rockchip-dphy-rx0/Documentation/devicetree/bindings/phy/rockchip-mipi-dphy-rx0.yaml +0 -0
similarity index 100%
rename from drivers/staging/media/phy-rockchip-dphy-rx0/Documentation/devicetree/bindings/phy/rockchip-mipi-dphy-rx0.yaml
rename to Documentation/devicetree/bindings/phy/rockchip-mipi-dphy-rx0.yaml
Signature · 1 line
2.26.0
maintainer Acked-by on v2 5/9
#6 lore raw

Re: [PATCH v2 5/9] dt-bindings: phy: phy-rockchip-dphy-rx0: move rockchip dphy rx0 bindings out of staging

Quoted 6 lines · Helen Koike

Move phy-rockchip-dphy-rx0 bindings to Documentation/devicetree/bindings/phy

Verified with:
make ARCH=arm64 dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/phy/rockchip-mipi-dphy-rx0.yaml

Quoted 9 lines

---

V2:
- no changes

 .../devicetree/bindings/phy/rockchip-mipi-dphy-rx0.yaml           | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename {drivers/staging/media/phy-rockchip-dphy-rx0/Documentation => Documentation}/devicetree/bindings/phy/rockchip-mipi-dphy-rx0.yaml (100%)
#7 lore raw

PATCH v2 6/9 dt-bindings: media: rkisp1: move rockchip-isp1 bindings out of staging

In reply to Helen Koike

Move rkisp1 bindings to Documentation/devicetree/bindings/media

Verified with:
make ARCH=arm64 dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/media/rockchip-isp1.yaml

---

V2:
- no changes

 .../devicetree/bindings/media/rockchip-isp1.yaml                  | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename {drivers/staging/media/rkisp1/Documentation => Documentation}/devicetree/bindings/media/rockchip-isp1.yaml (100%)
Documentation/devicetree/bindings/media/rockchip-isp1.yaml renamed from drivers/staging/media/rkisp1/Documentation/devicetree/bindings/media/rockchip-isp1.yaml +0 -0
similarity index 100%
rename from drivers/staging/media/rkisp1/Documentation/devicetree/bindings/media/rockchip-isp1.yaml
rename to Documentation/devicetree/bindings/media/rockchip-isp1.yaml
Signature · 1 line
2.26.0
maintainer Acked-by on v2 6/9
#8 lore raw

Re: [PATCH v2 6/9] dt-bindings: media: rkisp1: move rockchip-isp1 bindings out of staging

Quoted 6 lines · Helen Koike

Move rkisp1 bindings to Documentation/devicetree/bindings/media

Verified with:
make ARCH=arm64 dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/media/rockchip-isp1.yaml

Quoted 9 lines

---

V2:
- no changes

 .../devicetree/bindings/media/rockchip-isp1.yaml                  | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename {drivers/staging/media/rkisp1/Documentation => Documentation}/devicetree/bindings/media/rockchip-isp1.yaml (100%)
#9 lore raw

Re: [PATCH v2 6/9] dt-bindings: media: rkisp1: move rockchip-isp1 bindings out of staging

In reply to Helen Koike

Hi Helen,

make ARCH=arm dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/media/rockchip-isp1.yaml

  SCHEMA  Documentation/devicetree/bindings/processed-schema-examples.yaml
  SCHEMA  Documentation/devicetree/bindings/processed-schema.yaml
  CHKDT   Documentation/devicetree/bindings/media/rockchip-isp1.yaml

DTC
Documentation/devicetree/bindings/media/rockchip-isp1.example.dt.yaml Documentation/devicetree/bindings/media/rockchip-isp1.example.dts:22.27-99.11:
Warning (unit_address_vs_reg): /example-0/parent@0: node has a unit name, but no reg or ranges property
CHECK
Documentation/devicetree/bindings/media/rockchip-isp1.example.dt.yaml

Quoted 20 lines · Helen Koike

Move rkisp1 bindings to Documentation/devicetree/bindings/media

Verified with:
make ARCH=arm64 dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/media/rockchip-isp1.yaml

---

V2:
- no changes

 .../devicetree/bindings/media/rockchip-isp1.yaml                  | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename {drivers/staging/media/rkisp1/Documentation => Documentation}/devicetree/bindings/media/rockchip-isp1.yaml (100%)
Documentation/devicetree/bindings/media/rockchip-isp1.yaml renamed from drivers/staging/media/rkisp1/Documentation/devicetree/bindings/media/rockchip-isp1.yaml +0 -0
similarity index 100%
rename from drivers/staging/media/rkisp1/Documentation/devicetree/bindings/media/rockchip-isp1.yaml
rename to Documentation/devicetree/bindings/media/rockchip-isp1.yaml
#10 lore raw

Re: [PATCH v2 6/9] dt-bindings: media: rkisp1: move rockchip-isp1 bindings out of staging

In reply to Helen Koike

Hi Helen,

Quoted 6 lines

clocks:
items:
- description: ISP clock
- description: ISP AXI clock clock
- description: ISP AXI clock wrapper clock
- description: ISP AHB clock clock

Too many clocks here ^
Too many spaces here ^

Quoted 1 line

- description: ISP AHB wrapper clock

We can expect 4 to 5 clocks.
With 5 clocks and a different description this layout is maybe not so handy.

As first change:

clocks:
maxItems: 5
description:
rk3399 clocks
ISP clock
ISP AXI clock
ISP AXI wrapper clock
ISP AHB clock
ISP AHB wrapper clock

And then later:

clocks:
maxItems: 5
description:
rk3288 clocks
ISP clock
ISP AXI clock
ISP AHB clock
ISP Pixel clock
ISP JPEG source clock
rk3399 clocks
ISP clock
ISP AXI clock
ISP AXI wrapper clock
ISP AHB clock
ISP AHB wrapper clock

With 4 clocks:

clocks:

    minItems: 4
    maxItems: 5
    description:
      rk1808 clocks
      rk3288 clocks
      rk3326 clocks
      rk3368 clocks
      rk3399 clocks

[..]

Quoted 8 lines

clock-names:
items:
- const: clk_isp
- const: aclk_isp
- const: aclk_isp_wrap
- const: hclk_isp
- const: hclk_isp_wrap

Quoted 20 lines · Helen Koike

Move rkisp1 bindings to Documentation/devicetree/bindings/media

Verified with:
make ARCH=arm64 dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/media/rockchip-isp1.yaml

---

V2:
- no changes

 .../devicetree/bindings/media/rockchip-isp1.yaml                  | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename {drivers/staging/media/rkisp1/Documentation => Documentation}/devicetree/bindings/media/rockchip-isp1.yaml (100%)
Documentation/devicetree/bindings/media/rockchip-isp1.yaml renamed from drivers/staging/media/rkisp1/Documentation/devicetree/bindings/media/rockchip-isp1.yaml +0 -0
similarity index 100%
rename from drivers/staging/media/rkisp1/Documentation/devicetree/bindings/media/rockchip-isp1.yaml
rename to Documentation/devicetree/bindings/media/rockchip-isp1.yaml
#11 lore raw

PATCH v2 7/9 media: MAINTAINERS: rkisp1: add path to dt-bindings

In reply to Helen Koike

The Rockchip ISP bindings was moved out of staging. Update MAINTAINERS file with the new path.

---

V2:
- This is a new patch in the series

---
 MAINTAINERS | 1 +
 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
index d66ac41ef5872..726044b84cf23 100644
@@ -14303,6 +14303,7 @@ M:	Helen Koike <[email protected]>
 L:	[email protected]
 S:	Maintained
 F:	drivers/staging/media/rkisp1/
+F:	Documentation/devicetree/bindings/media/rockchip-isp1.yaml
 
 ROCKCHIP RASTER 2D GRAPHIC ACCELERATION UNIT DRIVER
 M:	Jacob Chen <[email protected]>
Signature · 1 line
2.26.0
#12 lore raw

Re: [PATCH v2 7/9] media: MAINTAINERS: rkisp1: add path to dt-bindings

Quoted 2 lines · Helen Koike

The Rockchip ISP bindings was moved out of staging. Update MAINTAINERS file with the new path.

Shouldn't there be a reference to Documentation/devicetree/bindings/phy/rockchip-mipi-dphy-rx0.yaml as well in MAINTAINERS?

Regards,

Hans

Quoted 24 lines

---

V2:
- This is a new patch in the series

---
 MAINTAINERS | 1 +
 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
index d66ac41ef5872..726044b84cf23 100644
@@ -14303,6 +14303,7 @@ M:	Helen Koike <helen.koike-ZGY8ohtN/[email protected]>
 L:	[email protected]
 S:	Maintained
 F:	drivers/staging/media/rkisp1/
+F:	Documentation/devicetree/bindings/media/rockchip-isp1.yaml
 
 ROCKCHIP RASTER 2D GRAPHIC ACCELERATION UNIT DRIVER
 M:	Jacob Chen <jacob-chen-fyOeoxGR3m/[email protected]>
#13 lore raw

Re: [PATCH v2 7/9] media: MAINTAINERS: rkisp1: add path to dt-bindings

Quoted 6 lines · Hans Verkuil
Quoted 2 lines · Helen Koike

The Rockchip ISP bindings was moved out of staging. Update MAINTAINERS file with the new path.

Shouldn't there be a reference to Documentation/devicetree/bindings/phy/rockchip-mipi-dphy-rx0.yaml as well in MAINTAINERS?

And please keep the file references F: fields in
alphabetic order.

Quoted 1 line

MAINTAINERS

Quoted 1 line
MAINTAINERS +0 -0

[]

Quoted 9 lines
Quoted 9 lines
MAINTAINERS +1 -0
@@ -14303,6 +14303,7 @@ M:	Helen Koike <helen.koike-ZGY8ohtN/[email protected]>
 L:	[email protected]
 S:	Maintained
 F:	drivers/staging/media/rkisp1/
+F:	Documentation/devicetree/bindings/media/rockchip-isp1.yaml
 
 ROCKCHIP RASTER 2D GRAPHIC ACCELERATION UNIT DRIVER
 M:	Jacob Chen <jacob-chen-fyOeoxGR3m/[email protected]>
#14 lore raw

Re: [PATCH v2 7/9] media: MAINTAINERS: rkisp1: add path to dt-bindings

In reply to Hans Verkuil

Hi Hans,

Quoted 7 lines · Hans Verkuil
Quoted 2 lines · Helen Koike

The Rockchip ISP bindings was moved out of staging. Update MAINTAINERS file with the new path.

Shouldn't there be a reference to Documentation/devicetree/bindings/phy/rockchip-mipi-dphy-rx0.yaml as well in MAINTAINERS?

Indeed, and I can take care of that later. I was planning to move this PHY driver out of staging, but was waiting on patches 4 and 5 of this series.

They seem fine, would you mind picking them?

Thanks!
Ezequiel

Quoted 29 lines

Regards,

Hans

Quoted 23 lines

---

V2:
- This is a new patch in the series

---
 MAINTAINERS | 1 +
 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
index d66ac41ef5872..726044b84cf23 100644
@@ -14303,6 +14303,7 @@ M:	Helen Koike <helen.koike-ZGY8ohtN/[email protected]>
 L:	[email protected]
 S:	Maintained
 F:	drivers/staging/media/rkisp1/
+F:	Documentation/devicetree/bindings/media/rockchip-isp1.yaml
 
 ROCKCHIP RASTER 2D GRAPHIC ACCELERATION UNIT DRIVER
 M:	Jacob Chen <jacob-chen-fyOeoxGR3m/[email protected]>
#15 lore raw

Re: [PATCH v2 7/9] media: MAINTAINERS: rkisp1: add path to dt-bindings

In reply to Helen Koike

Hi Helen,

Quoted 18 lines · Helen Koike

The Rockchip ISP bindings was moved out of staging. Update MAINTAINERS file with the new path.

---

V2:
- This is a new patch in the series

---
 MAINTAINERS | 1 +
 1 file changed, 1 insertion(+)
MAINTAINERS +0 -0
index d66ac41ef5872..726044b84cf23 100644

MAINTAINERS M: Helen Koike <helen.koike-ZGY8ohtN/[email protected]> · line 14303

Quoted 1 line
MAINTAINERS +0 -0
@@ -14303,6 +14303,7 @@ M:	Helen Koike <helen.koike-ZGY8ohtN/[email protected]>
 L:	[email protected]

L: [email protected]

MAINTAINERS M: Helen Koike <[email protected]> · line 14306

Quoted 4 lines
MAINTAINERS +1 -0
 S:	Maintained
 
 F:	drivers/staging/media/rkisp1/
+F:	Documentation/devicetree/bindings/media/rockchip-isp1.yaml

Rebase.
The MAINTAINERS document was recently sort.
Check entries with:

./scripts/parse-maintainers.pl --input=MAINTAINERS --output=MAINTAINERS --order

Quoted 4 lines
MAINTAINERS +0 -0
 ROCKCHIP RASTER 2D GRAPHIC ACCELERATION UNIT DRIVER
 M:	Jacob Chen <jacob-chen-fyOeoxGR3m/[email protected]>
#16 lore raw

PATCH v2 8/9 arm64: dts: rockchip: add rx0 mipi-phy for rk3399

In reply to Helen Koike

From: Shunqian Zheng <[email protected]>

Designware MIPI D-PHY, used for ISP0 in rk3399.

Verified with:
make ARCH=arm64 dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/phy/rockchip-mipi-dphy-rx0.yaml

---

Changes in v2:
- fix alignment of clocks

V1:
This patchset came from the original ISP series from Rockchip:

    https://patchwork.kernel.org/patch/10267409/

The only difference is:
- add phy-cells
- update compatible to "rockchip,rk3399-mipi-dphy-rx0"
- commit message

---
 arch/arm64/boot/dts/rockchip/rk3399.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)
arch/arm64/boot/dts/rockchip/rk3399.dtsi +11 -0
index 33cc21fcf4c10..6b3380b10e596 100644
@@ -1394,6 +1394,17 @@ io_domains: io-domains {
 			status = "disabled";
 		};
 
+		mipi_dphy_rx0: mipi-dphy-rx0 {
+			compatible = "rockchip,rk3399-mipi-dphy-rx0";
+			clocks = <&cru SCLK_MIPIDPHY_REF>,
+				 <&cru SCLK_DPHY_RX0_CFG>,
+				 <&cru PCLK_VIO_GRF>;
+			clock-names = "dphy-ref", "dphy-cfg", "grf";
+			power-domains = <&power RK3399_PD_VIO>;
+			#phy-cells = <0>;
+			status = "disabled";
+		};
+
 		u2phy0: usb2-phy@e450 {
 			compatible = "rockchip,rk3399-usb2phy";
 			reg = <0xe450 0x10>;
Signature · 1 line
2.26.0
#17 lore raw

Re: [PATCH v2 8/9] arm64: dts: rockchip: add rx0 mipi-phy for rk3399

Hi Heiko,

Quoted 13 lines · Helen Koike

From: Shunqian Zheng <[email protected]>

Designware MIPI D-PHY, used for ISP0 in rk3399.

Verified with:
make ARCH=arm64 dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/phy/rockchip-mipi-dphy-rx0.yaml

---

Quoted 8 lines

Changes in v2:
- fix alignment of clocks

V1:
This patchset came from the original ISP series from Rockchip:

    https://patchwork.kernel.org/patch/10267409/

Can you take the devicetree changes (patches 8 and 9) ?

Thanks,
Ezequiel

Quoted 34 lines

The only difference is:
- add phy-cells
- update compatible to "rockchip,rk3399-mipi-dphy-rx0"
- commit message

---
 arch/arm64/boot/dts/rockchip/rk3399.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)
arch/arm64/boot/dts/rockchip/rk3399.dtsi +11 -0
index 33cc21fcf4c10..6b3380b10e596 100644
@@ -1394,6 +1394,17 @@ io_domains: io-domains {
 			status = "disabled";
 		};
 
+		mipi_dphy_rx0: mipi-dphy-rx0 {
+			compatible = "rockchip,rk3399-mipi-dphy-rx0";
+			clocks = <&cru SCLK_MIPIDPHY_REF>,
+				 <&cru SCLK_DPHY_RX0_CFG>,
+				 <&cru PCLK_VIO_GRF>;
+			clock-names = "dphy-ref", "dphy-cfg", "grf";
+			power-domains = <&power RK3399_PD_VIO>;
+			#phy-cells = <0>;
+			status = "disabled";
+		};
+
 		u2phy0: usb2-phy@e450 {
 			compatible = "rockchip,rk3399-usb2phy";
 			reg = <0xe450 0x10>;
Signature · 1 line
2.26.0
#18 lore raw

PATCH v2 9/9 arm64: dts: rockchip: add isp0 node for rk3399

In reply to Helen Koike

From: Shunqian Zheng <[email protected]>

RK3399 has two ISPs, but only ISP0 was tested at present. Add isp0 node in rk3399 dtsi

Verified with:
make ARCH=arm64 dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/media/rockchip-isp1.yaml

---
V2:
- re-order power-domains property

V1:
This patch was originally part of this patchset:

    https://patchwork.kernel.org/patch/10267431/

The only difference is:
- add phy properties
- add ports

---
 arch/arm64/boot/dts/rockchip/rk3399.dtsi | 27 ++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
arch/arm64/boot/dts/rockchip/rk3399.dtsi +27 -0
index 6b3380b10e596..b1d62a87c5616 100644
@@ -1718,6 +1718,33 @@ vopb_mmu: iommu@ff903f00 {
 		status = "disabled";
 	};
 
+	isp0: isp0@ff910000 {
+		compatible = "rockchip,rk3399-cif-isp";
+		reg = <0x0 0xff910000 0x0 0x4000>;
+		interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH 0>;
+		clocks = <&cru SCLK_ISP0>,
+			 <&cru ACLK_ISP0>, <&cru ACLK_ISP0_WRAPPER>,
+			 <&cru HCLK_ISP0>, <&cru HCLK_ISP0_WRAPPER>;
+		clock-names = "clk_isp",
+			      "aclk_isp", "aclk_isp_wrap",
+			      "hclk_isp", "hclk_isp_wrap";
+		iommus = <&isp0_mmu>;
+		phys = <&mipi_dphy_rx0>;
+		phy-names = "dphy";
+		power-domains = <&power RK3399_PD_ISP0>;
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			port@0 {
+				reg = <0>;
+				#address-cells = <1>;
+				#size-cells = <0>;
+			};
+		};
+	};
+
 	isp0_mmu: iommu@ff914000 {
 		compatible = "rockchip,iommu";
 		reg = <0x0 0xff914000 0x0 0x100>, <0x0 0xff915000 0x0 0x100>;
Signature · 1 line
2.26.0
maintainer Applied
#19 lore raw
In reply to Helen Koike
Quoted 10 lines · Helen Koike

Move the bindings out of drivers/staging and place them in Documentation/devicetree/bindings instead.

Also, add DT nodes for RK3399 and verify with make ARCH=arm64 dtbs_check and make ARCH=arm64 dt_binding_check.

Tested by verifying images streamed from RockPi 4 board with imx219 module.

[...]

Applied, thanks!

[1/1] arm64: dts: rockchip: add rx0 mipi-phy for rk3399

      commit: e4bfde13e323f9ee5f2f38aa5cac0676dd656f8e

Best regards,

Signature · 1 line
Heiko Stuebner <[email protected]>