Skip to content

Commit 7767cd0

Browse files
Eddie Jamesrobherring
authored andcommitted
dt-bindings: fsi: ast2600-fsi-master: Convert to json-schema
Convert to json-schema for the AST2600 FSI master documentation. Signed-off-by: Eddie James <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring (Arm) <[email protected]>
1 parent 07f8b91 commit 7767cd0

File tree

2 files changed

+80
-36
lines changed

2 files changed

+80
-36
lines changed
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/fsi/aspeed,ast2600-fsi-master.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Aspeed FSI master
8+
9+
maintainers:
10+
- Eddie James <[email protected]>
11+
12+
description:
13+
The AST2600 and later contain two identical FSI masters. They share a
14+
clock and have a separate interrupt line and output pins.
15+
16+
properties:
17+
compatible:
18+
enum:
19+
- aspeed,ast2600-fsi-master
20+
21+
reg:
22+
maxItems: 1
23+
24+
clocks:
25+
maxItems: 1
26+
27+
cfam-reset-gpios:
28+
maxItems: 1
29+
description:
30+
Output GPIO pin for CFAM reset
31+
32+
fsi-routing-gpios:
33+
maxItems: 1
34+
description:
35+
Output GPIO pin for setting the FSI mux (internal or cabled)
36+
37+
fsi-mux-gpios:
38+
maxItems: 1
39+
description:
40+
Input GPIO pin for detecting the desired FSI mux state
41+
42+
interrupts:
43+
maxItems: 1
44+
45+
required:
46+
- compatible
47+
- reg
48+
- clocks
49+
- interrupts
50+
51+
allOf:
52+
- $ref: fsi-controller.yaml#
53+
54+
unevaluatedProperties: false
55+
56+
examples:
57+
- |
58+
#include <dt-bindings/clock/ast2600-clock.h>
59+
#include <dt-bindings/gpio/aspeed-gpio.h>
60+
#include <dt-bindings/interrupt-controller/arm-gic.h>
61+
fsi-master@1e79b000 {
62+
compatible = "aspeed,ast2600-fsi-master";
63+
reg = <0x1e79b000 0x94>;
64+
#address-cells = <2>;
65+
#size-cells = <0>;
66+
interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
67+
pinctrl-names = "default";
68+
pinctrl-0 = <&pinctrl_fsi1_default>;
69+
clocks = <&syscon ASPEED_CLK_GATE_FSICLK>;
70+
fsi-routing-gpios = <&gpio0 ASPEED_GPIO(Q, 7) GPIO_ACTIVE_HIGH>;
71+
fsi-mux-gpios = <&gpio0 ASPEED_GPIO(B, 0) GPIO_ACTIVE_HIGH>;
72+
cfam-reset-gpios = <&gpio0 ASPEED_GPIO(Q, 0) GPIO_ACTIVE_LOW>;
73+
74+
cfam@0,0 {
75+
reg = <0 0>;
76+
#address-cells = <1>;
77+
#size-cells = <1>;
78+
chip-id = <0>;
79+
};
80+
};

Documentation/devicetree/bindings/fsi/fsi-master-aspeed.txt

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

0 commit comments

Comments
 (0)