Ivan T. Ivanov | 635ecad | 2015-04-20 10:45:36 +0300 | [diff] [blame] | 1 | #include <dt-bindings/iio/qcom,spmi-vadc.h> |
| 2 | #include <dt-bindings/interrupt-controller/irq.h> |
Ivan T. Ivanov | c912789 | 2015-02-03 14:17:59 +0200 | [diff] [blame] | 3 | #include <dt-bindings/spmi/spmi.h> |
| 4 | |
| 5 | &spmi_bus { |
| 6 | |
Stephen Boyd | 134c544 | 2015-11-20 15:31:20 -0800 | [diff] [blame] | 7 | pm8941_0: pm8941@0 { |
| 8 | compatible = "qcom,pm8941", "qcom,spmi-pmic"; |
Ivan T. Ivanov | c912789 | 2015-02-03 14:17:59 +0200 | [diff] [blame] | 9 | reg = <0x0 SPMI_USID>; |
| 10 | #address-cells = <1>; |
| 11 | #size-cells = <0>; |
Ivan T. Ivanov | 635ecad | 2015-04-20 10:45:36 +0300 | [diff] [blame] | 12 | |
| 13 | rtc@6000 { |
| 14 | compatible = "qcom,pm8941-rtc"; |
Stephen Boyd | 65d4e83 | 2015-11-25 14:27:36 -0800 | [diff] [blame] | 15 | reg = <0x6000>, |
| 16 | <0x6100>; |
Ivan T. Ivanov | 635ecad | 2015-04-20 10:45:36 +0300 | [diff] [blame] | 17 | reg-names = "rtc", "alarm"; |
| 18 | interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; |
| 19 | }; |
| 20 | |
| 21 | pwrkey@800 { |
| 22 | compatible = "qcom,pm8941-pwrkey"; |
Stephen Boyd | 65d4e83 | 2015-11-25 14:27:36 -0800 | [diff] [blame] | 23 | reg = <0x800>; |
Ivan T. Ivanov | 635ecad | 2015-04-20 10:45:36 +0300 | [diff] [blame] | 24 | interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; |
| 25 | debounce = <15625>; |
| 26 | bias-pull-up; |
| 27 | }; |
| 28 | |
Courtney Cavin | 982afd8 | 2015-07-30 10:53:57 -0700 | [diff] [blame] | 29 | charger@1000 { |
| 30 | compatible = "qcom,pm8941-charger"; |
Stephen Boyd | 65d4e83 | 2015-11-25 14:27:36 -0800 | [diff] [blame] | 31 | reg = <0x1000>; |
Courtney Cavin | 982afd8 | 2015-07-30 10:53:57 -0700 | [diff] [blame] | 32 | interrupts = <0x0 0x10 7 IRQ_TYPE_EDGE_BOTH>, |
| 33 | <0x0 0x10 5 IRQ_TYPE_EDGE_BOTH>, |
| 34 | <0x0 0x10 4 IRQ_TYPE_EDGE_BOTH>, |
| 35 | <0x0 0x12 1 IRQ_TYPE_EDGE_BOTH>, |
| 36 | <0x0 0x12 0 IRQ_TYPE_EDGE_BOTH>, |
| 37 | <0x0 0x13 2 IRQ_TYPE_EDGE_BOTH>, |
| 38 | <0x0 0x13 1 IRQ_TYPE_EDGE_BOTH>, |
| 39 | <0x0 0x14 1 IRQ_TYPE_EDGE_BOTH>; |
| 40 | interrupt-names = "chg-done", |
| 41 | "chg-fast", |
| 42 | "chg-trkl", |
| 43 | "bat-temp-ok", |
| 44 | "bat-present", |
| 45 | "chg-gone", |
| 46 | "usb-valid", |
| 47 | "dc-valid"; |
| 48 | }; |
| 49 | |
Ivan T. Ivanov | 635ecad | 2015-04-20 10:45:36 +0300 | [diff] [blame] | 50 | pm8941_gpios: gpios@c000 { |
Stephen Boyd | 2ca9c2a4 | 2015-11-20 17:49:46 -0800 | [diff] [blame] | 51 | compatible = "qcom,pm8941-gpio", "qcom,spmi-gpio"; |
Stephen Boyd | 65d4e83 | 2015-11-25 14:27:36 -0800 | [diff] [blame] | 52 | reg = <0xc000>; |
Ivan T. Ivanov | 635ecad | 2015-04-20 10:45:36 +0300 | [diff] [blame] | 53 | gpio-controller; |
| 54 | #gpio-cells = <2>; |
| 55 | interrupts = <0 0xc0 0 IRQ_TYPE_NONE>, |
| 56 | <0 0xc1 0 IRQ_TYPE_NONE>, |
| 57 | <0 0xc2 0 IRQ_TYPE_NONE>, |
| 58 | <0 0xc3 0 IRQ_TYPE_NONE>, |
| 59 | <0 0xc4 0 IRQ_TYPE_NONE>, |
| 60 | <0 0xc5 0 IRQ_TYPE_NONE>, |
| 61 | <0 0xc6 0 IRQ_TYPE_NONE>, |
| 62 | <0 0xc7 0 IRQ_TYPE_NONE>, |
| 63 | <0 0xc8 0 IRQ_TYPE_NONE>, |
| 64 | <0 0xc9 0 IRQ_TYPE_NONE>, |
| 65 | <0 0xca 0 IRQ_TYPE_NONE>, |
| 66 | <0 0xcb 0 IRQ_TYPE_NONE>, |
| 67 | <0 0xcc 0 IRQ_TYPE_NONE>, |
| 68 | <0 0xcd 0 IRQ_TYPE_NONE>, |
| 69 | <0 0xce 0 IRQ_TYPE_NONE>, |
| 70 | <0 0xcf 0 IRQ_TYPE_NONE>, |
| 71 | <0 0xd0 0 IRQ_TYPE_NONE>, |
| 72 | <0 0xd1 0 IRQ_TYPE_NONE>, |
| 73 | <0 0xd2 0 IRQ_TYPE_NONE>, |
| 74 | <0 0xd3 0 IRQ_TYPE_NONE>, |
| 75 | <0 0xd4 0 IRQ_TYPE_NONE>, |
| 76 | <0 0xd5 0 IRQ_TYPE_NONE>, |
| 77 | <0 0xd6 0 IRQ_TYPE_NONE>, |
| 78 | <0 0xd7 0 IRQ_TYPE_NONE>, |
| 79 | <0 0xd8 0 IRQ_TYPE_NONE>, |
| 80 | <0 0xd9 0 IRQ_TYPE_NONE>, |
| 81 | <0 0xda 0 IRQ_TYPE_NONE>, |
| 82 | <0 0xdb 0 IRQ_TYPE_NONE>, |
| 83 | <0 0xdc 0 IRQ_TYPE_NONE>, |
| 84 | <0 0xdd 0 IRQ_TYPE_NONE>, |
| 85 | <0 0xde 0 IRQ_TYPE_NONE>, |
| 86 | <0 0xdf 0 IRQ_TYPE_NONE>, |
| 87 | <0 0xe0 0 IRQ_TYPE_NONE>, |
| 88 | <0 0xe1 0 IRQ_TYPE_NONE>, |
| 89 | <0 0xe2 0 IRQ_TYPE_NONE>, |
| 90 | <0 0xe3 0 IRQ_TYPE_NONE>; |
Bhushan Shah | 73bae19 | 2016-07-29 11:39:07 +0530 | [diff] [blame^] | 91 | |
| 92 | boost_bypass_n_pin: boost-bypass { |
| 93 | pins = "gpio21"; |
| 94 | function = "normal"; |
| 95 | }; |
Ivan T. Ivanov | 635ecad | 2015-04-20 10:45:36 +0300 | [diff] [blame] | 96 | }; |
| 97 | |
| 98 | pm8941_mpps: mpps@a000 { |
Stephen Boyd | 2ca9c2a4 | 2015-11-20 17:49:46 -0800 | [diff] [blame] | 99 | compatible = "qcom,pm8941-mpp", "qcom,spmi-mpp"; |
Stephen Boyd | 65d4e83 | 2015-11-25 14:27:36 -0800 | [diff] [blame] | 100 | reg = <0xa000>; |
Ivan T. Ivanov | 635ecad | 2015-04-20 10:45:36 +0300 | [diff] [blame] | 101 | gpio-controller; |
| 102 | #gpio-cells = <2>; |
| 103 | interrupts = <0 0xa0 0 IRQ_TYPE_NONE>, |
| 104 | <0 0xa1 0 IRQ_TYPE_NONE>, |
| 105 | <0 0xa2 0 IRQ_TYPE_NONE>, |
| 106 | <0 0xa3 0 IRQ_TYPE_NONE>, |
| 107 | <0 0xa4 0 IRQ_TYPE_NONE>, |
| 108 | <0 0xa5 0 IRQ_TYPE_NONE>, |
| 109 | <0 0xa6 0 IRQ_TYPE_NONE>, |
| 110 | <0 0xa7 0 IRQ_TYPE_NONE>; |
| 111 | }; |
| 112 | |
| 113 | pm8941_temp: temp-alarm@2400 { |
| 114 | compatible = "qcom,spmi-temp-alarm"; |
Stephen Boyd | 65d4e83 | 2015-11-25 14:27:36 -0800 | [diff] [blame] | 115 | reg = <0x2400>; |
Ivan T. Ivanov | 635ecad | 2015-04-20 10:45:36 +0300 | [diff] [blame] | 116 | interrupts = <0 0x24 0 IRQ_TYPE_EDGE_RISING>; |
| 117 | io-channels = <&pm8941_vadc VADC_DIE_TEMP>; |
| 118 | io-channel-names = "thermal"; |
| 119 | #thermal-sensor-cells = <0>; |
| 120 | }; |
| 121 | |
| 122 | pm8941_vadc: vadc@3100 { |
| 123 | compatible = "qcom,spmi-vadc"; |
Stephen Boyd | 65d4e83 | 2015-11-25 14:27:36 -0800 | [diff] [blame] | 124 | reg = <0x3100>; |
Ivan T. Ivanov | 635ecad | 2015-04-20 10:45:36 +0300 | [diff] [blame] | 125 | interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; |
| 126 | #address-cells = <1>; |
| 127 | #size-cells = <0>; |
| 128 | #io-channel-cells = <1>; |
| 129 | |
| 130 | die_temp { |
| 131 | reg = <VADC_DIE_TEMP>; |
| 132 | }; |
| 133 | ref_625mv { |
| 134 | reg = <VADC_REF_625MV>; |
| 135 | }; |
| 136 | ref_1250v { |
| 137 | reg = <VADC_REF_1250MV>; |
| 138 | }; |
| 139 | ref_gnd { |
| 140 | reg = <VADC_GND_REF>; |
| 141 | }; |
| 142 | ref_vdd { |
| 143 | reg = <VADC_VDD_VADC>; |
| 144 | }; |
| 145 | }; |
| 146 | |
| 147 | pm8941_iadc: iadc@3600 { |
| 148 | compatible = "qcom,pm8941-iadc", "qcom,spmi-iadc"; |
Stephen Boyd | 65d4e83 | 2015-11-25 14:27:36 -0800 | [diff] [blame] | 149 | reg = <0x3600>; |
Ivan T. Ivanov | 635ecad | 2015-04-20 10:45:36 +0300 | [diff] [blame] | 150 | interrupts = <0x0 0x36 0x0 IRQ_TYPE_EDGE_RISING>; |
| 151 | qcom,external-resistor-micro-ohms = <10000>; |
| 152 | }; |
Tim Bird | ccf97fe | 2015-07-16 16:55:33 -0700 | [diff] [blame] | 153 | |
| 154 | coincell@2800 { |
| 155 | compatible = "qcom,pm8941-coincell"; |
| 156 | reg = <0x2800>; |
| 157 | status = "disabled"; |
| 158 | }; |
Ivan T. Ivanov | c912789 | 2015-02-03 14:17:59 +0200 | [diff] [blame] | 159 | }; |
| 160 | |
Stephen Boyd | 134c544 | 2015-11-20 15:31:20 -0800 | [diff] [blame] | 161 | pm8941_1: pm8941@1 { |
| 162 | compatible = "qcom,pm8941", "qcom,spmi-pmic"; |
Ivan T. Ivanov | c912789 | 2015-02-03 14:17:59 +0200 | [diff] [blame] | 163 | reg = <0x1 SPMI_USID>; |
| 164 | #address-cells = <1>; |
| 165 | #size-cells = <0>; |
Ivan T. Ivanov | 635ecad | 2015-04-20 10:45:36 +0300 | [diff] [blame] | 166 | |
Bjorn Andersson | 7026d15 | 2015-11-23 11:04:07 -0800 | [diff] [blame] | 167 | pm8941_wled: wled@d800 { |
Ivan T. Ivanov | 635ecad | 2015-04-20 10:45:36 +0300 | [diff] [blame] | 168 | compatible = "qcom,pm8941-wled"; |
Stephen Boyd | 65d4e83 | 2015-11-25 14:27:36 -0800 | [diff] [blame] | 169 | reg = <0xd800>; |
Ivan T. Ivanov | 635ecad | 2015-04-20 10:45:36 +0300 | [diff] [blame] | 170 | label = "backlight"; |
| 171 | |
Bjorn Andersson | 7026d15 | 2015-11-23 11:04:07 -0800 | [diff] [blame] | 172 | status = "disabled"; |
Ivan T. Ivanov | 635ecad | 2015-04-20 10:45:36 +0300 | [diff] [blame] | 173 | }; |
Ivan T. Ivanov | c912789 | 2015-02-03 14:17:59 +0200 | [diff] [blame] | 174 | }; |
| 175 | }; |