Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Ivan T. Ivanov | 8934752 | 2015-04-20 10:45:37 +0300 | [diff] [blame] | 2 | #include <dt-bindings/iio/qcom,spmi-vadc.h> |
| 3 | #include <dt-bindings/interrupt-controller/irq.h> |
Ivan T. Ivanov | e321cbb | 2015-02-03 14:18:00 +0200 | [diff] [blame] | 4 | #include <dt-bindings/spmi/spmi.h> |
| 5 | |
| 6 | &spmi_bus { |
| 7 | |
Stephen Boyd | 134c544 | 2015-11-20 15:31:20 -0800 | [diff] [blame] | 8 | pma8084_0: pma8084@0 { |
| 9 | compatible = "qcom,pma8084", "qcom,spmi-pmic"; |
Ivan T. Ivanov | e321cbb | 2015-02-03 14:18:00 +0200 | [diff] [blame] | 10 | reg = <0x0 SPMI_USID>; |
| 11 | #address-cells = <1>; |
| 12 | #size-cells = <0>; |
Ivan T. Ivanov | 8934752 | 2015-04-20 10:45:37 +0300 | [diff] [blame] | 13 | |
| 14 | rtc@6000 { |
| 15 | compatible = "qcom,pm8941-rtc"; |
Andy Gross | a537b8d | 2016-05-19 00:00:19 -0500 | [diff] [blame] | 16 | reg = <0x6000>, |
| 17 | <0x6100>; |
Ivan T. Ivanov | 8934752 | 2015-04-20 10:45:37 +0300 | [diff] [blame] | 18 | reg-names = "rtc", "alarm"; |
| 19 | interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; |
| 20 | }; |
| 21 | |
Andy Gross | 71c0ed7 | 2016-05-19 00:00:20 -0500 | [diff] [blame] | 22 | pwrkey@800 { |
| 23 | compatible = "qcom,pm8941-pwrkey"; |
| 24 | reg = <0x800>; |
| 25 | interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; |
| 26 | debounce = <15625>; |
| 27 | bias-pull-up; |
| 28 | }; |
| 29 | |
Ivan T. Ivanov | 8934752 | 2015-04-20 10:45:37 +0300 | [diff] [blame] | 30 | pma8084_gpios: gpios@c000 { |
Stephen Boyd | 2ca9c2a4 | 2015-11-20 17:49:46 -0800 | [diff] [blame] | 31 | compatible = "qcom,pma8084-gpio", "qcom,spmi-gpio"; |
Andy Gross | a537b8d | 2016-05-19 00:00:19 -0500 | [diff] [blame] | 32 | reg = <0xc000>; |
Ivan T. Ivanov | 8934752 | 2015-04-20 10:45:37 +0300 | [diff] [blame] | 33 | gpio-controller; |
| 34 | #gpio-cells = <2>; |
| 35 | interrupts = <0 0xc0 0 IRQ_TYPE_NONE>, |
| 36 | <0 0xc1 0 IRQ_TYPE_NONE>, |
| 37 | <0 0xc2 0 IRQ_TYPE_NONE>, |
| 38 | <0 0xc3 0 IRQ_TYPE_NONE>, |
| 39 | <0 0xc4 0 IRQ_TYPE_NONE>, |
| 40 | <0 0xc5 0 IRQ_TYPE_NONE>, |
| 41 | <0 0xc6 0 IRQ_TYPE_NONE>, |
| 42 | <0 0xc7 0 IRQ_TYPE_NONE>, |
| 43 | <0 0xc8 0 IRQ_TYPE_NONE>, |
| 44 | <0 0xc9 0 IRQ_TYPE_NONE>, |
| 45 | <0 0xca 0 IRQ_TYPE_NONE>, |
| 46 | <0 0xcb 0 IRQ_TYPE_NONE>, |
| 47 | <0 0xcc 0 IRQ_TYPE_NONE>, |
| 48 | <0 0xcd 0 IRQ_TYPE_NONE>, |
| 49 | <0 0xce 0 IRQ_TYPE_NONE>, |
| 50 | <0 0xcf 0 IRQ_TYPE_NONE>, |
| 51 | <0 0xd0 0 IRQ_TYPE_NONE>, |
| 52 | <0 0xd1 0 IRQ_TYPE_NONE>, |
| 53 | <0 0xd2 0 IRQ_TYPE_NONE>, |
| 54 | <0 0xd3 0 IRQ_TYPE_NONE>, |
| 55 | <0 0xd4 0 IRQ_TYPE_NONE>, |
| 56 | <0 0xd5 0 IRQ_TYPE_NONE>; |
| 57 | }; |
| 58 | |
| 59 | pma8084_mpps: mpps@a000 { |
Stephen Boyd | 2ca9c2a4 | 2015-11-20 17:49:46 -0800 | [diff] [blame] | 60 | compatible = "qcom,pma8084-mpp", "qcom,spmi-mpp"; |
Andy Gross | a537b8d | 2016-05-19 00:00:19 -0500 | [diff] [blame] | 61 | reg = <0xa000>; |
Ivan T. Ivanov | 8934752 | 2015-04-20 10:45:37 +0300 | [diff] [blame] | 62 | gpio-controller; |
| 63 | #gpio-cells = <2>; |
| 64 | interrupts = <0 0xa0 0 IRQ_TYPE_NONE>, |
| 65 | <0 0xa1 0 IRQ_TYPE_NONE>, |
| 66 | <0 0xa2 0 IRQ_TYPE_NONE>, |
| 67 | <0 0xa3 0 IRQ_TYPE_NONE>, |
| 68 | <0 0xa4 0 IRQ_TYPE_NONE>, |
| 69 | <0 0xa5 0 IRQ_TYPE_NONE>, |
| 70 | <0 0xa6 0 IRQ_TYPE_NONE>, |
| 71 | <0 0xa7 0 IRQ_TYPE_NONE>; |
| 72 | }; |
| 73 | |
| 74 | pma8084_temp: temp-alarm@2400 { |
| 75 | compatible = "qcom,spmi-temp-alarm"; |
Andy Gross | a537b8d | 2016-05-19 00:00:19 -0500 | [diff] [blame] | 76 | reg = <0x2400>; |
Ivan T. Ivanov | 8934752 | 2015-04-20 10:45:37 +0300 | [diff] [blame] | 77 | interrupts = <0 0x24 0 IRQ_TYPE_EDGE_RISING>; |
| 78 | #thermal-sensor-cells = <0>; |
| 79 | io-channels = <&pma8084_vadc VADC_DIE_TEMP>; |
| 80 | io-channel-names = "thermal"; |
| 81 | }; |
| 82 | |
| 83 | pma8084_vadc: vadc@3100 { |
| 84 | compatible = "qcom,spmi-vadc"; |
Andy Gross | a537b8d | 2016-05-19 00:00:19 -0500 | [diff] [blame] | 85 | reg = <0x3100>; |
Ivan T. Ivanov | 8934752 | 2015-04-20 10:45:37 +0300 | [diff] [blame] | 86 | interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; |
| 87 | #address-cells = <1>; |
| 88 | #size-cells = <0>; |
| 89 | #io-channel-cells = <1>; |
| 90 | io-channel-ranges; |
| 91 | |
| 92 | die_temp { |
| 93 | reg = <VADC_DIE_TEMP>; |
| 94 | }; |
| 95 | ref_625mv { |
| 96 | reg = <VADC_REF_625MV>; |
| 97 | }; |
| 98 | ref_1250v { |
| 99 | reg = <VADC_REF_1250MV>; |
| 100 | }; |
| 101 | ref_buf_625mv { |
| 102 | reg = <VADC_SPARE1>; |
| 103 | }; |
| 104 | ref_gnd { |
| 105 | reg = <VADC_GND_REF>; |
| 106 | }; |
| 107 | ref_vdd { |
| 108 | reg = <VADC_VDD_VADC>; |
| 109 | }; |
| 110 | }; |
Ivan T. Ivanov | e321cbb | 2015-02-03 14:18:00 +0200 | [diff] [blame] | 111 | }; |
| 112 | |
Stephen Boyd | 134c544 | 2015-11-20 15:31:20 -0800 | [diff] [blame] | 113 | pma8084_1: pma8084@1 { |
| 114 | compatible = "qcom,pma8084", "qcom,spmi-pmic"; |
Ivan T. Ivanov | e321cbb | 2015-02-03 14:18:00 +0200 | [diff] [blame] | 115 | reg = <0x1 SPMI_USID>; |
| 116 | #address-cells = <1>; |
| 117 | #size-cells = <0>; |
| 118 | }; |
| 119 | }; |