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