Path: blob/master/Documentation/devicetree/bindings/gpio/altr-pio-1.0.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/altr-pio-1.0.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Altera GPIO controller78maintainers:9- Dinh Nguyen <dinguyen@kernel.org>10- Marek Vasut <marex@denx.de>11- Mathieu Malaterre <malat@debian.org>12- Tien Hock Loh <thloh@altera.com>1314properties:15compatible:16const: altr,pio-1.01718reg:19maxItems: 12021gpio-controller: true2223"#gpio-cells":24const: 225description:26First cell is the GPIO offset number. Second cell is reserved and27currently unused.2829interrupts:30maxItems: 13132interrupt-controller: true3334"#interrupt-cells":35const: 23637altr,ngpio:38$ref: /schemas/types.yaml#/definitions/uint3239description: Width of the GPIO bank.40default: 324142altr,interrupt-type:43$ref: /schemas/types.yaml#/definitions/uint3244description: >45Specifies the interrupt trigger type synthesized by hardware.46Values defined in <dt-bindings/interrupt-controller/irq.h>.47enum: [1, 2, 3, 4]4849required:50- compatible51- reg52- gpio-controller53- "#gpio-cells"54- interrupts55- interrupt-controller56- "#interrupt-cells"5758additionalProperties: false5960examples:61- |62#include <dt-bindings/interrupt-controller/irq.h>6364gpio@ff200000 {65compatible = "altr,pio-1.0";66reg = <0xff200000 0x10>;67interrupts = <45 4>;68interrupt-controller;69#interrupt-cells = <2>;70gpio-controller;71#gpio-cells = <2>;72altr,ngpio = <32>;73altr,interrupt-type = <IRQ_TYPE_EDGE_RISING>;74};757677