1b1227233SBjorn Andersson// SPDX-License-Identifier: GPL-2.0 2b1227233SBjorn Andersson#include <dt-bindings/interrupt-controller/irq.h> 3b1227233SBjorn Andersson#include <dt-bindings/spmi/spmi.h> 4b1227233SBjorn Andersson 5b1227233SBjorn Andersson&spmi_bus { 6b1227233SBjorn Andersson pmi8998_lsid0: pmic@2 { 7b1227233SBjorn Andersson compatible = "qcom,pmi8998", "qcom,spmi-pmic"; 8b1227233SBjorn Andersson reg = <0x2 SPMI_USID>; 9b1227233SBjorn Andersson #address-cells = <1>; 10b1227233SBjorn Andersson #size-cells = <0>; 11b1227233SBjorn Andersson 12*7711c35fSCaleb Connolly pmi8998_charger: charger@1000 { 13*7711c35fSCaleb Connolly compatible = "qcom,pmi8998-charger"; 14*7711c35fSCaleb Connolly reg = <0x1000>; 15*7711c35fSCaleb Connolly 16*7711c35fSCaleb Connolly interrupts = <0x2 0x13 0x4 IRQ_TYPE_EDGE_BOTH>, 17*7711c35fSCaleb Connolly <0x2 0x12 0x2 IRQ_TYPE_EDGE_BOTH>, 18*7711c35fSCaleb Connolly <0x2 0x16 0x1 IRQ_TYPE_EDGE_RISING>, 19*7711c35fSCaleb Connolly <0x2 0x13 0x6 IRQ_TYPE_EDGE_RISING>; 20*7711c35fSCaleb Connolly interrupt-names = "usb-plugin", 21*7711c35fSCaleb Connolly "bat-ov", 22*7711c35fSCaleb Connolly "wdog-bark", 23*7711c35fSCaleb Connolly "usbin-icl-change"; 24*7711c35fSCaleb Connolly 25*7711c35fSCaleb Connolly io-channels = <&pmi8998_rradc 3>, 26*7711c35fSCaleb Connolly <&pmi8998_rradc 4>; 27*7711c35fSCaleb Connolly io-channel-names = "usbin_i", "usbin_v"; 28*7711c35fSCaleb Connolly 29*7711c35fSCaleb Connolly status = "disabled"; 30*7711c35fSCaleb Connolly }; 31*7711c35fSCaleb Connolly 32ea25d61bSMarijn Suijten pmi8998_gpios: gpio@c000 { 33b1227233SBjorn Andersson compatible = "qcom,pmi8998-gpio", "qcom,spmi-gpio"; 34b1227233SBjorn Andersson reg = <0xc000>; 35b1227233SBjorn Andersson gpio-controller; 36ea25d61bSMarijn Suijten gpio-ranges = <&pmi8998_gpios 0 0 14>; 37b1227233SBjorn Andersson #gpio-cells = <2>; 38f14a5e6dSBrian Masney interrupt-controller; 39f14a5e6dSBrian Masney #interrupt-cells = <2>; 40b1227233SBjorn Andersson }; 411cb78978SCaleb Connolly 421cb78978SCaleb Connolly pmi8998_rradc: adc@4500 { 431cb78978SCaleb Connolly compatible = "qcom,pmi8998-rradc"; 441cb78978SCaleb Connolly reg = <0x4500>; 451cb78978SCaleb Connolly #io-channel-cells = <1>; 461cb78978SCaleb Connolly }; 47b1227233SBjorn Andersson }; 48b1227233SBjorn Andersson 49b1227233SBjorn Andersson pmi8998_lsid1: pmic@3 { 50b1227233SBjorn Andersson compatible = "qcom,pmi8998", "qcom,spmi-pmic"; 51b1227233SBjorn Andersson reg = <0x3 SPMI_USID>; 52b1227233SBjorn Andersson #address-cells = <1>; 53b1227233SBjorn Andersson #size-cells = <0>; 54208921baSNisha Kumari 55208921baSNisha Kumari labibb { 56208921baSNisha Kumari compatible = "qcom,pmi8998-lab-ibb"; 57208921baSNisha Kumari 58208921baSNisha Kumari ibb: ibb { 596243905dSAngeloGioacchino Del Regno interrupts = <0x3 0xdc 0x2 IRQ_TYPE_EDGE_RISING>, 606243905dSAngeloGioacchino Del Regno <0x3 0xdc 0x0 IRQ_TYPE_LEVEL_HIGH>; 616243905dSAngeloGioacchino Del Regno interrupt-names = "sc-err", "ocp"; 62208921baSNisha Kumari }; 63208921baSNisha Kumari 64208921baSNisha Kumari lab: lab { 656243905dSAngeloGioacchino Del Regno interrupts = <0x3 0xde 0x1 IRQ_TYPE_EDGE_RISING>, 666243905dSAngeloGioacchino Del Regno <0x3 0xde 0x0 IRQ_TYPE_LEVEL_LOW>; 676243905dSAngeloGioacchino Del Regno interrupt-names = "sc-err", "ocp"; 68208921baSNisha Kumari }; 69208921baSNisha Kumari }; 7017d32c10SAngeloGioacchino Del Regno 7115f50a48SKrzysztof Kozlowski pmi8998_lpg: pwm { 72e79a1385SBjorn Andersson compatible = "qcom,pmi8998-lpg"; 73e79a1385SBjorn Andersson 74e79a1385SBjorn Andersson #address-cells = <1>; 75e79a1385SBjorn Andersson #size-cells = <0>; 76e79a1385SBjorn Andersson #pwm-cells = <2>; 77e79a1385SBjorn Andersson 78e79a1385SBjorn Andersson status = "disabled"; 79e79a1385SBjorn Andersson }; 80e79a1385SBjorn Andersson 819139bb56SDylan Van Assche pmi8998_flash: led-controller@d300 { 829139bb56SDylan Van Assche compatible = "qcom,pmi8998-flash-led", "qcom,spmi-flash-led"; 839139bb56SDylan Van Assche reg = <0xd300>; 849139bb56SDylan Van Assche status = "disabled"; 859139bb56SDylan Van Assche }; 869139bb56SDylan Van Assche 8717d32c10SAngeloGioacchino Del Regno pmi8998_wled: leds@d800 { 8817d32c10SAngeloGioacchino Del Regno compatible = "qcom,pmi8998-wled"; 89d66b1d2eSKrzysztof Kozlowski reg = <0xd800>, <0xd900>; 9017d32c10SAngeloGioacchino Del Regno interrupts = <0x3 0xd8 0x1 IRQ_TYPE_EDGE_RISING>, 9117d32c10SAngeloGioacchino Del Regno <0x3 0xd8 0x2 IRQ_TYPE_EDGE_RISING>; 9217d32c10SAngeloGioacchino Del Regno interrupt-names = "ovp", "short"; 9317d32c10SAngeloGioacchino Del Regno label = "backlight"; 9417d32c10SAngeloGioacchino Del Regno 9517d32c10SAngeloGioacchino Del Regno status = "disabled"; 9617d32c10SAngeloGioacchino Del Regno }; 97b1227233SBjorn Andersson }; 98b1227233SBjorn Andersson}; 99