Motorola CPCAP PMIC USB PHY
Schema identifier ($id): "http://devicetree.org/schemas/phy/motorola,cpcap-usb-phy.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Tony Lindgren <tony@atomide.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "motorola,cpcap-usb-phy", "motorola,mapphone-cpcap-usb-phy"
#phy-cells — required here #
Exact value (const): 0
interrupts — not listed as required here #
CPCAP PMIC interrupts used by the USB PHY
Array item rules (items) #
Item 1
id_ground interrupt
Item 2
id_float interrupt
Item 3
se0conn interrupt
Item 4
vbusvld interrupt
Item 5
sessvld interrupt
Item 6
sessend interrupt
Item 7
se1 interrupt
Item 8
dm interrupt
Item 9
dp interrupt
interrupt-names — required here #
Interrupt names
Array item rules (items) #
Item 1
Exact value (
const):"id_ground"
Item 2
Exact value (
const):"id_float"
Item 3
Exact value (
const):"se0conn"
Item 4
Exact value (
const):"vbusvld"
Item 5
Exact value (
const):"sessvld"
Item 6
Exact value (
const):"sessend"
Item 7
Exact value (
const):"se1"
Item 8
Exact value (
const):"dm"
Item 9
Exact value (
const):"dp"
io-channels — required here #
IIO ADC channels used by the USB PHY
Array item rules (items) #
Item 1
vbus channel
Item 2
id channel
io-channel-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"vbus"
Item 2
Exact value (
const):"id"
vusb-supply — required here #
true — No constraints added by this property rule.
pinctrl-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"default"
Item 2
Exact value (
const):"ulpi"
Item 3
Exact value (
const):"utmi"
Item 4
Exact value (
const):"uart"
mode-gpios — not listed as required here #
Optional GPIOs for configuring alternate modes
Array item rules (items) #
Item 1
mode selection GPIO#0
Item 2
mode selection GPIO#1
Required in this object (required): "compatible", "#phy-cells", "interrupts-extended", "interrupt-names", "io-channels", "io-channel-names", "vusb-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
phy {
compatible = "motorola,mapphone-cpcap-usb-phy";
#phy-cells = <0>;
interrupts-extended = <
&cpcap 15 0 &cpcap 14 0 &cpcap 28 0 &cpcap 19 0
&cpcap 18 0 &cpcap 17 0 &cpcap 16 0 &cpcap 49 0
&cpcap 48 1
>;
interrupt-names = "id_ground", "id_float", "se0conn", "vbusvld",
"sessvld", "sessend", "se1", "dm", "dp";
io-channels = <&cpcap_adc 2>, <&cpcap_adc 7>;
io-channel-names = "vbus", "id";
vusb-supply = <&vusb>;
pinctrl-0 = <&usb_gpio_mux_sel1 &usb_gpio_mux_sel2>;
pinctrl-1 = <&usb_ulpi_pins>;
pinctrl-2 = <&usb_utmi_pins>;
pinctrl-3 = <&uart3_pins>;
pinctrl-names = "default", "ulpi", "utmi", "uart";
mode-gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>, <&gpio1 0 GPIO_ACTIVE_HIGH>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)