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

dt-bindings: phy: Convert Calxeda ComboPHY binding to json-schema

Convert the Calxeda ComboPHY binding to DT schema format using
json-schema.
There is no driver in the Linux kernel matching the compatible
string, but the nodes are parsed by the SATA driver, which links to them
using its port-phys property.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Andre Przywara and committed by
Rob Herring
16be1e40 9e7c2bbf

+51 -17
-17
Documentation/devicetree/bindings/phy/calxeda-combophy.txt
··· 1 - Calxeda Highbank Combination Phys for SATA 2 - 3 - Properties: 4 - - compatible : Should be "calxeda,hb-combophy" 5 - - #phy-cells: Should be 1. 6 - - reg : Address and size for Combination Phy registers. 7 - - phydev: device ID for programming the combophy. 8 - 9 - Example: 10 - 11 - combophy5: combo-phy@fff5d000 { 12 - compatible = "calxeda,hb-combophy"; 13 - #phy-cells = <1>; 14 - reg = <0xfff5d000 0x1000>; 15 - phydev = <31>; 16 - }; 17 -
+51
Documentation/devicetree/bindings/phy/calxeda-combophy.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/calxeda-combophy.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Calxeda Highbank Combination PHYs binding for SATA 8 + 9 + description: | 10 + The Calxeda Combination PHYs connect the SoC to the internal fabric 11 + and to SATA connectors. The PHYs support multiple protocols (SATA, 12 + SGMII, PCIe) and can be assigned to different devices (SATA or XGMAC 13 + controller). 14 + Programming the PHYs is typically handled by those device drivers, 15 + not by a dedicated PHY driver. 16 + 17 + maintainers: 18 + - Andre Przywara <andre.przywara@arm.com> 19 + 20 + properties: 21 + compatible: 22 + const: calxeda,hb-combophy 23 + 24 + '#phy-cells': 25 + const: 1 26 + 27 + reg: 28 + maxItems: 1 29 + 30 + phydev: 31 + description: device ID for programming the ComboPHY. 32 + allOf: 33 + - $ref: /schemas/types.yaml#/definitions/uint32 34 + - maximum: 31 35 + 36 + required: 37 + - compatible 38 + - reg 39 + - phydev 40 + - '#phy-cells' 41 + 42 + additionalProperties: false 43 + 44 + examples: 45 + - | 46 + combophy5: combo-phy@fff5d000 { 47 + compatible = "calxeda,hb-combophy"; 48 + #phy-cells = <1>; 49 + reg = <0xfff5d000 0x1000>; 50 + phydev = <31>; 51 + };