Skip to content

Commit 0da9bc6

Browse files
committed
Merge tag 'spi-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi
Pull spi updates from Mark Brown: "A quiet release for SPI, some fixes and a couple of new drivers plus one small refactoring: - Move the chip select timing configuration from the controller to the device to allow a bit more flexibility - New drivers for Rockchip SFC and Spreadtrum ADI" * tag 'spi-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi: (47 commits) spi: spi-zynq-qspi: use wait_for_completion_timeout to make zynq_qspi_exec_mem_op not interruptible spi: add sprd ADI for sc9863 and ums512 spi: Convert sprd ADI bindings to yaml spi: sprd: Add ADI r3 support spi: sprd: Fix the wrong WDG_LOAD_VAL spi: davinci: invoke chipselect callback spi: sprd: fill offset only to RD_CMD register for reading from slave device spi: sprd: Make sure offset not equal to slave address size spi: sprd: Pass offset instead of physical address to adi_read/_write() spi: rockchip-sfc: Fix assigned but never used return error codes spi: rockchip-sfc: Remove redundant IO operations spi: stm32: fix excluded_middle.cocci warnings spi: coldfire-qspi: Use clk_disable_unprepare in the remove function spi: tegra20-slink: remove spi_master_put() in tegra_slink_remove() spi: rockchip-sfc: add rockchip serial flash controller spi: rockchip-sfc: Bindings for Rockchip serial flash controller spi: orion: Prevent incorrect chip select behaviour spi: mxic: add missing braces spi: spi-pic32: Fix issue with uninitialized dma_slave_config spi: spi-fsl-dspi: Fix issue with uninitialized dma_slave_config ...
2 parents d46e0d3 + 6e9c846 commit 0da9bc6

31 files changed

Lines changed: 1520 additions & 578 deletions

‎Documentation/devicetree/bindings/fsi/ibm,fsi2spi.yaml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ properties:
1919
compatible:
2020
enum:
2121
- ibm,fsi2spi
22-
- ibm,fsi2spi-restricted
2322

2423
reg:
2524
items:

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

