linux-samsung-soc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML
@ 2022-12-22 14:22 Johan Jonker
  2022-12-22 14:24 ` [PATCH v6 02/17] dt-bindings: soc: rockchip: grf: add rockchip,lvds.yaml Johan Jonker
                   ` (18 more replies)
  0 siblings, 19 replies; 28+ messages in thread
From: Johan Jonker @ 2022-12-22 14:22 UTC (permalink / raw)
  To: heiko
  Cc: hjc, robh+dt, krzysztof.kozlowski+dt, gregkh, airlied, daniel,
	andrzej.hajda, neil.armstrong, robert.foss, Laurent.pinchart,
	jonas, jernej.skrabec, philippe.cornu, dri-devel, devicetree,
	linux-kernel, linux-arm-kernel, linux-rockchip, linux-usb,
	linus.walleij, inki.dae, sw0312.kim, kyungmin.park, alim.akhtar,
	linux-samsung-soc

Convert rockchip-lvds.txt to YAML.

Changed:
  Add power-domains property.
  Requirements between PX30 and RK3288

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Rob Herring <robh@kernel.org>
---

Changed V3:
  Filename matching compatible style
  Drop "Regulator phandle for "
  Specify properties and requirements per SoC
  Sort order and restyle

Changed V2:
  Fix title
---
 .../display/rockchip/rockchip,lvds.yaml       | 170 ++++++++++++++++++
 .../display/rockchip/rockchip-lvds.txt        |  92 ----------
 2 files changed, 170 insertions(+), 92 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/display/rockchip/rockchip,lvds.yaml
 delete mode 100644 Documentation/devicetree/bindings/display/rockchip/rockchip-lvds.txt

diff --git a/Documentation/devicetree/bindings/display/rockchip/rockchip,lvds.yaml b/Documentation/devicetree/bindings/display/rockchip/rockchip,lvds.yaml
new file mode 100644
index 000000000..03b002a05
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/rockchip/rockchip,lvds.yaml
@@ -0,0 +1,170 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/rockchip/rockchip,lvds.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Rockchip low-voltage differential signal (LVDS) transmitter
+
+maintainers:
+  - Sandy Huang <hjc@rock-chips.com>
+  - Heiko Stuebner <heiko@sntech.de>
+
+properties:
+  compatible:
+    enum:
+      - rockchip,px30-lvds
+      - rockchip,rk3288-lvds
+
+  reg:
+    maxItems: 1
+
+  clocks:
+    maxItems: 1
+
+  clock-names:
+    const: pclk_lvds
+
+  avdd1v0-supply:
+    description: 1.0V analog power.
+
+  avdd1v8-supply:
+    description: 1.8V analog power.
+
+  avdd3v3-supply:
+    description: 3.3V analog power.
+
+  rockchip,grf:
+    $ref: /schemas/types.yaml#/definitions/phandle
+    description: Phandle to the general register files syscon.
+
+  rockchip,output:
+    $ref: /schemas/types.yaml#/definitions/string
+    enum: [rgb, lvds, duallvds]
+    description: This describes the output interface.
+
+  phys:
+    maxItems: 1
+
+  phy-names:
+    const: dphy
+
+  pinctrl-names:
+    const: lcdc
+
+  pinctrl-0: true
+
+  power-domains:
+    maxItems: 1
+
+  ports:
+    $ref: /schemas/graph.yaml#/properties/ports
+
+    properties:
+      port@0:
+        $ref: /schemas/graph.yaml#/properties/port
+        description:
+          Video port 0 for the VOP input.
+          The remote endpoint maybe vopb or vopl.
+
+      port@1:
+        $ref: /schemas/graph.yaml#/properties/port
+        description:
+          Video port 1 for either a panel or subsequent encoder.
+
+    required:
+      - port@0
+      - port@1
+
+required:
+  - compatible
+  - rockchip,grf
+  - rockchip,output
+  - ports
+
+allOf:
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: rockchip,px30-lvds
+
+    then:
+      properties:
+        reg: false
+        clocks: false
+        clock-names: false
+        avdd1v0-supply: false
+        avdd1v8-supply: false
+        avdd3v3-supply: false
+
+      required:
+        - phys
+        - phy-names
+
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: rockchip,rk3288-lvds
+
+    then:
+      properties:
+        phys: false
+        phy-names: false
+
+      required:
+        - reg
+        - clocks
+        - clock-names
+        - avdd1v0-supply
+        - avdd1v8-supply
+        - avdd3v3-supply
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/clock/rk3288-cru.h>
+
+    lvds: lvds@ff96c000 {
+      compatible = "rockchip,rk3288-lvds";
+      reg = <0xff96c000 0x4000>;
+      clocks = <&cru PCLK_LVDS_PHY>;
+      clock-names = "pclk_lvds";
+      avdd1v0-supply = <&vdd10_lcd>;
+      avdd1v8-supply = <&vcc18_lcd>;
+      avdd3v3-supply = <&vcca_33>;
+      pinctrl-names = "lcdc";
+      pinctrl-0 = <&lcdc_ctl>;
+      rockchip,grf = <&grf>;
+      rockchip,output = "rgb";
+
+      ports {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        lvds_in: port@0 {
+          reg = <0>;
+          #address-cells = <1>;
+          #size-cells = <0>;
+
+          lvds_in_vopb: endpoint@0 {
+            reg = <0>;
+            remote-endpoint = <&vopb_out_lvds>;
+          };
+          lvds_in_vopl: endpoint@1 {
+            reg = <1>;
+            remote-endpoint = <&vopl_out_lvds>;
+          };
+        };
+
+        lvds_out: port@1 {
+          reg = <1>;
+
+          lvds_out_panel: endpoint {
+            remote-endpoint = <&panel_in_lvds>;
+          };
+        };
+      };
+    };
diff --git a/Documentation/devicetree/bindings/display/rockchip/rockchip-lvds.txt b/Documentation/devicetree/bindings/display/rockchip/rockchip-lvds.txt
deleted file mode 100644
index aaf8c44cf..000000000
--- a/Documentation/devicetree/bindings/display/rockchip/rockchip-lvds.txt
+++ /dev/null
@@ -1,92 +0,0 @@
-Rockchip RK3288 LVDS interface
-================================
-
-Required properties:
-- compatible: matching the soc type, one of
-	- "rockchip,rk3288-lvds";
-	- "rockchip,px30-lvds";
-
-- reg: physical base address of the controller and length
-	of memory mapped region.
-- clocks: must include clock specifiers corresponding to entries in the
-	clock-names property.
-- clock-names: must contain "pclk_lvds"
-
-- avdd1v0-supply: regulator phandle for 1.0V analog power
-- avdd1v8-supply: regulator phandle for 1.8V analog power
-- avdd3v3-supply: regulator phandle for 3.3V analog power
-
-- rockchip,grf: phandle to the general register files syscon
-- rockchip,output: "rgb", "lvds" or "duallvds", This describes the output interface
-
-- phys: LVDS/DSI DPHY (px30 only)
-- phy-names: name of the PHY, must be "dphy" (px30 only)
-
-Optional properties:
-- pinctrl-names: must contain a "lcdc" entry.
-- pinctrl-0: pin control group to be used for this controller.
-
-Required nodes:
-
-The lvds has two video ports as described by
-	Documentation/devicetree/bindings/media/video-interfaces.txt
-Their connections are modeled using the OF graph bindings specified in
-	Documentation/devicetree/bindings/graph.txt.
-
-- video port 0 for the VOP input, the remote endpoint maybe vopb or vopl
-- video port 1 for either a panel or subsequent encoder
-
-Example:
-
-lvds_panel: lvds-panel {
-	compatible = "auo,b101ean01";
-	enable-gpios = <&gpio7 21 GPIO_ACTIVE_HIGH>;
-	data-mapping = "jeida-24";
-
-	ports {
-		panel_in_lvds: endpoint {
-			remote-endpoint = <&lvds_out_panel>;
-		};
-	};
-};
-
-For Rockchip RK3288:
-
-	lvds: lvds@ff96c000 {
-		compatible = "rockchip,rk3288-lvds";
-		rockchip,grf = <&grf>;
-		reg = <0xff96c000 0x4000>;
-		clocks = <&cru PCLK_LVDS_PHY>;
-		clock-names = "pclk_lvds";
-		pinctrl-names = "lcdc";
-		pinctrl-0 = <&lcdc_ctl>;
-		avdd1v0-supply = <&vdd10_lcd>;
-		avdd1v8-supply = <&vcc18_lcd>;
-		avdd3v3-supply = <&vcca_33>;
-		rockchip,output = "rgb";
-		ports {
-			#address-cells = <1>;
-			#size-cells = <0>;
-
-			lvds_in: port@0 {
-				reg = <0>;
-
-				lvds_in_vopb: endpoint@0 {
-					reg = <0>;
-					remote-endpoint = <&vopb_out_lvds>;
-				};
-				lvds_in_vopl: endpoint@1 {
-					reg = <1>;
-					remote-endpoint = <&vopl_out_lvds>;
-				};
-			};
-
-			lvds_out: port@1 {
-				reg = <1>;
-
-				lvds_out_panel: endpoint {
-					remote-endpoint = <&panel_in_lvds>;
-				};
-			};
-		};
-	};
--
2.20.1


