Skip to content

Commit 7aee14a

Browse files
robherringBartosz Golaszewski
authored andcommitted
dt-bindings: gpio: Convert cirrus,clps711x-mctrl-gpio to DT schema
Convert the cirrus,clps711x-mctrl-gpio binding to DT schema format. Add the missing "gpio,syscon-dev" phandle property. Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20250714202919.3012764-1-robh@kernel.org Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
1 parent 5c163c9 commit 7aee14a

2 files changed

Lines changed: 49 additions & 17 deletions

File tree

Documentation/devicetree/bindings/gpio/cirrus,clps711x-mctrl-gpio.txt

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/gpio/cirrus,clps711x-mctrl-gpio.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: ARM Cirrus Logic CLPS711X SYSFLG1 MCTRL GPIOs
8+
9+
maintainers:
10+
- Alexander Shiyan <shc_work@mail.ru>
11+
12+
properties:
13+
compatible:
14+
oneOf:
15+
- items:
16+
- const: cirrus,ep7312-mctrl-gpio
17+
- const: cirrus,ep7209-mctrl-gpio
18+
- const: cirrus,ep7209-mctrl-gpio
19+
20+
gpio-controller: true
21+
22+
'#gpio-cells':
23+
const: 2
24+
25+
gpio,syscon-dev:
26+
description:
27+
Phandle and offset of device's specific registers within the syscon state
28+
control registers
29+
$ref: /schemas/types.yaml#/definitions/phandle-array
30+
items:
31+
- items:
32+
- description: phandle to syscon
33+
- description: register offset within state control registers
34+
35+
required:
36+
- compatible
37+
- gpio-controller
38+
- '#gpio-cells'
39+
40+
additionalProperties: false
41+
42+
examples:
43+
- |
44+
sysgpio: sysgpio {
45+
compatible = "cirrus,ep7312-mctrl-gpio",
46+
"cirrus,ep7209-mctrl-gpio";
47+
gpio-controller;
48+
#gpio-cells = <2>;
49+
};

0 commit comments

Comments
 (0)