1// SPDX-License-Identifier: BSD-3-Clause 2/* 3 * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. 4 */ 5 6#include <dt-bindings/input/input.h> 7#include <dt-bindings/input/linux-event-codes.h> 8#include <dt-bindings/interrupt-controller/irq.h> 9#include <dt-bindings/spmi/spmi.h> 10 11&spmi_bus0 { 12 pmic@0 { 13 compatible = "qcom,pmk8850", "qcom,spmi-pmic"; 14 reg = <0x0 SPMI_USID>; 15 #address-cells = <1>; 16 #size-cells = <0>; 17 18 pmk8850_pon: pon@1300 { 19 compatible = "qcom,pmk8350-pon"; 20 reg = <0x1300>, 21 <0x800>; 22 reg-names = "hlos", 23 "pbs"; 24 25 pon_pwrkey: pwrkey { 26 compatible = "qcom,pmk8350-pwrkey"; 27 interrupts = <0x0 0x13 0x7 IRQ_TYPE_EDGE_BOTH>; 28 linux,code = <KEY_POWER>; 29 }; 30 31 pon_resin: resin { 32 compatible = "qcom,pmk8350-resin"; 33 interrupts = <0x0 0x13 0x6 IRQ_TYPE_EDGE_BOTH>; 34 status = "disabled"; 35 }; 36 }; 37 38 pmk8850_gpios: gpio@b800 { 39 compatible = "qcom,pmk8850-gpio", "qcom,spmi-gpio"; 40 reg = <0xb800>; 41 gpio-controller; 42 gpio-ranges = <&pmk8850_gpios 0 0 8>; 43 #gpio-cells = <2>; 44 interrupt-controller; 45 #interrupt-cells = <2>; 46 }; 47 48 pmk8850_rtc: rtc@6100 { 49 compatible = "qcom,pmk8350-rtc"; 50 reg = <0x6100>, 51 <0x6200>; 52 reg-names = "rtc", 53 "alarm"; 54 interrupts = <0x0 0x62 0x1 IRQ_TYPE_EDGE_RISING>; 55 }; 56 57 pmk8850_sdam_2: nvram@7100 { 58 compatible = "qcom,spmi-sdam"; 59 reg = <0x7100>; 60 #address-cells = <1>; 61 #size-cells = <1>; 62 ranges = <0 0x7100 0x100>; 63 64 reboot_reason: reboot-reason@48 { 65 reg = <0x48 0x1>; 66 bits = <1 7>; 67 }; 68 }; 69 }; 70}; 71