Freescale i.MX/MXC GPIO controller
Schema identifier ($id): "http://devicetree.org/schemas/gpio/fsl-imx-gpio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>", "Sascha Hauer <s.hauer@pengutronix.de>", "Fabio Estevam <festevam@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"fsl,imx1-gpio","fsl,imx21-gpio","fsl,imx31-gpio","fsl,imx35-gpio","fsl,imx7d-gpio"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,imx21-gpio"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"fsl,imx35-gpio"Item 2
Exact value (
const):"fsl,imx31-gpio"
Rule 4
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,imx35-gpio"
Rule 5
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx50-gpio","fsl,imx51-gpio","fsl,imx53-gpio","fsl,imx6q-gpio","fsl,imx6sl-gpio","fsl,imx6sll-gpio","fsl,imx6sx-gpio","fsl,imx6ul-gpio","fsl,imx7d-gpio","fsl,imx8dxl-gpio","fsl,imx8mm-gpio","fsl,imx8mn-gpio","fsl,imx8mp-gpio","fsl,imx8mq-gpio","fsl,imx8qm-gpio","fsl,imx8qxp-gpio","fsl,imxrt1050-gpio","fsl,imxrt1170-gpio"Item 2
Exact value (
const):"fsl,imx35-gpio"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Should be the port interrupt shared by all 32 pins, if one number. If two numbers, the first one is the interrupt shared by low 16 pins and the second one is for high 16 pins.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupt-controller — required here #
true — No constraints added by this property rule.
#interrupt-cells — required here #
Exact value (const): 2
clocks — not listed as required here #
Maximum number of items (maxItems): 1
#gpio-cells — required here #
Exact value (const): 2
gpio-controller — required here #
true — No constraints added by this property rule.
gpio-line-names — not listed as required here #
true — No constraints added by this property rule.
gpio-ranges — not listed as required here #
true — No constraints added by this property rule.
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
Properties matching a name pattern (patternProperties) #
^(hog-[0-9]+|.+-hog(-[0-9]+)?)$ — name matches this regular expression #
Value type (type): "object"
Required in this object (required): "gpio-hog"
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-controller", "#interrupt-cells", "#gpio-cells", "gpio-controller"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
gpio0: gpio@73f84000 {
compatible = "fsl,imx35-gpio";
reg = <0x73f84000 0x4000>;
interrupts = <50 51>;
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