forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/arm64/boot/dts/qcom/pm8994.dtsi
....@@ -1,6 +1,7 @@
11 // SPDX-License-Identifier: GPL-2.0
22 #include <dt-bindings/interrupt-controller/irq.h>
33 #include <dt-bindings/spmi/spmi.h>
4
+#include <dt-bindings/input/linux-event-codes.h>
45
56 &spmi_bus {
67
....@@ -15,6 +16,23 @@
1516 reg = <0x6000>, <0x6100>;
1617 reg-names = "rtc", "alarm";
1718 interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
19
+ };
20
+
21
+ pon@800 {
22
+ compatible = "qcom,pm8916-pon";
23
+
24
+ reg = <0x800>;
25
+ mode-bootloader = <0x2>;
26
+ mode-recovery = <0x1>;
27
+
28
+ pwrkey {
29
+ compatible = "qcom,pm8941-pwrkey";
30
+ interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
31
+ debounce = <15625>;
32
+ bias-pull-up;
33
+ linux,code = <KEY_POWER>;
34
+ };
35
+
1836 };
1937
2038 pm8994_gpios: gpios@c000 {
....@@ -67,5 +85,9 @@
6785 reg = <0x1 SPMI_USID>;
6886 #address-cells = <1>;
6987 #size-cells = <0>;
88
+
89
+ pm8994_spmi_regulators: regulators {
90
+ compatible = "qcom,pm8994-regulators";
91
+ };
7092 };
7193 };