Loading arch/arm64/boot/dts/qcom/sdm845-mtp.dtsi +5 −0 Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ #include <dt-bindings/gpio/gpio.h> #include "sdm845-camera-sensor-mtp.dtsi" #include "smb1355.dtsi" / { bluetooth: bt_wcn3990 { Loading Loading @@ -203,6 +204,10 @@ qcom,battery-data = <&mtp_batterydata>; }; &smb1355_charger { status = "ok"; }; / { aliases { serial0 = &qupv3_se9_2uart; Loading arch/arm64/boot/dts/qcom/sdm845-qrd.dtsi +6 −0 Original line number Diff line number Diff line Loading @@ -10,6 +10,8 @@ * GNU General Public License for more details. */ #include "smb1355.dtsi" /{ qrd_batterydata: qcom,battery-data { qcom,batt-id-range-pct = <15>; Loading @@ -22,6 +24,10 @@ qcom,battery-data = <&qrd_batterydata>; }; &smb1355_charger { status = "ok"; }; &mdss_mdp { #cooling-cells = <2>; }; Loading arch/arm64/boot/dts/qcom/smb1355.dtsi 0 → 100644 +55 −0 Original line number Diff line number Diff line /* Copyright (c) 2016-2017, 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_se10_i2c { smb1355: qcom,smb1355@8 { compatible = "qcom,i2c-pmic"; reg = <0x8>; #address-cells = <1>; #size-cells = <1>; interrupt-parent = <&spmi_bus>; interrupts = <0x0 0xd1 0x0 IRQ_TYPE_LEVEL_LOW>; interrupt_names = "smb1355"; interrupt-controller; #interrupt-cells = <3>; qcom,periph-map = <0x10 0x12 0x13 0x16>; smb1355_revid: qcom,revid@100 { compatible = "qcom,qpnp-revid"; reg = <0x100 0x100>; }; smb1355_charger: qcom,smb1355-charger@1000 { compatible = "qcom,smb1355"; qcom,pmic-revid = <&smb1355_revid>; reg = <0x1000 0x700>; #address-cells = <1>; #size-cells = <1>; interrupt-parent = <&smb1355>; status = "disabled"; qcom,chgr@1000 { reg = <0x1000 0x100>; interrupts = <0x10 0x1 IRQ_TYPE_EDGE_RISING>; interrupt-names = "chg-state-change"; }; qcom,chgr-misc@1600 { reg = <0x1600 0x100>; interrupts = <0x16 0x1 IRQ_TYPE_EDGE_RISING>; interrupt-names = "wdog-bark"; }; }; }; }; Loading
arch/arm64/boot/dts/qcom/sdm845-mtp.dtsi +5 −0 Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ #include <dt-bindings/gpio/gpio.h> #include "sdm845-camera-sensor-mtp.dtsi" #include "smb1355.dtsi" / { bluetooth: bt_wcn3990 { Loading Loading @@ -203,6 +204,10 @@ qcom,battery-data = <&mtp_batterydata>; }; &smb1355_charger { status = "ok"; }; / { aliases { serial0 = &qupv3_se9_2uart; Loading
arch/arm64/boot/dts/qcom/sdm845-qrd.dtsi +6 −0 Original line number Diff line number Diff line Loading @@ -10,6 +10,8 @@ * GNU General Public License for more details. */ #include "smb1355.dtsi" /{ qrd_batterydata: qcom,battery-data { qcom,batt-id-range-pct = <15>; Loading @@ -22,6 +24,10 @@ qcom,battery-data = <&qrd_batterydata>; }; &smb1355_charger { status = "ok"; }; &mdss_mdp { #cooling-cells = <2>; }; Loading
arch/arm64/boot/dts/qcom/smb1355.dtsi 0 → 100644 +55 −0 Original line number Diff line number Diff line /* Copyright (c) 2016-2017, 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_se10_i2c { smb1355: qcom,smb1355@8 { compatible = "qcom,i2c-pmic"; reg = <0x8>; #address-cells = <1>; #size-cells = <1>; interrupt-parent = <&spmi_bus>; interrupts = <0x0 0xd1 0x0 IRQ_TYPE_LEVEL_LOW>; interrupt_names = "smb1355"; interrupt-controller; #interrupt-cells = <3>; qcom,periph-map = <0x10 0x12 0x13 0x16>; smb1355_revid: qcom,revid@100 { compatible = "qcom,qpnp-revid"; reg = <0x100 0x100>; }; smb1355_charger: qcom,smb1355-charger@1000 { compatible = "qcom,smb1355"; qcom,pmic-revid = <&smb1355_revid>; reg = <0x1000 0x700>; #address-cells = <1>; #size-cells = <1>; interrupt-parent = <&smb1355>; status = "disabled"; qcom,chgr@1000 { reg = <0x1000 0x100>; interrupts = <0x10 0x1 IRQ_TYPE_EDGE_RISING>; interrupt-names = "chg-state-change"; }; qcom,chgr-misc@1600 { reg = <0x1600 0x100>; interrupts = <0x16 0x1 IRQ_TYPE_EDGE_RISING>; interrupt-names = "wdog-bark"; }; }; }; };