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

dt-bindings: phy: Convert brcm,ns2-drd-phy to DT schema

Convert the Broadcom NS2 USB2 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/20250607212456.740697-1-robh@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Rob Herring (Arm) and committed by
Vinod Koul
f151f3a6 65ad0d06

+62 -30
-30
Documentation/devicetree/bindings/phy/brcm,ns2-drd-phy.txt
··· 1 - BROADCOM NORTHSTAR2 USB2 (DUAL ROLE DEVICE) PHY 2 - 3 - Required properties: 4 - - compatible: brcm,ns2-drd-phy 5 - - reg: offset and length of the NS2 PHY related registers. 6 - - reg-names 7 - The below registers must be provided. 8 - icfg - for DRD ICFG configurations 9 - rst-ctrl - for DRD IDM reset 10 - crmu-ctrl - for CRMU core vdd, PHY and PHY PLL reset 11 - usb2-strap - for port over current polarity reversal 12 - - #phy-cells: Must be 0. No args required. 13 - - vbus-gpios: vbus gpio binding 14 - - id-gpios: id gpio binding 15 - 16 - Refer to phy/phy-bindings.txt for the generic PHY binding properties 17 - 18 - Example: 19 - usbdrd_phy: phy@66000960 { 20 - #phy-cells = <0>; 21 - compatible = "brcm,ns2-drd-phy"; 22 - reg = <0x66000960 0x24>, 23 - <0x67012800 0x4>, 24 - <0x6501d148 0x4>, 25 - <0x664d0700 0x4>; 26 - reg-names = "icfg", "rst-ctrl", 27 - "crmu-ctrl", "usb2-strap"; 28 - id-gpios = <&gpio_g 30 0>; 29 - vbus-gpios = <&gpio_g 31 0>; 30 - };
+62
Documentation/devicetree/bindings/phy/brcm,ns2-drd-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/brcm,ns2-drd-phy.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Broadcom Northstar2 USB2 Dual Role Device PHY 8 + 9 + maintainers: 10 + - Florian Fainelli <florian.fainelli@broadcom.com> 11 + - Hauke Mehrtens <hauke@hauke-m.de> 12 + - Rafał Miłecki <zajec5@gmail.com> 13 + 14 + properties: 15 + compatible: 16 + const: brcm,ns2-drd-phy 17 + 18 + reg: 19 + items: 20 + - description: DRD ICFG configurations 21 + - description: DRD IDM reset 22 + - description: CRMU core vdd, PHY and PHY PLL reset 23 + - description: Port over current polarity reversal 24 + 25 + reg-names: 26 + items: 27 + - const: icfg 28 + - const: rst-ctrl 29 + - const: crmu-ctrl 30 + - const: usb2-strap 31 + 32 + '#phy-cells': 33 + const: 0 34 + 35 + id-gpios: 36 + maxItems: 1 37 + description: ID GPIO line 38 + 39 + vbus-gpios: 40 + maxItems: 1 41 + description: VBUS GPIO line 42 + 43 + required: 44 + - '#phy-cells' 45 + - compatible 46 + - reg 47 + - reg-names 48 + - id-gpios 49 + - vbus-gpios 50 + 51 + additionalProperties: false 52 + 53 + examples: 54 + - | 55 + phy@66000960 { 56 + #phy-cells = <0>; 57 + compatible = "brcm,ns2-drd-phy"; 58 + reg = <0x66000960 0x24>, <0x67012800 0x4>, <0x6501d148 0x4>, <0x664d0700 0x4>; 59 + reg-names = "icfg", "rst-ctrl", "crmu-ctrl", "usb2-strap"; 60 + id-gpios = <&gpio_g 30 0>; 61 + vbus-gpios = <&gpio_g 31 0>; 62 + };