1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/gpio/fsl-im 4 $id: http://devicetree.org/schemas/gpio/fsl-imx-gpio.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Freescale i.MX/MXC GPIO controller 7 title: Freescale i.MX/MXC GPIO controller 8 8 9 maintainers: 9 maintainers: 10 - Shawn Guo <shawnguo@kernel.org> !! 10 - Anson Huang <Anson.Huang@nxp.com> 11 - Sascha Hauer <s.hauer@pengutronix.de> << 12 - Fabio Estevam <festevam@gmail.com> << 13 11 14 properties: 12 properties: 15 compatible: 13 compatible: 16 oneOf: 14 oneOf: 17 - enum: 15 - enum: 18 - fsl,imx1-gpio 16 - fsl,imx1-gpio 19 - fsl,imx21-gpio 17 - fsl,imx21-gpio 20 - fsl,imx31-gpio 18 - fsl,imx31-gpio 21 - fsl,imx35-gpio 19 - fsl,imx35-gpio 22 - fsl,imx7d-gpio 20 - fsl,imx7d-gpio 23 - items: 21 - items: 24 - enum: << 25 - fsl,imx27-gpio << 26 - const: fsl,imx21-gpio << 27 - items: << 28 - const: fsl,imx35-gpio 22 - const: fsl,imx35-gpio 29 - const: fsl,imx31-gpio 23 - const: fsl,imx31-gpio 30 - items: 24 - items: 31 - enum: 25 - enum: 32 - fsl,imx25-gpio << 33 - const: fsl,imx35-gpio << 34 - items: << 35 - enum: << 36 - fsl,imx50-gpio 26 - fsl,imx50-gpio 37 - fsl,imx51-gpio 27 - fsl,imx51-gpio 38 - fsl,imx53-gpio 28 - fsl,imx53-gpio 39 - fsl,imx6q-gpio 29 - fsl,imx6q-gpio 40 - fsl,imx6sl-gpio 30 - fsl,imx6sl-gpio 41 - fsl,imx6sll-gpio 31 - fsl,imx6sll-gpio 42 - fsl,imx6sx-gpio 32 - fsl,imx6sx-gpio 43 - fsl,imx6ul-gpio 33 - fsl,imx6ul-gpio 44 - fsl,imx7d-gpio 34 - fsl,imx7d-gpio 45 - fsl,imx8dxl-gpio 35 - fsl,imx8dxl-gpio 46 - fsl,imx8mm-gpio 36 - fsl,imx8mm-gpio 47 - fsl,imx8mn-gpio 37 - fsl,imx8mn-gpio 48 - fsl,imx8mp-gpio 38 - fsl,imx8mp-gpio 49 - fsl,imx8mq-gpio 39 - fsl,imx8mq-gpio 50 - fsl,imx8qm-gpio 40 - fsl,imx8qm-gpio 51 - fsl,imx8qxp-gpio 41 - fsl,imx8qxp-gpio 52 - fsl,imxrt1050-gpio 42 - fsl,imxrt1050-gpio 53 - fsl,imxrt1170-gpio 43 - fsl,imxrt1170-gpio 54 - const: fsl,imx35-gpio 44 - const: fsl,imx35-gpio 55 45 56 reg: 46 reg: 57 maxItems: 1 47 maxItems: 1 58 48 59 interrupts: 49 interrupts: 60 description: | 50 description: | 61 Should be the port interrupt shared by a 51 Should be the port interrupt shared by all 32 pins, if one number. 62 If two numbers, the first one is the int 52 If two numbers, the first one is the interrupt shared by low 16 pins 63 and the second one is for high 16 pins. 53 and the second one is for high 16 pins. 64 minItems: 1 54 minItems: 1 65 maxItems: 2 55 maxItems: 2 66 56 67 interrupt-controller: true 57 interrupt-controller: true 68 58 69 "#interrupt-cells": 59 "#interrupt-cells": 70 const: 2 60 const: 2 71 61 72 clocks: 62 clocks: 73 maxItems: 1 63 maxItems: 1 74 64 75 "#gpio-cells": 65 "#gpio-cells": 76 const: 2 66 const: 2 77 67 78 gpio-controller: true 68 gpio-controller: true 79 gpio-line-names: true 69 gpio-line-names: true 80 gpio-ranges: true 70 gpio-ranges: true 81 71 82 power-domains: 72 power-domains: 83 maxItems: 1 73 maxItems: 1 84 74 85 patternProperties: 75 patternProperties: 86 "^(hog-[0-9]+|.+-hog(-[0-9]+)?)$": 76 "^(hog-[0-9]+|.+-hog(-[0-9]+)?)$": 87 type: object 77 type: object >> 78 properties: >> 79 gpio-hog: true >> 80 gpios: true >> 81 input: true >> 82 output-high: true >> 83 output-low: true >> 84 line-name: true >> 85 88 required: 86 required: 89 - gpio-hog 87 - gpio-hog >> 88 - gpios >> 89 >> 90 additionalProperties: false 90 91 91 required: 92 required: 92 - compatible 93 - compatible 93 - reg 94 - reg 94 - interrupts 95 - interrupts 95 - interrupt-controller 96 - interrupt-controller 96 - "#interrupt-cells" 97 - "#interrupt-cells" 97 - "#gpio-cells" 98 - "#gpio-cells" 98 - gpio-controller 99 - gpio-controller 99 100 100 additionalProperties: false 101 additionalProperties: false 101 102 102 examples: 103 examples: 103 - | 104 - | 104 gpio0: gpio@73f84000 { 105 gpio0: gpio@73f84000 { 105 compatible = "fsl,imx35-gpio"; 106 compatible = "fsl,imx35-gpio"; 106 reg = <0x73f84000 0x4000>; 107 reg = <0x73f84000 0x4000>; 107 interrupts = <50 51>; 108 interrupts = <50 51>; 108 gpio-controller; 109 gpio-controller; 109 #gpio-cells = <2>; 110 #gpio-cells = <2>; 110 interrupt-controller; 111 interrupt-controller; 111 #interrupt-cells = <2>; 112 #interrupt-cells = <2>; 112 }; 113 }; 113 114 114 ... 115 ...
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.