Skip to content

Commit a1a6edc

Browse files
committed
Merge branch 'bits/060-spi' into asahi-wip
2 parents f19abd8 + 5084661 commit a1a6edc

4 files changed

Lines changed: 604 additions & 0 deletions

File tree

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/spi/apple,spi.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Apple ARM SoC SPI controller
8+
9+
allOf:
10+
- $ref: spi-controller.yaml#
11+
12+
maintainers:
13+
- Hector Martin <marcan@marcan.st>
14+
15+
properties:
16+
compatible:
17+
items:
18+
- enum:
19+
- apple,t8103-spi
20+
- apple,t8112-spi
21+
- apple,t6000-spi
22+
- const: apple,spi
23+
24+
reg:
25+
maxItems: 1
26+
27+
clocks:
28+
maxItems: 1
29+
30+
interrupts:
31+
maxItems: 1
32+
33+
power-domains:
34+
maxItems: 1
35+
36+
required:
37+
- compatible
38+
- reg
39+
- clocks
40+
- interrupts
41+
42+
unevaluatedProperties: false
43+
44+
examples:
45+
- |
46+
#include <dt-bindings/interrupt-controller/apple-aic.h>
47+
#include <dt-bindings/interrupt-controller/irq.h>
48+
49+
soc {
50+
#address-cells = <2>;
51+
#size-cells = <2>;
52+
53+
spi@39b104000 {
54+
compatible = "apple,t6000-spi", "apple,spi";
55+
reg = <0x3 0x9b104000 0x0 0x4000>;
56+
interrupt-parent = <&aic>;
57+
interrupts = <AIC_IRQ 0 1107 IRQ_TYPE_LEVEL_HIGH>;
58+
#address-cells = <1>;
59+
#size-cells = <0>;
60+
clocks = <&clk>;
61+
};
62+
};

drivers/spi/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,17 @@ config SPI_AMLOGIC_SPIFC_A1
9696
This enables master mode support for the SPIFC (SPI flash
9797
controller) available in Amlogic A1 (A113L SoC).
9898

99+
config SPI_APPLE
100+
tristate "Apple SoC SPI Controller platform driver"
101+
depends on ARCH_APPLE || COMPILE_TEST
102+
help
103+
This enables support for the SPI controller present on
104+
many Apple SoCs, including the t8103 (M1), t8112 (M2)
105+
and t600x (M1 Pro/Max/Ultra). Multiple SPI controller
106+
instances are present on the SoC and each connects usually
107+
to a single device like spi-nor (nvram), input device controller
108+
or fingerprint sensor.
109+
99110
config SPI_AR934X
100111
tristate "Qualcomm Atheros AR934X/QCA95XX SPI controller driver"
101112
depends on ATH79 || COMPILE_TEST

drivers/spi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ obj-$(CONFIG_SPI_ALTERA) += spi-altera-platform.o
1919
obj-$(CONFIG_SPI_ALTERA_CORE) += spi-altera-core.o
2020
obj-$(CONFIG_SPI_ALTERA_DFL) += spi-altera-dfl.o
2121
obj-$(CONFIG_SPI_AMLOGIC_SPIFC_A1) += spi-amlogic-spifc-a1.o
22+
obj-$(CONFIG_SPI_APPLE) += spi-apple.o
2223
obj-$(CONFIG_SPI_AR934X) += spi-ar934x.o
2324
obj-$(CONFIG_SPI_ARMADA_3700) += spi-armada-3700.o
2425
obj-$(CONFIG_SPI_ASPEED_SMC) += spi-aspeed-smc.o

0 commit comments

Comments
 (0)