18ea4ffcaSStephen Boyd// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 28ea4ffcaSStephen Boyd/* Copyright 2018 Google LLC. */ 38ea4ffcaSStephen Boyd 443fb4431SMatthias Kaehlcke#include <dt-bindings/iio/qcom,spmi-vadc.h> 5*61020aa5SBjorn Andersson#include <dt-bindings/input/linux-event-codes.h> 68ea4ffcaSStephen Boyd#include <dt-bindings/interrupt-controller/irq.h> 743fb4431SMatthias Kaehlcke#include <dt-bindings/spmi/spmi.h> 88ea4ffcaSStephen Boyd 9*61020aa5SBjorn Andersson 108ea4ffcaSStephen Boyd&spmi_bus { 118ea4ffcaSStephen Boyd pm8998_lsid0: pmic@0 { 128ea4ffcaSStephen Boyd compatible = "qcom,pm8998", "qcom,spmi-pmic"; 138ea4ffcaSStephen Boyd reg = <0x0 SPMI_USID>; 148ea4ffcaSStephen Boyd #address-cells = <1>; 158ea4ffcaSStephen Boyd #size-cells = <0>; 168ea4ffcaSStephen Boyd 17*61020aa5SBjorn Andersson pm8998_pon: pon@800 { 18*61020aa5SBjorn Andersson compatible = "qcom,pm8916-pon"; 19*61020aa5SBjorn Andersson 20*61020aa5SBjorn Andersson reg = <0x800>; 21*61020aa5SBjorn Andersson mode-bootloader = <0x2>; 22*61020aa5SBjorn Andersson mode-recovery = <0x1>; 23*61020aa5SBjorn Andersson 24*61020aa5SBjorn Andersson pwrkey { 25*61020aa5SBjorn Andersson compatible = "qcom,pm8941-pwrkey"; 26*61020aa5SBjorn Andersson interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; 27*61020aa5SBjorn Andersson debounce = <15625>; 28*61020aa5SBjorn Andersson bias-pull-up; 29*61020aa5SBjorn Andersson linux,code = <KEY_POWER>; 30*61020aa5SBjorn Andersson }; 31*61020aa5SBjorn Andersson }; 32*61020aa5SBjorn Andersson 33*61020aa5SBjorn Andersson pm8998_coincell: coincell@2800 { 34*61020aa5SBjorn Andersson compatible = "qcom,pm8941-coincell"; 35*61020aa5SBjorn Andersson reg = <0x2800>; 36*61020aa5SBjorn Andersson 37*61020aa5SBjorn Andersson status = "disabled"; 38*61020aa5SBjorn Andersson }; 39*61020aa5SBjorn Andersson 4043fb4431SMatthias Kaehlcke pm8998_adc: adc@3100 { 4143fb4431SMatthias Kaehlcke compatible = "qcom,spmi-adc-rev2"; 4243fb4431SMatthias Kaehlcke reg = <0x3100>; 4343fb4431SMatthias Kaehlcke interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; 4443fb4431SMatthias Kaehlcke #address-cells = <1>; 4543fb4431SMatthias Kaehlcke #size-cells = <0>; 4643fb4431SMatthias Kaehlcke #io-channel-cells = <1>; 4743fb4431SMatthias Kaehlcke }; 4843fb4431SMatthias Kaehlcke 49*61020aa5SBjorn Andersson rtc@6000 { 50*61020aa5SBjorn Andersson compatible = "qcom,pm8941-rtc"; 51*61020aa5SBjorn Andersson reg = <0x6000>, <0x6100>; 52*61020aa5SBjorn Andersson reg-names = "rtc", "alarm"; 53*61020aa5SBjorn Andersson interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; 54*61020aa5SBjorn Andersson }; 55*61020aa5SBjorn Andersson 568ea4ffcaSStephen Boyd pm8998_gpio: gpios@c000 { 578ea4ffcaSStephen Boyd compatible = "qcom,pm8998-gpio", "qcom,spmi-gpio"; 588ea4ffcaSStephen Boyd reg = <0xc000>; 598ea4ffcaSStephen Boyd gpio-controller; 608ea4ffcaSStephen Boyd #gpio-cells = <2>; 618ea4ffcaSStephen Boyd interrupts = <0 0xc0 0 IRQ_TYPE_NONE>, 628ea4ffcaSStephen Boyd <0 0xc1 0 IRQ_TYPE_NONE>, 638ea4ffcaSStephen Boyd <0 0xc2 0 IRQ_TYPE_NONE>, 648ea4ffcaSStephen Boyd <0 0xc3 0 IRQ_TYPE_NONE>, 658ea4ffcaSStephen Boyd <0 0xc4 0 IRQ_TYPE_NONE>, 668ea4ffcaSStephen Boyd <0 0xc5 0 IRQ_TYPE_NONE>, 678ea4ffcaSStephen Boyd <0 0xc6 0 IRQ_TYPE_NONE>, 688ea4ffcaSStephen Boyd <0 0xc7 0 IRQ_TYPE_NONE>, 698ea4ffcaSStephen Boyd <0 0xc8 0 IRQ_TYPE_NONE>, 708ea4ffcaSStephen Boyd <0 0xc9 0 IRQ_TYPE_NONE>, 718ea4ffcaSStephen Boyd <0 0xca 0 IRQ_TYPE_NONE>, 728ea4ffcaSStephen Boyd <0 0xcb 0 IRQ_TYPE_NONE>, 738ea4ffcaSStephen Boyd <0 0xcc 0 IRQ_TYPE_NONE>, 748ea4ffcaSStephen Boyd <0 0xcd 0 IRQ_TYPE_NONE>, 758ea4ffcaSStephen Boyd <0 0xce 0 IRQ_TYPE_NONE>, 768ea4ffcaSStephen Boyd <0 0xcf 0 IRQ_TYPE_NONE>, 778ea4ffcaSStephen Boyd <0 0xd0 0 IRQ_TYPE_NONE>, 788ea4ffcaSStephen Boyd <0 0xd1 0 IRQ_TYPE_NONE>, 798ea4ffcaSStephen Boyd <0 0xd2 0 IRQ_TYPE_NONE>, 808ea4ffcaSStephen Boyd <0 0xd3 0 IRQ_TYPE_NONE>, 818ea4ffcaSStephen Boyd <0 0xd4 0 IRQ_TYPE_NONE>, 828ea4ffcaSStephen Boyd <0 0xd5 0 IRQ_TYPE_NONE>, 838ea4ffcaSStephen Boyd <0 0xd6 0 IRQ_TYPE_NONE>, 848ea4ffcaSStephen Boyd <0 0xd7 0 IRQ_TYPE_NONE>, 858ea4ffcaSStephen Boyd <0 0xd8 0 IRQ_TYPE_NONE>, 868ea4ffcaSStephen Boyd <0 0xd9 0 IRQ_TYPE_NONE>; 878ea4ffcaSStephen Boyd }; 888ea4ffcaSStephen Boyd 898ea4ffcaSStephen Boyd }; 908ea4ffcaSStephen Boyd 918ea4ffcaSStephen Boyd pm8998_lsid1: pmic@1 { 928ea4ffcaSStephen Boyd compatible = "qcom,pm8998", "qcom,spmi-pmic"; 938ea4ffcaSStephen Boyd reg = <0x1 SPMI_USID>; 948ea4ffcaSStephen Boyd #address-cells = <1>; 958ea4ffcaSStephen Boyd #size-cells = <0>; 968ea4ffcaSStephen Boyd }; 978ea4ffcaSStephen Boyd}; 98