1b2441318SGreg Kroah-Hartman// SPDX-License-Identifier: GPL-2.0 238757eb3SStephen Boyd#include <dt-bindings/interrupt-controller/irq.h> 338757eb3SStephen Boyd#include <dt-bindings/spmi/spmi.h> 438757eb3SStephen Boyd 538757eb3SStephen Boyd&spmi_bus { 638757eb3SStephen Boyd 738757eb3SStephen Boyd pmic@2 { 838757eb3SStephen Boyd compatible = "qcom,pmi8994", "qcom,spmi-pmic"; 938757eb3SStephen Boyd reg = <0x2 SPMI_USID>; 1038757eb3SStephen Boyd #address-cells = <1>; 1138757eb3SStephen Boyd #size-cells = <0>; 12133767d9SVivek Gautam 13133767d9SVivek Gautam pmi8994_gpios: gpios@c000 { 14133767d9SVivek Gautam compatible = "qcom,pmi8994-gpio", "qcom,spmi-gpio"; 15133767d9SVivek Gautam reg = <0xc000>; 16133767d9SVivek Gautam gpio-controller; 1721750eb9SBrian Masney gpio-ranges = <&pmi8994_gpios 0 0 10>; 18133767d9SVivek Gautam #gpio-cells = <2>; 198cff9c8aSBrian Masney interrupt-controller; 208cff9c8aSBrian Masney #interrupt-cells = <2>; 21133767d9SVivek Gautam }; 2238757eb3SStephen Boyd }; 2338757eb3SStephen Boyd 2438757eb3SStephen Boyd pmic@3 { 2538757eb3SStephen Boyd compatible = "qcom,pmi8994", "qcom,spmi-pmic"; 2638757eb3SStephen Boyd reg = <0x3 SPMI_USID>; 2738757eb3SStephen Boyd #address-cells = <1>; 2838757eb3SStephen Boyd #size-cells = <0>; 292317b87aSRajendra Nayak 302317b87aSRajendra Nayak pmi8994_spmi_regulators: regulators { 312317b87aSRajendra Nayak compatible = "qcom,pmi8994-regulators"; 322317b87aSRajendra Nayak #address-cells = <1>; 332317b87aSRajendra Nayak #size-cells = <1>; 342317b87aSRajendra Nayak }; 3537aa540cSKonrad Dybcio 3637aa540cSKonrad Dybcio pmi8994_wled: wled@d800 { 3737aa540cSKonrad Dybcio compatible = "qcom,pmi8994-wled"; 3837aa540cSKonrad Dybcio reg = <0xd800 0xd900>; 3937aa540cSKonrad Dybcio interrupts = <3 0xd8 0x02 IRQ_TYPE_EDGE_RISING>; 4037aa540cSKonrad Dybcio interrupt-names = "short"; 4137aa540cSKonrad Dybcio qcom,num-strings = <3>; 4237aa540cSKonrad Dybcio /* Yes, all four strings *have to* be defined or things won't work. */ 4337aa540cSKonrad Dybcio qcom,enabled-strings = <0 1 2 3>; 4437aa540cSKonrad Dybcio qcom,cabc; 45*b110dfa5SMarijn Suijten qcom,external-pfet; 4637aa540cSKonrad Dybcio status = "disabled"; 4737aa540cSKonrad Dybcio }; 4838757eb3SStephen Boyd }; 4938757eb3SStephen Boyd}; 50