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

dt-bindings: phy: Convert hisilicon,hix5hd2-sata-phy to DT schema

Convert the HiSilicon HIX5HD2 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/20250607212520.741588-1-robh@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Rob Herring (Arm) and committed by
Vinod Koul
1fac100a 6725c334

+48 -22
+48
Documentation/devicetree/bindings/phy/hisilicon,hix5hd2-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/hisilicon,hix5hd2-sata-phy.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: HiSilicon hix5hd2 SATA PHY 8 + 9 + maintainers: 10 + - Jiancheng Xue <xuejiancheng@huawei.com> 11 + 12 + properties: 13 + compatible: 14 + const: hisilicon,hix5hd2-sata-phy 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + '#phy-cells': 20 + const: 0 21 + 22 + hisilicon,peripheral-syscon: 23 + description: Phandle of syscon used to control peripheral 24 + $ref: /schemas/types.yaml#/definitions/phandle 25 + 26 + hisilicon,power-reg: 27 + description: Offset and bit number within peripheral-syscon register controlling SATA power supply 28 + $ref: /schemas/types.yaml#/definitions/uint32-array 29 + items: 30 + - description: Offset within peripheral-syscon register 31 + - description: Bit number controlling SATA power supply 32 + 33 + required: 34 + - compatible 35 + - reg 36 + - '#phy-cells' 37 + 38 + additionalProperties: false 39 + 40 + examples: 41 + - | 42 + phy@f9900000 { 43 + compatible = "hisilicon,hix5hd2-sata-phy"; 44 + reg = <0xf9900000 0x10000>; 45 + #phy-cells = <0>; 46 + hisilicon,peripheral-syscon = <&peripheral_ctrl>; 47 + hisilicon,power-reg = <0x8 10>; 48 + };
-22
Documentation/devicetree/bindings/phy/hix5hd2-phy.txt
··· 1 - Hisilicon hix5hd2 SATA PHY 2 - ----------------------- 3 - 4 - Required properties: 5 - - compatible: should be "hisilicon,hix5hd2-sata-phy" 6 - - reg: offset and length of the PHY registers 7 - - #phy-cells: must be 0 8 - Refer to phy/phy-bindings.txt for the generic PHY binding properties 9 - 10 - Optional Properties: 11 - - hisilicon,peripheral-syscon: phandle of syscon used to control peripheral. 12 - - hisilicon,power-reg: offset and bit number within peripheral-syscon, 13 - register of controlling sata power supply. 14 - 15 - Example: 16 - sata_phy: phy@f9900000 { 17 - compatible = "hisilicon,hix5hd2-sata-phy"; 18 - reg = <0xf9900000 0x10000>; 19 - #phy-cells = <0>; 20 - hisilicon,peripheral-syscon = <&peripheral_ctrl>; 21 - hisilicon,power-reg = <0x8 10>; 22 - };