Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: BSD-3-Clause |
| 2 | /* |
| 3 | * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. |
| 4 | * Copyright (c) 2020, Linaro Limited |
| 5 | */ |
| 6 | |
| 7 | #include <dt-bindings/spmi/spmi.h> |
| 8 | |
| 9 | &spmi_bus { |
| 10 | pmic@a { |
| 11 | compatible = "qcom,pm8009", "qcom,spmi-pmic"; |
| 12 | reg = <0xa SPMI_USID>; |
| 13 | #address-cells = <1>; |
| 14 | #size-cells = <0>; |
| 15 | |
| 16 | pm8009_pon: pon@800 { |
| 17 | compatible = "qcom,pm8916-pon"; |
| 18 | reg = <0x0800>; |
| 19 | }; |
| 20 | |
| 21 | pm8009_gpios: gpio@c000 { |
| 22 | compatible = "qcom,pm8005-gpio", "qcom,spmi-gpio"; |
| 23 | reg = <0xc000>; |
| 24 | gpio-controller; |
| 25 | gpio-ranges = <&pm8009_gpios 0 0 4>; |
| 26 | #gpio-cells = <2>; |
| 27 | interrupt-controller; |
| 28 | #interrupt-cells = <2>; |
| 29 | }; |
| 30 | }; |
| 31 | |
| 32 | pmic@b { |
| 33 | compatible = "qcom,pm8009", "qcom,spmi-pmic"; |
| 34 | reg = <0xb SPMI_USID>; |
| 35 | #address-cells = <1>; |
| 36 | #size-cells = <0>; |
| 37 | }; |
| 38 | }; |