MStar/SigmaStar GPIO controller

Schema identifier ($id): "http://devicetree.org/schemas/gpio/mstar,msc313-gpio.yaml#"

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

Maintainers (maintainers): "Daniel Palmer <daniel@thingy.jp>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^gpio@[0-9a-f]+$"

compatible — required here #

Allowed values (enum): "mstar,msc313-gpio", "sstar,ssd20xd-gpio"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

gpio-ranges — not listed as required here #

true — No constraints added by this property rule.

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/msc313-gpio.h>

gpio: gpio@207800 {
  compatible = "mstar,msc313-gpio";
  #gpio-cells = <2>;
  reg = <0x207800 0x200>;
  gpio-controller;
  gpio-ranges = <&pinctrl 0 36 22>,
                <&pinctrl 22 63 4>,
                <&pinctrl 26 68 6>;
  #interrupt-cells = <2>;
  interrupt-controller;
  interrupt-parent = <&intc_fiq>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page