^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH v6 02/17] dt-bindings: soc: rockchip: grf: add rockchip,lvds.yaml
  2022-12-22 14:22 [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML Johan Jonker
@ 2022-12-22 14:24 ` Johan Jonker
  2022-12-22 14:24 ` [PATCH v6 03/17] dt-bindings: display: dsi-controller: move clock-master property Johan Jonker
                   ` (17 subsequent siblings)
  18 siblings, 0 replies; 28+ messages in thread
From: Johan Jonker @ 2022-12-22 14:24 UTC (permalink / raw)
  To: heiko
  Cc: hjc, robh+dt, krzysztof.kozlowski+dt, gregkh, airlied, daniel,
	andrzej.hajda, neil.armstrong, robert.foss, Laurent.pinchart,
	jonas, jernej.skrabec, philippe.cornu, dri-devel, devicetree,
	linux-kernel, linux-arm-kernel, linux-rockchip, linux-usb,
	linus.walleij, inki.dae, sw0312.kim, kyungmin.park, alim.akhtar,
	linux-samsung-soc

Add new converted rockchip,lvds.yaml to grf.yaml file.
Prepare for more SoCs with lvds output.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Rob Herring <robh@kernel.org>
---

Changed V5:
  Drop the quotes
---
 .../devicetree/bindings/soc/rockchip/grf.yaml | 24 +++++++++++--------
 1 file changed, 14 insertions(+), 10 deletions(-)

diff --git a/Documentation/devicetree/bindings/soc/rockchip/grf.yaml b/Documentation/devicetree/bindings/soc/rockchip/grf.yaml
index 2ed8cca79..7ac9aa5fa 100644
--- a/Documentation/devicetree/bindings/soc/rockchip/grf.yaml
+++ b/Documentation/devicetree/bindings/soc/rockchip/grf.yaml
@@ -75,13 +75,17 @@ allOf:
       properties:
         compatible:
           contains:
-            const: rockchip,px30-grf
+            enum:
+              - rockchip,px30-grf

     then:
       properties:
         lvds:
-          description:
-            Documentation/devicetree/bindings/display/rockchip/rockchip-lvds.txt
+          type: object
+
+          $ref: /schemas/display/rockchip/rockchip,lvds.yaml#
+
+          unevaluatedProperties: false

   - if:
       properties:
@@ -109,7 +113,7 @@ allOf:
         usbphy:
           type: object

-          $ref: "/schemas/phy/rockchip-usb-phy.yaml#"
+          $ref: /schemas/phy/rockchip-usb-phy.yaml#

           unevaluatedProperties: false

@@ -124,14 +128,14 @@ allOf:
         gpio:
           type: object

-          $ref: "/schemas/gpio/rockchip,rk3328-grf-gpio.yaml#"
+          $ref: /schemas/gpio/rockchip,rk3328-grf-gpio.yaml#

           unevaluatedProperties: false

         power-controller:
           type: object

-          $ref: "/schemas/power/rockchip,power-controller.yaml#"
+          $ref: /schemas/power/rockchip,power-controller.yaml#

           unevaluatedProperties: false

@@ -146,7 +150,7 @@ allOf:
         mipi-dphy-rx0:
           type: object

-          $ref: "/schemas/phy/rockchip-mipi-dphy-rx0.yaml#"
+          $ref: /schemas/phy/rockchip-mipi-dphy-rx0.yaml#

           unevaluatedProperties: false

@@ -174,7 +178,7 @@ allOf:
         reboot-mode:
           type: object

-          $ref: "/schemas/power/reset/syscon-reboot-mode.yaml#"
+          $ref: /schemas/power/reset/syscon-reboot-mode.yaml#

           unevaluatedProperties: false

@@ -200,7 +204,7 @@ allOf:
         "usb2phy@[0-9a-f]+$":
           type: object

-          $ref: "/schemas/phy/phy-rockchip-inno-usb2.yaml#"
+          $ref: /schemas/phy/phy-rockchip-inno-usb2.yaml#

           unevaluatedProperties: false

@@ -228,7 +232,7 @@ allOf:
         io-domains:
           type: object

-          $ref: "/schemas/power/rockchip-io-domain.yaml#"
+          $ref: /schemas/power/rockchip-io-domain.yaml#

           unevaluatedProperties: false

--
2.20.1


^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH v6 03/17] dt-bindings: display: dsi-controller: move clock-master property
  2022-12-22 14:22 [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML Johan Jonker
  2022-12-22 14:24 ` [PATCH v6 02/17] dt-bindings: soc: rockchip: grf: add rockchip,lvds.yaml Johan Jonker
@ 2022-12-22 14:24 ` Johan Jonker
  2022-12-22 19:33   ` Rob Herring
  2022-12-22 14:25 ` [PATCH v6 04/17] dt-bindings: display: bridge: snps,dw-mipi-dsi: fix clock properties Johan Jonker
                   ` (16 subsequent siblings)
  18 siblings, 1 reply; 28+ messages in thread
From: Johan Jonker @ 2022-12-22 14:24 UTC (permalink / raw)
  To: heiko
  Cc: hjc, robh+dt, krzysztof.kozlowski+dt, gregkh, airlied, daniel,
	andrzej.hajda, neil.armstrong, robert.foss, Laurent.pinchart,
	jonas, jernej.skrabec, philippe.cornu, dri-devel, devicetree,
	linux-kernel, linux-arm-kernel, linux-rockchip, linux-usb,
	linus.walleij, inki.dae, sw0312.kim, kyungmin.park, alim.akhtar,
	linux-samsung-soc

The clock-master property is used for the controller and not in the panel,
so move it there.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
---
 .../bindings/display/dsi-controller.yaml       | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/Documentation/devicetree/bindings/display/dsi-controller.yaml b/Documentation/devicetree/bindings/display/dsi-controller.yaml
index ca21671f6..67ce10307 100644
--- a/Documentation/devicetree/bindings/display/dsi-controller.yaml
+++ b/Documentation/devicetree/bindings/display/dsi-controller.yaml
@@ -30,6 +30,15 @@ properties:
   $nodename:
     pattern: "^dsi(@.*)?$"

+  clock-master:
+    type: boolean
+    description:
+      Should be enabled if the host is being used in conjunction with
+      another DSI host to drive the same peripheral. Hardware supporting
+      such a configuration generally requires the data on both the busses
+      to be driven by the same clock. Only the DSI host instance
+      controlling this clock should contain this property.
+
   "#address-cells":
     const: 1

@@ -52,15 +61,6 @@ patternProperties:
           case the reg property can take multiple entries, one for each virtual
           channel that the peripheral responds to.

-      clock-master:
-        type: boolean
-        description:
-          Should be enabled if the host is being used in conjunction with
-          another DSI host to drive the same peripheral. Hardware supporting
-          such a configuration generally requires the data on both the busses
-          to be driven by the same clock. Only the DSI host instance
-          controlling this clock should contain this property.
-
       enforce-video-mode:
         type: boolean
         description:
--
2.20.1


^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH v6 04/17] dt-bindings: display: bridge: snps,dw-mipi-dsi: fix clock properties
  2022-12-22 14:22 [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML Johan Jonker
  2022-12-22 14:24 ` [PATCH v6 02/17] dt-bindings: soc: rockchip: grf: add rockchip,lvds.yaml Johan Jonker
  2022-12-22 14:24 ` [PATCH v6 03/17] dt-bindings: display: dsi-controller: move clock-master property Johan Jonker
@ 2022-12-22 14:25 ` Johan Jonker
  2022-12-22 14:26 ` [PATCH v6 05/17] dt-bindings: display: rockchip: convert dw_mipi_dsi_rockchip.txt to yaml Johan Jonker
                   ` (15 subsequent siblings)
  18 siblings, 0 replies; 28+ messages in thread
From: Johan Jonker @ 2022-12-22 14:25 UTC (permalink / raw)
  To: heiko
  Cc: hjc, robh+dt, krzysztof.kozlowski+dt, gregkh, airlied, daniel,
	andrzej.hajda, neil.armstrong, robert.foss, Laurent.pinchart,
	jonas, jernej.skrabec, philippe.cornu, dri-devel, devicetree,
	linux-kernel, linux-arm-kernel, linux-rockchip, linux-usb,
	linus.walleij, inki.dae, sw0312.kim, kyungmin.park, alim.akhtar,
	linux-samsung-soc

Fix clock properties from the common snps,dw-mipi-dsi.yaml file,
as they don't match with what is used on the SoCs.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Rob Herring <robh@kernel.org>
---
 .../display/bridge/snps,dw-mipi-dsi.yaml         | 16 +++-------------
 1 file changed, 3 insertions(+), 13 deletions(-)

diff --git a/Documentation/devicetree/bindings/display/bridge/snps,dw-mipi-dsi.yaml b/Documentation/devicetree/bindings/display/bridge/snps,dw-mipi-dsi.yaml
index 11fd68a70..0b51c64f1 100644
--- a/Documentation/devicetree/bindings/display/bridge/snps,dw-mipi-dsi.yaml
+++ b/Documentation/devicetree/bindings/display/bridge/snps,dw-mipi-dsi.yaml
@@ -26,19 +26,9 @@ properties:
   reg:
     maxItems: 1

-  clocks:
-    items:
-      - description: Module clock
-      - description: DSI bus clock for either AHB and APB
-      - description: Pixel clock for the DPI/RGB input
-    minItems: 2
-
-  clock-names:
-    items:
-      - const: ref
-      - const: pclk
-      - const: px_clk
-    minItems: 2
+  clocks: true
+
+  clock-names: true

   resets:
     maxItems: 1
--
2.20.1


^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH v6 05/17] dt-bindings: display: rockchip: convert dw_mipi_dsi_rockchip.txt to yaml
  2022-12-22 14:22 [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML Johan Jonker
                   ` (2 preceding siblings ...)
  2022-12-22 14:25 ` [PATCH v6 04/17] dt-bindings: display: bridge: snps,dw-mipi-dsi: fix clock properties Johan Jonker
@ 2022-12-22 14:26 ` Johan Jonker
  2022-12-22 19:34   ` Rob Herring
  2022-12-22 14:26 ` [PATCH v6 06/17] dt-bindings: display: bridge: convert analogix_dp.txt " Johan Jonker
                   ` (14 subsequent siblings)
  18 siblings, 1 reply; 28+ messages in thread
From: Johan Jonker @ 2022-12-22 14:26 UTC (permalink / raw)
  To: heiko
  Cc: hjc, robh+dt, krzysztof.kozlowski+dt, gregkh, airlied, daniel,
	andrzej.hajda, neil.armstrong, robert.foss, Laurent.pinchart,
	jonas, jernej.skrabec, philippe.cornu, dri-devel, devicetree,
	linux-kernel, linux-arm-kernel, linux-rockchip, linux-usb,
	linus.walleij, inki.dae, sw0312.kim, kyungmin.park, alim.akhtar,
	linux-samsung-soc

Convert dw_mipi_dsi_rockchip.txt to yaml.

Changed:
  file name
  requirements

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
---

Changed V6:
  Remove clock-master property
  Fix $ref
---
 .../display/rockchip/dw_mipi_dsi_rockchip.txt |  94 ----------
 .../rockchip/rockchip,dw-mipi-dsi.yaml        | 166 ++++++++++++++++++
 2 files changed, 166 insertions(+), 94 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/rockchip/dw_mipi_dsi_rockchip.txt
 create mode 100644 Documentation/devicetree/bindings/display/rockchip/rockchip,dw-mipi-dsi.yaml

diff --git a/Documentation/devicetree/bindings/display/rockchip/dw_mipi_dsi_rockchip.txt b/Documentation/devicetree/bindings/display/rockchip/dw_mipi_dsi_rockchip.txt
deleted file mode 100644
index 9a223df85..000000000
--- a/Documentation/devicetree/bindings/display/rockchip/dw_mipi_dsi_rockchip.txt
+++ /dev/null
@@ -1,94 +0,0 @@
-Rockchip specific extensions to the Synopsys Designware MIPI DSI
-================================
-
-Required properties:
-- #address-cells: Should be <1>.
-- #size-cells: Should be <0>.
-- compatible: one of
-	"rockchip,px30-mipi-dsi", "snps,dw-mipi-dsi"
-	"rockchip,rk3288-mipi-dsi", "snps,dw-mipi-dsi"
-	"rockchip,rk3399-mipi-dsi", "snps,dw-mipi-dsi"
-	"rockchip,rk3568-mipi-dsi", "snps,dw-mipi-dsi"
-- reg: Represent the physical address range of the controller.
-- interrupts: Represent the controller's interrupt to the CPU(s).
-- clocks, clock-names: Phandles to the controller's pll reference
-  clock(ref) when using an internal dphy and APB clock(pclk).
-  For RK3399, a phy config clock (phy_cfg) and a grf clock(grf)
-  are required. As described in [1].
-- rockchip,grf: this soc should set GRF regs to mux vopl/vopb.
-- ports: contain a port node with endpoint definitions as defined in [2].
-  For vopb,set the reg = <0> and set the reg = <1> for vopl.
-- video port 0 for the VOP input, the remote endpoint maybe vopb or vopl
-- video port 1 for either a panel or subsequent encoder
-
-Optional properties:
-- phys: from general PHY binding: the phandle for the PHY device.
-- phy-names: Should be "dphy" if phys references an external phy.
-- #phy-cells: Defined when used as ISP phy, should be 0.
-- power-domains: a phandle to mipi dsi power domain node.
-- resets: list of phandle + reset specifier pairs, as described in [3].
-- reset-names: string reset name, must be "apb".
-
-[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
-[2] Documentation/devicetree/bindings/media/video-interfaces.txt
-[3] Documentation/devicetree/bindings/reset/reset.txt
-
-Example:
-	mipi_dsi: mipi@ff960000 {
-		#address-cells = <1>;
-		#size-cells = <0>;
-		compatible = "rockchip,rk3288-mipi-dsi", "snps,dw-mipi-dsi";
-		reg = <0xff960000 0x4000>;
-		interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
-		clocks = <&cru SCLK_MIPI_24M>, <&cru PCLK_MIPI_DSI0>;
-		clock-names = "ref", "pclk";
-		resets = <&cru SRST_MIPIDSI0>;
-		reset-names = "apb";
-		rockchip,grf = <&grf>;
-
-		ports {
-			#address-cells = <1>;
-			#size-cells = <0>;
-
-			mipi_in: port@0 {
-				reg = <0>;
-				#address-cells = <1>;
-				#size-cells = <0>;
-
-				mipi_in_vopb: endpoint@0 {
-					reg = <0>;
-					remote-endpoint = <&vopb_out_mipi>;
-				};
-				mipi_in_vopl: endpoint@1 {
-					reg = <1>;
-					remote-endpoint = <&vopl_out_mipi>;
-				};
-			};
-
-			mipi_out: port@1 {
-				reg = <1>;
-				#address-cells = <1>;
-				#size-cells = <0>;
-
-				mipi_out_panel: endpoint {
-					remote-endpoint = <&panel_in_mipi>;
-				};
-			};
-		};
-
-		panel {
-			compatible ="boe,tv080wum-nl0";
-			reg = <0>;
-
-			enable-gpios = <&gpio7 3 GPIO_ACTIVE_HIGH>;
-			pinctrl-names = "default";
-			pinctrl-0 = <&lcd_en>;
-			backlight = <&backlight>;
-
-			port {
-				panel_in_mipi: endpoint {
-					remote-endpoint = <&mipi_out_panel>;
-				};
-			};
-		};
-	};
diff --git a/Documentation/devicetree/bindings/display/rockchip/rockchip,dw-mipi-dsi.yaml b/Documentation/devicetree/bindings/display/rockchip/rockchip,dw-mipi-dsi.yaml
new file mode 100644
index 000000000..8e8a40879
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/rockchip/rockchip,dw-mipi-dsi.yaml
@@ -0,0 +1,166 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/rockchip/rockchip,dw-mipi-dsi.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Rockchip specific extensions to the Synopsys Designware MIPI DSI
+
+maintainers:
+  - Sandy Huang <hjc@rock-chips.com>
+  - Heiko Stuebner <heiko@sntech.de>
+
+properties:
+  compatible:
+    items:
+      - enum:
+          - rockchip,px30-mipi-dsi
+          - rockchip,rk3288-mipi-dsi
+          - rockchip,rk3399-mipi-dsi
+          - rockchip,rk3568-mipi-dsi
+      - const: snps,dw-mipi-dsi
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    minItems: 1
+    maxItems: 4
+
+  clock-names:
+    oneOf:
+      - minItems: 2
+        items:
+          - const: ref
+          - const: pclk
+          - const: phy_cfg
+          - const: grf
+      - const: pclk
+
+  rockchip,grf:
+    $ref: /schemas/types.yaml#/definitions/phandle
+    description:
+      This SoC uses GRF regs to switch between vopl/vopb.
+
+  phys:
+    maxItems: 1
+
+  phy-names:
+    const: dphy
+
+  "#phy-cells":
+    const: 0
+    description:
+      Defined when in use as ISP phy.
+
+  power-domains:
+    maxItems: 1
+
+  "#address-cells":
+    const: 1
+
+  "#size-cells":
+    const: 0
+
+required:
+  - compatible
+  - clocks
+  - clock-names
+  - rockchip,grf
+
+allOf:
+  - $ref: /schemas/display/bridge/snps,dw-mipi-dsi.yaml#
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - rockchip,px30-mipi-dsi
+              - rockchip,rk3568-mipi-dsi
+
+    then:
+      properties:
+        clocks:
+          maxItems: 1
+
+        clock-names:
+          maxItems: 1
+
+      required:
+        - phys
+        - phy-names
+
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: rockchip,rk3288-mipi-dsi
+
+    then:
+      properties:
+        clocks:
+          maxItems: 2
+
+        clock-names:
+          maxItems: 2
+
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: rockchip,rk3399-mipi-dsi
+
+    then:
+      properties:
+        clocks:
+          minItems: 4
+
+        clock-names:
+          minItems: 4
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/clock/rk3288-cru.h>
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+    #include <dt-bindings/interrupt-controller/irq.h>
+
+    mipi_dsi: dsi@ff960000 {
+      compatible = "rockchip,rk3288-mipi-dsi", "snps,dw-mipi-dsi";
+      reg = <0xff960000 0x4000>;
+      interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
+      clocks = <&cru SCLK_MIPIDSI_24M>, <&cru PCLK_MIPI_DSI0>;
+      clock-names = "ref", "pclk";
+      resets = <&cru SRST_MIPIDSI0>;
+      reset-names = "apb";
+      rockchip,grf = <&grf>;
+
+      ports {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        mipi_in: port@0 {
+          reg = <0>;
+          #address-cells = <1>;
+          #size-cells = <0>;
+
+          mipi_in_vopb: endpoint@0 {
+            reg = <0>;
+            remote-endpoint = <&vopb_out_mipi>;
+          };
+          mipi_in_vopl: endpoint@1 {
+            reg = <1>;
+            remote-endpoint = <&vopl_out_mipi>;
+          };
+        };
+
+        mipi_out: port@1 {
+          reg = <1>;
+
+          mipi_out_panel: endpoint {
+            remote-endpoint = <&panel_in_mipi>;
+          };
+        };
+      };
+    };
--
2.20.1


^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH v6 06/17] dt-bindings: display: bridge: convert analogix_dp.txt to yaml
  2022-12-22 14:22 [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML Johan Jonker
                   ` (3 preceding siblings ...)
  2022-12-22 14:26 ` [PATCH v6 05/17] dt-bindings: display: rockchip: convert dw_mipi_dsi_rockchip.txt to yaml Johan Jonker
@ 2022-12-22 14:26 ` Johan Jonker
  2022-12-22 20:26   ` Rob Herring
  2022-12-22 14:27 ` [PATCH v6 07/17] dt-bindings: display: rockchip: convert analogix_dp-rockchip.txt " Johan Jonker
                   ` (13 subsequent siblings)
  18 siblings, 1 reply; 28+ messages in thread
From: Johan Jonker @ 2022-12-22 14:26 UTC (permalink / raw)
  To: heiko
  Cc: hjc, robh+dt, krzysztof.kozlowski+dt, gregkh, airlied, daniel,
	andrzej.hajda, neil.armstrong, robert.foss, Laurent.pinchart,
	jonas, jernej.skrabec, philippe.cornu, dri-devel, devicetree,
	linux-kernel, linux-arm-kernel, linux-rockchip, linux-usb,
	linus.walleij, inki.dae, sw0312.kim, kyungmin.park, alim.akhtar,
	linux-samsung-soc

Convert analogix_dp.txt to yaml for use as common document.

Changed:
  Relexed requirements

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
---
 .../bindings/display/bridge/analogix,dp.yaml  | 63 +++++++++++++++++++
 .../bindings/display/bridge/analogix_dp.txt   | 51 ---------------
 .../bindings/display/exynos/exynos_dp.txt     |  2 +-
 3 files changed, 64 insertions(+), 52 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/display/bridge/analogix,dp.yaml
 delete mode 100644 Documentation/devicetree/bindings/display/bridge/analogix_dp.txt

diff --git a/Documentation/devicetree/bindings/display/bridge/analogix,dp.yaml b/Documentation/devicetree/bindings/display/bridge/analogix,dp.yaml
new file mode 100644
index 000000000..c9b06885c
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/bridge/analogix,dp.yaml
@@ -0,0 +1,63 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/bridge/analogix,dp.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Analogix Display Port bridge
+
+maintainers:
+  - Rob Herring <robh@kernel.org>
+
+properties:
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks: true
+
+  clock-names: true
+
+  phys: true
+
+  phy-names:
+    const: dp
+
+  force-hpd:
+    description:
+      Indicate driver need force hpd when hpd detect failed, this
+      is used for some eDP screen which don not have a hpd signal.
+
+  hpd-gpios:
+    description:
+      Hotplug detect GPIO.
+      Indicates which GPIO should be used for hotplug detection
+
+  ports:
+    $ref: /schemas/graph.yaml#/properties/ports
+
+    properties:
+      port@0:
+        $ref: /schemas/graph.yaml#/properties/port
+        description:
+          Input node to receive pixel data.
+
+      port@1:
+        $ref: /schemas/graph.yaml#/properties/port
+        description:
+          Port node with one endpoint connected to a dp-connector node.
+
+    required:
+      - port@0
+      - port@1
+
+required:
+  - reg
+  - interrupts
+  - clock-names
+  - clocks
+  - ports
+
+additionalProperties: true
diff --git a/Documentation/devicetree/bindings/display/bridge/analogix_dp.txt b/Documentation/devicetree/bindings/display/bridge/analogix_dp.txt
deleted file mode 100644
index 027d76c27..000000000
--- a/Documentation/devicetree/bindings/display/bridge/analogix_dp.txt
+++ /dev/null
@@ -1,51 +0,0 @@
-Analogix Display Port bridge bindings
-
-Required properties for dp-controller:
-	-compatible:
-		platform specific such as:
-		 * "samsung,exynos5-dp"
-		 * "rockchip,rk3288-dp"
-		 * "rockchip,rk3399-edp"
-	-reg:
-		physical base address of the controller and length
-		of memory mapped region.
-	-interrupts:
-		interrupt combiner values.
-	-clocks:
-		from common clock binding: handle to dp clock.
-	-clock-names:
-		from common clock binding: Shall be "dp".
-	-phys:
-		from general PHY binding: the phandle for the PHY device.
-	-phy-names:
-		from general PHY binding: Should be "dp".
-
-Optional properties for dp-controller:
-	-force-hpd:
-		Indicate driver need force hpd when hpd detect failed, this
-		is used for some eDP screen which don't have hpd signal.
-	-hpd-gpios:
-		Hotplug detect GPIO.
-		Indicates which GPIO should be used for hotplug detection
-	-port@[X]: SoC specific port nodes with endpoint definitions as defined
-		in Documentation/devicetree/bindings/media/video-interfaces.txt,
-		please refer to the SoC specific binding document:
-		* Documentation/devicetree/bindings/display/exynos/exynos_dp.txt
-		* Documentation/devicetree/bindings/display/rockchip/analogix_dp-rockchip.txt
-
-[1]: Documentation/devicetree/bindings/media/video-interfaces.txt
--------------------------------------------------------------------------------
-
-Example:
-
-	dp-controller {
-		compatible = "samsung,exynos5-dp";
-		reg = <0x145b0000 0x10000>;
-		interrupts = <10 3>;
-		interrupt-parent = <&combiner>;
-		clocks = <&clock 342>;
-		clock-names = "dp";
-
-		phys = <&dp_phy>;
-		phy-names = "dp";
-	};
diff --git a/Documentation/devicetree/bindings/display/exynos/exynos_dp.txt b/Documentation/devicetree/bindings/display/exynos/exynos_dp.txt
index 9b6cba3f8..3a4015903 100644
--- a/Documentation/devicetree/bindings/display/exynos/exynos_dp.txt
+++ b/Documentation/devicetree/bindings/display/exynos/exynos_dp.txt
@@ -50,7 +50,7 @@ Optional properties for dp-controller:
 		Documentation/devicetree/bindings/display/panel/display-timing.txt

 For the below properties, please refer to Analogix DP binding document:
- * Documentation/devicetree/bindings/display/bridge/analogix_dp.txt
+ * Documentation/devicetree/bindings/display/bridge/analogix,dp.yaml
 	-phys (required)
 	-phy-names (required)
 	-hpd-gpios (optional)
--
2.20.1


^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH v6 07/17] dt-bindings: display: rockchip: convert analogix_dp-rockchip.txt to yaml
  2022-12-22 14:22 [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML Johan Jonker
                   ` (4 preceding siblings ...)
  2022-12-22 14:26 ` [PATCH v6 06/17] dt-bindings: display: bridge: convert analogix_dp.txt " Johan Jonker
@ 2022-12-22 14:27 ` Johan Jonker
  2022-12-22 20:27   ` Rob Herring
  2022-12-22 14:28 ` [PATCH v6 08/17] dt-bindings: usb: convert fcs,fusb302.txt " Johan Jonker
                   ` (12 subsequent siblings)
  18 siblings, 1 reply; 28+ messages in thread
From: Johan Jonker @ 2022-12-22 14:27 UTC (permalink / raw)
  To: heiko
  Cc: hjc, robh+dt, krzysztof.kozlowski+dt, gregkh, airlied, daniel,
	andrzej.hajda, neil.armstrong, robert.foss, Laurent.pinchart,
	jonas, jernej.skrabec, philippe.cornu, dri-devel, devicetree,
	linux-kernel, linux-arm-kernel, linux-rockchip, linux-usb,
	linus.walleij, inki.dae, sw0312.kim, kyungmin.park, alim.akhtar,
	linux-samsung-soc

Convert analogix_dp-rockchip.txt to yaml.

Changed:
  Add power-domains property
  File name

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
---
 .../display/rockchip/analogix_dp-rockchip.txt |  98 -----------------
 .../rockchip/rockchip,analogix-dp.yaml        | 103 ++++++++++++++++++
 2 files changed, 103 insertions(+), 98 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/rockchip/analogix_dp-rockchip.txt
 create mode 100644 Documentation/devicetree/bindings/display/rockchip/rockchip,analogix-dp.yaml

diff --git a/Documentation/devicetree/bindings/display/rockchip/analogix_dp-rockchip.txt b/Documentation/devicetree/bindings/display/rockchip/analogix_dp-rockchip.txt
deleted file mode 100644
index 43561584c..000000000
--- a/Documentation/devicetree/bindings/display/rockchip/analogix_dp-rockchip.txt
+++ /dev/null
@@ -1,98 +0,0 @@
-Rockchip RK3288 specific extensions to the Analogix Display Port
-================================
-
-Required properties:
-- compatible: "rockchip,rk3288-dp",
-	      "rockchip,rk3399-edp";
-
-- reg: physical base address of the controller and length
-
-- clocks: from common clock binding: handle to dp clock.
-	  of memory mapped region.
-
-- clock-names: from common clock binding:
-	       Required elements: "dp" "pclk"
-
-- resets: Must contain an entry for each entry in reset-names.
-	  See ../reset/reset.txt for details.
-
-- pinctrl-names: Names corresponding to the chip hotplug pinctrl states.
-- pinctrl-0: pin-control mode. should be <&edp_hpd>
-
-- reset-names: Must include the name "dp"
-
-- rockchip,grf: this soc should set GRF regs, so need get grf here.
-
-- ports: there are 2 port nodes with endpoint definitions as defined in
-  Documentation/devicetree/bindings/media/video-interfaces.txt.
-    Port 0: contained 2 endpoints, connecting to the output of vop.
-    Port 1: contained 1 endpoint, connecting to the input of panel.
-
-Optional property for different chips:
-- clocks: from common clock binding: handle to grf_vio clock.
-
-- clock-names: from common clock binding:
-	       Required elements: "grf"
-
-For the below properties, please refer to Analogix DP binding document:
- * Documentation/devicetree/bindings/display/bridge/analogix_dp.txt
-- phys (required)
-- phy-names (required)
-- hpd-gpios (optional)
-- force-hpd (optional)
--------------------------------------------------------------------------------
-
-Example:
-	dp-controller: dp@ff970000 {
-		compatible = "rockchip,rk3288-dp";
-		reg = <0xff970000 0x4000>;
-		interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
-		clocks = <&cru SCLK_EDP>, <&cru PCLK_EDP_CTRL>;
-		clock-names = "dp", "pclk";
-		phys = <&dp_phy>;
-		phy-names = "dp";
-
-		rockchip,grf = <&grf>;
-		resets = <&cru 111>;
-		reset-names = "dp";
-
-		pinctrl-names = "default";
-		pinctrl-0 = <&edp_hpd>;
-
-
-		ports {
-			#address-cells = <1>;
-			#size-cells = <0>;
-			edp_in: port@0 {
-				reg = <0>;
-				#address-cells = <1>;
-				#size-cells = <0>;
-				edp_in_vopb: endpoint@0 {
-					reg = <0>;
-					remote-endpoint = <&vopb_out_edp>;
-				};
-				edp_in_vopl: endpoint@1 {
-					reg = <1>;
-					remote-endpoint = <&vopl_out_edp>;
-				};
-			};
-
-			edp_out: port@1 {
-				reg = <1>;
-				#address-cells = <1>;
-				#size-cells = <0>;
-				edp_out_panel: endpoint {
-					reg = <0>;
-					remote-endpoint = <&panel_in_edp>
-				};
-			};
-		};
-	};
-
-	pinctrl {
-		edp {
-			edp_hpd: edp-hpd {
-				rockchip,pins = <7 11 RK_FUNC_2 &pcfg_pull_none>;
-			};
-		};
-	};
diff --git a/Documentation/devicetree/bindings/display/rockchip/rockchip,analogix-dp.yaml b/Documentation/devicetree/bindings/display/rockchip/rockchip,analogix-dp.yaml
new file mode 100644
index 000000000..60dedf9b2
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/rockchip/rockchip,analogix-dp.yaml
@@ -0,0 +1,103 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/rockchip/rockchip,analogix-dp.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Rockchip specific extensions to the Analogix Display Port
+
+maintainers:
+  - Sandy Huang <hjc@rock-chips.com>
+  - Heiko Stuebner <heiko@sntech.de>
+
+properties:
+  compatible:
+    enum:
+      - rockchip,rk3288-dp
+      - rockchip,rk3399-edp
+
+  clocks:
+    minItems: 2
+    maxItems: 3
+
+  clock-names:
+    minItems: 2
+    items:
+      - const: dp
+      - const: pclk
+      - const: grf
+
+  power-domains:
+    maxItems: 1
+
+  resets:
+    maxItems: 1
+
+  reset-names:
+    const: dp
+
+  rockchip,grf:
+    $ref: /schemas/types.yaml#/definitions/phandle
+    description:
+      This SoC makes use of GRF regs.
+
+required:
+  - compatible
+  - clocks
+  - clock-names
+  - resets
+  - reset-names
+  - rockchip,grf
+
+allOf:
+  - $ref: /schemas/display/bridge/analogix,dp.yaml#
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/clock/rk3288-cru.h>
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+    #include <dt-bindings/interrupt-controller/irq.h>
+    dp@ff970000 {
+      compatible = "rockchip,rk3288-dp";
+      reg = <0xff970000 0x4000>;
+      interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
+      clocks = <&cru SCLK_EDP>, <&cru PCLK_EDP_CTRL>;
+      clock-names = "dp", "pclk";
+      phys = <&dp_phy>;
+      phy-names = "dp";
+      resets = <&cru 111>;
+      reset-names = "dp";
+      rockchip,grf = <&grf>;
+      pinctrl-0 = <&edp_hpd>;
+      pinctrl-names = "default";
+
+      ports {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        edp_in: port@0 {
+          reg = <0>;
+          #address-cells = <1>;
+          #size-cells = <0>;
+
+          edp_in_vopb: endpoint@0 {
+            reg = <0>;
+            remote-endpoint = <&vopb_out_edp>;
+          };
+          edp_in_vopl: endpoint@1 {
+            reg = <1>;
+            remote-endpoint = <&vopl_out_edp>;
+          };
+        };
+
+        edp_out: port@1 {
+          reg = <1>;
+
+          edp_out_panel: endpoint {
+            remote-endpoint = <&panel_in_edp>;
+          };
+        };
+      };
+    };
--
2.20.1


^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH v6 08/17] dt-bindings: usb: convert fcs,fusb302.txt to yaml
  2022-12-22 14:22 [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML Johan Jonker
                   ` (5 preceding siblings ...)
  2022-12-22 14:27 ` [PATCH v6 07/17] dt-bindings: display: rockchip: convert analogix_dp-rockchip.txt " Johan Jonker
@ 2022-12-22 14:28 ` Johan Jonker
  2022-12-22 20:28   ` Rob Herring
  2022-12-22 14:29 ` [PATCH v6 09/17] ARM: dts: rockchip: rk3288: fix dsi node Johan Jonker
                   ` (11 subsequent siblings)
  18 siblings, 1 reply; 28+ messages in thread
From: Johan Jonker @ 2022-12-22 14:28 UTC (permalink / raw)
  To: heiko
  Cc: hjc, robh+dt, krzysztof.kozlowski+dt, gregkh, airlied, daniel,
	andrzej.hajda, neil.armstrong, robert.foss, Laurent.pinchart,
	jonas, jernej.skrabec, philippe.cornu, dri-devel, devicetree,
	linux-kernel, linux-arm-kernel, linux-rockchip, linux-usb,
	linus.walleij, inki.dae, sw0312.kim, kyungmin.park, alim.akhtar,
	linux-samsung-soc

Convert fcs,fusb302.txt to yaml.

Changed:
  Add vbus-supply property

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
---

Changed V6:
  Add unevaluatedProperties
  Drop unused labels
---
 .../devicetree/bindings/usb/fcs,fusb302.txt   | 34 ----------
 .../devicetree/bindings/usb/fcs,fusb302.yaml  | 67 +++++++++++++++++++
 2 files changed, 67 insertions(+), 34 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/usb/fcs,fusb302.txt
 create mode 100644 Documentation/devicetree/bindings/usb/fcs,fusb302.yaml

diff --git a/Documentation/devicetree/bindings/usb/fcs,fusb302.txt b/Documentation/devicetree/bindings/usb/fcs,fusb302.txt
deleted file mode 100644
index 60e465429..000000000
--- a/Documentation/devicetree/bindings/usb/fcs,fusb302.txt
+++ /dev/null
@@ -1,34 +0,0 @@
-Fairchild FUSB302 Type-C Port controllers
-
-Required properties :
-- compatible             : "fcs,fusb302"
-- reg                    : I2C slave address
-- interrupts             : Interrupt specifier
-
-Required sub-node:
-- connector : The "usb-c-connector" attached to the FUSB302 IC. The bindings
-  of the connector node are specified in:
-
-	Documentation/devicetree/bindings/connector/usb-connector.yaml
-
-
-Example:
-
-fusb302: typec-portc@54 {
-	compatible = "fcs,fusb302";
-	reg = <0x54>;
-	interrupt-parent = <&nmi_intc>;
-	interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
-
-	usb_con: connector {
-		compatible = "usb-c-connector";
-		label = "USB-C";
-		power-role = "dual";
-		try-power-role = "sink";
-		source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
-		sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
-			     PDO_VAR(3000, 12000, 3000)
-			     PDO_PPS_APDO(3000, 11000, 3000)>;
-		op-sink-microwatt = <10000000>;
-	};
-};
diff --git a/Documentation/devicetree/bindings/usb/fcs,fusb302.yaml b/Documentation/devicetree/bindings/usb/fcs,fusb302.yaml
new file mode 100644
index 000000000..b396ea0ab
--- /dev/null
+++ b/Documentation/devicetree/bindings/usb/fcs,fusb302.yaml
@@ -0,0 +1,67 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/usb/fcs,fusb302.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Fairchild FUSB302 Type-C Port controller
+
+maintainers:
+  - Rob Herring <robh@kernel.org>
+
+properties:
+  compatible:
+    const: fcs,fusb302
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  vbus-supply:
+    description: VBUS power supply
+
+  connector:
+    type: object
+    $ref: /schemas/connector/usb-connector.yaml#
+    unevaluatedProperties: false
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - vbus-supply
+  - connector
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+    #include <dt-bindings/usb/pd.h>
+
+    i2c {
+      #address-cells = <1>;
+      #size-cells = <0>;
+
+      typec-portc@54 {
+        compatible = "fcs,fusb302";
+        reg = <0x54>;
+        interrupt-parent = <&nmi_intc>;
+        interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
+        vbus-supply = <&vbus_typec>;
+
+        connector {
+          compatible = "usb-c-connector";
+          label = "USB-C";
+          power-role = "dual";
+          try-power-role = "sink";
+          source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
+          sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
+                       PDO_VAR(3000, 12000, 3000)
+                       PDO_PPS_APDO(3000, 11000, 3000)>;
+          op-sink-microwatt = <10000000>;
+        };
+      };
+    };
--
2.20.1


^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH v6 09/17] ARM: dts: rockchip: rk3288: fix dsi node
  2022-12-22 14:22 [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML Johan Jonker
                   ` (6 preceding siblings ...)
  2022-12-22 14:28 ` [PATCH v6 08/17] dt-bindings: usb: convert fcs,fusb302.txt " Johan Jonker
@ 2022-12-22 14:29 ` Johan Jonker
  2022-12-22 14:30 ` [PATCH v6 10/17] ARM: dts: rockchip: rk3288: fix lvds node Johan Jonker
                   ` (10 subsequent siblings)
  18 siblings, 0 replies; 28+ messages in thread
From: Johan Jonker @ 2022-12-22 14:29 UTC (permalink / raw)
  To: heiko
  Cc: hjc, robh+dt, krzysztof.kozlowski+dt, gregkh, airlied, daniel,
	andrzej.hajda, neil.armstrong, robert.foss, Laurent.pinchart,
	jonas, jernej.skrabec, philippe.cornu, dri-devel, devicetree,
	linux-kernel, linux-arm-kernel, linux-rockchip, linux-usb,
	linus.walleij, inki.dae, sw0312.kim, kyungmin.park, alim.akhtar,
	linux-samsung-soc

Use generic node name for rk3288.dtsi dsi node.
With the conversion of rockchip,dw-mipi-dsi.yaml a port@1 node
is required, so add a node with label mipi_out.
Also restyle.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
---

Changed V6:
  Restyle
---
 arch/arm/boot/dts/rk3288.dtsi | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi
index 487b0e03d..fbb174729 100644
--- a/arch/arm/boot/dts/rk3288.dtsi
+++ b/arch/arm/boot/dts/rk3288.dtsi
@@ -1114,7 +1114,7 @@
 		status = "disabled";
 	};

