Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: phy: qcom,sata-phy: convert to dtschema

Convert the bindings for the SATA PHY on both apq8064 and ipq806x from
the old text format to yaml.

Signed-off-by: Rayyan Ansari <rayyan.ansari@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240715130854.53501-2-rayyan.ansari@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Rayyan Ansari and committed by
Vinod Koul
4bf8b462 8400291e

+55 -47
+55
Documentation/devicetree/bindings/phy/qcom,sata-phy.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/phy/qcom,sata-phy.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm SATA PHY Controller 8 + 9 + maintainers: 10 + - Bjorn Andersson <andersson@kernel.org> 11 + - Konrad Dybcio <konrad.dybcio@linaro.org> 12 + 13 + description: 14 + The Qualcomm SATA PHY describes on-chip SATA Physical layer controllers. 15 + 16 + properties: 17 + compatible: 18 + enum: 19 + - qcom,ipq806x-sata-phy 20 + - qcom,apq8064-sata-phy 21 + 22 + reg: 23 + maxItems: 1 24 + 25 + clocks: 26 + maxItems: 1 27 + 28 + clock-names: 29 + const: cfg 30 + 31 + '#phy-cells': 32 + const: 0 33 + 34 + required: 35 + - compatible 36 + - reg 37 + - clocks 38 + - clock-names 39 + - '#phy-cells' 40 + 41 + additionalProperties: false 42 + 43 + examples: 44 + - | 45 + #include <dt-bindings/clock/qcom,gcc-ipq806x.h> 46 + sata_phy: sata-phy@1b400000 { 47 + compatible = "qcom,ipq806x-sata-phy"; 48 + reg = <0x1b400000 0x200>; 49 + 50 + clocks = <&gcc SATA_PHY_CFG_CLK>; 51 + clock-names = "cfg"; 52 + 53 + #phy-cells = <0>; 54 + }; 55 +
-24
Documentation/devicetree/bindings/phy/qcom-apq8064-sata-phy.txt
··· 1 - Qualcomm APQ8064 SATA PHY Controller 2 - ------------------------------------ 3 - 4 - SATA PHY nodes are defined to describe on-chip SATA Physical layer controllers. 5 - Each SATA PHY controller should have its own node. 6 - 7 - Required properties: 8 - - compatible: compatible list, contains "qcom,apq8064-sata-phy". 9 - - reg: offset and length of the SATA PHY register set; 10 - - #phy-cells: must be zero 11 - - clocks: a list of phandles and clock-specifier pairs, one for each entry in 12 - clock-names. 13 - - clock-names: must be "cfg" for phy config clock. 14 - 15 - Example: 16 - sata_phy: sata-phy@1b400000 { 17 - compatible = "qcom,apq8064-sata-phy"; 18 - reg = <0x1b400000 0x200>; 19 - 20 - clocks = <&gcc SATA_PHY_CFG_CLK>; 21 - clock-names = "cfg"; 22 - 23 - #phy-cells = <0>; 24 - };
-23
Documentation/devicetree/bindings/phy/qcom-ipq806x-sata-phy.txt
··· 1 - Qualcomm IPQ806x SATA PHY Controller 2 - ------------------------------------ 3 - 4 - SATA PHY nodes are defined to describe on-chip SATA Physical layer controllers. 5 - Each SATA PHY controller should have its own node. 6 - 7 - Required properties: 8 - - compatible: compatible list, contains "qcom,ipq806x-sata-phy" 9 - - reg: offset and length of the SATA PHY register set; 10 - - #phy-cells: must be zero 11 - - clocks: must be exactly one entry 12 - - clock-names: must be "cfg" 13 - 14 - Example: 15 - sata_phy: sata-phy@1b400000 { 16 - compatible = "qcom,ipq806x-sata-phy"; 17 - reg = <0x1b400000 0x200>; 18 - 19 - clocks = <&gcc SATA_PHY_CFG_CLK>; 20 - clock-names = "cfg"; 21 - 22 - #phy-cells = <0>; 23 - };