mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
75 lines
2.3 KiB
Diff
75 lines
2.3 KiB
Diff
From b04e8cf77375704a101a7bcaa485973702cbbc92 Mon Sep 17 00:00:00 2001
|
|
From: Hector Martin <marcan@marcan.st>
|
|
Date: Thu, 9 Dec 2021 21:58:10 +0900
|
|
Subject: [PATCH 023/171] arm64: dts: apple: t6000: Add spi1 node
|
|
|
|
Signed-off-by: Hector Martin <marcan@marcan.st>
|
|
---
|
|
arch/arm64/boot/dts/apple/t600x-common.dtsi | 7 +++++++
|
|
arch/arm64/boot/dts/apple/t600x-die0.dtsi | 14 ++++++++++++++
|
|
arch/arm64/boot/dts/apple/t600x-gpio-pins.dtsi | 7 +++++++
|
|
3 files changed, 28 insertions(+)
|
|
|
|
diff --git a/arch/arm64/boot/dts/apple/t600x-common.dtsi b/arch/arm64/boot/dts/apple/t600x-common.dtsi
|
|
index 06e160880407..c5ee0c2da778 100644
|
|
--- a/arch/arm64/boot/dts/apple/t600x-common.dtsi
|
|
+++ b/arch/arm64/boot/dts/apple/t600x-common.dtsi
|
|
@@ -313,4 +313,11 @@ clkref: clock-ref {
|
|
clock-output-names = "clkref";
|
|
};
|
|
|
|
+ clk_200m: clock-200m {
|
|
+ compatible = "fixed-clock";
|
|
+ #clock-cells = <0>;
|
|
+ clock-frequency = <200000000>;
|
|
+ clock-output-names = "clk_200m";
|
|
+ };
|
|
+
|
|
};
|
|
diff --git a/arch/arm64/boot/dts/apple/t600x-die0.dtsi b/arch/arm64/boot/dts/apple/t600x-die0.dtsi
|
|
index 928da6734371..96f8c2189f03 100644
|
|
--- a/arch/arm64/boot/dts/apple/t600x-die0.dtsi
|
|
+++ b/arch/arm64/boot/dts/apple/t600x-die0.dtsi
|
|
@@ -246,6 +246,20 @@ i2c5: i2c@39b054000 {
|
|
status = "disabled";
|
|
};
|
|
|
|
+ spi1: spi@39b104000 {
|
|
+ compatible = "apple,t6000-spi", "apple,spi";
|
|
+ reg = <0x3 0x9b104000 0x0 0x4000>;
|
|
+ interrupt-parent = <&aic>;
|
|
+ interrupts = <AIC_IRQ 0 1107 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ clocks = <&clk_200m>;
|
|
+ pinctrl-0 = <&spi1_pins>;
|
|
+ pinctrl-names = "default";
|
|
+ power-domains = <&ps_spi1>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
serial0: serial@39b200000 {
|
|
compatible = "apple,s5l-uart";
|
|
reg = <0x3 0x9b200000 0x0 0x1000>;
|
|
diff --git a/arch/arm64/boot/dts/apple/t600x-gpio-pins.dtsi b/arch/arm64/boot/dts/apple/t600x-gpio-pins.dtsi
|
|
index b31f1a7a2b3f..855dcf30a502 100644
|
|
--- a/arch/arm64/boot/dts/apple/t600x-gpio-pins.dtsi
|
|
+++ b/arch/arm64/boot/dts/apple/t600x-gpio-pins.dtsi
|
|
@@ -36,6 +36,13 @@ i2c5_pins: i2c5-pins {
|
|
<APPLE_PINMUX(101, 1)>;
|
|
};
|
|
|
|
+ spi1_pins: spi1-pins {
|
|
+ pinmux = <APPLE_PINMUX(10, 1)>,
|
|
+ <APPLE_PINMUX(11, 1)>,
|
|
+ <APPLE_PINMUX(32, 1)>,
|
|
+ <APPLE_PINMUX(33, 1)>;
|
|
+ };
|
|
+
|
|
pcie_pins: pcie-pins {
|
|
pinmux = <APPLE_PINMUX(0, 1)>,
|
|
<APPLE_PINMUX(1, 1)>,
|
|
--
|
|
2.34.1
|
|
|