-	mipi_dsi: mipi@ff960000 {
+	mipi_dsi: dsi@ff960000 {
 		compatible = "rockchip,rk3288-mipi-dsi", "snps,dw-mipi-dsi";
 		reg = <0x0 0xff960000 0x0 0x4000>;
 		interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
@@ -1125,18 +1125,28 @@
 		status = "disabled";

 		ports {
-			mipi_in: port {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			mipi_in: port@0 {
+				reg = <0>;
 				#address-cells = <1>;
 				#size-cells = <0>;
+
 				mipi_in_vopb: endpoint@0 {
 					reg = <0>;
 					remote-endpoint = <&vopb_out_mipi>;
 				};
+
 				mipi_in_vopl: endpoint@1 {
 					reg = <1>;
 					remote-endpoint = <&vopl_out_mipi>;
 				};
 			};
+
+			mipi_out: port@1 {
+				reg = <1>;
+			};
 		};
 	};

--
2.20.1


^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH v6 10/17] ARM: dts: rockchip: rk3288: fix lvds node
  2022-12-22 14:22 [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML Johan Jonker
                   ` (7 preceding siblings ...)
  2022-12-22 14:29 ` [PATCH v6 09/17] ARM: dts: rockchip: rk3288: fix dsi node Johan Jonker
@ 2022-12-22 14:30 ` Johan Jonker
  2022-12-22 14:30 ` [PATCH v6 11/17] ARM: dts: rockchip: rk3288: fix dp node Johan Jonker
                   ` (9 subsequent siblings)
  18 siblings, 0 replies; 28+ messages in thread
From: Johan Jonker @ 2022-12-22 14:30 UTC (permalink / raw)
  To: heiko
  Cc: hjc, robh+dt, krzysztof.kozlowski+dt, gregkh, airlied, daniel,
	andrzej.hajda, neil.armstrong, robert.foss, Laurent.pinchart,
	jonas, jernej.skrabec, philippe.cornu, dri-devel, devicetree,
	linux-kernel, linux-arm-kernel, linux-rockchip, linux-usb,
	linus.walleij, inki.dae, sw0312.kim, kyungmin.park, alim.akhtar,
	linux-samsung-soc

With the conversion of rockchip,lvds.yaml a port@1 node
is required, so add a node with label lvds_out.
Also restyle.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
---

Changed V6:
  Restyle

Changed V5:
  Rename title
---
 arch/arm/boot/dts/rk3288.dtsi | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi
index fbb174729..9def3988e 100644
--- a/arch/arm/boot/dts/rk3288.dtsi
+++ b/arch/arm/boot/dts/rk3288.dtsi
@@ -1167,7 +1167,6 @@

 			lvds_in: port@0 {
 				reg = <0>;
-
 				#address-cells = <1>;
 				#size-cells = <0>;

@@ -1175,11 +1174,16 @@
 					reg = <0>;
 					remote-endpoint = <&vopb_out_lvds>;
 				};
+
 				lvds_in_vopl: endpoint@1 {
 					reg = <1>;
 					remote-endpoint = <&vopl_out_lvds>;
 				};
 			};
+
+			lvds_out: port@1 {
+				reg = <1>;
+			};
 		};
 	};

--
2.20.1


^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH v6 11/17] ARM: dts: rockchip: rk3288: fix dp node
  2022-12-22 14:22 [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML Johan Jonker
                   ` (8 preceding siblings ...)
  2022-12-22 14:30 ` [PATCH v6 10/17] ARM: dts: rockchip: rk3288: fix lvds node Johan Jonker
@ 2022-12-22 14:30 ` Johan Jonker
  2022-12-22 14:31 ` [PATCH v6 12/17] arm64: dts: rockchip: px30: fix lvds node Johan Jonker
                   ` (8 subsequent siblings)
  18 siblings, 0 replies; 28+ messages in thread
From: Johan Jonker @ 2022-12-22 14:30 UTC (permalink / raw)
  To: heiko
  Cc: hjc, robh+dt, krzysztof.kozlowski+dt, gregkh, airlied, daniel,
	andrzej.hajda, neil.armstrong, robert.foss, Laurent.pinchart,
	jonas, jernej.skrabec, philippe.cornu, dri-devel, devicetree,
	linux-kernel, linux-arm-kernel, linux-rockchip, linux-usb,
	linus.walleij, inki.dae, sw0312.kim, kyungmin.park, alim.akhtar,
	linux-samsung-soc

With the conversion of rockchip,analogix-dp.yaml a port@1 node
is required, so add a node with label edp_out.
Also restyle.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
---
 arch/arm/boot/dts/rk3288.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi
index 9def3988e..4d1bc6784 100644
--- a/arch/arm/boot/dts/rk3288.dtsi
+++ b/arch/arm/boot/dts/rk3288.dtsi
@@ -1203,19 +1203,26 @@
 		ports {
 			#address-cells = <1>;
 			#size-cells = <0>;
+
 			edp_in: port@0 {
 				reg = <0>;
 				#address-cells = <1>;
 				#size-cells = <0>;
+
 				edp_in_vopb: endpoint@0 {
 					reg = <0>;
 					remote-endpoint = <&vopb_out_edp>;
 				};
+
 				edp_in_vopl: endpoint@1 {
 					reg = <1>;
 					remote-endpoint = <&vopl_out_edp>;
 				};
 			};
+
+			edp_out: port@1 {
+				reg = <1>;
+			};
 		};
 	};

--
2.20.1


^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH v6 12/17] arm64: dts: rockchip: px30: fix lvds node
  2022-12-22 14:22 [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML Johan Jonker
                   ` (9 preceding siblings ...)
  2022-12-22 14:30 ` [PATCH v6 11/17] ARM: dts: rockchip: rk3288: fix dp node Johan Jonker
@ 2022-12-22 14:31 ` Johan Jonker
  2022-12-22 14:31 ` [PATCH v6 13/17] arm64: dts: rockchip: px30: fix dsi node Johan Jonker
                   ` (7 subsequent siblings)
  18 siblings, 0 replies; 28+ messages in thread
From: Johan Jonker @ 2022-12-22 14:31 UTC (permalink / raw)
  To: heiko
  Cc: hjc, robh+dt, krzysztof.kozlowski+dt, gregkh, airlied, daniel,
	andrzej.hajda, neil.armstrong, robert.foss, Laurent.pinchart,
	jonas, jernej.skrabec, philippe.cornu, dri-devel, devicetree,
	linux-kernel, linux-arm-kernel, linux-rockchip, linux-usb,
	linus.walleij, inki.dae, sw0312.kim, kyungmin.park, alim.akhtar,
	linux-samsung-soc

With the conversion of rockchip,lvds.yaml a port@1 node
is required, so add a node with label lvds_out.
Also add label lvds_in to port@0.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
---

Changed V5:
  rename title
  add label lvds_in
---
 arch/arm64/boot/dts/rockchip/px30.dtsi | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/rockchip/px30.dtsi b/arch/arm64/boot/dts/rockchip/px30.dtsi
index bfa358042..e34d81f29 100644
--- a/arch/arm64/boot/dts/rockchip/px30.dtsi
+++ b/arch/arm64/boot/dts/rockchip/px30.dtsi
@@ -453,7 +453,7 @@
 				#address-cells = <1>;
 				#size-cells = <0>;

-				port@0 {
+				lvds_in: port@0 {
 					reg = <0>;
 					#address-cells = <1>;
 					#size-cells = <0>;
@@ -468,6 +468,10 @@
 						remote-endpoint = <&vopl_out_lvds>;
 					};
 				};
+
+				lvds_out: port@1 {
+					reg = <1>;
+				};
 			};
 		};
 	};
--
2.20.1


^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH v6 13/17] arm64: dts: rockchip: px30: fix dsi node
  2022-12-22 14:22 [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML Johan Jonker
                   ` (10 preceding siblings ...)
  2022-12-22 14:31 ` [PATCH v6 12/17] arm64: dts: rockchip: px30: fix lvds node Johan Jonker
@ 2022-12-22 14:31 ` Johan Jonker
  2022-12-22 14:32 ` [PATCH v6 14/17] arm64: dts: rockchip: rk3399: " Johan Jonker
                   ` (6 subsequent siblings)
  18 siblings, 0 replies; 28+ messages in thread
From: Johan Jonker @ 2022-12-22 14:31 UTC (permalink / raw)
  To: heiko
  Cc: hjc, robh+dt, krzysztof.kozlowski+dt, gregkh, airlied, daniel,
	andrzej.hajda, neil.armstrong, robert.foss, Laurent.pinchart,
	jonas, jernej.skrabec, philippe.cornu, dri-devel, devicetree,
	linux-kernel, linux-arm-kernel, linux-rockchip, linux-usb,
	linus.walleij, inki.dae, sw0312.kim, kyungmin.park, alim.akhtar,
	linux-samsung-soc

With the conversion of rockchip,dw-mipi-dsi.yaml a port@1 node
is required, so add a node with label dsi_out.
Also add label dsi_in to port@0.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
---
 arch/arm64/boot/dts/rockchip/px30.dtsi | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/rockchip/px30.dtsi b/arch/arm64/boot/dts/rockchip/px30.dtsi
index e34d81f29..272b01154 100644
--- a/arch/arm64/boot/dts/rockchip/px30.dtsi
+++ b/arch/arm64/boot/dts/rockchip/px30.dtsi
@@ -1117,7 +1117,7 @@
 			#address-cells = <1>;
 			#size-cells = <0>;

-			port@0 {
+			dsi_in: port@0 {
 				reg = <0>;
 				#address-cells = <1>;
 				#size-cells = <0>;
@@ -1132,6 +1132,10 @@
 					remote-endpoint = <&vopl_out_dsi>;
 				};
 			};
+
+			dsi_out: port@1 {
+				reg = <1>;
+			};
 		};
 	};

