dt-bindings: phy: rockchip: convert rockchip-dp-phy.txt to yaml
Subsystems (3)
PATCH 1/2 dt-bindings: phy: rockchip: convert rockchip-dp-phy.txt to yaml
Convert rockchip-dp-phy.txt to yaml.
Changed:
rename file name
--- .../bindings/phy/rockchip,dp-phy.yaml | 41 +++++++++++++++++++ .../bindings/phy/rockchip-dp-phy.txt | 26 ------------ 2 files changed, 41 insertions(+), 26 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/rockchip,dp-phy.yaml delete mode 100644 Documentation/devicetree/bindings/phy/rockchip-dp-phy.txt
Documentation/devicetree/bindings/phy/rockchip,dp-phy.yaml new file +41 -0
@@ -0,0 +1,41 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/rockchip,dp-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip specific extensions to the Analogix Display Port PHY + +maintainers: + - Heiko Stuebner <[email protected]> + +properties: + compatible: + const: rockchip,rk3288-dp-phy + + clocks: + maxItems: 1 + + clock-names: + const: 24m + + "#phy-cells": + const: 0 + +required: + - compatible + - clocks + - clock-names + - "#phy-cells" + +additionalProperties: false + +examples: + - | + #include <dt-bindings/clock/rk3288-cru.h> + edp-phy { + compatible = "rockchip,rk3288-dp-phy"; + clocks = <&cru SCLK_EDP_24M>; + clock-names = "24m"; + #phy-cells = <0>; + };
Documentation/devicetree/bindings/phy/rockchip-dp-phy.txt deleted +0 -26
@@ -1,26 +0,0 @@ -Rockchip specific extensions to the Analogix Display Port PHY ------------------------------------- - -Required properties: -- compatible : should be one of the following supported values: - - "rockchip.rk3288-dp-phy" -- clocks: from common clock binding: handle to dp clock. - of memory mapped region. -- clock-names: from common clock binding: - Required elements: "24m" -- #phy-cells : from the generic PHY bindings, must be 0; - -Example: - -grf: syscon@ff770000 { - compatible = "rockchip,rk3288-grf", "syscon", "simple-mfd"; - -... - - edp_phy: edp-phy { - compatible = "rockchip,rk3288-dp-phy"; - clocks = <&cru SCLK_EDP_24M>; - clock-names = "24m"; - #phy-cells = <0>; - }; -};
--
2.20.1
PATCH 2/2 dt-bindings: soc: rockchip: graf: add rockchip,dp-phy.yaml
Add new converted rockchip,dp-phy.yaml to grf.yaml file.
--- Documentation/devicetree/bindings/soc/rockchip/grf.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/soc/rockchip/grf.yaml +5 -2
@@ -96,8 +96,11 @@ allOf: then: properties: edp-phy: - description: - Documentation/devicetree/bindings/phy/rockchip-dp-phy.txt + type: object + + $ref: /schemas/phy/rockchip,dp-phy.yaml# + + unevaluatedProperties: false - if: properties:
--
2.20.1
Re: [PATCH v1 2/2] dt-bindings: soc: rockchip: graf: add rockchip,dp-phy.yaml
Quoted 12 lines · Johan Jonker
Add new converted rockchip,dp-phy.yaml to
grf.yamlfile.Signed-off-by Johan Jonker <[email protected]>--- Documentation/devicetree/bindings/soc/rockchip/grf.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)Documentation/devicetree/bindings/soc/rockchip/grf.yaml +0
-0
Documentation/devicetree/bindings/soc/rockchip/grf.yaml allOf: · line 100
Quoted 7 lines
Documentation/devicetree/bindings/soc/rockchip/grf.yaml +2
-2@@ -96,8 +96,11 @@ allOf: then: properties: edp-phy: - description: - Documentation/devicetree/bindings/phy/rockchip-dp-phy.txt + type: object +
Drop the blank line
Documentation/devicetree/bindings/soc/rockchip/grf.yaml allOf: · line 102
Quoted 2 lines
Documentation/devicetree/bindings/soc/rockchip/grf.yaml +2
-0+ $ref: /schemas/phy/rockchip,dp-phy.yaml# +
Ditto, so with updated path:
Best regards,
Krzysztof
Quoted 23 lines · Johan Jonker
Convert rockchip-dp-phy.txt to yaml.
Changed:
rename file nameSigned-off-by Johan Jonker <[email protected]>--- .../bindings/phy/rockchip,dp-phy.yaml | 41 +++++++++++++++++++ .../bindings/phy/rockchip-dp-phy.txt | 26 ------------ 2 files changed, 41 insertions(+), 26 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/rockchip,dp-phy.yaml delete mode 100644 Documentation/devicetree/bindings/phy/rockchip-dp-phy.txtDocumentation/devicetree/bindings/phy/rockchip,dp-phy.yaml new file +4
-0@@ -0,0 +1,41 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/rockchip,dp-phy.yaml#
Documentation/devicetree/bindings/phy/rockchip,dp-phy.yaml line 14
Quoted 10 lines
Documentation/devicetree/bindings/phy/rockchip,dp-phy.yaml new file +10
-0+$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip specific extensions to the Analogix Display Port PHY + +maintainers: + - Heiko Stuebner <[email protected]> + +properties: + compatible: + const: rockchip,rk3288-dp-phy
No new compatibles were added here for the last 7 years, so it is safe to assume none will appear in the future. Use the compatible as filename.
Best regards,
Krzysztof