1// SPDX-License-Identifier: GPL-2.0+ OR MIT 2/* 3 * Device Tree Source for Qualcomm PM8018 4 * 5 * Copyright (C) 2016 BayLibre, SAS. 6 * Author : Neil Armstrong <narmstrong@baylibre.com> 7 */ 8 9&ssbi { 10 pm8018: pmic { 11 compatible = "qcom,pm8018", "qcom,pm8921"; 12 #interrupt-cells = <2>; 13 interrupt-controller; 14 #address-cells = <1>; 15 #size-cells = <0>; 16 17 pwrkey@1c { 18 compatible = "qcom,pm8018-pwrkey", 19 "qcom,pm8921-pwrkey"; 20 reg = <0x1c>; 21 interrupt-parent = <&pm8018>; 22 interrupts = <50 IRQ_TYPE_EDGE_RISING>, 23 <51 IRQ_TYPE_EDGE_RISING>; 24 debounce = <15625>; 25 pull-up; 26 }; 27 28 pm8018_mpps: mpps@50 { 29 compatible = "qcom,pm8018-mpp", "qcom,ssbi-mpp"; 30 interrupt-controller; 31 #interrupt-cells = <2>; 32 reg = <0x50>; 33 gpio-controller; 34 #gpio-cells = <2>; 35 gpio-ranges = <&pm8018_mpps 0 0 6>; 36 }; 37 38 rtc@11d { 39 compatible = "qcom,pm8018-rtc", "qcom,pm8921-rtc"; 40 interrupt-parent = <&pm8018>; 41 interrupts = <39 IRQ_TYPE_EDGE_RISING>; 42 reg = <0x11d>; 43 allow-set-time; 44 }; 45 46 pm8018_gpio: gpio@150 { 47 compatible = "qcom,pm8058-gpio", 48 "qcom,ssbi-gpio"; 49 reg = <0x150>; 50 interrupt-controller; 51 #interrupt-cells = <2>; 52 gpio-controller; 53 gpio-ranges = <&pm8018_gpio 0 0 6>; 54 #gpio-cells = <2>; 55 }; 56 }; 57}; 58