Path: blob/master/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/gpio/gpio-vf610.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Freescale VF610 PORT/GPIO module78maintainers:9- Stefan Agner <stefan@agner.ch>1011description: |12The Freescale PORT/GPIO modules are two adjacent modules providing GPIO13functionality. Each pair serves 32 GPIOs. The VF610 has 5 instances of14each, and each PORT module has its own interrupt.1516Note: Each GPIO port should have an alias correctly numbered in "aliases"17node.1819properties:20compatible:21oneOf:22- const: fsl,imx8ulp-gpio23- const: fsl,vf610-gpio24- items:25- const: fsl,imx7ulp-gpio26- const: fsl,vf610-gpio27- items:28- enum:29- fsl,imx93-gpio30- fsl,imx94-gpio31- fsl,imx95-gpio32- const: fsl,imx8ulp-gpio3334reg:35minItems: 136maxItems: 23738interrupts:39items:40- description: GPIO Trustzone non-secure interrupt number41- description: GPIO Trustzone secure interrupt number42minItems: 14344interrupt-controller: true4546"#interrupt-cells":47const: 24849"#gpio-cells":50const: 25152gpio-controller: true5354gpio-line-names:55minItems: 156maxItems: 325758clocks:59items:60- description: SoC GPIO clock61- description: SoC PORT clock6263clock-names:64items:65- const: gpio66- const: port6768gpio-ranges:69minItems: 170maxItems: 47172gpio-reserved-ranges: true7374ngpios:75minimum: 176maximum: 3277default: 327879patternProperties:80"^.+-hog(-[0-9]+)?$":81type: object8283required:84- gpio-hog8586required:87- compatible88- reg89- interrupts90- interrupt-controller91- "#interrupt-cells"92- "#gpio-cells"93- gpio-controller9495allOf:96- if:97properties:98compatible:99contains:100enum:101- fsl,vf610-gpio102- fsl,imx7ulp-gpio103then:104properties:105interrupts:106maxItems: 1107reg:108items:109- description: PORT register base address110- description: GPIO register base address111else:112properties:113interrupts:114minItems: 2115reg:116items:117- description: GPIO register base address118119additionalProperties: false120121examples:122- |123#include <dt-bindings/interrupt-controller/arm-gic.h>124125gpio1: gpio@40049000 {126compatible = "fsl,vf610-gpio";127reg = <0x40049000 0x1000>, <0x400ff000 0x40>;128interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>;129gpio-controller;130#gpio-cells = <2>;131interrupt-controller;132#interrupt-cells = <2>;133gpio-ranges = <&iomuxc 0 0 32>;134};135136137