1*833e5d42SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*833e5d42SEmmanuel Vadot%YAML 1.2 3*833e5d42SEmmanuel Vadot--- 4*833e5d42SEmmanuel Vadot$id: http://devicetree.org/schemas/gpio/microchip,pic32mzda-gpio.yaml# 5*833e5d42SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*833e5d42SEmmanuel Vadot 7*833e5d42SEmmanuel Vadottitle: Microchip PIC32 GPIO controller 8*833e5d42SEmmanuel Vadot 9*833e5d42SEmmanuel Vadotmaintainers: 10*833e5d42SEmmanuel Vadot - Joshua Henderson <joshua.henderson@microchip.com> 11*833e5d42SEmmanuel Vadot - Purna Chandra Mandal <purna.mandal@microchip.com> 12*833e5d42SEmmanuel Vadot 13*833e5d42SEmmanuel Vadotproperties: 14*833e5d42SEmmanuel Vadot compatible: 15*833e5d42SEmmanuel Vadot const: microchip,pic32mzda-gpio 16*833e5d42SEmmanuel Vadot 17*833e5d42SEmmanuel Vadot reg: 18*833e5d42SEmmanuel Vadot maxItems: 1 19*833e5d42SEmmanuel Vadot 20*833e5d42SEmmanuel Vadot gpio-controller: true 21*833e5d42SEmmanuel Vadot 22*833e5d42SEmmanuel Vadot gpio-ranges: true 23*833e5d42SEmmanuel Vadot 24*833e5d42SEmmanuel Vadot "#gpio-cells": 25*833e5d42SEmmanuel Vadot const: 2 26*833e5d42SEmmanuel Vadot 27*833e5d42SEmmanuel Vadot interrupts: 28*833e5d42SEmmanuel Vadot maxItems: 1 29*833e5d42SEmmanuel Vadot 30*833e5d42SEmmanuel Vadot interrupt-controller: true 31*833e5d42SEmmanuel Vadot 32*833e5d42SEmmanuel Vadot "#interrupt-cells": 33*833e5d42SEmmanuel Vadot const: 2 34*833e5d42SEmmanuel Vadot 35*833e5d42SEmmanuel Vadot clocks: 36*833e5d42SEmmanuel Vadot maxItems: 1 37*833e5d42SEmmanuel Vadot 38*833e5d42SEmmanuel Vadot microchip,gpio-bank: 39*833e5d42SEmmanuel Vadot description: Bank index owned by the controller 40*833e5d42SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 41*833e5d42SEmmanuel Vadot 42*833e5d42SEmmanuel Vadotrequired: 43*833e5d42SEmmanuel Vadot - compatible 44*833e5d42SEmmanuel Vadot - reg 45*833e5d42SEmmanuel Vadot - gpio-controller 46*833e5d42SEmmanuel Vadot - gpio-ranges 47*833e5d42SEmmanuel Vadot - "#gpio-cells" 48*833e5d42SEmmanuel Vadot - interrupts 49*833e5d42SEmmanuel Vadot - interrupt-controller 50*833e5d42SEmmanuel Vadot - "#interrupt-cells" 51*833e5d42SEmmanuel Vadot - clocks 52*833e5d42SEmmanuel Vadot - microchip,gpio-bank 53*833e5d42SEmmanuel Vadot 54*833e5d42SEmmanuel VadotadditionalProperties: false 55*833e5d42SEmmanuel Vadot 56*833e5d42SEmmanuel Vadotexamples: 57*833e5d42SEmmanuel Vadot - | 58*833e5d42SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 59*833e5d42SEmmanuel Vadot 60*833e5d42SEmmanuel Vadot gpio@1f860000 { 61*833e5d42SEmmanuel Vadot compatible = "microchip,pic32mzda-gpio"; 62*833e5d42SEmmanuel Vadot reg = <0x1f860000 0x100>; 63*833e5d42SEmmanuel Vadot interrupts = <118 IRQ_TYPE_LEVEL_HIGH>; 64*833e5d42SEmmanuel Vadot #gpio-cells = <2>; 65*833e5d42SEmmanuel Vadot gpio-controller; 66*833e5d42SEmmanuel Vadot interrupt-controller; 67*833e5d42SEmmanuel Vadot #interrupt-cells = <2>; 68*833e5d42SEmmanuel Vadot clocks = <&rootclk 11>; 69*833e5d42SEmmanuel Vadot microchip,gpio-bank = <0>; 70*833e5d42SEmmanuel Vadot gpio-ranges = <&pic32_pinctrl 0 0 16>; 71*833e5d42SEmmanuel Vadot }; 72