Lines changed: 0 additions & 48 deletions
This file was deleted.
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/spi/omap-spi.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: SPI controller bindings for OMAP and K3 SoCs
8+
9+
maintainers:
10+
- Aswath Govindraju <a-govindraju@ti.com>
11+
12+
allOf:
13+
- $ref: spi-controller.yaml#
14+
15+
properties:
16+
compatible:
17+
oneOf:
18+
- items:
19+
- enum:
20+
- ti,am654-mcspi
21+
- ti,am4372-mcspi
22+
- const: ti,omap4-mcspi
23+
- items:
24+
- enum:
25+
- ti,omap2-mcspi
26+
- ti,omap4-mcspi
27+
28+
reg:
29+
maxItems: 1
30+
31+
interrupts:
32+
maxItems: 1
33+
34+
clocks:
35+
maxItems: 1
36+
37+
power-domains:
38+
maxItems: 1
39+
40+
ti,spi-num-cs:
41+
$ref: /schemas/types.yaml#/definitions/uint32
42+
description: Number of chipselect supported by the instance.
43+
minimum: 1
44+
maximum: 4
45+
46+
ti,hwmods:
47+
$ref: /schemas/types.yaml#/definitions/string
48+
description:
49+
Must be "mcspi<n>", n being the instance number (1-based).
50+
This property is applicable only on legacy platforms mainly omap2/3
51+
and ti81xx and should not be used on other platforms.
52+
deprecated: true
53+
54+
ti,pindir-d0-out-d1-in:
55+
description:
56+
Select the D0 pin as output and D1 as input. The default is D0
57+
as input and D1 as output.
58+
type: boolean
59+
60+
dmas:
61+
description:
62+
List of DMA specifiers with the controller specific format as
63+
described in the generic DMA client binding. A tx and rx
64+
specifier is required for each chip select.
65+
minItems: 1
66+
maxItems: 8
67+
68+
dma-names:
69+
description:
70+
List of DMA request names. These strings correspond 1:1 with
71+
the DMA sepecifiers listed in dmas. The string names is to be
72+
"rxN" and "txN" for RX and TX requests, respectively. Where N
73+
is the chip select number.
74+
minItems: 1
75+
maxItems: 8
76+
77+
required:
78+
- compatible
79+
- reg
80+
- interrupts
81+
82+
unevaluatedProperties: false
83+
84+
if:
85+
properties:
86+
compatible:
87+
oneOf:
88+
- const: ti,omap2-mcspi
89+
- const: ti,omap4-mcspi
90+
91+
then:
92+
properties:
93+
ti,hwmods:
94+
items:
95+
- pattern: "^mcspi([1-9])$"
96+
97+
else:
98+
properties:
99+
ti,hwmods: false
100+
101+
examples:
102+
- |
103+
#include <dt-bindings/interrupt-controller/irq.h>
104+
#include <dt-bindings/interrupt-controller/arm-gic.h>
105+
#include <dt-bindings/soc/ti,sci_pm_domain.h>
106+
107+
spi@2100000 {
108+
compatible = "ti,am654-mcspi","ti,omap4-mcspi";
109+
reg = <0x2100000 0x400>;
110+
interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>;
111+
clocks = <&k3_clks 137 1>;
112+
power-domains = <&k3_pds 137 TI_SCI_PD_EXCLUSIVE>;
113+
#address-cells = <1>;
114+
#size-cells = <0>;
115+
dmas = <&main_udmap 0xc500>, <&main_udmap 0x4500>;
116+
dma-names = "tx0", "rx0";
117+
};
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/spi/rockchip-sfc.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Rockchip Serial Flash Controller (SFC)
8+
9+
maintainers:
10+
- Heiko Stuebner <heiko@sntech.de>
11+
- Chris Morgan <macromorgan@hotmail.com>
12+
13+
allOf:
14+
- $ref: spi-controller.yaml#
15+
16+
properties:
17+
compatible:
18+
const: rockchip,sfc
19+
description:
20+
The rockchip sfc controller is a standalone IP with version register,
21+
and the driver can handle all the feature difference inside the IP
22+
depending on the version register.
23+
24+
reg:
25+
maxItems: 1
26+
27+
interrupts:
28+
maxItems: 1
29+
30+
clocks:
31+
items:
32+
- description: Bus Clock
33+
- description: Module Clock
34+
35+
clock-names:
36+
items:
37+
- const: clk_sfc
38+
- const: hclk_sfc
39+
40+
power-domains:
41+
maxItems: 1
42+
43+
rockchip,sfc-no-dma:
44+
description: Disable DMA and utilize FIFO mode only
45+
type: boolean
46+
47+
patternProperties:
48+
"^flash@[0-3]$":
49+
type: object
50+
properties:
51+
reg:
52+
minimum: 0
53+
maximum: 3
54+
55+
required:
56+
- compatible
57+
- reg
58+
- interrupts
59+
- clocks
60+
- clock-names
61+
62+
unevaluatedProperties: false
63+
64+
examples:
65+
- |
66+
#include <dt-bindings/clock/px30-cru.h>
67+
#include <dt-bindings/interrupt-controller/arm-gic.h>
68+
#include <dt-bindings/power/px30-power.h>
69+
70+
sfc: spi@ff3a0000 {
71+
compatible = "rockchip,sfc";
72+
reg = <0xff3a0000 0x4000>;
73+
interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
74+
clocks = <&cru SCLK_SFC>, <&cru HCLK_SFC>;
75+
clock-names = "clk_sfc", "hclk_sfc";
76+
pinctrl-0 = <&sfc_clk &sfc_cs &sfc_bus2>;
77+
pinctrl-names = "default";
78+
power-domains = <&power PX30_PD_MMC_NAND>;
79+
#address-cells = <1>;
80+
#size-cells = <0>;
81+
82+
flash@0 {
83+
compatible = "jedec,spi-nor";
84+
reg = <0>;
85+
spi-max-frequency = <108000000>;
86+
spi-rx-bus-width = <2>;
87+
spi-tx-bus-width = <2>;
88+
};
89+
};
90+
91+
...

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Required properties:
1111
- mediatek,mt8135-spi: for mt8135 platforms
1212
- mediatek,mt8173-spi: for mt8173 platforms
1313
- mediatek,mt8183-spi: for mt8183 platforms
14+
- mediatek,mt6893-spi: for mt6893 platforms
1415
- "mediatek,mt8192-spi", "mediatek,mt6765-spi": for mt8192 platforms
1516
- "mediatek,mt8195-spi", "mediatek,mt6765-spi": for mt8195 platforms
1617
- "mediatek,mt8516-spi", "mediatek,mt2712-spi": for mt8516 platforms

‎Documentation/devicetree/bindings/spi/spi-sprd-adi.txt‎

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

0 commit comments

Comments
 (0)