Skip to content

Commit 1ba0b52

Browse files
committed
Merge branch 'spi-5.7' into spi-next
2 parents 16fbf79 + ebb3b9a commit 1ba0b52

Some content is hidden

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

54 files changed

+3724
-1272
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# SPDX-License-Identifier: (GPL-2.0-or-later)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/fsi/ibm,fsi2spi.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: IBM FSI-attached SPI controllers
8+
9+
maintainers:
10+
- Eddie James <[email protected]>
11+
12+
description: |
13+
This binding describes an FSI CFAM engine called the FSI2SPI. Therefore this
14+
node will always be a child of an FSI CFAM node; see fsi.txt for details on
15+
FSI slave and CFAM nodes. This FSI2SPI engine provides access to a number of
16+
SPI controllers.
17+
18+
properties:
19+
compatible:
20+
enum:
21+
- ibm,fsi2spi
22+
23+
reg:
24+
items:
25+
- description: FSI slave address
26+
27+
required:
28+
- compatible
29+
- reg
30+
31+
examples:
32+
- |
33+
fsi2spi@1c00 {
34+
compatible = "ibm,fsi2spi";
35+
reg = <0x1c00 0x400>;
36+
};

Documentation/devicetree/bindings/mfd/qcom-rpm.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Regulator nodes are identified by their compatible:
6161
"qcom,rpm-pm8901-regulators"
6262
"qcom,rpm-pm8921-regulators"
6363
"qcom,rpm-pm8018-regulators"
64+
"qcom,rpm-smb208-regulators"
6465

6566
- vdd_l0_l1_lvs-supply:
6667
- vdd_l2_l11_l12-supply:
@@ -171,6 +172,9 @@ pm8018:
171172
s1, s2, s3, s4, s5, , l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11,
172173
l12, l14, lvs1
173174

175+
smb208:
176+
s1a, s1b, s2a, s2b
177+
174178
The content of each sub-node is defined by the standard binding for regulators -
175179
see regulator.txt - with additional custom properties described below:
176180

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/regulator/mps,mp5416.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Monolithic Power System MP5416 PMIC
8+
9+
maintainers:
10+
- Saravanan Sekar <[email protected]>
11+
12+
properties:
13+
$nodename:
14+
pattern: "^pmic@[0-9a-f]{1,2}$"
15+
compatible:
16+
enum:
17+
- mps,mp5416
18+
19+
reg:
20+
maxItems: 1
21+
22+
regulators:
23+
type: object
24+
description: |
25+
list of regulators provided by this controller, must be named
26+
after their hardware counterparts BUCK[1-4] and LDO[1-4]
27+
28+
patternProperties:
29+
"^buck[1-4]$":
30+
allOf:
31+
- $ref: "regulator.yaml#"
32+
type: object
33+
34+
"^ldo[1-4]$":
35+
allOf:
36+
- $ref: "regulator.yaml#"
37+
type: object
38+
39+
additionalProperties: false
40+
additionalProperties: false
41+
42+
required:
43+
- compatible
44+
- reg
45+
- regulators
46+
47+
additionalProperties: false
48+
49+
examples:
50+
- |
51+
i2c {
52+
#address-cells = <1>;
53+
#size-cells = <0>;
54+
55+
pmic@69 {
56+
compatible = "mps,mp5416";
57+
reg = <0x69>;
58+
59+
regulators {
60+
61+
buck1 {
62+
regulator-name = "buck1";
63+
regulator-min-microvolt = <600000>;
64+
regulator-max-microvolt = <2187500>;
65+
regulator-min-microamp = <3800000>;
66+
regulator-max-microamp = <6800000>;
67+
regulator-boot-on;
68+
};
69+
70+
ldo2 {
71+
regulator-name = "ldo2";
72+
regulator-min-microvolt = <800000>;
73+
regulator-max-microvolt = <3975000>;
74+
};
75+
};
76+
};
77+
};
78+
...

