Broadcom USB pin map Controller

Schema identifier ($id): "http://devicetree.org/schemas/usb/brcm,usb-pinmap.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Al Cooper <alcooperx@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "brcm,usb-pinmap"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

Interrupt for signals mirrored to out-gpios.

in-gpios — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Array of one or two GPIO pins used for input signals.

brcm,in-functions — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string-array

Array of input signal names, one per gpio in in-gpios.

brcm,in-masks — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Array of enable and mask pairs, one per gpio in-gpios.

out-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Array of one GPIO pin used for output signals.

brcm,out-functions — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string-array

Array of output signal names, one per gpio in out-gpios.

brcm,out-masks — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Array of enable, value, changed and clear masks, one per gpio in out-gpios.

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Property dependencies (dependencies) #

in-gpios — applies when this property is present #

Also requires: "interrupts"

Examples (examples) #

usb_pinmap: usb-pinmap@22000d0 {
    compatible = "brcm,usb-pinmap";
    reg = <0x22000d0 0x4>;
    in-gpios = <&gpio 18 0>, <&gpio 19 0>;
    brcm,in-functions = "VBUS", "PWRFLT";
    brcm,in-masks = <0x8000 0x40000 0x10000 0x80000>;
    out-gpios = <&gpio 20 0>;
    brcm,out-functions = "PWRON";
    brcm,out-masks = <0x20000 0x800000 0x400000 0x200000>;
    interrupts = <0x0 0xb2 0x4>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page