linux-postmarketos-exynos4: enable charging on p4note (MR 3051)
This is merged upstream, so we'll be able to drop it soon enough. [ci:skip-build] Already built successfuly on CI in MR
This commit is contained in:
parent
b2c4544ef2
commit
89ce95fe08
3 changed files with 87 additions and 3 deletions
|
|
@ -0,0 +1,82 @@
|
|||
From patchwork Thu Feb 3 20:29:47 2022
|
||||
Subject: [PATCH v2 1/2] ARM: dts: exynos: add charger and battery to p4note
|
||||
Date: Thu, 3 Feb 2022 21:29:47 +0100
|
||||
Message-Id:
|
||||
<d7f7b0f87a18b5cc44ba97390461c15469439829.1643919230.git.martin.juecker@gmail.com>
|
||||
X-Mailer: git-send-email 2.25.1
|
||||
MIME-Version: 1.0
|
||||
Precedence: bulk
|
||||
List-ID: <linux-samsung-soc.vger.kernel.org>
|
||||
X-Mailing-List: linux-samsung-soc@vger.kernel.org
|
||||
|
||||
Add device tree entry to support the Summit SMB347 charger which is
|
||||
built into the p4note devices, as well as a simple battery node.
|
||||
|
||||
Signed-off-by: Martin Jücker <martin.juecker@gmail.com>
|
||||
---
|
||||
Changes in v2:
|
||||
- squash charger and battery commits
|
||||
---
|
||||
arch/arm/boot/dts/exynos4412-p4note.dtsi | 35 ++++++++++++++++++++++++
|
||||
1 file changed, 35 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/exynos4412-p4note.dtsi b/arch/arm/boot/dts/exynos4412-p4note.dtsi
|
||||
index b386a9b8e188..fcd75cceb877 100644
|
||||
--- a/arch/arm/boot/dts/exynos4412-p4note.dtsi
|
||||
+++ b/arch/arm/boot/dts/exynos4412-p4note.dtsi
|
||||
@@ -16,6 +16,7 @@
|
||||
#include <dt-bindings/input/linux-event-codes.h>
|
||||
#include <dt-bindings/interrupt-controller/irq.h>
|
||||
#include <dt-bindings/pinctrl/samsung.h>
|
||||
+#include <dt-bindings/power/summit,smb347-charger.h>
|
||||
|
||||
/ {
|
||||
compatible = "samsung,p4note", "samsung,exynos4412", "samsung,exynos4";
|
||||
@@ -114,6 +115,17 @@ wlan_pwrseq: sdhci3-pwrseq {
|
||||
clock-names = "ext_clock";
|
||||
};
|
||||
|
||||
+ battery_cell: battery-cell {
|
||||
+ compatible = "simple-battery";
|
||||
+ device-chemistry = "lithium-ion";
|
||||
+ constant-charge-current-max-microamp = <2200000>;
|
||||
+ precharge-current-microamp = <250000>;
|
||||
+ charge-term-current-microamp = <250000>;
|
||||
+ constant-charge-voltage-max-microvolt = <4200000>;
|
||||
+
|
||||
+ power-supplies = <&power_supply>;
|
||||
+ };
|
||||
+
|
||||
i2c-gpio-1 {
|
||||
compatible = "i2c-gpio";
|
||||
sda-gpios = <&gpy2 4 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
|
||||
@@ -182,6 +194,29 @@ stmpe_adc {
|
||||
};
|
||||
};
|
||||
};
|
||||
+
|
||||
+ i2c-gpio-4 {
|
||||
+ compatible = "i2c-gpio";
|
||||
+ sda-gpios = <&gpm2 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
|
||||
+ scl-gpios = <&gpm2 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
|
||||
+
|
||||
+ i2c-gpio,delay-us = <2>;
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+
|
||||
+ power_supply: charger@6 {
|
||||
+ compatible = "summit,smb347";
|
||||
+ reg = <0x6>;
|
||||
+ summit,enable-usb-charging;
|
||||
+ summit,enable-charge-control = <SMB3XX_CHG_ENABLE_SW>;
|
||||
+ summit,fast-voltage-threshold-microvolt = <2600000>;
|
||||
+ summit,chip-temperature-threshold-celsius = <130>;
|
||||
+ summit,usb-current-limit-microamp = <1800000>;
|
||||
+
|
||||
+ monitored-battery = <&battery_cell>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
};
|
||||
|
||||
&adc {
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
pkgname=linux-postmarketos-exynos4
|
||||
pkgver=5.17.1
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="Mainline kernel fork for Samsung Exynos4 devices"
|
||||
arch="armv7"
|
||||
_carch="arm"
|
||||
|
|
@ -49,6 +49,7 @@ source="
|
|||
0008-ARM-dts-driver-exynos-n710x-add-panel.patch
|
||||
0009-ARM-dts-exynos-n710x-add-leds.patch
|
||||
0010-drm-Allow-DRM_IOCTL_MODE_CREATE_DUMB-on-render-nodes.patch
|
||||
0011-v2-1-2-ARM-dts-exynos-add-charger-and-battery-to-p4note.patch
|
||||
initramfs.list
|
||||
init
|
||||
"
|
||||
|
|
@ -89,7 +90,7 @@ package() {
|
|||
|
||||
sha512sums="
|
||||
bb73202e770d10767739664b5320b47d78bc374b2bde38b289f1ede1b7b33a8be0adf0808dd82b49735534fe1aae7d83acbf6e42de214d2e179832f6e6c866dd linux-5.17.1.tar.xz
|
||||
b4089d740747d0ec5b1fdf26c253e338973dc17222ebfffbf272efc3e7a500f2d19ea11568a6c0558ec2606c9fdaae9b3c6c261b3511ebd96a0cc2580adcddf5 config-postmarketos-exynos4.armv7
|
||||
33acb027e27e9da5baadc1bee33c96f6d924833fcdc0e21a49f42b61ef87fa3ed72734984b3a105828db6eedc0c501393db4163d3184e38cd6850463dd1b0266 config-postmarketos-exynos4.armv7
|
||||
a033fa9afa05825d5c923f1d5a224e230a8b02e75b02a21e0a0077f1b76c01d663ba54204e66db1e85096d9e44cc29fee0acaf919d3187cb47dba9005f94d8be 0001-ARM-decompressor-Flush-tlb-before-swiching-domain-0-.patch
|
||||
57590b105cb6d01e5f2d860a21c1417b197abbcaf8553bf57633b261ac1e161b0d424f8baeb7b14b3ed923ebac6f6e27401ef02c0b53a4b3e34600368fe85219 0002-ARM-dts-exynos-Add-reboot-modes-to-midas.patch
|
||||
81430b484a0747717ed8dba45c04c40689d9546b7b9d3eb20f0520e78c94f1438afc1f21a0b06007f60ff718e924d1586acc98f4498671a1a7609ed6e6f2b3f0 0003-mmc-core-Workaround-VTU00M-0xf1-FTL-metadata-corrupt.patch
|
||||
|
|
@ -100,6 +101,7 @@ de87e6a6608165cdc35a03bd10dedef1c12a2a9e1f66f500879c05b287bae7181cc95021a3a2aad6
|
|||
054a03b327386b32b516cf7f9fdbf15adba9b3fb6d0d20473493f7e4538202496829443eb18f9a928b4959b1296ee98171d4a19d8fcf58439d4fdb122fbb97ac 0008-ARM-dts-driver-exynos-n710x-add-panel.patch
|
||||
63c9e1a1d92e1deb286d6623e116e1cce36bfbae3f9b5db60dc1751573af7477003c7680afe054e7170fee632fd11e38c1bea12ec51299d547557112784f762f 0009-ARM-dts-exynos-n710x-add-leds.patch
|
||||
56b08a9b72760f26cdbda9f89875ee4b502dca4d9dd15bf33c8ed1cda82cf75c9588514a378fd2e942a41e52378348cc8e55da303660cce59bf8a12287568daf 0010-drm-Allow-DRM_IOCTL_MODE_CREATE_DUMB-on-render-nodes.patch
|
||||
58179b8ec43656789ebf3d7b6e3371564f9b8556d78574dc68d7eca8dc67da0bda1c0243cef4c7a552d6ba0cb14fdd01fb57c73737ee976db8ad527345f7a52c 0011-v2-1-2-ARM-dts-exynos-add-charger-and-battery-to-p4note.patch
|
||||
aaff0332b90e1f9f62de1128cace934717336e54ab09de46477369fa808302482d97334e43a85ee8597c1bcab64d3484750103559fea2ce8cd51776156bf7591 initramfs.list
|
||||
09f1f214a24300696809727a7b04378887c06ca6f40803ca51a12bf2176a360b2eb8632139d6a0722094e05cb2038bdb04018a1e3d33fc2697674552ade03bee init
|
||||
"
|
||||
|
|
|
|||
|
|
@ -2429,7 +2429,7 @@ CONFIG_CHARGER_MAX8998=y
|
|||
# CONFIG_CHARGER_BQ25890 is not set
|
||||
# CONFIG_CHARGER_BQ25980 is not set
|
||||
# CONFIG_CHARGER_BQ256XX is not set
|
||||
# CONFIG_CHARGER_SMB347 is not set
|
||||
CONFIG_CHARGER_SMB347=m
|
||||
CONFIG_CHARGER_TPS65090=y
|
||||
# CONFIG_BATTERY_GAUGE_LTC2941 is not set
|
||||
# CONFIG_BATTERY_GOLDFISH is not set
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue