50 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/gpio/loongson,ls1x-gpio.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Loongson-1 GPIO controller8 9maintainers:10 - Keguang Zhang <keguang.zhang@gmail.com>11 12properties:13 compatible:14 const: loongson,ls1x-gpio15 16 reg:17 maxItems: 118 19 gpio-controller: true20 21 "#gpio-cells":22 const: 223 24 ngpios:25 minimum: 126 maximum: 3227 28required:29 - compatible30 - reg31 - gpio-controller32 - "#gpio-cells"33 - ngpios34 35additionalProperties: false36 37examples:38 - |39 gpio0: gpio@1fd010c0 {40 compatible = "loongson,ls1x-gpio";41 reg = <0x1fd010c0 0x4>;42 43 gpio-controller;44 #gpio-cells = <2>;45 46 ngpios = <32>;47 };48 49...50