--
2.20.1


^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH v6 14/17] arm64: dts: rockchip: rk3399: fix dsi node
  2022-12-22 14:22 [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML Johan Jonker
                   ` (11 preceding siblings ...)
  2022-12-22 14:31 ` [PATCH v6 13/17] arm64: dts: rockchip: px30: fix dsi node Johan Jonker
@ 2022-12-22 14:32 ` Johan Jonker
  2022-12-22 14:32 ` [PATCH v6 15/17] arm64: dts: rockchip: rk3399: fix dp node Johan Jonker
                   ` (5 subsequent siblings)
  18 siblings, 0 replies; 28+ messages in thread
From: Johan Jonker @ 2022-12-22 14:32 UTC (permalink / raw)
  To: heiko
  Cc: hjc, robh+dt, krzysztof.kozlowski+dt, gregkh, airlied, daniel,
	andrzej.hajda, neil.armstrong, robert.foss, Laurent.pinchart,
	jonas, jernej.skrabec, philippe.cornu, dri-devel, devicetree,
	linux-kernel, linux-arm-kernel, linux-rockchip, linux-usb,
	linus.walleij, inki.dae, sw0312.kim, kyungmin.park, alim.akhtar,
	linux-samsung-soc

Use generic node name for rk3399.dtsi dsi node.
With the conversion of rockchip,dw-mipi-dsi.yaml a port@1 node
is required, so add a node with label mipi_out.
Also restyle.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
---

Changed V6:
  Restyle
---
 arch/arm64/boot/dts/rockchip/rk3399.dtsi | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
index 834d16acb..2250533cf 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
@@ -1954,7 +1954,7 @@
 		};
 	};

-	mipi_dsi: mipi@ff960000 {
+	mipi_dsi: dsi@ff960000 {
 		compatible = "rockchip,rk3399-mipi-dsi", "snps,dw-mipi-dsi";
 		reg = <0x0 0xff960000 0x0 0x8000>;
 		interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH 0>;
@@ -1982,15 +1982,20 @@
 					reg = <0>;
 					remote-endpoint = <&vopb_out_mipi>;
 				};
+
 				mipi_in_vopl: endpoint@1 {
 					reg = <1>;
 					remote-endpoint = <&vopl_out_mipi>;
 				};
 			};
+
+			mipi_out: port@1 {
+				reg = <1>;
+			};
 		};
 	};

-	mipi_dsi1: mipi@ff968000 {
+	mipi_dsi1: dsi@ff968000 {
 		compatible = "rockchip,rk3399-mipi-dsi", "snps,dw-mipi-dsi";
 		reg = <0x0 0xff968000 0x0 0x8000>;
 		interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH 0>;
@@ -2025,6 +2030,10 @@
 					remote-endpoint = <&vopl_out_mipi1>;
 				};
 			};
+
+			mipi1_out: port@1 {
+				reg = <1>;
+			};
 		};
 	};

--
2.20.1


^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH v6 15/17] arm64: dts: rockchip: rk3399: fix dp node
  2022-12-22 14:22 [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML Johan Jonker
                   ` (12 preceding siblings ...)
  2022-12-22 14:32 ` [PATCH v6 14/17] arm64: dts: rockchip: rk3399: " Johan Jonker
@ 2022-12-22 14:32 ` Johan Jonker
  2022-12-22 14:33 ` [PATCH v6 16/17] arm64: dts: rockchip: rename vbus-supply to phy-supply in rk3566-box-demo.dts Johan Jonker
                   ` (4 subsequent siblings)
  18 siblings, 0 replies; 28+ messages in thread
From: Johan Jonker @ 2022-12-22 14:32 UTC (permalink / raw)
  To: heiko
  Cc: hjc, robh+dt, krzysztof.kozlowski+dt, gregkh, airlied, daniel,
	andrzej.hajda, neil.armstrong, robert.foss, Laurent.pinchart,
	jonas, jernej.skrabec, philippe.cornu, dri-devel, devicetree,
	linux-kernel, linux-arm-kernel, linux-rockchip, linux-usb,
	linus.walleij, inki.dae, sw0312.kim, kyungmin.park, alim.akhtar,
	linux-samsung-soc

Use generic node name for rk3399.dtsi dp node.
With the conversion of rockchip,analogix-dp.yaml a port@1 node
is required, so add a node with label edp_out.
Also restyle.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
---
 arch/arm64/boot/dts/rockchip/rk3399.dtsi | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
index 2250533cf..e02483b72 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
@@ -2037,7 +2037,7 @@
 		};
 	};

