Skip to content

Commit

Permalink
Merge remote-tracking branch 'spi/for-6.1' into spi-next
Browse files Browse the repository at this point in the history
  • Loading branch information
broonie committed Sep 21, 2022
2 parents 80e78fc + e043751 commit 11e8b47
Show file tree
Hide file tree
Showing 36 changed files with 1,198 additions and 268 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ properties:
reg: true
reset-gpios: true

spi-3wire: true

required:
- compatible
- power-supply
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ properties:
reg: true
reset-gpios: true

spi-3wire: true

required:
- compatible
- power-supply
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ properties:
default-brightness: true
max-brightness: true

spi-3wire: true
spi-cpha: true
spi-cpol: true

vdd3-supply:
description: VDD regulator

Expand Down
15 changes: 11 additions & 4 deletions Documentation/devicetree/bindings/spi/microchip,mpfs-spi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
$id: http://devicetree.org/schemas/spi/microchip,mpfs-spi.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Microchip MPFS {Q,}SPI Controller Device Tree Bindings
title: Microchip FPGA {Q,}SPI Controllers

description:
SPI and QSPI controllers on Microchip PolarFire SoC and the "soft"/
fabric IP cores they are based on

maintainers:
- Conor Dooley <conor.dooley@microchip.com>
Expand All @@ -14,9 +18,12 @@ allOf:

properties:
compatible:
enum:
- microchip,mpfs-spi
- microchip,mpfs-qspi
oneOf:
- items:
- const: microchip,mpfs-qspi
- const: microchip,coreqspi-rtl-v2
- const: microchip,coreqspi-rtl-v2 #FPGA QSPI
- const: microchip,mpfs-spi

reg:
maxItems: 1
Expand Down
3 changes: 2 additions & 1 deletion Documentation/devicetree/bindings/spi/nuvoton,npcm-pspi.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ Nuvoton NPCM Peripheral Serial Peripheral Interface(PSPI) controller driver
Nuvoton NPCM7xx SOC support two PSPI channels.

Required properties:
- compatible : "nuvoton,npcm750-pspi" for NPCM7XX BMC
- compatible : "nuvoton,npcm750-pspi" for Poleg NPCM7XX.
"nuvoton,npcm845-pspi" for Arbel NPCM8XX.
- #address-cells : should be 1. see spi-bus.txt
- #size-cells : should be 0. see spi-bus.txt
- specifies physical base address and size of the register.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ properties:
minimum: 0
maximum: 255

unevaluatedProperties: true

additionalProperties: true
13 changes: 12 additions & 1 deletion Documentation/devicetree/bindings/spi/renesas,sh-msiof.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,14 @@ properties:
- renesas,msiof-r8a77980 # R-Car V3H
- renesas,msiof-r8a77990 # R-Car E3
- renesas,msiof-r8a77995 # R-Car D3
- renesas,msiof-r8a779a0 # R-Car V3U
- const: renesas,rcar-gen3-msiof # generic R-Car Gen3 and RZ/G2
# compatible device
- items:
- enum:
- renesas,msiof-r8a779a0 # R-Car V3U
- renesas,msiof-r8a779f0 # R-Car S4-8
- const: renesas,rcar-gen4-msiof # generic R-Car Gen4
# compatible device
- items:
- const: renesas,sh-msiof # deprecated

Expand All @@ -69,6 +74,12 @@ properties:
clocks:
maxItems: 1

power-domains:
maxItems: 1

resets:
maxItems: 1

num-cs:
description: |
Total number of chip selects (default is 1).
Expand Down
1 change: 0 additions & 1 deletion Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ properties:
const: spi

reg-io-width:
$ref: /schemas/types.yaml#/definitions/uint32
description: I/O register width (in bytes) implemented by this device
default: 4
enum: [ 2, 4 ]
Expand Down
5 changes: 5 additions & 0 deletions Documentation/devicetree/bindings/spi/spi-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ patternProperties:
$ref: spi-peripheral-props.yaml

properties:
spi-3wire:
$ref: /schemas/types.yaml#/definitions/flag
description:
The device requires 3-wire mode.