Documentation/devicetree/bindings/spi/amlogic,meson-gx-spicc.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ properties:
2222
enum:
2323
- amlogic,meson-gx-spicc # SPICC controller on Amlogic GX and compatible SoCs
2424
- amlogic,meson-axg-spicc # SPICC controller on Amlogic AXG and compatible SoCs
25+
- amlogic,meson-g12a-spicc # SPICC controller on Amlogic G12A and compatible SoCs
2526

2627
interrupts:
2728
maxItems: 1
@@ -40,6 +41,27 @@ properties:
4041
items:
4142
- const: core
4243

44+
if:
45+
properties:
46+
compatible:
47+
contains:
48+
enum:
49+
- amlogic,meson-g12a-spicc
50+
51+
then:
52+
properties:
53+
clocks:
54+
contains:
55+
items:
56+
- description: controller register bus clock
57+
- description: baud rate generator and delay control clock
58+
59+
clock-names:
60+
minItems: 2
61+
items:
62+
- const: core
63+
- const: pclk
64+
4365
required:
4466
- compatible
4567
- reg

Documentation/devicetree/bindings/spi/fsl-imx-cspi.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ Required properties:
1010
- "fsl,imx35-cspi" for SPI compatible with the one integrated on i.MX35
1111
- "fsl,imx51-ecspi" for SPI compatible with the one integrated on i.MX51
1212
- "fsl,imx53-ecspi" for SPI compatible with the one integrated on i.MX53 and later Soc
13-
- "fsl,imx8mq-ecspi" for SPI compatible with the one integrated on i.MX8M
13+
- "fsl,imx8mq-ecspi" for SPI compatible with the one integrated on i.MX8MQ
14+
- "fsl,imx8mm-ecspi" for SPI compatible with the one integrated on i.MX8MM
15+
- "fsl,imx8mn-ecspi" for SPI compatible with the one integrated on i.MX8MN
16+
- "fsl,imx8mp-ecspi" for SPI compatible with the one integrated on i.MX8MP
1417
- reg : Offset and length of the register set for the device
1518
- interrupts : Should contain CSPI/eCSPI interrupt
1619
- clocks : Clock specifiers for both ipg and per clocks.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/spi/qca,ar934x-spi.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Qualcomm Atheros AR934x/QCA95xx SoC SPI controller
8+
9+
maintainers:
10+
- Chuanhong Guo <[email protected]>
11+
12+
allOf:
13+
- $ref: spi-controller.yaml#
14+
15+
properties:
16+
compatible:
17+
const: qca,ar934x-spi
18+
19+
reg:
20+
maxItems: 1
21+
22+
clocks:
23+
maxItems: 1
24+
25+
required:
26+
- compatible
27+
- reg
28+
- clocks
29+
- '#address-cells'
30+
- '#size-cells'
31+
32+
examples:
33+
- |
34+
#include <dt-bindings/clock/ath79-clk.h>
35+
spi: spi@1f000000 {
36+
compatible = "qca,ar934x-spi";
37+
reg = <0x1f000000 0x1c>;
38+
clocks = <&pll ATH79_CLK_AHB>;
39+
#address-cells = <1>;
40+
#size-cells = <0>;
41+
};

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ properties:
5252
description:
5353
The SPI controller acts as a slave, instead of a master.
5454

55+
oneOf:
56+
- required:
57+
- "#address-cells"
58+
- required:
59+
- spi-slave
60+
5561
patternProperties:
5662
"^slave$":
5763
type: object
@@ -114,7 +120,7 @@ patternProperties:
114120
- enum: [ 1, 2, 4, 8 ]
115121
- default: 1
116122
description:
117-
Bus width to the SPI bus used for MISO.
123+
Bus width to the SPI bus used for read transfers.
118124

119125
spi-rx-delay-us:
120126
description:
@@ -126,7 +132,7 @@ patternProperties:
126132
- enum: [ 1, 2, 4, 8 ]
127133
- default: 1
128134
description:
129-
Bus width to the SPI bus used for MOSI.
135+
Bus width to the SPI bus used for write transfers.
130136

131137
spi-tx-delay-us:
132138
description:

Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
11
ARM Freescale DSPI controller
22

