Amlogic pinmux controller

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

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

Maintainers (maintainers): "Xianwei Zhao <xianwei.zhao@amlogic.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "amlogic,pinctrl-a4", "amlogic,pinctrl-s6", "amlogic,pinctrl-s7"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "amlogic,pinctrl-a5"

Item 2

Exact value (const): "amlogic,pinctrl-a4"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "amlogic,pinctrl-s7d"

Item 2

Exact value (const): "amlogic,pinctrl-s7"

#address-cells — required here #

Exact value (const): 2

#size-cells — required here #

Exact value (const): 2

ranges — required here #

true — No constraints added by this property rule.

Properties matching a name pattern (patternProperties) #

^gpio@[0-9a-f]+$ — 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 and child nodes (properties) #

reg — required here

Minimum number of items (minItems): 1

Array item rules (items)

Item 1

pin config register

Item 2

pin mux setting register (some special pin fixed function)

Item 3

pin drive strength register (optional)

reg-names — required here

Minimum number of items (minItems): 1

Array item rules (items)

Item 1

Exact value (const): "gpio"

Item 2

Exact value (const): "mux"

Item 3

Exact value (const): "ds"

gpio-controller — required here

true — No constraints added by this property rule.

#gpio-cells — required here

Exact value (const): 2

gpio-ranges — required here

Maximum number of items (maxItems): 1

Required in this object (required): "reg", "reg-names", "gpio-controller", "#gpio-cells", "gpio-ranges"

^func-[0-9a-z-]+$ — 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) #

^group-[0-9a-z-]+$ — name matches this regular expression

Value type (type): "object"

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

All of these rules must match (allOf)

Rule 1

Shared schema rule ($ref): /schemas/pinctrl/pincfg-node.yaml

Rule 2

Shared schema rule ($ref): /schemas/pinctrl/pinmux-node.yaml

Required in this object (required): "pinmux"

Required in this object (required): "compatible", "#address-cells", "#size-cells", "ranges"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/pinctrl/amlogic,pinctrl.h>
apb {
  #address-cells = <2>;
  #size-cells = <2>;
  periphs_pinctrl: pinctrl {
    compatible = "amlogic,pinctrl-a4";
    #address-cells = <2>;
    #size-cells = <2>;
    ranges;

    gpio@4240 {
      reg = <0 0x4240 0 0x40>, <0 0x4000 0 0x8>;
      reg-names = "gpio", "mux";
      gpio-controller;
      #gpio-cells = <2>;
      gpio-ranges = <&periphs_pinctrl 0 8 10>;
    };

    func-uart-b {
      group-default {
        pinmux = <AML_PINMUX(AMLOGIC_GPIO_B, 1, 4)>;
        bias-pull-up;
        drive-strength-microamp = <4000>;
      };

      group-pins1 {
        pinmux = <AML_PINMUX(AMLOGIC_GPIO_B, 5, 2)>;
        bias-pull-up;
        drive-strength-microamp = <4000>;
      };
    };

    func-uart-c {
      group-default {
        pinmux = <AML_PINMUX(AMLOGIC_GPIO_B, 3, 1)>,
                 <AML_PINMUX(AMLOGIC_GPIO_B, 2, 1)>;
        bias-pull-up;
        drive-strength-microamp = <4000>;
      };
    };
  };
};

Source notes #

Annotations retained from the schema source

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

Edit this page