spi-cpha:
$ref: /schemas/types.yaml#/definitions/flag
description:
Expand Down
14 changes: 13 additions & 1 deletion Documentation/devicetree/bindings/spi/spi-fsl-lpspi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ properties:
- fsl,imx7ulp-spi
- fsl,imx8qxp-spi
- items:
- const: fsl,imx8ulp-spi
- enum:
- fsl,imx8ulp-spi
- fsl,imx93-spi
- const: fsl,imx7ulp-spi
reg:
maxItems: 1
Expand All @@ -37,6 +39,16 @@ properties:
- const: per
- const: ipg

dmas:
items:
- description: TX DMA Channel
- description: RX DMA Channel

dma-names:
items:
- const: tx
- const: rx

fsl,spi-only-use-cs1-sel:
description:
spi common code does not support use of CS signals discontinuously.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ properties:
description:
Chip select used by the device.

spi-3wire:
$ref: /schemas/types.yaml#/definitions/flag
description:
The device requires 3-wire mode.

spi-cs-high:
$ref: /schemas/types.yaml#/definitions/flag
description:
Expand Down
5 changes: 5 additions & 0 deletions Documentation/devicetree/bindings/spi/spi-rockchip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ properties:
- items:
- enum:
- rockchip,px30-spi
- rockchip,rk3128-spi
- rockchip,rk3188-spi
- rockchip,rk3288-spi
- rockchip,rk3308-spi
- rockchip,rk3328-spi
- rockchip,rk3368-spi
- rockchip,rk3399-spi
- rockchip,rk3568-spi
- rockchip,rk3588-spi
- rockchip,rv1126-spi
- const: rockchip,rk3066-spi

Expand Down Expand Up @@ -80,6 +82,9 @@ properties:
where the "sleep" configuration may describe the state
the pins should be in during system suspend.

power-domains:
maxItems: 1

required:
- compatible
- reg
Expand Down
1 change: 1 addition & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -17549,6 +17549,7 @@ F: drivers/mailbox/mailbox-mpfs.c
F: drivers/pci/controller/pcie-microchip-host.c
F: drivers/rtc/rtc-mpfs.c
F: drivers/soc/microchip/
F: drivers/spi/spi-microchip-core-qspi.c
F: drivers/spi/spi-microchip-core.c
F: drivers/usb/musb/mpfs.c
F: include/soc/microchip/mpfs.h
Expand Down
9 changes: 9 additions & 0 deletions drivers/spi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,15 @@ config SPI_MICROCHIP_CORE
PolarFire SoC.
If built as a module, it will be called spi-microchip-core.

config SPI_MICROCHIP_CORE_QSPI
tristate "Microchip FPGA QSPI controllers"
depends on SPI_MASTER
help
This enables the QSPI driver for Microchip FPGA QSPI controllers.
Say Y or M here if you want to use the QSPI controllers on
PolarFire SoC.
If built as a module, it will be called spi-microchip-core-qspi.

config SPI_MT65XX
tristate "MediaTek SPI controller"
depends on ARCH_MEDIATEK || COMPILE_TEST
Expand Down
1 change: 1 addition & 0 deletions drivers/spi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ obj-$(CONFIG_SPI_LP8841_RTC) += spi-lp8841-rtc.o
obj-$(CONFIG_SPI_MESON_SPICC) += spi-meson-spicc.o
obj-$(CONFIG_SPI_MESON_SPIFC) += spi-meson-spifc.o
obj-$(CONFIG_SPI_MICROCHIP_CORE) += spi-microchip-core.o
obj-$(CONFIG_SPI_MICROCHIP_CORE_QSPI) += spi-microchip-core-qspi.o
obj-$(CONFIG_SPI_MPC512x_PSC) += spi-mpc512x-psc.o
obj-$(CONFIG_SPI_MPC52xx_PSC) += spi-mpc52xx-psc.o
obj-$(CONFIG_SPI_MPC52xx) += spi-mpc52xx.o
Expand Down
Loading

0 comments on commit 11e8b47

Please sign in to comment.