Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
| 2 | /* |
| 3 | * Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved. |
| 4 | */ |
| 5 | |
| 6 | #include <dt-bindings/interrupt-controller/irq.h> |
| 7 | #include <dt-bindings/spmi/spmi.h> |
| 8 | |
| 9 | &spmi_bus { |
| 10 | pmic@1 { |
| 11 | compatible = "qcom,pmx65", "qcom,spmi-pmic"; |
| 12 | reg = <1 SPMI_USID>; |
| 13 | #address-cells = <1>; |
| 14 | #size-cells = <0>; |
| 15 | |
| 16 | pmx65_temp: temp-alarm@a00 { |
| 17 | compatible = "qcom,spmi-temp-alarm"; |
| 18 | reg = <0xa00>; |
| 19 | interrupts = <0x1 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; |
| 20 | #thermal-sensor-cells = <0>; |
| 21 | }; |
| 22 | |
| 23 | pmx65_gpios: gpio@8800 { |
| 24 | compatible = "qcom,pmx65-gpio", "qcom,spmi-gpio"; |
| 25 | reg = <0x8800>; |
| 26 | gpio-controller; |
| 27 | gpio-ranges = <&pmx65_gpios 0 0 16>; |
| 28 | #gpio-cells = <2>; |
| 29 | interrupt-controller; |
| 30 | #interrupt-cells = <2>; |
| 31 | }; |
| 32 | }; |
| 33 | }; |