Skip to content

Commit 84fccbb

Browse files
committed
Merge tag 'spi-v6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi
Pull spi updates from Mark Brown: "One small core feature this time around but mostly driver improvements and additions for SPI: - Add support for controlling the idle state of MOSI, some systems can support this and depending on the system integration may need it to avoid glitching in some situations - Support for polling mode in the S3C64xx driver and DMA on the Qualcomm QSPI driver - Support for several Allwinner SoCs, AMD Pensando Elba, Intel Mount Evans, Renesas RZ/V2M, and ST STM32H7" * tag 'spi-v6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi: (66 commits) spi: dt-bindings: atmel,at91rm9200-spi: fix broken sam9x7 compatible spi: dt-bindings: atmel,at91rm9200-spi: add sam9x7 compatible spi: Add support for Renesas CSI spi: dt-bindings: Add bindings for RZ/V2M CSI spi: sun6i: Use the new helper to derive the xfer timeout value spi: atmel: Prevent false timeouts on long transfers spi: dt-bindings: stm32: do not disable spi-slave property for stm32f4-f7 spi: Create a helper to derive adaptive timeouts spi: spi-geni-qcom: correctly handle -EPROBE_DEFER from dma_request_chan() spi: stm32: disable spi-slave property for stm32f4-f7 spi: stm32: introduction of stm32h7 SPI device mode support spi: stm32: use dmaengine_terminate_{a}sync instead of _all spi: stm32: renaming of spi_master into spi_controller spi: dw: Remove misleading comment for Mount Evans SoC spi: dt-bindings: snps,dw-apb-ssi: Add compatible for Intel Mount Evans SoC spi: dw: Add compatible for Intel Mount Evans SoC spi: s3c64xx: Use dev_err_probe() spi: s3c64xx: Use the managed spi master allocation function spi: spl022: Probe defer is no error spi: spi-imx: fix mixing of native and gpio chipselects for imx51/imx53/imx6 variants ...
2 parents 362067b + e884a13 commit 84fccbb

39 files changed

Lines changed: 1635 additions & 413 deletions

Documentation/devicetree/bindings/spi/allwinner,sun4i-a10-spi.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ maintainers:
1414
- Maxime Ripard <mripard@kernel.org>
1515

1616
properties:
17-
"#address-cells": true
18-
"#size-cells": true
19-
2017
compatible:
2118
const: allwinner,sun4i-a10-spi
2219

@@ -46,12 +43,9 @@ properties:
4643
- const: rx
4744
- const: tx
4845

49-
num-cs: true
50-
5146
patternProperties:
5247
"^.*@[0-9a-f]+":
5348
type: object
54-
additionalProperties: true
5549
properties:
5650
reg:
5751
items:
@@ -71,7 +65,7 @@ required:
7165
- clocks
7266
- clock-names
7367

74-
additionalProperties: false
68+
unevaluatedProperties: false
7569

7670
examples:
7771
- |

Documentation/devicetree/bindings/spi/allwinner,sun6i-a31-spi.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@ maintainers:
1414
- Maxime Ripard <mripard@kernel.org>
1515

1616
properties:
17-
"#address-cells": true
18-
"#size-cells": true
19-
2017
compatible:
2118
oneOf:
19+
- const: allwinner,sun50i-r329-spi
2220
- const: allwinner,sun6i-a31-spi
2321
- const: allwinner,sun8i-h3-spi
2422
- items:
@@ -28,6 +26,15 @@ properties:
2826
- allwinner,sun50i-h616-spi
2927
- allwinner,suniv-f1c100s-spi
3028
- const: allwinner,sun8i-h3-spi
29+
- items:
30+
- enum:
31+
- allwinner,sun20i-d1-spi
32+
- allwinner,sun50i-r329-spi-dbi
33+
- const: allwinner,sun50i-r329-spi
34+
- items:
35+
- const: allwinner,sun20i-d1-spi-dbi
36+
- const: allwinner,sun50i-r329-spi-dbi
37+
- const: allwinner,sun50i-r329-spi
3138

3239
reg:
3340
maxItems: 1
@@ -58,12 +65,9 @@ properties:
5865
- const: rx
5966
- const: tx
6067

61-
num-cs: true
62-
6368
patternProperties:
6469
"^.*@[0-9a-f]+":
6570
type: object
66-
additionalProperties: true
6771
properties:
6872
reg:
6973
items:
@@ -83,7 +87,7 @@ required:
8387
- clocks
8488
- clock-names
8589

86-
additionalProperties: false
90+
unevaluatedProperties: false
8791

8892
examples:
8993
- |

Documentation/devicetree/bindings/spi/atmel,at91rm9200-spi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ properties:
2020
- items:
2121
- const: microchip,sam9x60-spi
2222
- const: atmel,at91rm9200-spi
23+
- items:
24+
- const: microchip,sam9x7-spi
25+
- const: microchip,sam9x60-spi
26+
- const: atmel,at91rm9200-spi
2327

