xref: /openbmc/linux/arch/arm64/boot/dts/qcom/pmi8994.dtsi (revision c900529f3d9161bfde5cca0754f83b4d3c3e0220)
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
13c95243eeSKrzysztof Kozlowski		pmi8994_gpios: gpio@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		};
22f041bb3cSBjorn Andersson
23f041bb3cSBjorn Andersson		pmi8994_mpps: mpps@a000 {
248cd012f7SKrzysztof Kozlowski			compatible = "qcom,pmi8994-mpp", "qcom,spmi-mpp";
25f041bb3cSBjorn Andersson			reg = <0xa000>;
26f041bb3cSBjorn Andersson			gpio-controller;
27f041bb3cSBjorn Andersson			gpio-ranges = <&pmi8994_mpps 0 0 4>;
28f041bb3cSBjorn Andersson			#gpio-cells = <2>;
29f041bb3cSBjorn Andersson			interrupt-controller;
30f041bb3cSBjorn Andersson			#interrupt-cells = <2>;
31f041bb3cSBjorn Andersson		};
3238757eb3SStephen Boyd	};
3338757eb3SStephen Boyd
3438757eb3SStephen Boyd	pmic@3 {
3538757eb3SStephen Boyd		compatible = "qcom,pmi8994", "qcom,spmi-pmic";
3638757eb3SStephen Boyd		reg = <0x3 SPMI_USID>;
3738757eb3SStephen Boyd		#address-cells = <1>;
3838757eb3SStephen Boyd		#size-cells = <0>;
392317b87aSRajendra Nayak
4015f50a48SKrzysztof Kozlowski		pmi8994_lpg: pwm {
41e79a1385SBjorn Andersson			compatible = "qcom,pmi8994-lpg";
42e79a1385SBjorn Andersson
43e79a1385SBjorn Andersson			#address-cells = <1>;
44e79a1385SBjorn Andersson			#size-cells = <0>;
45e79a1385SBjorn Andersson			#pwm-cells = <2>;
46e79a1385SBjorn Andersson
47e79a1385SBjorn Andersson			status = "disabled";
48e79a1385SBjorn Andersson		};
49e79a1385SBjorn Andersson
502317b87aSRajendra Nayak		pmi8994_spmi_regulators: regulators {
512317b87aSRajendra Nayak			compatible = "qcom,pmi8994-regulators";
522317b87aSRajendra Nayak		};
5337aa540cSKonrad Dybcio
5437aa540cSKonrad Dybcio		pmi8994_wled: wled@d800 {
5537aa540cSKonrad Dybcio			compatible = "qcom,pmi8994-wled";
56d66b1d2eSKrzysztof Kozlowski			reg = <0xd800>, <0xd900>;
57*8db94432SKonrad Dybcio			interrupts = <0x3 0xd8 0x1 IRQ_TYPE_EDGE_RISING>,
58*8db94432SKonrad Dybcio				     <0x3 0xd8 0x2 IRQ_TYPE_EDGE_RISING>;
59*8db94432SKonrad Dybcio			interrupt-names = "ovp", "short";
6037aa540cSKonrad Dybcio			qcom,cabc;
61b110dfa5SMarijn Suijten			qcom,external-pfet;
6237aa540cSKonrad Dybcio			status = "disabled";
6337aa540cSKonrad Dybcio		};
6438757eb3SStephen Boyd	};
6538757eb3SStephen Boyd};
66