0001 // SPDX-License-Identifier: BSD-3-Clause
0002 /*
0003 * Copyright (c) 2021, Linaro Limited
0004 */
0005
0006 #include <dt-bindings/input/input.h>
0007 #include <dt-bindings/input/linux-event-codes.h>
0008 #include <dt-bindings/interrupt-controller/irq.h>
0009 #include <dt-bindings/spmi/spmi.h>
0010
0011 &spmi_bus {
0012 pmk8350: pmic@0 {
0013 compatible = "qcom,pmk8350", "qcom,spmi-pmic";
0014 reg = <0x0 SPMI_USID>;
0015 #address-cells = <1>;
0016 #size-cells = <0>;
0017
0018 pmk8350_pon: pon@1300 {
0019 compatible = "qcom,pm8998-pon";
0020 reg = <0x1300>;
0021
0022 pon_pwrkey: pwrkey {
0023 compatible = "qcom,pmk8350-pwrkey";
0024 interrupts = <0x0 0x13 0x7 IRQ_TYPE_EDGE_BOTH>;
0025 linux,code = <KEY_POWER>;
0026 status = "disabled";
0027 };
0028
0029 pon_resin: resin {
0030 compatible = "qcom,pmk8350-resin";
0031 interrupts = <0x0 0x13 0x6 IRQ_TYPE_EDGE_BOTH>;
0032 status = "disabled";
0033 };
0034 };
0035
0036 pmk8350_vadc: adc@3100 {
0037 compatible = "qcom,spmi-adc7";
0038 reg = <0x3100>;
0039 #address-cells = <1>;
0040 #size-cells = <0>;
0041 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
0042 interrupt-names = "eoc-int-en-set";
0043 #io-channel-cells = <1>;
0044 io-channel-ranges;
0045 };
0046
0047 pmk8350_adc_tm: adc-tm@3400 {
0048 compatible = "qcom,adc-tm7";
0049 reg = <0x3400>;
0050 interrupts = <0x0 0x34 0x0 IRQ_TYPE_EDGE_RISING>;
0051 interrupt-names = "threshold";
0052 #address-cells = <1>;
0053 #size-cells = <0>;
0054 #thermal-sensor-cells = <1>;
0055 status = "disabled";
0056 };
0057
0058 pmk8350_rtc: rtc@6100 {
0059 compatible = "qcom,pmk8350-rtc";
0060 reg = <0x6100>, <0x6200>;
0061 reg-names = "rtc", "alarm";
0062 interrupts = <0x0 0x62 0x1 IRQ_TYPE_EDGE_RISING>;
0063 status = "disabled";
0064 };
0065
0066 pmk8350_gpios: gpio@b000 {
0067 compatible = "qcom,pmk8350-gpio", "qcom,spmi-gpio";
0068 reg = <0xb000>;
0069 gpio-controller;
0070 gpio-ranges = <&pmk8350_gpios 0 0 4>;
0071 #gpio-cells = <2>;
0072 interrupt-controller;
0073 #interrupt-cells = <2>;
0074 };
0075 };
0076 };