Skip to content

Commit 38f5265

Browse files
committed
Merge tag 'spi-v6.14' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi
Pull spi updates from Mark Brown: "This is a fairly quiet release for the most part, though we do have one really nice improvement in the spi-mem framework which will improve performance for flash devices especially when built on by changes in the MTD subsystem which are also due to be sent this merge window. There's also been some substantial work on some of the drivers, highlights include: - Support for per-operation bus frequency in the spi-mem framework, meaning speeds are no longer limited by the slowest operation - ACPI support and improved power management for Rockchip SFC controllers - Support for Atmel SAM7G5 QuadSPI and KEBA SPI controllers" * tag 'spi-v6.14' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi: (49 commits) spi: pxa2xx: Introduce __lpss_ssp_update_priv() helper spi: ti-qspi: Use syscon_regmap_lookup_by_phandle_args spi: amd: Fix -Wuninitialized in amd_spi_exec_mem_op() spi: spi-mem: Estimate the time taken by operations spi: spi-mem: Create macros for DTR operation spi: spi-mem: Reorder spi-mem macro assignments spi: zynqmp-gqspi: Support per spi-mem operation frequency switches spi: zynq-qspi: Support per spi-mem operation frequency switches spi: spi-ti-qspi: Support per spi-mem operation frequency switches spi: spi-sn-f-ospi: Support per spi-mem operation frequency switches spi: rockchip-sfc: Support per spi-mem operation frequency switches spi: nxp-fspi: Support per spi-mem operation frequency switches spi: mxic: Support per spi-mem operation frequency switches spi: mt65xx: Support per spi-mem operation frequency switches spi: microchip-core-qspi: Support per spi-mem operation frequency switches spi: fsl-qspi: Support per spi-mem operation frequency switches spi: dw: Support per spi-mem operation frequency switches spi: cadence-qspi: Support per spi-mem operation frequency switches spi: amlogic-spifc-a1: Support per spi-mem operation frequency switches spi: amd: Drop redundant check ...
2 parents 7b081a7 + 78b435c commit 38f5265

31 files changed

+1998
-317
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/misc/lwn,bk4-spi.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Liebherr's BK4 external SPI controller
8+
9+
maintainers:
10+
- Lukasz Majewski <[email protected]>
11+
12+
description: |
13+
Liebherr's BK4 external SPI controller is a device which handles data
14+
acquisition from compatible industrial peripherals.
15+
The SPI is used for data and management purposes in both master and
16+
slave modes.
17+
18+
allOf:
19+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
20+
21+
properties:
22+
compatible:
23+
const: lwn,bk4-spi
24+
25+
reg:
26+
maxItems: 1
27+
28+
spi-max-frequency:
29+
maximum: 30000000
30+
31+
fsl,spi-cs-sck-delay: true
32+
33+
fsl,spi-sck-cs-delay: true
34+
35+
required:
36+
- compatible
37+
- spi-max-frequency
38+
39+
additionalProperties: false
40+
41+
examples:
42+
- |
43+
spi {
44+
#address-cells = <1>;
45+
#size-cells = <0>;
46+
47+
spidev@0 {
48+
compatible = "lwn,bk4-spi";
49+
reg = <0>;
50+
spi-max-frequency = <30000000>;
51+
fsl,spi-cs-sck-delay = <200>;
52+
fsl,spi-sck-cs-delay = <400>;
53+
};
54+
};

Documentation/devicetree/bindings/misc/lwn-bk4.txt

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ properties:
6868
- items:
6969
- enum:
7070
- amd,pensando-elba-qspi
71+
- amd,versal2-ospi
7172
- intel,lgm-qspi
7273
- intel,socfpga-qspi
7374
- mobileye,eyeq5-ospi

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ properties:
6969
Should be generally avoided and be replaced by
7070
spi-cs-high + ACTIVE_HIGH.
7171
72+
The simplest way to obtain an active-high CS signal is to configure the
73+
controller's cs-gpio property with the ACTIVE_HIGH flag and set the
74+
peripheral's spi-cs-high property. See example below for a better
75+
understanding.
76+
7277
fifo-depth:
7378
$ref: /schemas/types.yaml#/definitions/uint32
7479
description:
@@ -189,3 +194,23 @@ examples:
189194
stacked-memories = /bits/ 64 <0x10000000 0x10000000>;
190195
};
191196
};
197+
198+
- |
199+
#include <dt-bindings/gpio/gpio.h>
200+
201+
spi@20204000 {
202+
#address-cells = <1>;
203+
#size-cells = <0>;
204+
compatible = "brcm,bcm2835-spi";
205+
reg = <0x7e204000 0x1000>;
206+
interrupts = <2 22>;
207+
clocks = <&clk_spi>;
208+
cs-gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
209+
210+
display@0 {
211+
compatible = "lg,lg4573";
212+
spi-max-frequency = <1000000>;
213+
reg = <0>;
214+
spi-cs-high;
215+
};
216+
};

drivers/mtd/nand/spi/core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,6 +1214,8 @@ spinand_select_op_variant(struct spinand_device *spinand,
12141214
if (ret)
12151215
break;
12161216

1217+
spi_mem_adjust_op_freq(spinand->spimem, &op);
1218+
12171219
if (!spi_mem_supports_op(spinand->spimem, &op))
12181220
break;
12191221

drivers/spi/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,18 @@ config SPI_JCORE
542542
This enables support for the SPI master controller in the J-Core
543543
synthesizable, open source SoC.
544544

545+
config SPI_KSPI2
546+
tristate "Support for KEBA SPI master type 2 hardware"
547+
depends on HAS_IOMEM
548+
depends on KEBA_CP500 || COMPILE_TEST
549+
select AUXILIARY_BUS
550+
help
551+
This driver supports KEBA SPI master type 2 FPGA implementation,
552+
as found on CP500 devices for example.
553+
554+
This driver can also be built as a module. If so, the module
555+
will be called spi-kspi2.
556+
545557
config SPI_LM70_LLP
546558
tristate "Parallel port adapter for LM70 eval board (DEVELOPMENT)"
547559
depends on PARPORT

drivers/spi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ obj-$(CONFIG_SPI_INTEL_PCI) += spi-intel-pci.o
7474
obj-$(CONFIG_SPI_INTEL_PLATFORM) += spi-intel-platform.o
7575
obj-$(CONFIG_SPI_LANTIQ_SSC) += spi-lantiq-ssc.o
7676
obj-$(CONFIG_SPI_JCORE) += spi-jcore.o
77+
obj-$(CONFIG_SPI_KSPI2) += spi-kspi2.o
7778
obj-$(CONFIG_SPI_LJCA) += spi-ljca.o
7879
obj-$(CONFIG_SPI_LM70_LLP) += spi-lm70llp.o
7980
obj-$(CONFIG_SPI_LOONGSON_CORE) += spi-loongson-core.o

0 commit comments

Comments
 (0)