1 // SPDX-License-Identifier: BSD-3-Clause 1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 2 /* 3 * Copyright (c) 2021, The Linux Foundation. A 3 * Copyright (c) 2021, The Linux Foundation. All rights reserved. 4 * Copyright (c) 2022, Linaro Limited 4 * Copyright (c) 2022, Linaro Limited 5 */ 5 */ 6 6 7 #include <dt-bindings/interrupt-controller/irq 7 #include <dt-bindings/interrupt-controller/irq.h> 8 #include <dt-bindings/spmi/spmi.h> 8 #include <dt-bindings/spmi/spmi.h> 9 9 10 &spmi_bus { 10 &spmi_bus { 11 pmm8540a: pmic@0 { 11 pmm8540a: pmic@0 { 12 compatible = "qcom,pm8150", "q 12 compatible = "qcom,pm8150", "qcom,spmi-pmic"; 13 reg = <0x0 SPMI_USID>; 13 reg = <0x0 SPMI_USID>; 14 #address-cells = <1>; 14 #address-cells = <1>; 15 #size-cells = <0>; 15 #size-cells = <0>; 16 16 17 pmm8540a_rtc: rtc@6000 { 17 pmm8540a_rtc: rtc@6000 { 18 compatible = "qcom,pm8 18 compatible = "qcom,pm8941-rtc"; 19 reg = <0x6000>, <0x610 19 reg = <0x6000>, <0x6100>; 20 reg-names = "rtc", "al 20 reg-names = "rtc", "alarm"; 21 interrupts = <0x0 0x61 21 interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>; 22 wakeup-source; 22 wakeup-source; 23 }; 23 }; 24 24 25 pmm8540a_gpios: gpio@c000 { 25 pmm8540a_gpios: gpio@c000 { 26 compatible = "qcom,pm8 26 compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio"; 27 reg = <0xc000>; 27 reg = <0xc000>; 28 gpio-controller; 28 gpio-controller; 29 gpio-ranges = <&pmm854 29 gpio-ranges = <&pmm8540a_gpios 0 0 10>; 30 #gpio-cells = <2>; 30 #gpio-cells = <2>; 31 interrupt-controller; 31 interrupt-controller; 32 #interrupt-cells = <2> 32 #interrupt-cells = <2>; 33 }; 33 }; 34 }; 34 }; 35 35 36 pmm8540c: pmic@4 { 36 pmm8540c: pmic@4 { 37 compatible = "qcom,pm8150", "q 37 compatible = "qcom,pm8150", "qcom,spmi-pmic"; 38 reg = <0x4 SPMI_USID>; 38 reg = <0x4 SPMI_USID>; 39 #address-cells = <1>; 39 #address-cells = <1>; 40 #size-cells = <0>; 40 #size-cells = <0>; 41 41 42 pmm8540c_sdam_2: nvram@b110 { 42 pmm8540c_sdam_2: nvram@b110 { 43 compatible = "qcom,spm 43 compatible = "qcom,spmi-sdam"; 44 reg = <0xb110>; 44 reg = <0xb110>; 45 #address-cells = <1>; 45 #address-cells = <1>; 46 #size-cells = <1>; 46 #size-cells = <1>; 47 ranges = <0 0xb110 0xb 47 ranges = <0 0xb110 0xb0>; 48 status = "disabled"; 48 status = "disabled"; 49 }; 49 }; 50 50 51 pmm8540c_gpios: gpio@c000 { 51 pmm8540c_gpios: gpio@c000 { 52 compatible = "qcom,pm8 52 compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio"; 53 reg = <0xc000>; 53 reg = <0xc000>; 54 gpio-controller; 54 gpio-controller; 55 gpio-ranges = <&pmm854 55 gpio-ranges = <&pmm8540c_gpios 0 0 10>; 56 #gpio-cells = <2>; 56 #gpio-cells = <2>; 57 interrupt-controller; 57 interrupt-controller; 58 #interrupt-cells = <2> 58 #interrupt-cells = <2>; 59 }; 59 }; 60 }; 60 }; 61 61 62 pmm8540e: pmic@8 { 62 pmm8540e: pmic@8 { 63 compatible = "qcom,pm8150", "q 63 compatible = "qcom,pm8150", "qcom,spmi-pmic"; 64 reg = <0x8 SPMI_USID>; 64 reg = <0x8 SPMI_USID>; 65 #address-cells = <1>; 65 #address-cells = <1>; 66 #size-cells = <0>; 66 #size-cells = <0>; 67 67 68 pmm8540e_gpios: gpio@c000 { 68 pmm8540e_gpios: gpio@c000 { 69 compatible = "qcom,pm8 69 compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio"; 70 reg = <0xc000>; 70 reg = <0xc000>; 71 gpio-controller; 71 gpio-controller; 72 gpio-ranges = <&pmm854 72 gpio-ranges = <&pmm8540e_gpios 0 0 10>; 73 #gpio-cells = <2>; 73 #gpio-cells = <2>; 74 interrupt-controller; 74 interrupt-controller; 75 #interrupt-cells = <2> 75 #interrupt-cells = <2>; 76 }; 76 }; 77 }; 77 }; 78 78 79 pmm8540g: pmic@c { 79 pmm8540g: pmic@c { 80 compatible = "qcom,pm8150", "q 80 compatible = "qcom,pm8150", "qcom,spmi-pmic"; 81 reg = <0xc SPMI_USID>; 81 reg = <0xc SPMI_USID>; 82 #address-cells = <1>; 82 #address-cells = <1>; 83 #size-cells = <0>; 83 #size-cells = <0>; 84 84 85 pmm8540g_gpios: gpio@c000 { 85 pmm8540g_gpios: gpio@c000 { 86 compatible = "qcom,pm8 86 compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio"; 87 reg = <0xc000>; 87 reg = <0xc000>; 88 gpio-controller; 88 gpio-controller; 89 gpio-ranges = <&pmm854 89 gpio-ranges = <&pmm8540g_gpios 0 0 10>; 90 #gpio-cells = <2>; 90 #gpio-cells = <2>; 91 interrupt-controller; 91 interrupt-controller; 92 #interrupt-cells = <2> 92 #interrupt-cells = <2>; 93 }; 93 }; 94 }; 94 }; 95 }; 95 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.