-	edp: edp@ff970000 {
+	edp: dp@ff970000 {
 		compatible = "rockchip,rk3399-edp";
 		reg = <0x0 0xff970000 0x0 0x8000>;
 		interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH 0>;
@@ -2054,6 +2054,7 @@
 		ports {
 			#address-cells = <1>;
 			#size-cells = <0>;
+
 			edp_in: port@0 {
 				reg = <0>;
 				#address-cells = <1>;
@@ -2069,6 +2070,10 @@
 					remote-endpoint = <&vopl_out_edp>;
 				};
 			};
+
+			edp_out: port@1 {
+				reg = <1>;
+			};
 		};
 	};

--
2.20.1


^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH v6 16/17] arm64: dts: rockchip: rename vbus-supply to phy-supply in rk3566-box-demo.dts
  2022-12-22 14:22 [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML Johan Jonker
                   ` (13 preceding siblings ...)
  2022-12-22 14:32 ` [PATCH v6 15/17] arm64: dts: rockchip: rk3399: fix dp node Johan Jonker
@ 2022-12-22 14:33 ` Johan Jonker
  2022-12-22 14:33 ` [PATCH v6 17/17] arm64: dts: rockchip: rk356x: remove hclk from dsi node Johan Jonker
                   ` (3 subsequent siblings)
  18 siblings, 0 replies; 28+ messages in thread
From: Johan Jonker @ 2022-12-22 14:33 UTC (permalink / raw)
  To: heiko
  Cc: hjc, robh+dt, krzysztof.kozlowski+dt, gregkh, airlied, daniel,
	andrzej.hajda, neil.armstrong, robert.foss, Laurent.pinchart,
	jonas, jernej.skrabec, philippe.cornu, dri-devel, devicetree,
	linux-kernel, linux-arm-kernel, linux-rockchip, linux-usb,
	linus.walleij, inki.dae, sw0312.kim, kyungmin.park, alim.akhtar,
	linux-samsung-soc

'vbus-supply' does not match any of the regexes in rk3566-box-demo.dts
in the usb2phy0_otg node, so rename vbus-supply to phy-supply.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
---
 arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts b/arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts
index 4c7f9abd5..4dc9b7623 100644
--- a/arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3566-box-demo.dts
@@ -464,7 +464,7 @@
 };

 &usb2phy0_otg {
-	vbus-supply = <&vcc5v0_usb2_otg>;
+	phy-supply = <&vcc5v0_usb2_otg>;
 	status = "okay";
 };

--
2.20.1


^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH v6 17/17] arm64: dts: rockchip: rk356x: remove hclk from dsi node
  2022-12-22 14:22 [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML Johan Jonker
                   ` (14 preceding siblings ...)
  2022-12-22 14:33 ` [PATCH v6 16/17] arm64: dts: rockchip: rename vbus-supply to phy-supply in rk3566-box-demo.dts Johan Jonker
@ 2022-12-22 14:33 ` Johan Jonker
  2023-02-03 18:21 ` [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML Rob Herring
                   ` (2 subsequent siblings)
  18 siblings, 0 replies; 28+ messages in thread
From: Johan Jonker @ 2022-12-22 14:33 UTC (permalink / raw)
  To: heiko
  Cc: hjc, robh+dt, krzysztof.kozlowski+dt, gregkh, airlied, daniel,
	andrzej.hajda, neil.armstrong, robert.foss, Laurent.pinchart,
	jonas, jernej.skrabec, philippe.cornu, dri-devel, devicetree,
	linux-kernel, linux-arm-kernel, linux-rockchip, linux-usb,
	linus.walleij, inki.dae, sw0312.kim, kyungmin.park, alim.akhtar,
	linux-samsung-soc

The hclk is not used in the dw-mipi-dsi-rockchip.c driver,
so remove hclk from the rk356x.dtsi dsi node.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
---
 arch/arm64/boot/dts/rockchip/rk356x.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm64/boot/dts/rockchip/rk356x.dtsi b/arch/arm64/boot/dts/rockchip/rk356x.dtsi
index 5706c3e24..2cb61a783 100644
--- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi
@@ -743,8 +743,8 @@
 		compatible = "rockchip,rk3568-mipi-dsi", "snps,dw-mipi-dsi";
 		reg = <0x00 0xfe060000 0x00 0x10000>;
 		interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
-		clock-names = "pclk", "hclk";
-		clocks = <&cru PCLK_DSITX_0>, <&cru HCLK_VO>;
+		clock-names = "pclk";
+		clocks = <&cru PCLK_DSITX_0>;
 		phy-names = "dphy";
 		phys = <&dsi_dphy0>;
 		power-domains = <&power RK3568_PD_VO>;
@@ -771,8 +771,8 @@
 		compatible = "rockchip,rk3568-mipi-dsi", "snps,dw-mipi-dsi";
 		reg = <0x0 0xfe070000 0x0 0x10000>;
 		interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
-		clock-names = "pclk", "hclk";
-		clocks = <&cru PCLK_DSITX_1>, <&cru HCLK_VO>;
+		clock-names = "pclk";
+		clocks = <&cru PCLK_DSITX_1>;
 		phy-names = "dphy";
 		phys = <&dsi_dphy1>;
 		power-domains = <&power RK3568_PD_VO>;
--
2.20.1


^ permalink raw reply related	[flat|nested] 28+ messages in thread

* Re: [PATCH v6 03/17] dt-bindings: display: dsi-controller: move clock-master property
  2022-12-22 14:24 ` [PATCH v6 03/17] dt-bindings: display: dsi-controller: move clock-master property Johan Jonker
@ 2022-12-22 19:33   ` Rob Herring
  0 siblings, 0 replies; 28+ messages in thread
From: Rob Herring @ 2022-12-22 19:33 UTC (permalink / raw)
  To: Johan Jonker
  Cc: devicetree, alim.akhtar, inki.dae, hjc, linux-rockchip,
	neil.armstrong, gregkh, andrzej.hajda, linux-samsung-soc,
	kyungmin.park, philippe.cornu, jernej.skrabec, airlied,
	krzysztof.kozlowski+dt, linus.walleij, dri-devel, sw0312.kim,
	Laurent.pinchart, robert.foss, daniel, heiko, linux-usb, jonas,
	linux-arm-kernel, linux-kernel, robh+dt


On Thu, 22 Dec 2022 15:24:51 +0100, Johan Jonker wrote:
> The clock-master property is used for the controller and not in the panel,
> so move it there.
> 
> Signed-off-by: Johan Jonker <jbx6244@gmail.com>
> ---
>  .../bindings/display/dsi-controller.yaml       | 18 +++++++++---------
>  1 file changed, 9 insertions(+), 9 deletions(-)
> 

Reviewed-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [PATCH v6 05/17] dt-bindings: display: rockchip: convert dw_mipi_dsi_rockchip.txt to yaml
  2022-12-22 14:26 ` [PATCH v6 05/17] dt-bindings: display: rockchip: convert dw_mipi_dsi_rockchip.txt to yaml Johan Jonker
@ 2022-12-22 19:34   ` Rob Herring
  0 siblings, 0 replies; 28+ messages in thread
From: Rob Herring @ 2022-12-22 19:34 UTC (permalink / raw)
  To: Johan Jonker
  Cc: krzysztof.kozlowski+dt, robh+dt, daniel, inki.dae,
	linux-samsung-soc, linux-rockchip, sw0312.kim, dri-devel,
	robert.foss, Laurent.pinchart, linux-usb, kyungmin.park, hjc,
	alim.akhtar, neil.armstrong, linux-kernel, heiko, airlied,
	jernej.skrabec, linux-arm-kernel, andrzej.hajda, linus.walleij,
	philippe.cornu, devicetree, gregkh, jonas


On Thu, 22 Dec 2022 15:26:28 +0100, Johan Jonker wrote:
> Convert dw_mipi_dsi_rockchip.txt to yaml.
> 
> Changed:
>   file name
>   requirements
> 
> Signed-off-by: Johan Jonker <jbx6244@gmail.com>
> ---
> 
> Changed V6:
>   Remove clock-master property
>   Fix $ref
> ---
>  .../display/rockchip/dw_mipi_dsi_rockchip.txt |  94 ----------
>  .../rockchip/rockchip,dw-mipi-dsi.yaml        | 166 ++++++++++++++++++
>  2 files changed, 166 insertions(+), 94 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/display/rockchip/dw_mipi_dsi_rockchip.txt
>  create mode 100644 Documentation/devicetree/bindings/display/rockchip/rockchip,dw-mipi-dsi.yaml
> 

Reviewed-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [PATCH v6 06/17] dt-bindings: display: bridge: convert analogix_dp.txt to yaml
  2022-12-22 14:26 ` [PATCH v6 06/17] dt-bindings: display: bridge: convert analogix_dp.txt " Johan Jonker
@ 2022-12-22 20:26   ` Rob Herring
  0 siblings, 0 replies; 28+ messages in thread
From: Rob Herring @ 2022-12-22 20:26 UTC (permalink / raw)
  To: Johan Jonker
  Cc: alim.akhtar, heiko, kyungmin.park, linux-arm-kernel,
	Laurent.pinchart, devicetree, philippe.cornu, neil.armstrong,
	linux-usb, jonas, daniel, robh+dt, airlied, andrzej.hajda, hjc,
	jernej.skrabec, dri-devel, krzysztof.kozlowski+dt, linus.walleij,
	linux-rockchip, inki.dae, robert.foss, sw0312.kim, linux-kernel,
	gregkh, linux-samsung-soc


On Thu, 22 Dec 2022 15:26:57 +0100, Johan Jonker wrote:
> Convert analogix_dp.txt to yaml for use as common document.
> 
> Changed:
>   Relexed requirements
> 
> Signed-off-by: Johan Jonker <jbx6244@gmail.com>
> ---
>  .../bindings/display/bridge/analogix,dp.yaml  | 63 +++++++++++++++++++
>  .../bindings/display/bridge/analogix_dp.txt   | 51 ---------------
>  .../bindings/display/exynos/exynos_dp.txt     |  2 +-
>  3 files changed, 64 insertions(+), 52 deletions(-)
>  create mode 100644 Documentation/devicetree/bindings/display/bridge/analogix,dp.yaml
>  delete mode 100644 Documentation/devicetree/bindings/display/bridge/analogix_dp.txt
> 

Reviewed-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [PATCH v6 07/17] dt-bindings: display: rockchip: convert analogix_dp-rockchip.txt to yaml
  2022-12-22 14:27 ` [PATCH v6 07/17] dt-bindings: display: rockchip: convert analogix_dp-rockchip.txt " Johan Jonker
@ 2022-12-22 20:27   ` Rob Herring
  0 siblings, 0 replies; 28+ messages in thread
From: Rob Herring @ 2022-12-22 20:27 UTC (permalink / raw)
  To: Johan Jonker
  Cc: inki.dae, devicetree, linux-arm-kernel, daniel, kyungmin.park,
	airlied, robh+dt, alim.akhtar, sw0312.kim, linux-samsung-soc,
	jernej.skrabec, robert.foss, linus.walleij, jonas,
	Laurent.pinchart, dri-devel, andrzej.hajda, hjc, neil.armstrong,
	philippe.cornu, gregkh, linux-kernel, linux-rockchip, heiko,
	krzysztof.kozlowski+dt, linux-usb


On Thu, 22 Dec 2022 15:27:35 +0100, Johan Jonker wrote:
> Convert analogix_dp-rockchip.txt to yaml.
> 
> Changed:
>   Add power-domains property
>   File name
> 
> Signed-off-by: Johan Jonker <jbx6244@gmail.com>
> ---
>  .../display/rockchip/analogix_dp-rockchip.txt |  98 -----------------
>  .../rockchip/rockchip,analogix-dp.yaml        | 103 ++++++++++++++++++
>  2 files changed, 103 insertions(+), 98 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/display/rockchip/analogix_dp-rockchip.txt
>  create mode 100644 Documentation/devicetree/bindings/display/rockchip/rockchip,analogix-dp.yaml
> 

Reviewed-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [PATCH v6 08/17] dt-bindings: usb: convert fcs,fusb302.txt to yaml
  2022-12-22 14:28 ` [PATCH v6 08/17] dt-bindings: usb: convert fcs,fusb302.txt " Johan Jonker
@ 2022-12-22 20:28   ` Rob Herring
  0 siblings, 0 replies; 28+ messages in thread
From: Rob Herring @ 2022-12-22 20:28 UTC (permalink / raw)
  To: Johan Jonker
  Cc: linux-usb, krzysztof.kozlowski+dt, philippe.cornu, heiko,
	robh+dt, linux-arm-kernel, linux-samsung-soc, jonas,
	linus.walleij, hjc, devicetree, kyungmin.park, airlied, gregkh,
	sw0312.kim, jernej.skrabec, linux-kernel, inki.dae, daniel,
	linux-rockchip, dri-devel, neil.armstrong, andrzej.hajda,
	robert.foss, alim.akhtar, Laurent.pinchart


On Thu, 22 Dec 2022 15:28:53 +0100, Johan Jonker wrote:
> Convert fcs,fusb302.txt to yaml.
> 
> Changed:
>   Add vbus-supply property
> 
> Signed-off-by: Johan Jonker <jbx6244@gmail.com>
> ---
> 
> Changed V6:
>   Add unevaluatedProperties
>   Drop unused labels
> ---
>  .../devicetree/bindings/usb/fcs,fusb302.txt   | 34 ----------
>  .../devicetree/bindings/usb/fcs,fusb302.yaml  | 67 +++++++++++++++++++
>  2 files changed, 67 insertions(+), 34 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/usb/fcs,fusb302.txt
>  create mode 100644 Documentation/devicetree/bindings/usb/fcs,fusb302.yaml
> 

Reviewed-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML
  2022-12-22 14:22 [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML Johan Jonker
                   ` (15 preceding siblings ...)
  2022-12-22 14:33 ` [PATCH v6 17/17] arm64: dts: rockchip: rk356x: remove hclk from dsi node Johan Jonker
@ 2023-02-03 18:21 ` Rob Herring
  2023-02-03 19:02   ` Johan Jonker
  2023-02-05 14:09 ` (subset) " Heiko Stuebner
  2023-03-22 23:40 ` Heiko Stuebner
  18 siblings, 1 reply; 28+ messages in thread
From: Rob Herring @ 2023-02-03 18:21 UTC (permalink / raw)
  To: Johan Jonker
  Cc: heiko, hjc, krzysztof.kozlowski+dt, gregkh, airlied, daniel,
	andrzej.hajda, neil.armstrong, robert.foss, Laurent.pinchart,
	jonas, jernej.skrabec, philippe.cornu, dri-devel, devicetree,
	linux-kernel, linux-arm-kernel, linux-rockchip, linux-usb,
	linus.walleij, inki.dae, sw0312.kim, kyungmin.park, alim.akhtar,
	linux-samsung-soc

On Thu, Dec 22, 2022 at 03:22:14PM +0100, Johan Jonker wrote:
> Convert rockchip-lvds.txt to YAML.
> 
> Changed:
>   Add power-domains property.
>   Requirements between PX30 and RK3288
> 
> Signed-off-by: Johan Jonker <jbx6244@gmail.com>
> Reviewed-by: Rob Herring <robh@kernel.org>
> ---
> 
> Changed V3:
>   Filename matching compatible style
>   Drop "Regulator phandle for "
>   Specify properties and requirements per SoC
>   Sort order and restyle
> 
> Changed V2:
>   Fix title
> ---
>  .../display/rockchip/rockchip,lvds.yaml       | 170 ++++++++++++++++++
>  .../display/rockchip/rockchip-lvds.txt        |  92 ----------
>  2 files changed, 170 insertions(+), 92 deletions(-)
>  create mode 100644 Documentation/devicetree/bindings/display/rockchip/rockchip,lvds.yaml
>  delete mode 100644 Documentation/devicetree/bindings/display/rockchip/rockchip-lvds.txt

What's the plan for these patches? Don't see them in linux-next still. 
Do you want me to take patches 1-8?

Rob

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML
  2023-02-03 18:21 ` [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML Rob Herring
@ 2023-02-03 19:02   ` Johan Jonker
  2023-02-05 14:12     ` Heiko Stübner
  0 siblings, 1 reply; 28+ messages in thread
From: Johan Jonker @ 2023-02-03 19:02 UTC (permalink / raw)
  To: Rob Herring
  Cc: heiko, hjc, krzysztof.kozlowski+dt, gregkh, airlied, daniel,
	andrzej.hajda, neil.armstrong, robert.foss, Laurent.pinchart,
	jonas, jernej.skrabec, philippe.cornu, dri-devel, devicetree,
	linux-kernel, linux-arm-kernel, linux-rockchip, linux-usb,
	linus.walleij, inki.dae, sw0312.kim, kyungmin.park, alim.akhtar,
	linux-samsung-soc



On 2/3/23 19:21, Rob Herring wrote:
> On Thu, Dec 22, 2022 at 03:22:14PM +0100, Johan Jonker wrote:
>> Convert rockchip-lvds.txt to YAML.
>>
>> Changed:
>>   Add power-domains property.
>>   Requirements between PX30 and RK3288
>>
>> Signed-off-by: Johan Jonker <jbx6244@gmail.com>
>> Reviewed-by: Rob Herring <robh@kernel.org>
>> ---
>>
>> Changed V3:
>>   Filename matching compatible style
>>   Drop "Regulator phandle for "
>>   Specify properties and requirements per SoC
>>   Sort order and restyle
>>
>> Changed V2:
>>   Fix title
>> ---
>>  .../display/rockchip/rockchip,lvds.yaml       | 170 ++++++++++++++++++
>>  .../display/rockchip/rockchip-lvds.txt        |  92 ----------
>>  2 files changed, 170 insertions(+), 92 deletions(-)
>>  create mode 100644 Documentation/devicetree/bindings/display/rockchip/rockchip,lvds.yaml
>>  delete mode 100644 Documentation/devicetree/bindings/display/rockchip/rockchip-lvds.txt
> 

> What's the plan for these patches? Don't see them in linux-next still. 
> Do you want me to take patches 1-8?

Hi,

The display patches normally go through the DRM git.
Patch 2 must merge with grf.yaml.
Heiko has merged now 3 PHY related patches to grf.yaml first.

[PATCH v6 02/17] dt-bindings: soc: rockchip: grf: add rockchip,lvds.yaml

See current
https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git/log/?h=for-next&qt=grep&q=jonker

Not sure what Heiko's plans are.
Patch 2 replaces  only a description text and some accolades removal, so not "too" important.

I urgent then you could merge without conflict:
1, 3-8

Patch 2 requires some adjusted now depending on the grf.yaml current next state.

Johan







> 
> Rob

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: (subset) [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML
  2022-12-22 14:22 [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML Johan Jonker
                   ` (16 preceding siblings ...)
  2023-02-03 18:21 ` [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML Rob Herring
@ 2023-02-05 14:09 ` Heiko Stuebner
  2023-03-22 23:40 ` Heiko Stuebner
  18 siblings, 0 replies; 28+ messages in thread
From: Heiko Stuebner @ 2023-02-05 14:09 UTC (permalink / raw)
  To: Johan Jonker
  Cc: Heiko Stuebner, Robert Foss, dri-devel, kyungmin.park,
	linux-kernel, jernej.skrabec, hjc, philippe.cornu, jonas,
	krzysztof.kozlowski+dt, Laurent.pinchart, alim.akhtar,
	neil.armstrong, robh+dt, linus.walleij, gregkh, linux-rockchip,
	inki.dae, linux-arm-kernel, linux-samsung-soc, daniel, airlied,
	devicetree, andrzej.hajda, linux-usb, sw0312.kim

On Thu, 22 Dec 2022 15:22:14 +0100, Johan Jonker wrote:
> Convert rockchip-lvds.txt to YAML.
> 
> Changed:
>   Add power-domains property.
>   Requirements between PX30 and RK3288
> 
> 
> [...]

Applied, thanks!

[01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML
        commit: d567ca6ed9fd5fe594bca5e29717ff9e9631efba
[02/17] dt-bindings: soc: rockchip: grf: add rockchip,lvds.yaml
        commit: cbfc73a3febdf14395ecdd738decd53835166662
[03/17] dt-bindings: display: dsi-controller: move clock-master property
        commit: a1b7455dc4a399a565353ceb7cce605b4b9db41a
[04/17] dt-bindings: display: bridge: snps,dw-mipi-dsi: fix clock properties
        commit: a90fa0adbeb07f11c08635364d206678d9e1b938
[05/17] dt-bindings: display: rockchip: convert dw_mipi_dsi_rockchip.txt to yaml
        commit: 0dac2102cf6baacba0d9d7804b0c163337f69839
[06/17] dt-bindings: display: bridge: convert analogix_dp.txt to yaml
        commit: 440112adadd3e273d2a2ff6e5d4b969ee03fda47
[07/17] dt-bindings: display: rockchip: convert analogix_dp-rockchip.txt to yaml
        commit: 9bb35d4c3230803345d5218676a7325b26823209

Best regards,
-- 
Heiko Stuebner <heiko@sntech.de>

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML
  2023-02-03 19:02   ` Johan Jonker
@ 2023-02-05 14:12     ` Heiko Stübner
  2023-02-06 15:46       ` Rob Herring
  0 siblings, 1 reply; 28+ messages in thread
From: Heiko Stübner @ 2023-02-05 14:12 UTC (permalink / raw)
  To: Rob Herring, Johan Jonker
  Cc: hjc, krzysztof.kozlowski+dt, gregkh, airlied, daniel,
	andrzej.hajda, neil.armstrong, robert.foss, Laurent.pinchart,
	jonas, jernej.skrabec, philippe.cornu, dri-devel, devicetree,
	linux-kernel, linux-arm-kernel, linux-rockchip, linux-usb,
	linus.walleij, inki.dae, sw0312.kim, kyungmin.park, alim.akhtar,
	linux-samsung-soc

Hi,

Am Freitag, 3. Februar 2023, 20:02:54 CET schrieb Johan Jonker:
> 
> On 2/3/23 19:21, Rob Herring wrote:
> > On Thu, Dec 22, 2022 at 03:22:14PM +0100, Johan Jonker wrote:
> >> Convert rockchip-lvds.txt to YAML.
> >>
> >> Changed:
> >>   Add power-domains property.
> >>   Requirements between PX30 and RK3288
> >>
> >> Signed-off-by: Johan Jonker <jbx6244@gmail.com>
> >> Reviewed-by: Rob Herring <robh@kernel.org>
> >> ---
> >>
> >> Changed V3:
> >>   Filename matching compatible style
> >>   Drop "Regulator phandle for "
> >>   Specify properties and requirements per SoC
> >>   Sort order and restyle
> >>
> >> Changed V2:
> >>   Fix title
> >> ---
> >>  .../display/rockchip/rockchip,lvds.yaml       | 170 ++++++++++++++++++
> >>  .../display/rockchip/rockchip-lvds.txt        |  92 ----------
> >>  2 files changed, 170 insertions(+), 92 deletions(-)
> >>  create mode 100644 Documentation/devicetree/bindings/display/rockchip/rockchip,lvds.yaml
> >>  delete mode 100644 Documentation/devicetree/bindings/display/rockchip/rockchip-lvds.txt
> > 
> 
> > What's the plan for these patches? Don't see them in linux-next still. 
> > Do you want me to take patches 1-8?
> 
> Hi,
> 
> The display patches normally go through the DRM git.
> Patch 2 must merge with grf.yaml.
> Heiko has merged now 3 PHY related patches to grf.yaml first.
> 
> [PATCH v6 02/17] dt-bindings: soc: rockchip: grf: add rockchip,lvds.yaml
> 
> See current
> https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git/log/?h=for-next&qt=grep&q=jonker
> 
> Not sure what Heiko's plans are.
> Patch 2 replaces  only a description text and some accolades removal, so not "too" important.
> 
> I urgent then you could merge without conflict:
> 1, 3-8

So I've applied patches 1-7 to the drm-tree now.

For the GRF-patch, I've dropped the quotes changes, as they are somewhat
unrelated to the lvds inclusion and so prevented any conflicts when applying
the rest to the DRM tree.

@Rob, if you could pick the fusb302 patch (number8), that would be great

Thanks
Heiko



^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML
  2023-02-05 14:12     ` Heiko Stübner
@ 2023-02-06 15:46       ` Rob Herring
  0 siblings, 0 replies; 28+ messages in thread
From: Rob Herring @ 2023-02-06 15:46 UTC (permalink / raw)
  To: Heiko Stübner
  Cc: Johan Jonker, hjc, krzysztof.kozlowski+dt, gregkh, airlied,
	daniel, andrzej.hajda, neil.armstrong, robert.foss,
	Laurent.pinchart, jonas, jernej.skrabec, philippe.cornu,
	dri-devel, devicetree, linux-kernel, linux-arm-kernel,
	linux-rockchip, linux-usb, linus.walleij, inki.dae, sw0312.kim,
	kyungmin.park, alim.akhtar, linux-samsung-soc

On Sun, Feb 5, 2023 at 8:12 AM Heiko Stübner <heiko@sntech.de> wrote:
>
> Hi,
>
> Am Freitag, 3. Februar 2023, 20:02:54 CET schrieb Johan Jonker:
> >
> > On 2/3/23 19:21, Rob Herring wrote:
> > > On Thu, Dec 22, 2022 at 03:22:14PM +0100, Johan Jonker wrote:
> > >> Convert rockchip-lvds.txt to YAML.
> > >>
> > >> Changed:
> > >>   Add power-domains property.
> > >>   Requirements between PX30 and RK3288
> > >>
> > >> Signed-off-by: Johan Jonker <jbx6244@gmail.com>
> > >> Reviewed-by: Rob Herring <robh@kernel.org>
> > >> ---
> > >>
> > >> Changed V3:
> > >>   Filename matching compatible style
> > >>   Drop "Regulator phandle for "
> > >>   Specify properties and requirements per SoC
> > >>   Sort order and restyle
> > >>
> > >> Changed V2:
> > >>   Fix title
> > >> ---
> > >>  .../display/rockchip/rockchip,lvds.yaml       | 170 ++++++++++++++++++
> > >>  .../display/rockchip/rockchip-lvds.txt        |  92 ----------
> > >>  2 files changed, 170 insertions(+), 92 deletions(-)
> > >>  create mode 100644 Documentation/devicetree/bindings/display/rockchip/rockchip,lvds.yaml
> > >>  delete mode 100644 Documentation/devicetree/bindings/display/rockchip/rockchip-lvds.txt
> > >
> >
> > > What's the plan for these patches? Don't see them in linux-next still.
> > > Do you want me to take patches 1-8?
> >
> > Hi,
> >
> > The display patches normally go through the DRM git.
> > Patch 2 must merge with grf.yaml.
> > Heiko has merged now 3 PHY related patches to grf.yaml first.
> >
> > [PATCH v6 02/17] dt-bindings: soc: rockchip: grf: add rockchip,lvds.yaml
> >
> > See current
> > https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git/log/?h=for-next&qt=grep&q=jonker
> >
> > Not sure what Heiko's plans are.
> > Patch 2 replaces  only a description text and some accolades removal, so not "too" important.
> >
> > I urgent then you could merge without conflict:
> > 1, 3-8
>
> So I've applied patches 1-7 to the drm-tree now.

That would have been good a month ago. Now these won't land til 6.4.
:( For that reason, if it is after the drm-misc cutoff, I prefer to
take DT bindings via my tree.

> For the GRF-patch, I've dropped the quotes changes, as they are somewhat
> unrelated to the lvds inclusion and so prevented any conflicts when applying
> the rest to the DRM tree.

Only 1 hunk needed to be dropped to avoid the conflict (which also
dropped quotes). If all the quote changes were dropped, please send
another patch for that.

> @Rob, if you could pick the fusb302 patch (number8), that would be great

Will do.

Rob

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: (subset) [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML
  2022-12-22 14:22 [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML Johan Jonker
                   ` (17 preceding siblings ...)
  2023-02-05 14:09 ` (subset) " Heiko Stuebner
@ 2023-03-22 23:40 ` Heiko Stuebner
  18 siblings, 0 replies; 28+ messages in thread
From: Heiko Stuebner @ 2023-03-22 23:40 UTC (permalink / raw)
  To: Johan Jonker
  Cc: Heiko Stuebner, dri-devel, Robert Foss, linux-kernel,
	linux-arm-kernel, linux-samsung-soc, jonas, neil.armstrong,
	alim.akhtar, gregkh, devicetree, sw0312.kim, philippe.cornu,
	linux-rockchip, krzysztof.kozlowski+dt, kyungmin.park, hjc,
	jernej.skrabec, linus.walleij, inki.dae, robh+dt,
	Laurent.pinchart, daniel, linux-usb, airlied, andrzej.hajda

On Thu, 22 Dec 2022 15:22:14 +0100, Johan Jonker wrote:
> Convert rockchip-lvds.txt to YAML.
> 
> Changed:
>   Add power-domains property.
>   Requirements between PX30 and RK3288
> 
> 
> [...]

Applied, thanks!

[09/17] ARM: dts: rockchip: rk3288: fix dsi node
        commit: ea2d16f90629e3158307d0183cad5c40aa55c995
[10/17] ARM: dts: rockchip: rk3288: fix lvds node
        commit: 8a19e4c74d17ed8d1e6bc06b32c5b7b7c3b9fcfb
[11/17] ARM: dts: rockchip: rk3288: fix dp node
        commit: 95e2ac6ae9f2330557a6aef70bf15173e1dd9714
[12/17] arm64: dts: rockchip: px30: fix lvds node
        commit: 0d5e24918976edffffee006e07730434a36d264a
[13/17] arm64: dts: rockchip: px30: fix dsi node
        commit: 30322f812d4e0e75e2488c1d45aba94e51dd19bb
[14/17] arm64: dts: rockchip: rk3399: fix dsi node
        commit: f82fe7ad31530b38d2f61aa6ae68bd35c33f4ad0
[15/17] arm64: dts: rockchip: rk3399: fix dp node
        commit: d94024bd6342c6f3e88c5fac785a685c1974d48e
[16/17] arm64: dts: rockchip: rename vbus-supply to phy-supply in rk3566-box-demo.dts
        commit: fc440ea1732abb714150bb8f3d90672ccc679e2d
[17/17] arm64: dts: rockchip: rk356x: remove hclk from dsi node
        commit: cadda005961cd6a202ae6f8ff99f2bba35a31dc8

Best regards,
-- 
Heiko Stuebner <heiko@sntech.de>

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2023-03-22 23:43 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-22 14:22 [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML Johan Jonker
2022-12-22 14:24 ` [PATCH v6 02/17] dt-bindings: soc: rockchip: grf: add rockchip,lvds.yaml Johan Jonker
2022-12-22 14:24 ` [PATCH v6 03/17] dt-bindings: display: dsi-controller: move clock-master property Johan Jonker
2022-12-22 19:33   ` Rob Herring
2022-12-22 14:25 ` [PATCH v6 04/17] dt-bindings: display: bridge: snps,dw-mipi-dsi: fix clock properties Johan Jonker
2022-12-22 14:26 ` [PATCH v6 05/17] dt-bindings: display: rockchip: convert dw_mipi_dsi_rockchip.txt to yaml Johan Jonker
2022-12-22 19:34   ` Rob Herring
2022-12-22 14:26 ` [PATCH v6 06/17] dt-bindings: display: bridge: convert analogix_dp.txt " Johan Jonker
2022-12-22 20:26   ` Rob Herring
2022-12-22 14:27 ` [PATCH v6 07/17] dt-bindings: display: rockchip: convert analogix_dp-rockchip.txt " Johan Jonker
2022-12-22 20:27   ` Rob Herring
2022-12-22 14:28 ` [PATCH v6 08/17] dt-bindings: usb: convert fcs,fusb302.txt " Johan Jonker
2022-12-22 20:28   ` Rob Herring
2022-12-22 14:29 ` [PATCH v6 09/17] ARM: dts: rockchip: rk3288: fix dsi node Johan Jonker
2022-12-22 14:30 ` [PATCH v6 10/17] ARM: dts: rockchip: rk3288: fix lvds node Johan Jonker
2022-12-22 14:30 ` [PATCH v6 11/17] ARM: dts: rockchip: rk3288: fix dp node Johan Jonker
2022-12-22 14:31 ` [PATCH v6 12/17] arm64: dts: rockchip: px30: fix lvds node Johan Jonker
2022-12-22 14:31 ` [PATCH v6 13/17] arm64: dts: rockchip: px30: fix dsi node Johan Jonker
2022-12-22 14:32 ` [PATCH v6 14/17] arm64: dts: rockchip: rk3399: " Johan Jonker
2022-12-22 14:32 ` [PATCH v6 15/17] arm64: dts: rockchip: rk3399: fix dp node Johan Jonker
2022-12-22 14:33 ` [PATCH v6 16/17] arm64: dts: rockchip: rename vbus-supply to phy-supply in rk3566-box-demo.dts Johan Jonker
2022-12-22 14:33 ` [PATCH v6 17/17] arm64: dts: rockchip: rk356x: remove hclk from dsi node Johan Jonker
2023-02-03 18:21 ` [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML Rob Herring
2023-02-03 19:02   ` Johan Jonker
2023-02-05 14:12     ` Heiko Stübner
2023-02-06 15:46       ` Rob Herring
2023-02-05 14:09 ` (subset) " Heiko Stuebner
2023-03-22 23:40 ` Heiko Stuebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).