Skip to content

Commit 77e1ea9

Browse files
nxpfrankliBartosz Golaszewski
authored andcommitted
dt-bindings: gpio: mpc8xxx: Convert to yaml format
Convert binding doc from txt to yaml. Remove redundated "gpio1: gpio@2300000" example. Add gpio-controller at example "gpio@1100". Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Frank Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 8fce772 commit 77e1ea9

File tree

2 files changed

+82
-53
lines changed

2 files changed

+82
-53
lines changed
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/gpio/fsl,qoriq-gpio.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Freescale MPC512x/MPC8xxx/QorIQ/Layerscape GPIO controller
8+
9+
maintainers:
10+
- Frank Li <[email protected]>
11+
12+
properties:
13+
compatible:
14+
oneOf:
15+
- enum:
16+
- fsl,mpc5121-gpio
17+
- fsl,mpc5125-gpio
18+
- fsl,mpc8349-gpio
19+
- fsl,mpc8572-gpio
20+
- fsl,mpc8610-gpio
21+
- fsl,pq3-gpio
22+
- items:
23+
- enum:
24+
- fsl,ls1021a-gpio
25+
- fsl,ls1028a-gpio
26+
- fsl,ls1043a-gpio
27+
- fsl,ls1088a-gpio
28+
- fsl,ls2080a-gpio
29+
- const: fsl,qoriq-gpio
30+
31+
reg:
32+
maxItems: 1
33+
34+
interrupts:
35+
maxItems: 1
36+
37+
"#gpio-cells":
38+
const: 2
39+
40+
gpio-controller: true
41+
42+
interrupt-controller: true
43+
44+
"#interrupt-cells":
45+
const: 2
46+
47+
little-endian:
48+
$ref: /schemas/types.yaml#/definitions/flag
49+
description:
50+
GPIO registers are used as little endian. If not
51+
present registers are used as big endian by default.
52+
53+
required:
54+
- compatible
55+
- reg
56+
- interrupts
57+
- "#gpio-cells"
58+
59+
additionalProperties: false
60+
61+
examples:
62+
- |
63+
gpio@1100 {
64+
compatible = "fsl,mpc5125-gpio";
65+
reg = <0x1100 0x080>;
66+
interrupts = <78 0x8>;
67+
gpio-controller;
68+
#gpio-cells = <2>;
69+
};
70+
71+
- |
72+
#include <dt-bindings/interrupt-controller/arm-gic.h>
73+
gpio@2300000 {
74+
compatible = "fsl,ls2080a-gpio", "fsl,qoriq-gpio";
75+
reg = <0x2300000 0x10000>;
76+
interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
77+
little-endian;
78+
gpio-controller;
79+
#gpio-cells = <2>;
80+
interrupt-controller;
81+
#interrupt-cells = <2>;
82+
};

Documentation/devicetree/bindings/gpio/gpio-mpc8xxx.txt

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)