Skip to content

Commit 1bee1ec

Browse files
committed
Merge remote-tracking branch 'spi/for-5.14' into spi-next
2 parents edf978a + b470e10 commit 1bee1ec

57 files changed

Lines changed: 1236 additions & 849 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/devicetree/bindings/spi/renesas,rzn1-spi.txt‎

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

‎Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ properties:
6767
const: baikal,bt1-sys-ssi
6868
- description: Canaan Kendryte K210 SoS SPI Controller
6969
const: canaan,k210-spi
70+
- description: Renesas RZ/N1 SPI Controller
71+
items:
72+
- enum:
73+
- renesas,r9a06g032-spi # RZ/N1D
74+
- renesas,r9a06g033-spi # RZ/N1S
75+
- const: renesas,rzn1-spi # RZ/N1
7076

7177
reg:
7278
minItems: 1

‎Documentation/devicetree/bindings/spi/spi-cadence.txt‎

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/spi/spi-cadence.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Cadence SPI controller Device Tree Bindings
8+
9+
maintainers:
10+
- Michal Simek <michal.simek@xilinx.com>
11+
12+
allOf:
13+
- $ref: "spi-controller.yaml#"
14+
15+
properties:
16+
compatible:
17+
enum:
18+
- cdns,spi-r1p6
19+
- xlnx,zynq-spi-r1p6
20+
21+
reg:
22+
maxItems: 1
23+
24+
interrupts:
25+
maxItems: 1
26+
27+
clock-names:
28+
items:
29+
- const: ref_clk
30+
- const: pclk
31+
32+
clocks:
33+
maxItems: 2
34+
35+
num-cs:
36+
description: |
37+
Number of chip selects used. If a decoder is used,
38+
this will be the number of chip selects after the
39+
decoder.
40+
$ref: /schemas/types.yaml#/definitions/uint32
41+
minimum: 1
42+
maximum: 4
43+
default: 4
44+
45+
is-decoded-cs:
46+
description: |
47+
Flag to indicate whether decoder is used or not.
48+
$ref: /schemas/types.yaml#/definitions/uint32
49+
enum: [ 0, 1 ]
50+
default: 0
51+
52+
unevaluatedProperties: false
53+
54+
examples:
55+
- |
56+
spi@e0007000 {
57+
compatible = "xlnx,zynq-spi-r1p6";
58+
clock-names = "ref_clk", "pclk";
59+
clocks = <&clkc 26>, <&clkc 35>;
60+
interrupt-parent = <&intc>;
61+
interrupts = <0 49 4>;
62+
num-cs = <4>;
63+
is-decoded-cs = <0>;
64+
reg = <0xe0007000 0x1000>;
65+
};
66+
...

‎Documentation/devicetree/bindings/spi/spi-controller.yaml‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,11 @@ patternProperties:
114114
Compatible of the SPI device.
115115

116116
reg:
117-
minimum: 0
118-
maximum: 256
117+
minItems: 1
118+
maxItems: 256
119+
items:
120+
minimum: 0
121+
maximum: 256
119122
description:
120123
Chip select used by the device.
121124

‎Documentation/devicetree/bindings/spi/spi-rockchip.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ properties:
3333
- rockchip,rk3328-spi
3434
- rockchip,rk3368-spi
3535
- rockchip,rk3399-spi
36+
- rockchip,rv1126-spi
3637
- const: rockchip,rk3066-spi
3738

3839
reg:

‎Documentation/devicetree/bindings/spi/spi-xilinx.txt‎

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/spi/spi-xilinx.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Xilinx SPI controller Device Tree Bindings
8+
9+
maintainers:
10+
- Michal Simek <michal.simek@xilinx.com>
11+
12+
allOf:
13+
- $ref: "spi-controller.yaml#"
14+
15+
properties:
16+
compatible:
17+
enum:
18+
- xlnx,xps-spi-2.00.a
19+
- xlnx,xps-spi-2.00.b
20+
- xlnx,axi-quad-spi-1.00.a
21+
22+
reg:
23+
maxItems: 1
24+
25+
interrupts:
26+
maxItems: 1
27+
28+
xlnx,num-ss-bits:
29+
description: Number of chip selects used.
30+
$ref: /schemas/types.yaml#/definitions/uint32
31+
minimum: 1
32+
maximum: 32
33+
34+
xlnx,num-transfer-bits:
35+
description: Number of bits per transfer. This will be 8 if not specified.
36+
$ref: /schemas/types.yaml#/definitions/uint32
37+
enum: [8, 16, 32]
38+
default: 8
39+
40+
required:
41+
- compatible
42+
- reg
43+
- interrupts
44+
45+
unevaluatedProperties: false
46+
47+
examples:
48+
- |
49+
spi0: spi@41e00000 {
50+
compatible = "xlnx,xps-spi-2.00.a";
51+
interrupt-parent = <&intc>;
52+
interrupts = <0 31 1>;
53+
reg = <0x41e00000 0x10000>;
54+
xlnx,num-ss-bits = <0x1>;
55+
xlnx,num-transfer-bits = <32>;
56+
};
57+
...

‎Documentation/devicetree/bindings/spi/spi-zynqmp-qspi.txt‎

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/spi/spi-zynqmp-qspi.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Xilinx Zynq UltraScale+ MPSoC GQSPI controller Device Tree Bindings
8+
9+
maintainers:
10+
- Michal Simek <michal.simek@xilinx.com>
11+
12+
allOf:
13+
- $ref: "spi-controller.yaml#"
14+
15+
properties:
16+
compatible:
17+
const: xlnx,zynqmp-qspi-1.0
18+
19+
reg:
20+
maxItems: 2
21+
22+
interrupts:
23+
maxItems: 1
24+
25+
clock-names:
26+
items:
27+
- const: ref_clk
28+
- const: pclk
29+
30+
clocks:
31+
maxItems: 2
32+
33+
unevaluatedProperties: false
34+
35+
examples:
36+
- |
37+
#include <dt-bindings/clock/xlnx-zynqmp-clk.h>
38+
soc {
39+
#address-cells = <2>;
40+
#size-cells = <2>;
41+
42+
qspi: spi@ff0f0000 {
43+
compatible = "xlnx,zynqmp-qspi-1.0";
44+
clocks = <&zynqmp_clk QSPI_REF>, <&zynqmp_clk LPD_LSBUS>;
45+
clock-names = "ref_clk", "pclk";
46+
interrupts = <0 15 4>;
47+
interrupt-parent = <&gic>;
48+
reg = <0x0 0xff0f0000 0x0 0x1000>,
49+
<0x0 0xc0000000 0x0 0x8000000>;
50+
};
51+
};

0 commit comments

Comments
 (0)