1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 #include <dt-bindings/iio/qcom,spmi-vadc.h> 2 #include <dt-bindings/iio/qcom,spmi-vadc.h> 3 #include <dt-bindings/input/linux-event-codes. << 4 #include <dt-bindings/interrupt-controller/irq 3 #include <dt-bindings/interrupt-controller/irq.h> 5 #include <dt-bindings/spmi/spmi.h> 4 #include <dt-bindings/spmi/spmi.h> 6 5 7 &spmi_bus { 6 &spmi_bus { 8 7 9 pma8084_0: pma8084@0 { 8 pma8084_0: pma8084@0 { 10 compatible = "qcom,pma8084", " 9 compatible = "qcom,pma8084", "qcom,spmi-pmic"; 11 reg = <0x0 SPMI_USID>; 10 reg = <0x0 SPMI_USID>; 12 #address-cells = <1>; 11 #address-cells = <1>; 13 #size-cells = <0>; 12 #size-cells = <0>; 14 13 15 rtc@6000 { 14 rtc@6000 { 16 compatible = "qcom,pm8 15 compatible = "qcom,pm8941-rtc"; 17 reg = <0x6000>, 16 reg = <0x6000>, 18 <0x6100>; 17 <0x6100>; 19 reg-names = "rtc", "al 18 reg-names = "rtc", "alarm"; 20 interrupts = <0x0 0x61 19 interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; 21 }; 20 }; 22 21 23 pon@800 { !! 22 pwrkey@800 { 24 compatible = "qcom,pm8 !! 23 compatible = "qcom,pm8941-pwrkey"; 25 reg = <0x800>; 24 reg = <0x800>; 26 !! 25 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; 27 pwrkey { !! 26 debounce = <15625>; 28 compatible = " !! 27 bias-pull-up; 29 interrupts = < << 30 debounce = <15 << 31 bias-pull-up; << 32 linux,code = < << 33 }; << 34 }; 28 }; 35 29 36 pma8084_gpios: gpio@c000 { 30 pma8084_gpios: gpio@c000 { 37 compatible = "qcom,pma 31 compatible = "qcom,pma8084-gpio", "qcom,spmi-gpio"; 38 reg = <0xc000>; 32 reg = <0xc000>; 39 gpio-controller; 33 gpio-controller; 40 gpio-ranges = <&pma808 34 gpio-ranges = <&pma8084_gpios 0 0 22>; 41 #gpio-cells = <2>; 35 #gpio-cells = <2>; 42 interrupt-controller; 36 interrupt-controller; 43 #interrupt-cells = <2> 37 #interrupt-cells = <2>; 44 }; 38 }; 45 39 46 pma8084_mpps: mpps@a000 { 40 pma8084_mpps: mpps@a000 { 47 compatible = "qcom,pma 41 compatible = "qcom,pma8084-mpp", "qcom,spmi-mpp"; 48 reg = <0xa000>; 42 reg = <0xa000>; 49 gpio-controller; 43 gpio-controller; 50 #gpio-cells = <2>; 44 #gpio-cells = <2>; 51 gpio-ranges = <&pma808 45 gpio-ranges = <&pma8084_mpps 0 0 8>; 52 interrupt-controller; 46 interrupt-controller; 53 #interrupt-cells = <2> 47 #interrupt-cells = <2>; 54 }; 48 }; 55 49 56 pma8084_temp: temp-alarm@2400 50 pma8084_temp: temp-alarm@2400 { 57 compatible = "qcom,spm 51 compatible = "qcom,spmi-temp-alarm"; 58 reg = <0x2400>; 52 reg = <0x2400>; 59 interrupts = <0 0x24 0 53 interrupts = <0 0x24 0 IRQ_TYPE_EDGE_RISING>; 60 #thermal-sensor-cells 54 #thermal-sensor-cells = <0>; 61 io-channels = <&pma808 55 io-channels = <&pma8084_vadc VADC_DIE_TEMP>; 62 io-channel-names = "th 56 io-channel-names = "thermal"; 63 }; 57 }; 64 58 65 pma8084_vadc: adc@3100 { 59 pma8084_vadc: adc@3100 { 66 compatible = "qcom,spm 60 compatible = "qcom,spmi-vadc"; 67 reg = <0x3100>; 61 reg = <0x3100>; 68 interrupts = <0x0 0x31 62 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; 69 #address-cells = <1>; 63 #address-cells = <1>; 70 #size-cells = <0>; 64 #size-cells = <0>; 71 #io-channel-cells = <1 65 #io-channel-cells = <1>; 72 66 73 channel@8 { 67 channel@8 { 74 reg = <VADC_DI 68 reg = <VADC_DIE_TEMP>; 75 }; 69 }; 76 70 77 channel@9 { 71 channel@9 { 78 reg = <VADC_RE 72 reg = <VADC_REF_625MV>; 79 }; 73 }; 80 74 81 channel@a { 75 channel@a { 82 reg = <VADC_RE 76 reg = <VADC_REF_1250MV>; 83 }; 77 }; 84 78 85 channel@c { 79 channel@c { 86 reg = <VADC_SP 80 reg = <VADC_SPARE1>; 87 }; 81 }; 88 82 89 channel@e { 83 channel@e { 90 reg = <VADC_GN 84 reg = <VADC_GND_REF>; 91 }; 85 }; 92 86 93 channel@f { 87 channel@f { 94 reg = <VADC_VD 88 reg = <VADC_VDD_VADC>; 95 }; 89 }; 96 }; 90 }; 97 }; 91 }; 98 92 99 pma8084_1: pma8084@1 { 93 pma8084_1: pma8084@1 { 100 compatible = "qcom,pma8084", " 94 compatible = "qcom,pma8084", "qcom,spmi-pmic"; 101 reg = <0x1 SPMI_USID>; 95 reg = <0x1 SPMI_USID>; 102 #address-cells = <1>; 96 #address-cells = <1>; 103 #size-cells = <0>; 97 #size-cells = <0>; 104 }; 98 }; 105 }; 99 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.