1// SPDX-License-Identifier: BSD-3-Clause 2/* 3 * Copyright (c) 2021, The Linux Foundation. All rights reserved. 4 * Copyright (c) 2022, Linaro Limited 5 */ 6 7#include <dt-bindings/spmi/spmi.h> 8 9&spmi_bus { 10 pm8450a: pmic@0 { 11 compatible = "qcom,pm8150", "qcom,spmi-pmic"; 12 reg = <0x0 SPMI_USID>; 13 #address-cells = <1>; 14 #size-cells = <0>; 15 16 rtc@6000 { 17 compatible = "qcom,pm8941-rtc"; 18 reg = <0x6000>, <0x6100>; 19 reg-names = "rtc", "alarm"; 20 interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>; 21 wakeup-source; 22 }; 23 24 pm8450a_gpios: gpio@c000 { 25 compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio"; 26 reg = <0xc000>; 27 gpio-controller; 28 gpio-ranges = <&pm8450a_gpios 0 0 10>; 29 #gpio-cells = <2>; 30 interrupt-controller; 31 #interrupt-cells = <2>; 32 }; 33 }; 34 35 pm8450c: pmic@4 { 36 compatible = "qcom,pm8150", "qcom,spmi-pmic"; 37 reg = <0x4 SPMI_USID>; 38 #address-cells = <1>; 39 #size-cells = <0>; 40 41 pm8450c_gpios: gpio@c000 { 42 compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio"; 43 reg = <0xc000>; 44 gpio-controller; 45 gpio-ranges = <&pm8450c_gpios 0 0 10>; 46 #gpio-cells = <2>; 47 interrupt-controller; 48 #interrupt-cells = <2>; 49 }; 50 }; 51 52 pm8450e: pmic@8 { 53 compatible = "qcom,pm8150", "qcom,spmi-pmic"; 54 reg = <0x8 SPMI_USID>; 55 #address-cells = <1>; 56 #size-cells = <0>; 57 58 pm8450e_gpios: gpio@c000 { 59 compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio"; 60 reg = <0xc000>; 61 gpio-controller; 62 gpio-ranges = <&pm8450e_gpios 0 0 10>; 63 #gpio-cells = <2>; 64 interrupt-controller; 65 #interrupt-cells = <2>; 66 }; 67 }; 68 69 pm8450g: pmic@c { 70 compatible = "qcom,pm8150", "qcom,spmi-pmic"; 71 reg = <0xc SPMI_USID>; 72 #address-cells = <1>; 73 #size-cells = <0>; 74 75 pm8450g_gpios: gpio@c000 { 76 compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio"; 77 reg = <0xc000>; 78 gpio-controller; 79 gpio-ranges = <&pm8450g_gpios 0 0 10>; 80 #gpio-cells = <2>; 81 interrupt-controller; 82 #interrupt-cells = <2>; 83 }; 84 }; 85}; 86