162306a36Sopenharmony_ci# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 262306a36Sopenharmony_ci%YAML 1.2 362306a36Sopenharmony_ci--- 462306a36Sopenharmony_ci$id: http://devicetree.org/schemas/gpio/loongson,ls-gpio.yaml# 562306a36Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml# 662306a36Sopenharmony_ci 762306a36Sopenharmony_cititle: Loongson GPIO controller. 862306a36Sopenharmony_ci 962306a36Sopenharmony_cimaintainers: 1062306a36Sopenharmony_ci - Yinbo Zhu <zhuyinbo@loongson.cn> 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ciproperties: 1362306a36Sopenharmony_ci compatible: 1462306a36Sopenharmony_ci enum: 1562306a36Sopenharmony_ci - loongson,ls2k-gpio 1662306a36Sopenharmony_ci - loongson,ls7a-gpio 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ci reg: 1962306a36Sopenharmony_ci maxItems: 1 2062306a36Sopenharmony_ci 2162306a36Sopenharmony_ci ngpios: 2262306a36Sopenharmony_ci minimum: 1 2362306a36Sopenharmony_ci maximum: 64 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ci "#gpio-cells": 2662306a36Sopenharmony_ci const: 2 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_ci gpio-controller: true 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_ci gpio-ranges: true 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_ci interrupts: 3362306a36Sopenharmony_ci minItems: 1 3462306a36Sopenharmony_ci maxItems: 64 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_cirequired: 3762306a36Sopenharmony_ci - compatible 3862306a36Sopenharmony_ci - reg 3962306a36Sopenharmony_ci - ngpios 4062306a36Sopenharmony_ci - "#gpio-cells" 4162306a36Sopenharmony_ci - gpio-controller 4262306a36Sopenharmony_ci - gpio-ranges 4362306a36Sopenharmony_ci - interrupts 4462306a36Sopenharmony_ci 4562306a36Sopenharmony_ciadditionalProperties: false 4662306a36Sopenharmony_ci 4762306a36Sopenharmony_ciexamples: 4862306a36Sopenharmony_ci - | 4962306a36Sopenharmony_ci #include <dt-bindings/interrupt-controller/irq.h> 5062306a36Sopenharmony_ci 5162306a36Sopenharmony_ci gpio0: gpio@1fe00500 { 5262306a36Sopenharmony_ci compatible = "loongson,ls2k-gpio"; 5362306a36Sopenharmony_ci reg = <0x1fe00500 0x38>; 5462306a36Sopenharmony_ci ngpios = <64>; 5562306a36Sopenharmony_ci #gpio-cells = <2>; 5662306a36Sopenharmony_ci gpio-controller; 5762306a36Sopenharmony_ci gpio-ranges = <&pctrl 0 0 15>, 5862306a36Sopenharmony_ci <&pctrl 16 16 15>, 5962306a36Sopenharmony_ci <&pctrl 32 32 10>, 6062306a36Sopenharmony_ci <&pctrl 44 44 20>; 6162306a36Sopenharmony_ci interrupt-parent = <&liointc1>; 6262306a36Sopenharmony_ci interrupts = <28 IRQ_TYPE_LEVEL_LOW>, 6362306a36Sopenharmony_ci <29 IRQ_TYPE_LEVEL_LOW>, 6462306a36Sopenharmony_ci <30 IRQ_TYPE_LEVEL_LOW>, 6562306a36Sopenharmony_ci <30 IRQ_TYPE_LEVEL_LOW>, 6662306a36Sopenharmony_ci <26 IRQ_TYPE_LEVEL_LOW>, 6762306a36Sopenharmony_ci <26 IRQ_TYPE_LEVEL_LOW>, 6862306a36Sopenharmony_ci <26 IRQ_TYPE_LEVEL_LOW>, 6962306a36Sopenharmony_ci <26 IRQ_TYPE_LEVEL_LOW>, 7062306a36Sopenharmony_ci <26 IRQ_TYPE_LEVEL_LOW>, 7162306a36Sopenharmony_ci <26 IRQ_TYPE_LEVEL_LOW>, 7262306a36Sopenharmony_ci <26 IRQ_TYPE_LEVEL_LOW>, 7362306a36Sopenharmony_ci <26 IRQ_TYPE_LEVEL_LOW>, 7462306a36Sopenharmony_ci <26 IRQ_TYPE_LEVEL_LOW>, 7562306a36Sopenharmony_ci <26 IRQ_TYPE_LEVEL_LOW>, 7662306a36Sopenharmony_ci <26 IRQ_TYPE_LEVEL_LOW>, 7762306a36Sopenharmony_ci <>, 7862306a36Sopenharmony_ci <26 IRQ_TYPE_LEVEL_LOW>, 7962306a36Sopenharmony_ci <26 IRQ_TYPE_LEVEL_LOW>, 8062306a36Sopenharmony_ci <26 IRQ_TYPE_LEVEL_LOW>, 8162306a36Sopenharmony_ci <26 IRQ_TYPE_LEVEL_LOW>, 8262306a36Sopenharmony_ci <26 IRQ_TYPE_LEVEL_LOW>, 8362306a36Sopenharmony_ci <26 IRQ_TYPE_LEVEL_LOW>, 8462306a36Sopenharmony_ci <26 IRQ_TYPE_LEVEL_LOW>, 8562306a36Sopenharmony_ci <26 IRQ_TYPE_LEVEL_LOW>, 8662306a36Sopenharmony_ci <26 IRQ_TYPE_LEVEL_LOW>, 8762306a36Sopenharmony_ci <26 IRQ_TYPE_LEVEL_LOW>, 8862306a36Sopenharmony_ci <26 IRQ_TYPE_LEVEL_LOW>, 8962306a36Sopenharmony_ci <26 IRQ_TYPE_LEVEL_LOW>, 9062306a36Sopenharmony_ci <26 IRQ_TYPE_LEVEL_LOW>, 9162306a36Sopenharmony_ci <26 IRQ_TYPE_LEVEL_LOW>, 9262306a36Sopenharmony_ci <26 IRQ_TYPE_LEVEL_LOW>, 9362306a36Sopenharmony_ci <26 IRQ_TYPE_LEVEL_LOW>, 9462306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>, 9562306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>, 9662306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>, 9762306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>, 9862306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>, 9962306a36Sopenharmony_ci <>, 10062306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>, 10162306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>, 10262306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>, 10362306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>, 10462306a36Sopenharmony_ci <>, 10562306a36Sopenharmony_ci <>, 10662306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>, 10762306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>, 10862306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>, 10962306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>, 11062306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>, 11162306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>, 11262306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>, 11362306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>, 11462306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>, 11562306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>, 11662306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>, 11762306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>, 11862306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>, 11962306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>, 12062306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>, 12162306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>, 12262306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>, 12362306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>, 12462306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>, 12562306a36Sopenharmony_ci <27 IRQ_TYPE_LEVEL_LOW>; 12662306a36Sopenharmony_ci }; 127