|
| 1 | +// SPDX-License-Identifier: BSD-3-Clause |
| 2 | +/* |
| 3 | + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. |
| 4 | + */ |
| 5 | + |
| 6 | +#include <dt-bindings/input/input.h> |
| 7 | +#include <dt-bindings/spmi/spmi.h> |
| 8 | + |
| 9 | +&spmi_bus { |
| 10 | + pmm8620au_0: pmic@0 { |
| 11 | + compatible = "qcom,pmm8654au", "qcom,spmi-pmic"; |
| 12 | + reg = <0x0 SPMI_USID>; |
| 13 | + #address-cells = <1>; |
| 14 | + #size-cells = <0>; |
| 15 | + |
| 16 | + pmm8620au_0_rtc: rtc@6100 { |
| 17 | + compatible = "qcom,pmk8350-rtc"; |
| 18 | + reg = <0x6100>, <0x6200>; |
| 19 | + reg-names = "rtc", "alarm"; |
| 20 | + interrupts = <0x0 0x62 0x1 IRQ_TYPE_EDGE_RISING>; |
| 21 | + allow-set-time; |
| 22 | + }; |
| 23 | + |
| 24 | + pmm8620au_0_gpios: gpio@8800 { |
| 25 | + compatible = "qcom,pmm8654au-gpio", "qcom,spmi-gpio"; |
| 26 | + reg = <0x8800>; |
| 27 | + gpio-controller; |
| 28 | + gpio-ranges = <&pmm8620au_0_gpios 0 0 12>; |
| 29 | + #gpio-cells = <2>; |
| 30 | + interrupt-controller; |
| 31 | + #interrupt-cells = <2>; |
| 32 | + }; |
| 33 | + }; |
| 34 | + |
| 35 | + pmm8650au_1: pmic@2 { |
| 36 | + compatible = "qcom,pmm8654au", "qcom,spmi-pmic"; |
| 37 | + reg = <0x2 SPMI_USID>; |
| 38 | + #address-cells = <1>; |
| 39 | + #size-cells = <0>; |
| 40 | + |
| 41 | + pmm8650au_1_gpios: gpio@8800 { |
| 42 | + compatible = "qcom,pmm8654au-gpio", "qcom,spmi-gpio"; |
| 43 | + reg = <0x8800>; |
| 44 | + gpio-controller; |
| 45 | + gpio-ranges = <&pmm8650au_1_gpios 0 0 12>; |
| 46 | + #gpio-cells = <2>; |
| 47 | + interrupt-controller; |
| 48 | + #interrupt-cells = <2>; |
| 49 | + }; |
| 50 | + }; |
| 51 | +}; |
0 commit comments