33
Required properties:
4-
- compatible : "fsl,vf610-dspi", "fsl,ls1021a-v1.0-dspi",
5-
"fsl,ls2085a-dspi"
6-
or
7-
"fsl,ls2080a-dspi" followed by "fsl,ls2085a-dspi"
8-
"fsl,ls1012a-dspi" followed by "fsl,ls1021a-v1.0-dspi"
9-
"fsl,ls1088a-dspi" followed by "fsl,ls1021a-v1.0-dspi"
4+
- compatible : must be one of:
5+
"fsl,vf610-dspi",
6+
"fsl,ls1021a-v1.0-dspi",
7+
"fsl,ls1012a-dspi" (optionally followed by "fsl,ls1021a-v1.0-dspi"),
8+
"fsl,ls1028a-dspi",
9+
"fsl,ls1043a-dspi" (optionally followed by "fsl,ls1021a-v1.0-dspi"),
10+
"fsl,ls1046a-dspi" (optionally followed by "fsl,ls1021a-v1.0-dspi"),
11+
"fsl,ls1088a-dspi" (optionally followed by "fsl,ls1021a-v1.0-dspi"),
12+
"fsl,ls2080a-dspi" (optionally followed by "fsl,ls2085a-dspi"),
13+
"fsl,ls2085a-dspi",
14+
"fsl,lx2160a-dspi",
1015
- reg : Offset and length of the register set for the device
1116
- interrupts : Should contain SPI controller interrupt
1217
- clocks: from common clock binding: handle to dspi clock.
1318
- clock-names: from common clock binding: Shall be "dspi".
1419
- pinctrl-0: pin control group to be used for this controller.
1520
- pinctrl-names: must contain a "default" entry.
1621
- spi-num-chipselects : the number of the chipselect signals.
17-
- bus-num : the slave chip chipselect signal number.
1822

1923
Optional property:
2024
- big-endian: If present the dspi device's registers are implemented
2125
in big endian mode.
26+
- bus-num : the slave chip chipselect signal number.
2227

2328
Optional SPI slave node properties:
2429
- fsl,spi-cs-sck-delay: a delay in nanoseconds between activating chip

Documentation/devicetree/bindings/mtd/mtk-quadspi.txt renamed to Documentation/devicetree/bindings/spi/spi-mtk-nor.txt

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
* Serial NOR flash controller for MediaTek SoCs
1+
* Serial NOR flash controller for MediaTek ARM SoCs
22

33
Required properties:
44
- compatible: For mt8173, compatible should be "mediatek,mt8173-nor",
@@ -13,6 +13,7 @@ Required properties:
1313
"mediatek,mt7629-nor", "mediatek,mt8173-nor"
1414
"mediatek,mt8173-nor"
1515
- reg: physical base address and length of the controller's register
16+
- interrupts: Interrupt number used by the controller.
1617
- clocks: the phandle of the clocks needed by the nor controller
1718
- clock-names: the names of the clocks
1819
the clocks should be named "spi" and "sf". "spi" is used for spi bus,
@@ -22,20 +23,16 @@ Required properties:
2223
- #address-cells: should be <1>
2324
- #size-cells: should be <0>
2425

25-
The SPI flash must be a child of the nor_flash node and must have a
26-
compatible property. Also see jedec,spi-nor.txt.
27-
28-
Required properties:
29-
- compatible: May include a device-specific string consisting of the manufacturer
30-
and name of the chip. Must also include "jedec,spi-nor" for any
31-
SPI NOR flash that can be identified by the JEDEC READ ID opcode (0x9F).
32-
- reg : Chip-Select number
26+
There should be only one spi slave device following generic spi bindings.
27+
It's not recommended to use this controller for devices other than SPI NOR
28+
flash due to limited transfer capability of this controller.
3329

3430
Example:
3531

3632
nor_flash: spi@1100d000 {
3733
compatible = "mediatek,mt8173-nor";
3834
reg = <0 0x1100d000 0 0xe0>;
35+
interrupts = <&spi_flash_irq>;
3936
clocks = <&pericfg CLK_PERI_SPI>,
4037
<&topckgen CLK_TOP_SPINFI_IFR_SEL>;
4138
clock-names = "spi", "sf";

0 commit comments

Comments
 (0)