NXP LPC18xx/43xx GPIO controller

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

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

Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nxp,lpc1850-gpio"

reg — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

reg-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "gpio"

Item 2

Exact value (const): "gpio-pin-ic"

Item 3

Exact value (const): "gpio-group0-ic"

Item 4

Exact value (const): "gpio-gpoup1-ic"

clocks — required here #

Maximum number of items (maxItems): 1

resets — not listed as 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

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 2

- The first cell is an interrupt number within
  0..9 range, for GPIO pin interrupts it is equal
  to 'nxp,gpio-pin-interrupt' property value of
  GPIO pin configuration, 8 is for GPIO GROUP0
  interrupt, 9 is for GPIO GROUP1 interrupt
- The second cell is used to specify interrupt type

gpio-ranges — not listed as required here #

true — No constraints added by this property rule.

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/lpc18xx-ccu.h>

gpio@400f4000 {
    compatible = "nxp,lpc1850-gpio";
    reg = <0x400f4000 0x4000>, <0x40087000 0x1000>,
          <0x40088000 0x1000>, <0x40089000 0x1000>;
    reg-names = "gpio", "gpio-pin-ic", "gpio-group0-ic", "gpio-gpoup1-ic";
    clocks = <&ccu1 CLK_CPU_GPIO>;
    resets = <&rgu 28>;
    gpio-controller;
    #gpio-cells = <2>;
    interrupt-controller;
    #interrupt-cells = <2>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page