1*01950c46SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 2*01950c46SEmmanuel Vadot/* 3*01950c46SEmmanuel Vadot * Copyright (c) 2023, Linaro Ltd 4*01950c46SEmmanuel Vadot */ 5*01950c46SEmmanuel Vadot 6*01950c46SEmmanuel Vadot#include <dt-bindings/iio/qcom,spmi-vadc.h> 7*01950c46SEmmanuel Vadot#include <dt-bindings/input/input.h> 8*01950c46SEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h> 9*01950c46SEmmanuel Vadot#include <dt-bindings/spmi/spmi.h> 10*01950c46SEmmanuel Vadot 11*01950c46SEmmanuel Vadot&spmi_bus { 12*01950c46SEmmanuel Vadot pmic@0 { 13*01950c46SEmmanuel Vadot compatible = "qcom,pm2250", "qcom,spmi-pmic"; 14*01950c46SEmmanuel Vadot reg = <0x0 SPMI_USID>; 15*01950c46SEmmanuel Vadot #address-cells = <1>; 16*01950c46SEmmanuel Vadot #size-cells = <0>; 17*01950c46SEmmanuel Vadot 18*01950c46SEmmanuel Vadot pon@800 { 19*01950c46SEmmanuel Vadot compatible = "qcom,pm8916-pon"; 20*01950c46SEmmanuel Vadot reg = <0x800>; 21*01950c46SEmmanuel Vadot 22*01950c46SEmmanuel Vadot pm4125_pwrkey: pwrkey { 23*01950c46SEmmanuel Vadot compatible = "qcom,pm8941-pwrkey"; 24*01950c46SEmmanuel Vadot interrupts-extended = <&spmi_bus 0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; 25*01950c46SEmmanuel Vadot linux,code = <KEY_POWER>; 26*01950c46SEmmanuel Vadot debounce = <15625>; 27*01950c46SEmmanuel Vadot bias-pull-up; 28*01950c46SEmmanuel Vadot }; 29*01950c46SEmmanuel Vadot 30*01950c46SEmmanuel Vadot pm4125_resin: resin { 31*01950c46SEmmanuel Vadot compatible = "qcom,pm8941-resin"; 32*01950c46SEmmanuel Vadot interrupts-extended = <&spmi_bus 0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; 33*01950c46SEmmanuel Vadot debounce = <15625>; 34*01950c46SEmmanuel Vadot bias-pull-up; 35*01950c46SEmmanuel Vadot status = "disabled"; 36*01950c46SEmmanuel Vadot }; 37*01950c46SEmmanuel Vadot }; 38*01950c46SEmmanuel Vadot 39*01950c46SEmmanuel Vadot pm4125_vbus: usb-vbus-regulator@1100 { 40*01950c46SEmmanuel Vadot compatible = "qcom,pm4125-vbus-reg", "qcom,pm8150b-vbus-reg"; 41*01950c46SEmmanuel Vadot reg = <0x1100>; 42*01950c46SEmmanuel Vadot status = "disabled"; 43*01950c46SEmmanuel Vadot }; 44*01950c46SEmmanuel Vadot 45*01950c46SEmmanuel Vadot pm4125_typec: typec@1500 { 46*01950c46SEmmanuel Vadot compatible = "qcom,pm4125-typec", "qcom,pmi632-typec"; 47*01950c46SEmmanuel Vadot reg = <0x1500>; 48*01950c46SEmmanuel Vadot interrupts = <0x0 0x15 0x00 IRQ_TYPE_EDGE_RISING>, 49*01950c46SEmmanuel Vadot <0x0 0x15 0x01 IRQ_TYPE_EDGE_BOTH>, 50*01950c46SEmmanuel Vadot <0x0 0x15 0x02 IRQ_TYPE_EDGE_RISING>, 51*01950c46SEmmanuel Vadot <0x0 0x15 0x03 IRQ_TYPE_EDGE_BOTH>, 52*01950c46SEmmanuel Vadot <0x0 0x15 0x04 IRQ_TYPE_EDGE_RISING>, 53*01950c46SEmmanuel Vadot <0x0 0x15 0x05 IRQ_TYPE_EDGE_RISING>, 54*01950c46SEmmanuel Vadot <0x0 0x15 0x06 IRQ_TYPE_EDGE_BOTH>, 55*01950c46SEmmanuel Vadot <0x0 0x15 0x07 IRQ_TYPE_EDGE_RISING>; 56*01950c46SEmmanuel Vadot interrupt-names = "or-rid-detect-change", 57*01950c46SEmmanuel Vadot "vpd-detect", 58*01950c46SEmmanuel Vadot "cc-state-change", 59*01950c46SEmmanuel Vadot "vconn-oc", 60*01950c46SEmmanuel Vadot "vbus-change", 61*01950c46SEmmanuel Vadot "attach-detach", 62*01950c46SEmmanuel Vadot "legacy-cable-detect", 63*01950c46SEmmanuel Vadot "try-snk-src-detect"; 64*01950c46SEmmanuel Vadot vdd-vbus-supply = <&pm4125_vbus>; 65*01950c46SEmmanuel Vadot 66*01950c46SEmmanuel Vadot status = "disabled"; 67*01950c46SEmmanuel Vadot }; 68*01950c46SEmmanuel Vadot 69*01950c46SEmmanuel Vadot rtc@6000 { 70*01950c46SEmmanuel Vadot compatible = "qcom,pm8941-rtc"; 71*01950c46SEmmanuel Vadot reg = <0x6000>, <0x6100>; 72*01950c46SEmmanuel Vadot reg-names = "rtc", "alarm"; 73*01950c46SEmmanuel Vadot interrupts-extended = <&spmi_bus 0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; 74*01950c46SEmmanuel Vadot }; 75*01950c46SEmmanuel Vadot 76*01950c46SEmmanuel Vadot pm4125_gpios: gpio@c000 { 77*01950c46SEmmanuel Vadot compatible = "qcom,pm2250-gpio", "qcom,spmi-gpio"; 78*01950c46SEmmanuel Vadot reg = <0xc000>; 79*01950c46SEmmanuel Vadot gpio-controller; 80*01950c46SEmmanuel Vadot gpio-ranges = <&pm4125_gpios 0 0 10>; 81*01950c46SEmmanuel Vadot #gpio-cells = <2>; 82*01950c46SEmmanuel Vadot interrupt-controller; 83*01950c46SEmmanuel Vadot #interrupt-cells = <2>; 84*01950c46SEmmanuel Vadot }; 85*01950c46SEmmanuel Vadot }; 86*01950c46SEmmanuel Vadot 87*01950c46SEmmanuel Vadot pmic@1 { 88*01950c46SEmmanuel Vadot compatible = "qcom,pm2250", "qcom,spmi-pmic"; 89*01950c46SEmmanuel Vadot reg = <0x1 SPMI_USID>; 90*01950c46SEmmanuel Vadot #address-cells = <1>; 91*01950c46SEmmanuel Vadot #size-cells = <0>; 92*01950c46SEmmanuel Vadot }; 93*01950c46SEmmanuel Vadot}; 94