1*ed062044STzuyi Chang# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2*ed062044STzuyi Chang# Copyright 2023 Realtek Semiconductor Corporation 3*ed062044STzuyi Chang%YAML 1.2 4*ed062044STzuyi Chang--- 5*ed062044STzuyi Chang$id: http://devicetree.org/schemas/gpio/realtek,rtd-gpio.yaml# 6*ed062044STzuyi Chang$schema: http://devicetree.org/meta-schemas/core.yaml# 7*ed062044STzuyi Chang 8*ed062044STzuyi Changtitle: Realtek DHC GPIO controller 9*ed062044STzuyi Chang 10*ed062044STzuyi Changmaintainers: 11*ed062044STzuyi Chang - Tzuyi Chang <tychang@realtek.com> 12*ed062044STzuyi Chang 13*ed062044STzuyi Changdescription: 14*ed062044STzuyi Chang The GPIO controller is designed for the Realtek DHC (Digital Home Center) 15*ed062044STzuyi Chang RTD series SoC family, which are high-definition media processor SoCs. 16*ed062044STzuyi Chang 17*ed062044STzuyi Changproperties: 18*ed062044STzuyi Chang compatible: 19*ed062044STzuyi Chang enum: 20*ed062044STzuyi Chang - realtek,rtd1295-misc-gpio 21*ed062044STzuyi Chang - realtek,rtd1295-iso-gpio 22*ed062044STzuyi Chang - realtek,rtd1315e-iso-gpio 23*ed062044STzuyi Chang - realtek,rtd1319-iso-gpio 24*ed062044STzuyi Chang - realtek,rtd1319d-iso-gpio 25*ed062044STzuyi Chang - realtek,rtd1395-iso-gpio 26*ed062044STzuyi Chang - realtek,rtd1619-iso-gpio 27*ed062044STzuyi Chang - realtek,rtd1619b-iso-gpio 28*ed062044STzuyi Chang 29*ed062044STzuyi Chang reg: 30*ed062044STzuyi Chang items: 31*ed062044STzuyi Chang - description: GPIO controller registers 32*ed062044STzuyi Chang - description: GPIO interrupt registers 33*ed062044STzuyi Chang 34*ed062044STzuyi Chang interrupts: 35*ed062044STzuyi Chang items: 36*ed062044STzuyi Chang - description: Interrupt number of the assert GPIO interrupt, which is 37*ed062044STzuyi Chang triggered when there is a rising edge. 38*ed062044STzuyi Chang - description: Interrupt number of the deassert GPIO interrupt, which is 39*ed062044STzuyi Chang triggered when there is a falling edge. 40*ed062044STzuyi Chang 41*ed062044STzuyi Chang gpio-ranges: true 42*ed062044STzuyi Chang 43*ed062044STzuyi Chang gpio-controller: true 44*ed062044STzuyi Chang 45*ed062044STzuyi Chang "#gpio-cells": 46*ed062044STzuyi Chang const: 2 47*ed062044STzuyi Chang 48*ed062044STzuyi Changrequired: 49*ed062044STzuyi Chang - compatible 50*ed062044STzuyi Chang - reg 51*ed062044STzuyi Chang - interrupts 52*ed062044STzuyi Chang - gpio-ranges 53*ed062044STzuyi Chang - gpio-controller 54*ed062044STzuyi Chang - "#gpio-cells" 55*ed062044STzuyi Chang 56*ed062044STzuyi ChangadditionalProperties: false 57*ed062044STzuyi Chang 58*ed062044STzuyi Changexamples: 59*ed062044STzuyi Chang - | 60*ed062044STzuyi Chang gpio@100 { 61*ed062044STzuyi Chang compatible = "realtek,rtd1319d-iso-gpio"; 62*ed062044STzuyi Chang reg = <0x100 0x100>, 63*ed062044STzuyi Chang <0x0 0xb0>; 64*ed062044STzuyi Chang interrupt-parent = <&iso_irq_mux>; 65*ed062044STzuyi Chang interrupts = <19>, <20>; 66*ed062044STzuyi Chang gpio-ranges = <&pinctrl 0 0 82>; 67*ed062044STzuyi Chang gpio-controller; 68*ed062044STzuyi Chang #gpio-cells = <2>; 69*ed062044STzuyi Chang }; 70