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

dt-bindings: phy: Convert motorola,mapphone-mdm6600 to DT schema

Convert the Motorola Mapphone MDM6600 USB 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/20250607212621.743859-1-robh@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Rob Herring (Arm) and committed by
Vinod Koul
90647aa7 351d6b70

+81 -29
+81
Documentation/devicetree/bindings/phy/motorola,mapphone-mdm6600.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/motorola,mapphone-mdm6600.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Motorola Mapphone MDM6600 USB PHY 8 + 9 + maintainers: 10 + - Tony Lindgren <tony@atomide.com> 11 + 12 + properties: 13 + compatible: 14 + items: 15 + - const: motorola,mapphone-mdm6600 16 + 17 + enable-gpios: 18 + description: GPIO to enable the USB PHY 19 + maxItems: 1 20 + 21 + power-gpios: 22 + description: GPIO to power on the device 23 + maxItems: 1 24 + 25 + reset-gpios: 26 + description: GPIO to reset the device 27 + maxItems: 1 28 + 29 + motorola,mode-gpios: 30 + description: Two GPIOs to configure MDM6600 USB start-up mode for normal mode versus USB flashing mode 31 + items: 32 + - description: normal mode select GPIO 33 + - description: USB flashing mode select GPIO 34 + 35 + motorola,cmd-gpios: 36 + description: Three GPIOs to control the power state of the MDM6600 37 + items: 38 + - description: power state control GPIO 0 39 + - description: power state control GPIO 1 40 + - description: power state control GPIO 2 41 + 42 + motorola,status-gpios: 43 + description: Three GPIOs to read the power state of the MDM6600 44 + items: 45 + - description: power state read GPIO 0 46 + - description: power state read GPIO 1 47 + - description: power state read GPIO 2 48 + 49 + '#phy-cells': 50 + const: 0 51 + 52 + required: 53 + - compatible 54 + - enable-gpios 55 + - power-gpios 56 + - reset-gpios 57 + - motorola,mode-gpios 58 + - motorola,cmd-gpios 59 + - motorola,status-gpios 60 + 61 + additionalProperties: false 62 + 63 + examples: 64 + - | 65 + #include <dt-bindings/gpio/gpio.h> 66 + 67 + usb-phy { 68 + compatible = "motorola,mapphone-mdm6600"; 69 + enable-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>; 70 + power-gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>; 71 + reset-gpios = <&gpio2 17 GPIO_ACTIVE_HIGH>; 72 + motorola,mode-gpios = <&gpio5 20 GPIO_ACTIVE_HIGH>, 73 + <&gpio5 21 GPIO_ACTIVE_HIGH>; 74 + motorola,cmd-gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>, 75 + <&gpio4 8 GPIO_ACTIVE_HIGH>, 76 + <&gpio5 14 GPIO_ACTIVE_HIGH>; 77 + motorola,status-gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>, 78 + <&gpio2 21 GPIO_ACTIVE_HIGH>, 79 + <&gpio2 23 GPIO_ACTIVE_HIGH>; 80 + #phy-cells = <0>; 81 + };
-29
Documentation/devicetree/bindings/phy/phy-mapphone-mdm6600.txt
··· 1 - Device tree binding documentation for Motorola Mapphone MDM6600 USB PHY 2 - 3 - Required properties: 4 - - compatible Must be "motorola,mapphone-mdm6600" 5 - - enable-gpios GPIO to enable the USB PHY 6 - - power-gpios GPIO to power on the device 7 - - reset-gpios GPIO to reset the device 8 - - motorola,mode-gpios Two GPIOs to configure MDM6600 USB start-up mode for 9 - normal mode versus USB flashing mode 10 - - motorola,cmd-gpios Three GPIOs to control the power state of the MDM6600 11 - - motorola,status-gpios Three GPIOs to read the power state of the MDM6600 12 - 13 - Example: 14 - 15 - usb-phy { 16 - compatible = "motorola,mapphone-mdm6600"; 17 - enable-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>; 18 - power-gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>; 19 - reset-gpios = <&gpio2 17 GPIO_ACTIVE_HIGH>; 20 - motorola,mode-gpios = <&gpio5 20 GPIO_ACTIVE_HIGH>, 21 - <&gpio5 21 GPIO_ACTIVE_HIGH>; 22 - motorola,cmd-gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>, 23 - <&gpio4 8 GPIO_ACTIVE_HIGH>, 24 - <&gpio5 14 GPIO_ACTIVE_HIGH>; 25 - motorola,status-gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>, 26 - <&gpio2 21 GPIO_ACTIVE_HIGH>, 27 - <&gpio2 23 GPIO_ACTIVE_HIGH>; 28 - #phy-cells = <0>; 29 - };