mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
146 lines
3.7 KiB
Diff
146 lines
3.7 KiB
Diff
From d2759ec3852ae04e5a6a87d78dd5a52e67e36bbf Mon Sep 17 00:00:00 2001
|
|
From: Hector Martin <marcan@marcan.st>
|
|
Date: Tue, 15 Feb 2022 18:54:35 +0900
|
|
Subject: [PATCH 022/171] arm64: dts: apple: Add PMU NVMEM and SMC RTC/reboot
|
|
nodes
|
|
|
|
Signed-off-by: Hector Martin <marcan@marcan.st>
|
|
---
|
|
arch/arm64/boot/dts/apple/t6001.dtsi | 1 +
|
|
arch/arm64/boot/dts/apple/t6002.dtsi | 1 +
|
|
arch/arm64/boot/dts/apple/t600x-die0.dtsi | 87 +++++++++++++++++++++++
|
|
3 files changed, 89 insertions(+)
|
|
|
|
diff --git a/arch/arm64/boot/dts/apple/t6001.dtsi b/arch/arm64/boot/dts/apple/t6001.dtsi
|
|
index 832e9bedc1fb..6b50a9fa68e7 100644
|
|
--- a/arch/arm64/boot/dts/apple/t6001.dtsi
|
|
+++ b/arch/arm64/boot/dts/apple/t6001.dtsi
|
|
@@ -11,6 +11,7 @@
|
|
#include <dt-bindings/interrupt-controller/apple-aic.h>
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
#include <dt-bindings/pinctrl/apple.h>
|
|
+#include <dt-bindings/spmi/spmi.h>
|
|
|
|
#include "multi-die-cpp.h"
|
|
|
|
diff --git a/arch/arm64/boot/dts/apple/t6002.dtsi b/arch/arm64/boot/dts/apple/t6002.dtsi
|
|
index f3618df00518..31e2de7fb2ea 100644
|
|
--- a/arch/arm64/boot/dts/apple/t6002.dtsi
|
|
+++ b/arch/arm64/boot/dts/apple/t6002.dtsi
|
|
@@ -11,6 +11,7 @@
|
|
#include <dt-bindings/interrupt-controller/apple-aic.h>
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
#include <dt-bindings/pinctrl/apple.h>
|
|
+#include <dt-bindings/spmi/spmi.h>
|
|
|
|
#include "multi-die-cpp.h"
|
|
|
|
diff --git a/arch/arm64/boot/dts/apple/t600x-die0.dtsi b/arch/arm64/boot/dts/apple/t600x-die0.dtsi
|
|
index 6c9649d5a26c..928da6734371 100644
|
|
--- a/arch/arm64/boot/dts/apple/t600x-die0.dtsi
|
|
+++ b/arch/arm64/boot/dts/apple/t600x-die0.dtsi
|
|
@@ -45,6 +45,18 @@ smc_gpio: gpio {
|
|
gpio-controller;
|
|
#gpio-cells = <2>;
|
|
};
|
|
+
|
|
+ smc_rtc: rtc {
|
|
+ nvmem-cells = <&rtc_offset>;
|
|
+ nvmem-cell-names = "rtc_offset";
|
|
+ };
|
|
+
|
|
+ smc_reboot: reboot {
|
|
+ nvmem-cells = <&shutdown_flag>, <&boot_stage>,
|
|
+ <&boot_error_count>, <&panic_count>, <&pm_setting>;
|
|
+ nvmem-cell-names = "shutdown_flag", "boot_stage",
|
|
+ "boot_error_count", "panic_count", "pm_setting";
|
|
+ };
|
|
};
|
|
|
|
pinctrl_smc: pinctrl@290820000 {
|
|
@@ -76,6 +88,81 @@ wdt: watchdog@2922b0000 {
|
|
interrupts = <AIC_IRQ 0 631 IRQ_TYPE_LEVEL_HIGH>;
|
|
};
|
|
|
|
+ nub_spmi0: spmi@2920a1300 {
|
|
+ compatible = "apple,t6000-spmi", "apple,spmi";
|
|
+ reg = <0x2 0x920a1300 0x0 0x100>;
|
|
+ #address-cells = <2>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ pmu1: pmu@f {
|
|
+ compatible = "apple,maverick-pmu", "apple,spmi-pmu";
|
|
+ reg = <0xf SPMI_USID>;
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+
|
|
+ rtc_nvmem@1400 {
|
|
+ compatible = "apple,spmi-pmu-nvmem";
|
|
+ reg = <0x1400 0x20>;
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+
|
|
+ pm_setting: pm-setting@5 {
|
|
+ reg = <0x5 0x1>;
|
|
+ };
|
|
+
|
|
+ rtc_offset: rtc-offset@11 {
|
|
+ reg = <0x11 0x6>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ legacy_nvmem@6000 {
|
|
+ compatible = "apple,spmi-pmu-nvmem";
|
|
+ reg = <0x6000 0x20>;
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+
|
|
+ boot_stage: boot-stage@1 {
|
|
+ reg = <0x1 0x1>;
|
|
+ };
|
|
+
|
|
+ boot_error_count: boot-error-count@2 {
|
|
+ reg = <0x2 0x1>;
|
|
+ bits = <0 4>;
|
|
+ };
|
|
+
|
|
+ panic_count: panic-count@2 {
|
|
+ reg = <0x2 0x1>;
|
|
+ bits = <4 4>;
|
|
+ };
|
|
+
|
|
+ boot_error_stage: boot-error-stage@3 {
|
|
+ reg = <0x3 0x1>;
|
|
+ };
|
|
+
|
|
+ shutdown_flag: shutdown-flag@f {
|
|
+ reg = <0xf 0x1>;
|
|
+ bits = <3 1>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ scrpad_nvmem@8000 {
|
|
+ compatible = "apple,spmi-pmu-nvmem";
|
|
+ reg = <0x8000 0x1000>;
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+
|
|
+ fault_shadow: fault-shadow@67b {
|
|
+ reg = <0x67b 0x10>;
|
|
+ };
|
|
+
|
|
+ socd: socd@b00 {
|
|
+ reg = <0xb00 0x400>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ };
|
|
+ };
|
|
+
|
|
i2c0: i2c@39b040000 {
|
|
compatible = "apple,t6000-i2c", "apple,i2c";
|
|
reg = <0x3 0x9b040000 0x0 0x4000>;
|
|
--
|
|
2.34.1
|
|
|