11c571187SAnson Huang# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 21c571187SAnson Huang%YAML 1.2 31c571187SAnson Huang--- 41c571187SAnson Huang$id: http://devicetree.org/schemas/gpio/gpio-vf610.yaml# 51c571187SAnson Huang$schema: http://devicetree.org/meta-schemas/core.yaml# 61c571187SAnson Huang 71c571187SAnson Huangtitle: Freescale VF610 PORT/GPIO module 81c571187SAnson Huang 91c571187SAnson Huangmaintainers: 101c571187SAnson Huang - Stefan Agner <stefan@agner.ch> 111c571187SAnson Huang 121c571187SAnson Huangdescription: | 131c571187SAnson Huang The Freescale PORT/GPIO modules are two adjacent modules providing GPIO 141c571187SAnson Huang functionality. Each pair serves 32 GPIOs. The VF610 has 5 instances of 151c571187SAnson Huang each, and each PORT module has its own interrupt. 161c571187SAnson Huang 171c571187SAnson Huang Note: Each GPIO port should have an alias correctly numbered in "aliases" 181c571187SAnson Huang node. 191c571187SAnson Huang 201c571187SAnson Huangproperties: 211c571187SAnson Huang compatible: 221c571187SAnson Huang enum: 231c571187SAnson Huang - fsl,vf610-gpio 241c571187SAnson Huang - fsl,imx7ulp-gpio 251c571187SAnson Huang 261c571187SAnson Huang reg: 271c571187SAnson Huang description: The first reg tuple represents the PORT module, the second tuple 281c571187SAnson Huang represents the GPIO module. 291c571187SAnson Huang maxItems: 2 301c571187SAnson Huang 311c571187SAnson Huang interrupts: 321c571187SAnson Huang maxItems: 1 331c571187SAnson Huang 341c571187SAnson Huang interrupt-controller: true 351c571187SAnson Huang 361c571187SAnson Huang "#interrupt-cells": 371c571187SAnson Huang const: 2 381c571187SAnson Huang 391c571187SAnson Huang "#gpio-cells": 401c571187SAnson Huang const: 2 411c571187SAnson Huang 421c571187SAnson Huang gpio-controller: true 431c571187SAnson Huang 441c571187SAnson Huang clocks: 451c571187SAnson Huang items: 461c571187SAnson Huang - description: SoC GPIO clock 471c571187SAnson Huang - description: SoC PORT clock 481c571187SAnson Huang 491c571187SAnson Huang clock-names: 501c571187SAnson Huang items: 511c571187SAnson Huang - const: gpio 521c571187SAnson Huang - const: port 531c571187SAnson Huang 541c571187SAnson Huang gpio-ranges: 551c571187SAnson Huang maxItems: 1 561c571187SAnson Huang 571c571187SAnson Huangrequired: 581c571187SAnson Huang - compatible 591c571187SAnson Huang - reg 601c571187SAnson Huang - interrupts 611c571187SAnson Huang - interrupt-controller 621c571187SAnson Huang - "#interrupt-cells" 631c571187SAnson Huang - "#gpio-cells" 641c571187SAnson Huang - gpio-controller 651c571187SAnson Huang 661c571187SAnson HuangadditionalProperties: false 671c571187SAnson Huang 681c571187SAnson Huangexamples: 691c571187SAnson Huang - | 701c571187SAnson Huang #include <dt-bindings/interrupt-controller/arm-gic.h> 711c571187SAnson Huang 721c571187SAnson Huang gpio1: gpio@40049000 { 731c571187SAnson Huang compatible = "fsl,vf610-gpio"; 741c571187SAnson Huang reg = <0x40049000 0x1000>, <0x400ff000 0x40>; 751c571187SAnson Huang interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>; 761c571187SAnson Huang gpio-controller; 771c571187SAnson Huang #gpio-cells = <2>; 781c571187SAnson Huang interrupt-controller; 791c571187SAnson Huang #interrupt-cells = <2>; 801c571187SAnson Huang gpio-ranges = <&iomuxc 0 0 32>; 811c571187SAnson Huang }; 82