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

dt-bindings: phy: Convert marvell,berlin2-sata-phy to DT schema

Convert the Marvell Berlin2 SATA PHY binding to DT schema format. It's a
straight forward conversion.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20250607212545.742617-1-robh@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Rob Herring (Arm) and committed by
Vinod Koul
f4b522ce 85d6af3b

+76 -36
-36
Documentation/devicetree/bindings/phy/berlin-sata-phy.txt
··· 1 - Berlin SATA PHY 2 - --------------- 3 - 4 - Required properties: 5 - - compatible: should be one of 6 - "marvell,berlin2-sata-phy" 7 - "marvell,berlin2q-sata-phy" 8 - - address-cells: should be 1 9 - - size-cells: should be 0 10 - - phy-cells: from the generic PHY bindings, must be 1 11 - - reg: address and length of the register 12 - - clocks: reference to the clock entry 13 - 14 - Sub-nodes: 15 - Each PHY should be represented as a sub-node. 16 - 17 - Sub-nodes required properties: 18 - - reg: the PHY number 19 - 20 - Example: 21 - sata_phy: phy@f7e900a0 { 22 - compatible = "marvell,berlin2q-sata-phy"; 23 - reg = <0xf7e900a0 0x200>; 24 - clocks = <&chip CLKID_SATA>; 25 - #address-cells = <1>; 26 - #size-cells = <0>; 27 - #phy-cells = <1>; 28 - 29 - sata-phy@0 { 30 - reg = <0>; 31 - }; 32 - 33 - sata-phy@1 { 34 - reg = <1>; 35 - }; 36 - };
+76
Documentation/devicetree/bindings/phy/marvell,berlin2-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/marvell,berlin2-sata-phy.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Marvell Berlin SATA PHY 8 + 9 + maintainers: 10 + - Antoine Tenart <atenart@kernel.org> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - marvell,berlin2-sata-phy 16 + - marvell,berlin2q-sata-phy 17 + 18 + reg: 19 + maxItems: 1 20 + 21 + clocks: 22 + maxItems: 1 23 + 24 + '#address-cells': 25 + const: 1 26 + 27 + '#size-cells': 28 + const: 0 29 + 30 + '#phy-cells': 31 + const: 1 32 + 33 + patternProperties: 34 + '^sata-phy@[0-1]$': 35 + description: A SATA PHY sub-node. 36 + type: object 37 + additionalProperties: false 38 + 39 + properties: 40 + reg: 41 + maximum: 1 42 + description: PHY index number. 43 + 44 + required: 45 + - reg 46 + 47 + required: 48 + - compatible 49 + - reg 50 + - clocks 51 + - '#address-cells' 52 + - '#size-cells' 53 + - '#phy-cells' 54 + 55 + additionalProperties: false 56 + 57 + examples: 58 + - | 59 + #include <dt-bindings/clock/berlin2q.h> 60 + 61 + phy@f7e900a0 { 62 + compatible = "marvell,berlin2q-sata-phy"; 63 + reg = <0xf7e900a0 0x200>; 64 + clocks = <&chip CLKID_SATA>; 65 + #address-cells = <1>; 66 + #size-cells = <0>; 67 + #phy-cells = <1>; 68 + 69 + sata-phy@0 { 70 + reg = <0>; 71 + }; 72 + 73 + sata-phy@1 { 74 + reg = <1>; 75 + }; 76 + };