David Collins | 7d82ceb | 2017-03-10 11:54:32 -0800 | [diff] [blame^] | 1 | /* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | #include <dt-bindings/spmi/spmi.h> |
| 14 | #include <dt-bindings/interrupt-controller/irq.h> |
| 15 | |
| 16 | &spmi_bus { |
| 17 | qcom,pm8005@4 { |
| 18 | compatible = "qcom,spmi-pmic"; |
| 19 | reg = <0x4 SPMI_USID>; |
| 20 | #address-cells = <2>; |
| 21 | #size-cells = <0>; |
| 22 | |
| 23 | pm8005_revid: qcom,revid@100 { |
| 24 | compatible = "qcom,qpnp-revid"; |
| 25 | reg = <0x100 0x100>; |
| 26 | }; |
| 27 | |
| 28 | qcom,temp-alarm@2400 { |
| 29 | compatible = "qcom,qpnp-temp-alarm"; |
| 30 | reg = <0x2400 0x100>; |
| 31 | interrupts = <0x4 0x24 0x0 IRQ_TYPE_EDGE_RISING>; |
| 32 | label = "pm8005_tz"; |
| 33 | }; |
| 34 | |
| 35 | pm8005_gpios: gpios { |
| 36 | compatible = "qcom,qpnp-pin"; |
| 37 | gpio-controller; |
| 38 | #gpio-cells = <2>; |
| 39 | #address-cells = <1>; |
| 40 | #size-cells = <1>; |
| 41 | label = "pm8005-gpio"; |
| 42 | |
| 43 | gpio@c000 { |
| 44 | reg = <0xc000 0x100>; |
| 45 | qcom,pin-num = <1>; |
| 46 | status = "disabled"; |
| 47 | }; |
| 48 | |
| 49 | gpio@c100 { |
| 50 | reg = <0xc100 0x100>; |
| 51 | qcom,pin-num = <2>; |
| 52 | status = "disabled"; |
| 53 | }; |
| 54 | |
| 55 | gpio@c200 { |
| 56 | reg = <0xc200 0x100>; |
| 57 | qcom,pin-num = <3>; |
| 58 | status = "disabled"; |
| 59 | }; |
| 60 | |
| 61 | gpio@c300 { |
| 62 | reg = <0xc300 0x100>; |
| 63 | qcom,pin-num = <4>; |
| 64 | status = "disabled"; |
| 65 | }; |
| 66 | }; |
| 67 | }; |
| 68 | |
| 69 | qcom,pm8005@5 { |
| 70 | compatible ="qcom,spmi-pmic"; |
| 71 | reg = <0x5 SPMI_USID>; |
| 72 | #address-cells = <2>; |
| 73 | #size-cells = <0>; |
| 74 | |
| 75 | regulator@1400 { |
| 76 | compatible = "qcom,qpnp-regulator"; |
| 77 | reg = <0x1400 0x100>; |
| 78 | regulator-name = "pm8005_s1"; |
| 79 | status = "disabled"; |
| 80 | }; |
| 81 | |
| 82 | regulator@1700 { |
| 83 | compatible = "qcom,qpnp-regulator"; |
| 84 | reg = <0x1700 0x100>; |
| 85 | regulator-name = "pm8005_s2"; |
| 86 | status = "disabled"; |
| 87 | }; |
| 88 | |
| 89 | regulator@1a00 { |
| 90 | compatible = "qcom,qpnp-regulator"; |
| 91 | reg = <0x1a00 0x100>; |
| 92 | regulator-name = "pm8005_s3"; |
| 93 | status = "disabled"; |
| 94 | }; |
| 95 | |
| 96 | regulator@1d00 { |
| 97 | compatible = "qcom,qpnp-regulator"; |
| 98 | reg = <0x1d00 0x100>; |
| 99 | regulator-name = "pm8005_s4"; |
| 100 | status = "disabled"; |
| 101 | }; |
| 102 | }; |
| 103 | }; |