Broadcom BCM21664 pin controller

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

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

Maintainers (maintainers): "Florian Fainelli <florian.fainelli@broadcom.com>", "Ray Jui <rjui@broadcom.com>", "Scott Branden <sbranden@broadcom.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "brcm,bcm21664-pinctrl"

reg — required here #

Maximum number of items (maxItems): 1

Properties matching a name pattern (patternProperties) #

-pins$ — name matches this regular expression #

Value type (type): "object"

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

false

Not allowed by this rule.

Properties matching a name pattern (patternProperties) #

-grp[0-9]$ — name matches this regular expression

Value type (type): "object"

Properties and child nodes (properties)

pins — required here

Specifies the name(s) of one or more pins to be configured by this node.

Array item rules (items)

Allowed values (enum): "adcsyn", "batrm", "bsc1clk", "bsc1dat", "camcs0", "camcs1", "clk32k", "clk_cx8", "dclk1", "dclk4", "dclkreq1", "dclkreq4", "dmic0clk", "dmic0dq", "dsi0te", "gpio00", "gpio01", "gpio02", "gpio03", "gpio04", "gpio05", "gpio06", "gpio07", "gpio08", "gpio09", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14", "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21", "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28", "gpio32", "gpio33", "gpio34", "gpio93", "gpio94", "gps_calreq", "gps_hostreq", "gps_pablank", "gps_tmark", "icusbdm", "icusbdp", "lcdcs0", "lcdres", "lcdscl", "lcdsda", "lcdte", "mdmgpio00", "mdmgpio01", "mdmgpio02", "mdmgpio03", "mdmgpio04", "mdmgpio05", "mdmgpio06", "mdmgpio07", "mdmgpio08", "mmc0ck", "mmc0cmd", "mmc0dat0", "mmc0dat1", "mmc0dat2", "mmc0dat3", "mmc0dat4", "mmc0dat5", "mmc0dat6", "mmc0dat7", "mmc0rst", "mmc1ck", "mmc1cmd", "mmc1dat0", "mmc1dat1", "mmc1dat2", "mmc1dat3", "mmc1dat4", "mmc1dat5", "mmc1dat6", "mmc1dat7", "mmc1rst", "pc1", "pc2", "pmbscclk", "pmbscdat", "pmuint", "resetn", "rfst2g_mtsloten3g", "rtxdata2g_txdata3g1", "rtxen2g_txdata3g2", "rxdata3g0", "rxdata3g1", "rxdata3g2", "sdck", "sdcmd", "sddat0", "sddat1", "sddat2", "sddat3", "simclk", "simdat", "simdet", "simrst", "spi0clk", "spi0fss", "spi0rxd", "spi0txd", "sri_c", "sri_d", "sri_e", "sspck", "sspdi", "sspdo", "sspsyn", "stat1", "stat2", "swclktck", "swdiotms", "sysclken", "tdi", "tdo", "testmode", "traceclk", "tracedt00", "tracedt01", "tracedt02", "tracedt03", "tracedt04", "tracedt05", "tracedt06", "tracedt07", "tracedt08", "tracedt09", "tracedt10", "tracedt11", "tracedt12", "tracedt13", "tracedt14", "tracedt15", "trstb", "txdata3g0", "ubctsn", "ubrtsn", "ubrx", "ubtx"

function — not listed as required here

Specifies the pin mux selection.

Allowed values (enum): "alt1", "alt2", "alt3", "alt4", "alt5", "alt6"

bias-disable — not listed as required here

true — No constraints added by this property rule.

bias-pull-up — not listed as required here

Value type (type): "boolean"

bias-pull-down — not listed as required here

Value type (type): "boolean"

slew-rate — not listed as required here

Meaning depends on configured pin mux:
  bsc*clk/pmbscclk or bsc*dat/pmbscdat or gpio16/gpio17:
    0: Standard (100 kbps) & Fast (400 kbps) mode
    1: Highspeed (3.4 Mbps) mode
  Otherwise:
    0: fast slew rate
    1: normal slew rate

drive-strength — not listed as required here

Allowed values (enum): 2, 4, 6, 8, 10, 12, 14, 16

input-enable — not listed as required here

true — No constraints added by this property rule.

input-disable — not listed as required here

true — No constraints added by this property rule.

input-schmitt-enable — not listed as required here

true — No constraints added by this property rule.

input-schmitt-disable — not listed as required here

true — No constraints added by this property rule.

Required in this object (required): "pins"

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): pincfg-node.yaml#

Rule 2

Condition (if)

Properties and child nodes (properties)

pins — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "bsc1clk", "bsc1dat", "gpio16", "gpio17", "pmbscclk", "pmbscdat"

When the condition matches (then)

Properties and child nodes (properties)

drive-strength — not listed as required here

false — Not permitted by this property rule.

bias-pull-down — not listed as required here

false — Not permitted by this property rule.

input-schmitt-enable — not listed as required here

false — Not permitted by this property rule.

input-schmitt-disable — not listed as required here

false — Not permitted by this property rule.

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

pinctrl@35004800 {
  compatible = "brcm,bcm21664-pinctrl";
  reg = <0x35004800 0x7f0>;

  dev-a-active-pins {
    /* group node defining 1 standard pin */
    std-grp0 {
      pins = "gpio00";
      function = "alt1";
      input-schmitt-enable;
      bias-disable;
      slew-rate = <1>;
      drive-strength = <4>;
    };

    /* group node defining 2 I2C pins */
    i2c-grp0 {
      pins = "bsc1clk", "bsc1dat";
      function = "alt2";
      bias-pull-up;
      input-enable;
    };
  };
};

Source notes #

Annotations retained from the schema source

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

Line 105: Limitations for I2C pins

Edit this page