[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210830180758.251390-5-mike.rudenko@gmail.com>
Date: Mon, 30 Aug 2021 21:07:53 +0300
From: Mikhail Rudenko <mike.rudenko@...il.com>
To: linux-phy@...ts.infradead.org
Cc: linux-media@...r.kernel.org,
Mikhail Rudenko <mike.rudenko@...il.com>,
Kishon Vijay Abraham I <kishon@...com>,
Vinod Koul <vkoul@...nel.org>,
Rob Herring <robh+dt@...nel.org>,
Heiko Stuebner <heiko@...ech.de>,
Helen Koike <helen.koike@...labora.com>,
Ezequiel Garcia <ezequiel@...labora.com>,
devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-rockchip@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: [PATCH v1 4/5] dt-bindings: phy: phy-rockchip-dphy-rx0: add support for tx1rx1 phy
RK3399 TX1RX1 D-PHY is not a child of GRF and uses reg, thus add
corresponding properties conditionally. It also requires DSI clock to
operate, so check for it. Since we now support both rx0 and tx1rx1,
rename the schema to rockchip-mipi-dphy-rx.yaml.
Signed-off-by: Mikhail Rudenko <mike.rudenko@...il.com>
---
...hy-rx0.yaml => rockchip-mipi-dphy-rx.yaml} | 39 +++++++++++++++++--
1 file changed, 35 insertions(+), 4 deletions(-)
rename Documentation/devicetree/bindings/phy/{rockchip-mipi-dphy-rx0.yaml => rockchip-mipi-dphy-rx.yaml} (65%)
diff --git a/Documentation/devicetree/bindings/phy/rockchip-mipi-dphy-rx0.yaml b/Documentation/devicetree/bindings/phy/rockchip-mipi-dphy-rx.yaml
similarity index 65%
rename from Documentation/devicetree/bindings/phy/rockchip-mipi-dphy-rx0.yaml
rename to Documentation/devicetree/bindings/phy/rockchip-mipi-dphy-rx.yaml
index 7d888d358823..f42319448fc9 100644
--- a/Documentation/devicetree/bindings/phy/rockchip-mipi-dphy-rx0.yaml
+++ b/Documentation/devicetree/bindings/phy/rockchip-mipi-dphy-rx.yaml
@@ -1,10 +1,10 @@
# SPDX-License-Identifier: (GPL-2.0+ OR MIT)
%YAML 1.2
---
-$id: http://devicetree.org/schemas/phy/rockchip-mipi-dphy-rx0.yaml#
+$id: http://devicetree.org/schemas/phy/rockchip-mipi-dphy-rx.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
-title: Rockchip SoC MIPI RX0 D-PHY Device Tree Bindings
+title: Rockchip SoC MIPI RX0/TX1RX1 D-PHY Device Tree Bindings
maintainers:
- Helen Koike <helen.koike@...labora.com>
@@ -16,19 +16,28 @@ description: |
properties:
compatible:
- const: rockchip,rk3399-mipi-dphy-rx0
+ enum:
+ - rockchip,rk3399-mipi-dphy-rx0
+ - rockchip,rk3399-mipi-dphy-tx1rx1
+
+ reg:
+ maxItems: 1
clocks:
+ minItems: 3
items:
- description: MIPI D-PHY ref clock
- - description: MIPI D-PHY RX0 cfg clock
+ - description: MIPI D-PHY RX0/TX1RX1 cfg clock
- description: Video in/out general register file clock
+ - description: MIPI D-PHY DSI clock
clock-names:
+ minItems: 3
items:
- const: dphy-ref
- const: dphy-cfg
- const: grf
+ - const: dsi
'#phy-cells':
const: 0
@@ -37,6 +46,12 @@ properties:
description: Video in/out power domain.
maxItems: 1
+ rockchip,grf:
+ $ref: /schemas/types.yaml#/definitions/phandle
+ description:
+ The phandle of the syscon node for the general register file
+ (GRF), required for TX1RX1 MIPI D-PHY on RK3399.
+
required:
- compatible
- clocks
@@ -44,6 +59,22 @@ required:
- '#phy-cells'
- power-domains
+if:
+ properties:
+ compatible:
+ contains:
+ const: rockchip,rk3399-mipi-dphy-tx1rx1
+then:
+ required:
+ - reg
+ - rockchip,grf
+
+ properties:
+ clocks:
+ minItems: 4
+ clock-names:
+ minItems: 4
+
additionalProperties: false
examples:
--
2.33.0
Powered by blists - more mailing lists