Broadcom Northstar pins mux controller

Schema identifier ($id): "http://devicetree.org/schemas/pinctrl/brcm,ns-pinmux.yaml#"

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

Maintainers (maintainers): "Rafał Miłecki <rafal@milecki.pl>"

Some of Northstar SoCs's pins can be used for various purposes thanks to the mux controller. This binding allows describing mux controller and listing available functions. They can be referenced later by other bindings to let system configure controller correctly. A list of pins varies across chipsets so few bindings are available.

Properties and child nodes (properties) #

compatible — not listed as required here #

Allowed values (enum): "brcm,bcm4708-pinmux", "brcm,bcm4709-pinmux", "brcm,bcm53012-pinmux"

reg — required here #

Maximum number of items (maxItems): 1

reg-names — required here #

Exact value (const): "cru_gpio_control"

Properties matching a name pattern (patternProperties) #

-pins$ — name matches this regular expression #

Value type (type): "object"

pin node

Shared schema rule ($ref): pinmux-node.yaml#

Properties and child nodes (properties) #

function — required here

Allowed values (enum): "spi", "i2c", "pwm", "uart1", "mdio", "uart2", "sdio"

groups — required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

Array item rules (items)

Allowed values (enum): "spi_grp", "i2c_grp", "pwm0_grp", "pwm1_grp", "pwm2_grp", "pwm3_grp", "uart1_grp", "mdio_grp", "uart2_grp", "sdio_pwr_grp", "sdio_1p8v_grp"

Required in this object (required): "function", "groups"

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

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pinctrl.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "brcm,bcm4708-pinmux"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

-pins$ — name matches this regular expression

Properties and child nodes (properties)

function — not listed as required here

Allowed values (enum): "spi", "i2c", "pwm", "uart1"

groups — not listed as required here

Array item rules (items)

Allowed values (enum): "spi_grp", "i2c_grp", "pwm0_grp", "pwm1_grp", "pwm2_grp", "pwm3_grp", "uart1_grp"

Required in this object (required): "reg", "reg-names"

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

false

Not allowed by this rule.

Examples (examples) #

pinctrl@1800c1c0 {
    compatible = "brcm,bcm4708-pinmux";
    reg = <0x1800c1c0 0x24>;
    reg-names = "cru_gpio_control";

    spi-pins {
        function = "spi";
        groups = "spi_grp";
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page