From Henrik Grimler to ~postmarketos/upstreaming
On Sat, Aug 17, 2024 at 12:51:14PM +0200, Artur Weber wrote: > Commit 223a3b82834f ("power: supply: max17042_battery: use VFSOC for > capacity when no rsns") made it so that capacity on systems without > current sensing would be read from VFSOC instead of RepSOC. However, > the SOC threshold calculation still read RepSOC to get the SOC > regardless of the current sensing option state. > > Fix this by applying the same conditional to determine which register > should be read. > > This also seems to be the intended behavior as per the datasheet - SOC > alert config value in MiscCFG on setups without current sensing is set > to a value of 0b11, indicating SOC alerts being generated based on > VFSOC, instead of 0b00 which indicates SOC alerts being generated based
From Henrik Grimler to ~postmarketos/upstreaming
Hi again Artur, On Thu, Aug 01, 2024 at 08:23:26AM +0200, Henrik Grimler wrote: > Hi Artur, > > On Mon, Jul 29, 2024 at 07:47:34PM +0200, Artur Weber wrote: > > This patchset does the following: > > > > - Add CURRENT_MAX and INPUT_CURRENT_MAX power supply properties to > > expose the "fast charge current" (maximum current from charger to > > battery) and "CHGIN input current limit" (maximum current from > > external supply to charger). > > > > - Add functions for toggling charging and OTG modes.
From Henrik Grimler to ~postmarketos/upstreaming
Hi Artur, On Mon, Jul 29, 2024 at 07:47:34PM +0200, Artur Weber wrote: > This patchset does the following: > > - Add CURRENT_MAX and INPUT_CURRENT_MAX power supply properties to > expose the "fast charge current" (maximum current from charger to > battery) and "CHGIN input current limit" (maximum current from > external supply to charger). > > - Add functions for toggling charging and OTG modes. > > - Add an extcon-based handler that enables charging or OTG depending > on the cable type plugged in. The extcon device to use for cable
From Henrik Grimler to ~postmarketos/upstreaming
Hi Artur, On Sat, Feb 17, 2024 at 08:02:47PM +0100, Artur Weber wrote: > The stock bootloader on the Samsung Galaxy Tab 3 8.0 provides an > incorrect available memory range over ATAG_MEM. Limit the usable > memory in the DTS to prevent it from doing so, without having to > disable ATAG support. > > Signed-off-by: Artur Weber <aweber.kernel@gmail.com> > --- > arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi b/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi
From Henrik Grimler to ~postmarketos/upstreaming
By using brcm/brcmfmac4354-sdio.bin from linux-firmware together with
nvram.txt from vendor firmware wifi works well on the chagall-wifi and
klimt-lte.
Signed-off-by: Henrik Grimler <henrik@grimler.se>
---
Describe wifi node for exynos5420-chagall-wifi and
exynos5420-klimt-wifi, and decrease available memory.
---
Changes in v2:
- Drop patch 1 and 3 (the latter was applied)
- Fixup patch 2 so it applies cleanly after dropping patch 1
- Link to v1: https://lore.kernel.org/r/20240130-galaxy-tab-s-cleanup-v1-0-d4e17857241d@grimler.se
---
[message trimmed]
From Henrik Grimler to ~postmarketos/upstreaming
Hi Krzysztof, On Wed, Jan 31, 2024 at 08:19:39AM +0100, Krzysztof Kozlowski wrote: > On 30/01/2024 21:40, Henrik Grimler wrote: > > Sort all node properties according to dts coding style guidelines, to > > make dtsi easier to follow. > > > > Signed-off-by: Henrik Grimler <henrik@grimler.se> > > --- > > .../dts/samsung/exynos5420-galaxy-tab-common.dtsi | 23 +++++++++++----------- > > 1 file changed, 11 insertions(+), 12 deletions(-) > > > > diff --git a/arch/arm/boot/dts/samsung/exynos5420-galaxy-tab-common.dtsi b/arch/arm/boot/dts/samsung/exynos5420-galaxy-tab-common.dtsi > > index f525b2f5e4e0..0c1aeafc025b 100644
From Henrik Grimler to ~postmarketos/upstreaming
The last 6 MiB are used by trustzone firmware, and cannot be used by
Linux. Currently we are saved by that the proprietary bootloader
(sboot) passes available memory to kernel through ATAG_MEM. Change
memory range in any case so that we do not have to rely on ATAG_MEM.
Signed-off-by: Henrik Grimler <henrik@grimler.se>
---
Similar fix was applied for the exynos5422 odroids in commit
6591a02e17e6 ("ARM: dts: reduce total RAM by 22 MiB for
exynos5422-odroidxu3"):
https://lore.kernel.org/all/1421842972-25807-1-git-send-email-m.szyprowski@samsung.com/
---
[message trimmed]
From Henrik Grimler to ~postmarketos/upstreaming
By using brcm/brcmfmac4354-sdio.bin from linux-firmware together with nvram.txt from vendor firmware wifi works well on the chagall-wifi and klimt-lte. Signed-off-by: Henrik Grimler <henrik@grimler.se> --- .../dts/samsung/exynos5420-galaxy-tab-common.dtsi | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/samsung/exynos5420-galaxy-tab-common.dtsi b/arch/arm/boot/dts/samsung/exynos5420-galaxy-tab-common.dtsi index 0c1aeafc025b..d569fac29b18 100644 --- a/arch/arm/boot/dts/samsung/exynos5420-galaxy-tab-common.dtsi +++ b/arch/arm/boot/dts/samsung/exynos5420-galaxy-tab-common.dtsi @@ -30,6 +30,7 @@ / { [message trimmed]
From Henrik Grimler to ~postmarketos/upstreaming
Sort all node properties according to dts coding style guidelines, to make dtsi easier to follow. Signed-off-by: Henrik Grimler <henrik@grimler.se> --- .../dts/samsung/exynos5420-galaxy-tab-common.dtsi | 23 +++++++++++----------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/arch/arm/boot/dts/samsung/exynos5420-galaxy-tab-common.dtsi b/arch/arm/boot/dts/samsung/exynos5420-galaxy-tab-common.dtsi index f525b2f5e4e0..0c1aeafc025b 100644 --- a/arch/arm/boot/dts/samsung/exynos5420-galaxy-tab-common.dtsi +++ b/arch/arm/boot/dts/samsung/exynos5420-galaxy-tab-common.dtsi @@ -103,8 +103,8 @@ &cpu4 { }; [message trimmed]
From Henrik Grimler to ~postmarketos/upstreaming
Describe wifi node for exynos5420-chagall-wifi and exynos5420-klimt-wifi, and cleanup their dtsi to accurately describe available memory and adhere to the DTS Coding Style document. Signed-off-by: Henrik Grimler <henrik@grimler.se> --- Henrik Grimler (3): ARM: dts: samsung: exynos5420-galaxy-tab-common: sort node properties ARM: dts: samsung: exynos5420-galaxy-tab-common: add wifi node ARM: dts: samsung: exynos5420-galaxy-tab-common: decrease available memory .../dts/samsung/exynos5420-galaxy-tab-common.dtsi | 57 +++++++++++++++++----- 1 file changed, 44 insertions(+), 13 deletions(-) ---