1#include <dt-bindings/iio/qcom,spmi-vadc.h> 2#include <dt-bindings/interrupt-controller/irq.h> 3#include <dt-bindings/spmi/spmi.h> 4 5&spmi_bus { 6 7 pm8916_0: pm8916@0 { 8 compatible = "qcom,pm8916", "qcom,spmi-pmic"; 9 reg = <0x0 SPMI_USID>; 10 #address-cells = <1>; 11 #size-cells = <0>; 12 13 rtc@6000 { 14 compatible = "qcom,pm8941-rtc"; 15 reg = <0x6000>; 16 reg-names = "rtc", "alarm"; 17 interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; 18 }; 19 20 pwrkey@800 { 21 compatible = "qcom,pm8941-pwrkey"; 22 reg = <0x800>; 23 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; 24 debounce = <15625>; 25 bias-pull-up; 26 }; 27 28 pm8916_gpios: gpios@c000 { 29 compatible = "qcom,pm8916-gpio"; 30 reg = <0xc000>; 31 gpio-controller; 32 #gpio-cells = <2>; 33 interrupts = <0 0xc0 0 IRQ_TYPE_NONE>, 34 <0 0xc1 0 IRQ_TYPE_NONE>, 35 <0 0xc2 0 IRQ_TYPE_NONE>, 36 <0 0xc3 0 IRQ_TYPE_NONE>; 37 }; 38 39 pm8916_mpps: mpps@a000 { 40 compatible = "qcom,pm8916-mpp"; 41 reg = <0xa000>; 42 gpio-controller; 43 #gpio-cells = <2>; 44 interrupts = <0 0xa0 0 IRQ_TYPE_NONE>, 45 <0 0xa1 0 IRQ_TYPE_NONE>, 46 <0 0xa2 0 IRQ_TYPE_NONE>, 47 <0 0xa3 0 IRQ_TYPE_NONE>; 48 }; 49 50 pm8916_temp: temp-alarm@2400 { 51 compatible = "qcom,spmi-temp-alarm"; 52 reg = <0x2400>; 53 interrupts = <0 0x24 0 IRQ_TYPE_EDGE_RISING>; 54 io-channels = <&pm8916_vadc VADC_DIE_TEMP>; 55 io-channel-names = "thermal"; 56 #thermal-sensor-cells = <0>; 57 }; 58 59 pm8916_vadc: vadc@3100 { 60 compatible = "qcom,spmi-vadc"; 61 reg = <0x3100>; 62 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; 63 #address-cells = <1>; 64 #size-cells = <0>; 65 #io-channel-cells = <1>; 66 67 usb_in { 68 reg = <VADC_USBIN>; 69 qcom,pre-scaling = <1 10>; 70 }; 71 vph_pwr { 72 reg = <VADC_VSYS>; 73 qcom,pre-scaling = <1 3>; 74 }; 75 die_temp { 76 reg = <VADC_DIE_TEMP>; 77 }; 78 ref_625mv { 79 reg = <VADC_REF_625MV>; 80 }; 81 ref_1250v { 82 reg = <VADC_REF_1250MV>; 83 }; 84 ref_gnd { 85 reg = <VADC_GND_REF>; 86 }; 87 ref_vdd { 88 reg = <VADC_VDD_VADC>; 89 }; 90 }; 91 }; 92 93 pm8916_1: pm8916@1 { 94 compatible = "qcom,pm8916", "qcom,spmi-pmic"; 95 reg = <0x1 SPMI_USID>; 96 #address-cells = <1>; 97 #size-cells = <0>; 98 99 wcd_codec: codec@f000 { 100 compatible = "qcom,pm8916-wcd-analog-codec"; 101 reg = <0xf000 0x200>; 102 reg-names = "pmic-codec-core"; 103 clocks = <&gcc GCC_CODEC_DIGCODEC_CLK>; 104 clock-names = "mclk"; 105 interrupt-parent = <&spmi_bus>; 106 interrupts = <0x1 0xf0 0x0 IRQ_TYPE_NONE>, 107 <0x1 0xf0 0x1 IRQ_TYPE_NONE>, 108 <0x1 0xf0 0x2 IRQ_TYPE_NONE>, 109 <0x1 0xf0 0x3 IRQ_TYPE_NONE>, 110 <0x1 0xf0 0x4 IRQ_TYPE_NONE>, 111 <0x1 0xf0 0x5 IRQ_TYPE_NONE>, 112 <0x1 0xf0 0x6 IRQ_TYPE_NONE>, 113 <0x1 0xf0 0x7 IRQ_TYPE_NONE>, 114 <0x1 0xf1 0x0 IRQ_TYPE_NONE>, 115 <0x1 0xf1 0x1 IRQ_TYPE_NONE>, 116 <0x1 0xf1 0x2 IRQ_TYPE_NONE>, 117 <0x1 0xf1 0x3 IRQ_TYPE_NONE>, 118 <0x1 0xf1 0x4 IRQ_TYPE_NONE>, 119 <0x1 0xf1 0x5 IRQ_TYPE_NONE>; 120 interrupt-names = "cdc_spk_cnp_int", 121 "cdc_spk_clip_int", 122 "cdc_spk_ocp_int", 123 "mbhc_ins_rem_det1", 124 "mbhc_but_rel_det", 125 "mbhc_but_press_det", 126 "mbhc_ins_rem_det", 127 "mbhc_switch_int", 128 "cdc_ear_ocp_int", 129 "cdc_hphr_ocp_int", 130 "cdc_hphl_ocp_det", 131 "cdc_ear_cnp_int", 132 "cdc_hphr_cnp_int", 133 "cdc_hphl_cnp_int"; 134 vdd-cdc-io-supply = <&pm8916_l5>; 135 vdd-cdc-tx-rx-cx-supply = <&pm8916_l5>; 136 vdd-micbias-supply = <&pm8916_l13>; 137 #sound-dai-cells = <1>; 138 139 }; 140 141 }; 142}; 143