Loading arch/arm64/boot/dts/qcom/sm8150-mtp.dtsi +5 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ #include "sm8150-sde-display.dtsi" #include "sm8150-camera-sensor-mtp.dtsi" #include "sm8150-thermal-overlay.dtsi" #include "smb1390.dtsi" &qupv3_se12_2uart { status = "ok"; Loading Loading @@ -547,3 +548,7 @@ "usb_in_current", "chg_temp"; }; &smb1390_charger { status = "ok"; }; arch/arm64/boot/dts/qcom/sm8150-qrd.dtsi +5 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ #include "sm8150-sde-display.dtsi" #include "sm8150-camera-sensor-qrd.dtsi" #include "sm8150-thermal-overlay.dtsi" #include "smb1390.dtsi" &vendor { bluetooth: bt_wcn3990 { Loading Loading @@ -494,3 +495,7 @@ "usb_in_current", "chg_temp"; }; &smb1390_charger { status = "ok"; }; arch/arm64/boot/dts/qcom/smb1390.dtsi 0 → 100644 +56 −0 Original line number Diff line number Diff line /* Copyright (c) 2018, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #include <dt-bindings/interrupt-controller/irq.h> &qupv3_se4_i2c { smb1390: qcom,smb1390@10 { compatible = "qcom,i2c-pmic"; reg = <0x10>; #address-cells = <1>; #size-cells = <0>; interrupt-parent = <&spmi_bus>; interrupts = <0x2 0xC5 0x0 IRQ_TYPE_LEVEL_LOW>; interrupt_names = "smb1390"; interrupt-controller; #interrupt-cells = <3>; qcom,periph-map = <0x10>; smb1390_revid: qcom,revid { compatible = "qcom,qpnp-revid"; reg = <0x100>; }; smb1390_charger: qcom,charge_pump { compatible = "qcom,smb1390-charger"; qcom,pmic-revid = <&smb1390_revid>; interrupt-parent = <&smb1390>; status = "disabled"; io-channels = <&pm855b_vadc ADC_AMUX_THM2>; io-channel-names = "cp_die_temp"; qcom,core { interrupts = <0x10 0x0 IRQ_TYPE_EDGE_RISING>, <0x10 0x1 IRQ_TYPE_EDGE_RISING>, <0x10 0x2 IRQ_TYPE_EDGE_RISING>, <0x10 0x3 IRQ_TYPE_EDGE_RISING>, <0x10 0x4 IRQ_TYPE_EDGE_RISING>; interrupt-names = "switcher-off-window", "switcher-off-fault", "vph-ov-soft", "ilim", "temp-alarm"; }; }; }; }; Loading
arch/arm64/boot/dts/qcom/sm8150-mtp.dtsi +5 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ #include "sm8150-sde-display.dtsi" #include "sm8150-camera-sensor-mtp.dtsi" #include "sm8150-thermal-overlay.dtsi" #include "smb1390.dtsi" &qupv3_se12_2uart { status = "ok"; Loading Loading @@ -547,3 +548,7 @@ "usb_in_current", "chg_temp"; }; &smb1390_charger { status = "ok"; };
arch/arm64/boot/dts/qcom/sm8150-qrd.dtsi +5 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ #include "sm8150-sde-display.dtsi" #include "sm8150-camera-sensor-qrd.dtsi" #include "sm8150-thermal-overlay.dtsi" #include "smb1390.dtsi" &vendor { bluetooth: bt_wcn3990 { Loading Loading @@ -494,3 +495,7 @@ "usb_in_current", "chg_temp"; }; &smb1390_charger { status = "ok"; };
arch/arm64/boot/dts/qcom/smb1390.dtsi 0 → 100644 +56 −0 Original line number Diff line number Diff line /* Copyright (c) 2018, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #include <dt-bindings/interrupt-controller/irq.h> &qupv3_se4_i2c { smb1390: qcom,smb1390@10 { compatible = "qcom,i2c-pmic"; reg = <0x10>; #address-cells = <1>; #size-cells = <0>; interrupt-parent = <&spmi_bus>; interrupts = <0x2 0xC5 0x0 IRQ_TYPE_LEVEL_LOW>; interrupt_names = "smb1390"; interrupt-controller; #interrupt-cells = <3>; qcom,periph-map = <0x10>; smb1390_revid: qcom,revid { compatible = "qcom,qpnp-revid"; reg = <0x100>; }; smb1390_charger: qcom,charge_pump { compatible = "qcom,smb1390-charger"; qcom,pmic-revid = <&smb1390_revid>; interrupt-parent = <&smb1390>; status = "disabled"; io-channels = <&pm855b_vadc ADC_AMUX_THM2>; io-channel-names = "cp_die_temp"; qcom,core { interrupts = <0x10 0x0 IRQ_TYPE_EDGE_RISING>, <0x10 0x1 IRQ_TYPE_EDGE_RISING>, <0x10 0x2 IRQ_TYPE_EDGE_RISING>, <0x10 0x3 IRQ_TYPE_EDGE_RISING>, <0x10 0x4 IRQ_TYPE_EDGE_RISING>; interrupt-names = "switcher-off-window", "switcher-off-fault", "vph-ov-soft", "ilim", "temp-alarm"; }; }; }; };