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