2428
reg:
2529
maxItems: 1

Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,28 @@ allOf:
4646
maxItems: 2
4747
items:
4848
enum: [ qspi, qspi-ocp ]
49+
- if:
50+
properties:
51+
compatible:
52+
contains:
53+
const: amd,pensando-elba-qspi
54+
then:
55+
properties:
56+
cdns,fifo-depth:
57+
enum: [ 128, 256, 1024 ]
58+
default: 1024
59+
else:
60+
properties:
61+
cdns,fifo-depth:
62+
enum: [ 128, 256 ]
63+
default: 128
4964

5065
properties:
5166
compatible:
5267
oneOf:
5368
- items:
5469
- enum:
70+
- amd,pensando-elba-qspi
5571
- ti,k2g-qspi
5672
- ti,am654-ospi
5773
- intel,lgm-qspi
@@ -76,8 +92,6 @@ properties:
7692
description:
7793
Size of the data FIFO in words.
7894
$ref: /schemas/types.yaml#/definitions/uint32
79-
enum: [ 128, 256 ]
80-
default: 128
8195

8296
cdns,fifo-width:
8397
$ref: /schemas/types.yaml#/definitions/uint32

Documentation/devicetree/bindings/spi/qcom,spi-qcom-qspi.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ properties:
2929
reg:
3030
maxItems: 1
3131

32+
iommus:
33+
maxItems: 1
34+
3235
interrupts:
3336
maxItems: 1
3437

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/spi/renesas,rzv2m-csi.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Renesas RZ/V2M Clocked Serial Interface (CSI)
8+
9+
maintainers:
10+
- Fabrizio Castro <fabrizio.castro.jz@renesas.com>
11+
- Geert Uytterhoeven <geert+renesas@glider.be>
12+
13+
allOf:
14+
- $ref: spi-controller.yaml#
15+
16+
properties:
17+
compatible:
18+
const: renesas,rzv2m-csi
19+
20+
reg:
21+
maxItems: 1
22+
23+
interrupts:
24+
maxItems: 1
25+
26+
clocks:
27+
items:
28+
- description: The clock used to generate the output clock (CSICLK)
29+
- description: Internal clock to access the registers (PCLK)
30+
31+
clock-names:
32+
items:
33+
- const: csiclk
34+
- const: pclk
35+
36+
resets:
37+
maxItems: 1
38+
39+
power-domains:
40+
maxItems: 1
41+
42+
required:
43+
- compatible
44+
- reg
45+
- interrupts
46+
- clocks
47+
- clock-names
48+
- resets
49+
- power-domains
50+
- '#address-cells'
51+
- '#size-cells'
52+
53+
unevaluatedProperties: false
54+
55+
examples:
56+
- |
57+
#include <dt-bindings/interrupt-controller/arm-gic.h>
58+
#include <dt-bindings/clock/r9a09g011-cpg.h>
59+
csi4: spi@a4020200 {
60+
compatible = "renesas,rzv2m-csi";
61+
reg = <0xa4020200 0x80>;
62+
interrupts = <GIC_SPI 230 IRQ_TYPE_LEVEL_HIGH>;
63+
clocks = <&cpg CPG_MOD R9A09G011_CSI4_CLK>,
64+
<&cpg CPG_MOD R9A09G011_CPERI_GRPH_PCLK>;
65+
clock-names = "csiclk", "pclk";
66+
resets = <&cpg R9A09G011_CSI_GPH_PRESETN>;
67+
power-domains = <&cpg>;
68+
#address-cells = <1>;
69+
#size-cells = <0>;
70+
};

Documentation/devicetree/bindings/spi/samsung,spi.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ properties:
3535
minItems: 2
3636
maxItems: 3
3737

38-
cs-gpios: true
39-
4038
dmas:
4139
minItems: 2
4240
maxItems: 2

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ properties:
7474
const: intel,keembay-ssi
7575
- description: Intel Thunder Bay SPI Controller
7676
const: intel,thunderbay-ssi
77+
- description: Intel Mount Evans Integrated Management Complex SPI Controller
78+
const: intel,mountevans-imc-ssi
7779
- description: AMD Pensando Elba SoC SPI Controller
7880
const: amd,pensando-elba-spi
7981
- description: Baikal-T1 SPI Controller

Documentation/devicetree/bindings/spi/socionext,uniphier-spi.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ allOf:
1717
- $ref: spi-controller.yaml#
1818

1919
properties:
20-
"#address-cells": true
21-
"#size-cells": true
22-
2320
compatible:
2421
const: socionext,uniphier-scssi
2522

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ description: |
1717
1818
properties:
1919
$nodename:
20-
pattern: "^spi(@.*|-[0-9a-f])*$"
20+
pattern: "^spi(@.*|-([0-9]|[1-9][0-9]+))?$"
2121

2222
"#address-cells":
2323
enum: [0, 1]

0 commit comments

Comments
 (0)