Skip to content

Commit a5f8920

Browse files
committed
Merge branch 'refs/heads/bits/060-spi' into asahi-wip
2 parents 7fe3d63 + dfb0bd4 commit a5f8920

4 files changed

Lines changed: 616 additions & 0 deletions

File tree

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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 <[email protected]>
14+
15+
properties:
16+
compatible:
17+
items:
18+
- enum:
19+
- apple,t8103-spi
20+
- apple,t6000-spi
21+
- const: apple,spi
22+
23+
reg:
24+
maxItems: 1
25+
26+
clocks:
27+
maxItems: 1
28+
29+
interrupts:
30+
maxItems: 1
31+
32+
power-domains:
33+
maxItems: 1
34+
35+
required:
36+
- compatible
37+
- reg
38+
- clocks
39+
- interrupts
40+
- '#address-cells'
41+
- '#size-cells'
42+
43+
unevaluatedProperties: false
44+
45+
examples:
46+
- |
47+
#include <dt-bindings/interrupt-controller/apple-aic.h>
48+
#include <dt-bindings/interrupt-controller/irq.h>
49+
50+
soc {
51+
#address-cells = <2>;
52+
#size-cells = <2>;
53+
54+
spi: spi@39b104000 {
55+
compatible = "apple,t6000-spi", "apple,spi";
56+
reg = <0x3 0x9b104000 0x0 0x4000>;
57+
interrupt-parent = <&aic>;
58+
interrupts = <AIC_IRQ 0 1107 IRQ_TYPE_LEVEL_HIGH>;
59+
#address-cells = <1>;
60+
#size-cells = <0>;
61+
clocks = <&clk>;
62+
};
63+
};

drivers/spi/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@ config SPI_ALTERA_DFL
7979
Altera SPI master controller. The SPI master is connected
8080
to a SPI slave to Avalon bridge in a Intel MAX BMC.
8181

82+
config SPI_APPLE
83+
tristate "Apple SoC SPI Controller platform driver"
84+
depends on ARCH_APPLE || COMPILE_TEST
85+
help
86+
This enables support for the SPI controller present on
87+
many Apple SoCs, including the t8103 (M1) and t600x
88+
(M1 Pro/Max).
89+
8290
config SPI_AR934X
8391
tristate "Qualcomm Atheros AR934X/QCA95XX SPI controller driver"
8492
depends on ATH79 || COMPILE_TEST

drivers/spi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ obj-$(CONFIG_SPI_LOOPBACK_TEST) += spi-loopback-test.o
1717
obj-$(CONFIG_SPI_ALTERA) += spi-altera-platform.o
1818
obj-$(CONFIG_SPI_ALTERA_CORE) += spi-altera-core.o
1919
obj-$(CONFIG_SPI_ALTERA_DFL) += spi-altera-dfl.o
20+
obj-$(CONFIG_SPI_APPLE) += spi-apple.o
2021
obj-$(CONFIG_SPI_AR934X) += spi-ar934x.o
2122
obj-$(CONFIG_SPI_ARMADA_3700) += spi-armada-3700.o
2223
obj-$(CONFIG_SPI_ASPEED_SMC) += spi-aspeed-smc.o

0 commit comments

Comments
 (0)