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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: phy: Convert motorola,cpcap-usb-phy to DT schema

Convert the Motorola CPCAP PMIC 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/20250607212616.743674-1-robh@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

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

+108 -41
+1 -1
Documentation/devicetree/bindings/mfd/motorola-cpcap.txt
··· 19 19 - Documentation/devicetree/bindings/power/supply/cpcap-battery.yaml 20 20 - Documentation/devicetree/bindings/power/supply/cpcap-charger.yaml 21 21 - Documentation/devicetree/bindings/regulator/cpcap-regulator.txt 22 - - Documentation/devicetree/bindings/phy/phy-cpcap-usb.txt 22 + - Documentation/devicetree/bindings/phy/motorola,cpcap-usb-phy.yaml 23 23 - Documentation/devicetree/bindings/input/cpcap-pwrbutton.txt 24 24 - Documentation/devicetree/bindings/rtc/cpcap-rtc.txt 25 25 - Documentation/devicetree/bindings/leds/leds-cpcap.txt
+107
Documentation/devicetree/bindings/phy/motorola,cpcap-usb-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/motorola,cpcap-usb-phy.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Motorola CPCAP PMIC USB PHY 8 + 9 + maintainers: 10 + - Tony Lindgren <tony@atomide.com> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - motorola,cpcap-usb-phy 16 + - motorola,mapphone-cpcap-usb-phy 17 + 18 + '#phy-cells': 19 + const: 0 20 + 21 + interrupts: 22 + description: CPCAP PMIC interrupts used by the USB PHY 23 + items: 24 + - description: id_ground interrupt 25 + - description: id_float interrupt 26 + - description: se0conn interrupt 27 + - description: vbusvld interrupt 28 + - description: sessvld interrupt 29 + - description: sessend interrupt 30 + - description: se1 interrupt 31 + - description: dm interrupt 32 + - description: dp interrupt 33 + 34 + interrupt-names: 35 + description: Interrupt names 36 + items: 37 + - const: id_ground 38 + - const: id_float 39 + - const: se0conn 40 + - const: vbusvld 41 + - const: sessvld 42 + - const: sessend 43 + - const: se1 44 + - const: dm 45 + - const: dp 46 + 47 + io-channels: 48 + description: IIO ADC channels used by the USB PHY 49 + items: 50 + - description: vbus channel 51 + - description: id channel 52 + 53 + io-channel-names: 54 + items: 55 + - const: vbus 56 + - const: id 57 + 58 + vusb-supply: true 59 + 60 + pinctrl-names: 61 + items: 62 + - const: default 63 + - const: ulpi 64 + - const: utmi 65 + - const: uart 66 + 67 + mode-gpios: 68 + description: Optional GPIOs for configuring alternate modes 69 + items: 70 + - description: "mode selection GPIO #0" 71 + - description: "mode selection GPIO #1" 72 + 73 + required: 74 + - compatible 75 + - '#phy-cells' 76 + - interrupts-extended 77 + - interrupt-names 78 + - io-channels 79 + - io-channel-names 80 + - vusb-supply 81 + 82 + additionalProperties: false 83 + 84 + examples: 85 + - | 86 + #include <dt-bindings/gpio/gpio.h> 87 + 88 + phy { 89 + compatible = "motorola,mapphone-cpcap-usb-phy"; 90 + #phy-cells = <0>; 91 + interrupts-extended = < 92 + &cpcap 15 0 &cpcap 14 0 &cpcap 28 0 &cpcap 19 0 93 + &cpcap 18 0 &cpcap 17 0 &cpcap 16 0 &cpcap 49 0 94 + &cpcap 48 1 95 + >; 96 + interrupt-names = "id_ground", "id_float", "se0conn", "vbusvld", 97 + "sessvld", "sessend", "se1", "dm", "dp"; 98 + io-channels = <&cpcap_adc 2>, <&cpcap_adc 7>; 99 + io-channel-names = "vbus", "id"; 100 + vusb-supply = <&vusb>; 101 + pinctrl-0 = <&usb_gpio_mux_sel1 &usb_gpio_mux_sel2>; 102 + pinctrl-1 = <&usb_ulpi_pins>; 103 + pinctrl-2 = <&usb_utmi_pins>; 104 + pinctrl-3 = <&uart3_pins>; 105 + pinctrl-names = "default", "ulpi", "utmi", "uart"; 106 + mode-gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>, <&gpio1 0 GPIO_ACTIVE_HIGH>; 107 + };
-40
Documentation/devicetree/bindings/phy/phy-cpcap-usb.txt
··· 1 - Motorola CPCAP PMIC USB PHY binding 2 - 3 - Required properties: 4 - compatible: Shall be either "motorola,cpcap-usb-phy" or 5 - "motorola,mapphone-cpcap-usb-phy" 6 - #phy-cells: Shall be 0 7 - interrupts: CPCAP PMIC interrupts used by the USB PHY 8 - interrupt-names: Interrupt names 9 - io-channels: IIO ADC channels used by the USB PHY 10 - io-channel-names: IIO ADC channel names 11 - vusb-supply: Regulator for the PHY 12 - 13 - Optional properties: 14 - pinctrl: Optional alternate pin modes for the PHY 15 - pinctrl-names: Names for optional pin modes 16 - mode-gpios: Optional GPIOs for configuring alternate modes 17 - 18 - Example: 19 - cpcap_usb2_phy: phy { 20 - compatible = "motorola,mapphone-cpcap-usb-phy"; 21 - pinctrl-0 = <&usb_gpio_mux_sel1 &usb_gpio_mux_sel2>; 22 - pinctrl-1 = <&usb_ulpi_pins>; 23 - pinctrl-2 = <&usb_utmi_pins>; 24 - pinctrl-3 = <&uart3_pins>; 25 - pinctrl-names = "default", "ulpi", "utmi", "uart"; 26 - #phy-cells = <0>; 27 - interrupts-extended = < 28 - &cpcap 15 0 &cpcap 14 0 &cpcap 28 0 &cpcap 19 0 29 - &cpcap 18 0 &cpcap 17 0 &cpcap 16 0 &cpcap 49 0 30 - &cpcap 48 1 31 - >; 32 - interrupt-names = 33 - "id_ground", "id_float", "se0conn", "vbusvld", 34 - "sessvld", "sessend", "se1", "dm", "dp"; 35 - mode-gpios = <&gpio2 28 GPIO_ACTIVE_HIGH 36 - &gpio1 0 GPIO_ACTIVE_HIGH>; 37 - io-channels = <&cpcap_adc 2>, <&cpcap_adc 7>; 38 - io-channel-names = "vbus", "id"; 39 - vusb-supply = <&vusb>; 40 - };