]> git.baikalelectronics.ru Git - kernel.git/commitdiff
arm64: dts: qcom: Populate pm8998 with additional nodes
authorBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 4 Sep 2018 05:07:29 +0000 (22:07 -0700)
committerAndy Gross <andy.gross@linaro.org>
Thu, 13 Sep 2018 19:35:36 +0000 (14:35 -0500)
Add pon, coincell and rtc to the first pm8998 sid.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm64/boot/dts/qcom/pm8998.dtsi

index 41593ebbea2c30735f0aa4bb32e58085aeaa850e..3739b6a8e5ab9de4f60e88dfff16f28f9dbd86d4 100644 (file)
@@ -2,9 +2,11 @@
 /* Copyright 2018 Google LLC. */
 
 #include <dt-bindings/iio/qcom,spmi-vadc.h>
+#include <dt-bindings/input/linux-event-codes.h>
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/spmi/spmi.h>
 
+
 &spmi_bus {
        pm8998_lsid0: pmic@0 {
                compatible = "qcom,pm8998", "qcom,spmi-pmic";
                #address-cells = <1>;
                #size-cells = <0>;
 
+               pm8998_pon: pon@800 {
+                       compatible = "qcom,pm8916-pon";
+
+                       reg = <0x800>;
+                       mode-bootloader = <0x2>;
+                       mode-recovery = <0x1>;
+
+                       pwrkey {
+                               compatible = "qcom,pm8941-pwrkey";
+                               interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
+                               debounce = <15625>;
+                               bias-pull-up;
+                               linux,code = <KEY_POWER>;
+                       };
+               };
+
+               pm8998_coincell: coincell@2800 {
+                       compatible = "qcom,pm8941-coincell";
+                       reg = <0x2800>;
+
+                       status = "disabled";
+               };
+
                pm8998_adc: adc@3100 {
                        compatible = "qcom,spmi-adc-rev2";
                        reg = <0x3100>;
                        #io-channel-cells = <1>;
                };
 
+               rtc@6000 {
+                       compatible = "qcom,pm8941-rtc";
+                       reg = <0x6000>, <0x6100>;
+                       reg-names = "rtc", "alarm";
+                       interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
+               };
+
                pm8998_gpio: gpios@c000 {
                        compatible = "qcom,pm8998-gpio", "qcom,spmi-gpio";
                        reg = <0xc000>;