ARM: dts: exynos: Disable unused buck10 regulator on Odroid HC1 board
Subsystems (2)
Krzysztof Kozlowski
maintainerPATCH v2 1/4 ARM: dts: exynos: Disable unused buck10 regulator on Odroid HC1 board
The eMMC memory on Odroid XU3/XU4 boards is supplied by two regulators LDO18 and buck10 (and LDO13 for the host interface).
However the Odroid HC1 board does not have eMMC connector so this regulator does not have to be always on.
---
Changes since v1:
1. None
--- arch/arm/boot/dts/exynos5422-odroid-core.dtsi | 2 -- arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi | 6 ++++++ 2 files changed, 6 insertions(+), 2 deletions(-)
arch/arm/boot/dts/exynos5422-odroid-core.dtsi +0 -2
@@ -490,8 +490,6 @@ regulator-name = "vdd_vmem"; regulator-min-microvolt = <2850000>; regulator-max-microvolt = <2850000>; - regulator-always-on; - regulator-boot-on; }; }; };
arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi +6 -0
@@ -360,6 +360,12 @@ }; }; +&buck10_reg { + /* Supplies vmmc-supply of mmc_0 */ + regulator-always-on; + regulator-boot-on; +}; + &hdmi { status = "okay"; ddc = <&i2c_2>;
Signature · 1 line
2.17.1
Krzysztof Kozlowski
maintainerPATCH v2 2/4 ARM: dts: exynos: Add regulator suspend configuration to Arndale Octa board
Add the PMIC regulator suspend configuration to Arndale Octa board to reduce power usage during suspend and keep necessary regulators on. The configuration is based on vendor (Insignal) reference kernel and the board datasheet. Comparing to vendor kernel, additionally turn off in suspend all regulators controlled by external pin (LDO3, LDO7, LDO18 and buck10).
This is purely for hardware description because board does not support Suspend to RAM and the S2MPS11 driver does not support "regulator-on-in-suspend" property.
---
Changes since v1:
1. Turn off LDO3, LDO7, LDO18 and buck10. Add comment about LDO3 and buck10.
--- arch/arm/boot/dts/exynos5420-arndale-octa.dts | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+)
arch/arm/boot/dts/exynos5420-arndale-octa.dts +80 -0
@@ -386,6 +386,10 @@ * (Linaro for Arndale Octa, v2012.07). */ regulator-always-on; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; ldo4_reg: LDO4 {
@@ -411,6 +415,10 @@ regulator-name = "PVDD_ANAIP_1V8"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; ldo8_reg: LDO8 {
@@ -451,6 +459,10 @@ regulator-name = "PVDD_APIO_MMCOFF_2V8"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <2800000>; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; ldo14_reg: LDO14 {
@@ -464,12 +476,20 @@ regulator-name = "PVDD_PERI_2V8"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; + + regulator-state-mem { + regulator-on-in-suspend; + }; }; ldo16_reg: LDO16 { regulator-name = "PVDD_PERI_3V3"; regulator-min-microvolt = <2200000>; regulator-max-microvolt = <2200000>; + + regulator-state-mem { + regulator-on-in-suspend; + }; }; ldo17_reg: LDO17 {
@@ -483,12 +503,28 @@ regulator-name = "PVDD_EMMC_1V8"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; + /* + * Must stay in "off" mode during shutdown for + * proper eMMC reset. The "off" mode is in + * fact controlled by LDO18EN. The eMMC does + * not have reset pin connected so the reset + * will be triggered by falling edge of + * LDO18EN. + */ + + regulator-state-mem { + regulator-off-in-suspend; + }; }; ldo19_reg: LDO19 { regulator-name = "PVDD_TFLASH_2V8"; regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; ldo20_reg: LDO20 {
@@ -515,12 +551,20 @@ regulator-min-microvolt = <800000>; regulator-max-microvolt = <1100000>; regulator-always-on; + + regulator-state-mem { + regulator-on-in-suspend; + }; }; ldo24_reg: LDO24 { regulator-name = "PVDD_CAM1_AVDD_2V8"; regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>; + + regulator-state-mem { + regulator-on-in-suspend; + }; }; ldo25_reg: LDO25 {
@@ -540,6 +584,10 @@ regulator-name = "PVDD_G3DS_1V0"; regulator-min-microvolt = <800000>; regulator-max-microvolt = <1100000>; + + regulator-state-mem { + regulator-on-in-suspend; + }; }; ldo28_reg: LDO28 {
@@ -617,6 +665,10 @@ regulator-min-microvolt = <800000>; regulator-max-microvolt = <1300000>; regulator-always-on; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; buck2_reg: BUCK2 {
@@ -624,6 +676,10 @@ regulator-min-microvolt = <800000>; regulator-max-microvolt = <1500000>; regulator-always-on; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; buck3_reg: BUCK3 {
@@ -631,12 +687,20 @@ regulator-min-microvolt = <800000>; regulator-max-microvolt = <1400000>; regulator-always-on; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; buck4_reg: BUCK4 { regulator-name = "PVDD_G3D_1V0"; regulator-min-microvolt = <800000>; regulator-max-microvolt = <1400000>; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; buck5_reg: BUCK5 {
@@ -651,6 +715,10 @@ regulator-min-microvolt = <800000>; regulator-max-microvolt = <1500000>; regulator-always-on; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; buck7_reg: BUCK7 {
@@ -678,6 +746,18 @@ regulator-name = "PVDD_EMMCF_2V8"; regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>; + /* + * Must stay in "off" mode during shutdown for + * proper eMMC reset. The "off" mode is in + * fact controlled by BUCK10EN. The eMMC does + * not have reset pin connected so the reset + * will be triggered by falling edge of + * BUCK10EN. + */ + + regulator-state-mem { + regulator-off-in-suspend; + }; }; }; };
Signature · 1 line
2.17.1
Krzysztof Kozlowski
maintainerPATCH v2 3/4 ARM: dts: exynos: Add regulator suspend configuration to Odroid XU3/XU4/HC1 family
In reply to Krzysztof KozlowskiAdd the PMIC regulator suspend configuration to entire Odroid XU3/XU4/HC1 family of boards to reduce power usage during suspend. The configuration is based on vendor (Hardkernel) reference kernel.
---
Tested on XU3 and HC1 with SD card.
---
Changes since v1:
1. Add Marek's tag.
--- arch/arm/boot/dts/exynos5422-odroid-core.dtsi | 92 +++++++++++++++++++ 1 file changed, 92 insertions(+)
arch/arm/boot/dts/exynos5422-odroid-core.dtsi +92 -0
@@ -177,6 +177,10 @@ regulator-name = "vdd_adc"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; ldo5_reg: LDO5 {
@@ -184,6 +188,10 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; ldo6_reg: LDO6 {
@@ -191,6 +199,10 @@ regulator-min-microvolt = <1000000>; regulator-max-microvolt = <1000000>; regulator-always-on; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; ldo7_reg: LDO7 {
@@ -198,6 +210,10 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; ldo8_reg: LDO8 {
@@ -205,6 +221,10 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; ldo9_reg: LDO9 {
@@ -212,6 +232,10 @@ regulator-min-microvolt = <3000000>; regulator-max-microvolt = <3000000>; regulator-always-on; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; ldo10_reg: LDO10 {
@@ -219,6 +243,10 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; ldo11_reg: LDO11 {
@@ -226,6 +254,10 @@ regulator-min-microvolt = <1000000>; regulator-max-microvolt = <1000000>; regulator-always-on; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; ldo12_reg: LDO12 {
@@ -239,6 +271,10 @@ regulator-name = "vddq_mmc2"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <2800000>; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; ldo14_reg: LDO14 {
@@ -253,6 +289,10 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-always-on; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; ldo16_reg: LDO16 {
@@ -267,18 +307,30 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-always-on; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; ldo18_reg: LDO18 { regulator-name = "vdd_emmc_1V8"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; ldo19_reg: LDO19 { regulator-name = "vdd_sd"; regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; ldo20_reg: LDO20 {
@@ -307,6 +359,10 @@ regulator-min-microvolt = <1100000>; regulator-max-microvolt = <1100000>; regulator-always-on; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; ldo24_reg: LDO24 {
@@ -328,6 +384,10 @@ regulator-name = "vdd_ldo26"; regulator-min-microvolt = <800000>; regulator-max-microvolt = <3950000>; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; ldo27_reg: LDO27 {
@@ -335,6 +395,10 @@ regulator-min-microvolt = <1000000>; regulator-max-microvolt = <1000000>; regulator-always-on; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; ldo28_reg: LDO28 {
@@ -342,6 +406,10 @@ regulator-name = "vdd_ldo28"; regulator-min-microvolt = <800000>; regulator-max-microvolt = <3950000>; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; ldo29_reg: LDO29 {
@@ -420,6 +488,10 @@ regulator-max-microvolt = <1300000>; regulator-always-on; regulator-boot-on; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; buck2_reg: BUCK2 {
@@ -428,6 +500,10 @@ regulator-max-microvolt = <1500000>; regulator-always-on; regulator-boot-on; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; buck3_reg: BUCK3 {
@@ -436,6 +512,10 @@ regulator-max-microvolt = <1400000>; regulator-always-on; regulator-boot-on; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; buck4_reg: BUCK4 {
@@ -444,6 +524,10 @@ regulator-max-microvolt = <1400000>; regulator-always-on; regulator-boot-on; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; buck5_reg: BUCK5 {
@@ -460,6 +544,10 @@ regulator-max-microvolt = <1500000>; regulator-always-on; regulator-boot-on; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; buck7_reg: BUCK7 {
@@ -490,6 +578,10 @@ regulator-name = "vdd_vmem"; regulator-min-microvolt = <2850000>; regulator-max-microvolt = <2850000>; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; }; };
Signature · 1 line
2.17.1
Re: [PATCH v2 3/4] ARM: dts: exynos: Add regulator suspend configuration to Odroid XU3/XU4/HC1 family
Hi Krzysztof,
Thanks for this patch. Please add my
[snip]
Could you integrate below small changes into this patch. with these below changes suspend and resume work correctly at my end.
[1] XU4_suspendresume.patch
As per S2MPS11B PMIC 1.2.1 Regulator (Features)
Fix the min max value for *Buck7* and *Buck8*
-- Buck7 (VDD_1.0V_LDO) 1.5 A (1.2 V to 1.5 V, 12.5 mV step, default on 1.35 V) -- Buck8 (VDD_1.8V_LDO) 2.5 A (1.8 V to 2.1 V, 12.5 mV step, default on 2.0 V)
Also add suspend-off for *Buck9*
Buck9 internally controls the power of USB hub.
Adding suspend the this node help proper reset of USB hub on Odroid XU4 / HC1/ XU3
during suspend and resume. Below it the logs from my testing.
[2] https://pastebin.com/pRJJmWL6
Best Regards
-Anand
[root@archl-xu4e ~]# rtcwake -d /dev/rtc0 -m mem -s 10
rtcwake: assuming RTC uses UTC ...
rtcwake: wakeup from "mem" using /dev/rtc0 at Sun Jun 23 14:29:56 2019
[ 72.707852] PM: suspend entry (deep) [ 72.712727] Filesystems sync: 0.002 seconds [ 72.722108] Freezing user space processes ... (elapsed 0.002 seconds) done. [ 72.730550] OOM killer disabled. [ 72.733462] Freezing remaining freezable tasks ... (elapsed 0.002 seconds) done. [ 72.815847] sd 0:0:0:0: [sda] Synchronizing SCSI cache [ 72.971552] wake enabled for irq 151 [ 73.007942] wake enabled for irq 155 [ 73.128081] samsung-pinctrl 13400000.pinctrl: Setting external wakeup interrupt mask: 0xffffffe7 [ 73.146535] Disabling non-boot CPUs ... [ 73.225374] s3c2410-wdt 101d0000.watchdog: watchdog disabled [ 73.229930] usb usb1: root hub lost power or was reset [ 73.299725] usb usb2: root hub lost power or was reset [ 73.304474] wake disabled for irq 155 [ 73.314064] wake disabled for irq 151 [ 73.331117] exynos-tmu 10060000.tmu: More trip points than supported by this TMU. [ 73.337297] exynos-tmu 10060000.tmu: 2 trip points should be configured in polling mode. [ 73.345343] exynos-tmu 10064000.tmu: More trip points than supported by this TMU. [ 73.352807] exynos-tmu 10064000.tmu: 2 trip points should be configured in polling mode. [ 73.360916] exynos-tmu 10068000.tmu: More trip points than supported by this TMU. [ 73.368295] exynos-tmu 10068000.tmu: 2 trip points should be configured in polling mode. [ 73.376429] exynos-tmu 1006c000.tmu: More trip points than supported by this TMU. [ 73.383742] exynos-tmu 1006c000.tmu: 2 trip points should be configured in polling mode. [ 73.394345] usb usb3: root hub lost power or was reset [ 73.394704] s3c-rtc 101e0000.rtc: rtc disabled, re-enabling [ 73.394840] usb usb5: root hub lost power or was reset [ 73.394864] usb usb6: root hub lost power or was reset [ 73.398063] usb usb4: root hub lost power or was reset [ 73.806876] usb 4-1: reset SuperSpeed Gen 1 USB device number 2 using xhci-hcd [ 73.986504] usb 3-1: reset high-speed USB device number 2 using xhci-hcd [ 74.026814] usb 5-1: reset high-speed USB device number 2 using xhci-hcd [ 74.266364] usb 4-1.1: reset SuperSpeed Gen 1 USB device number 3 using xhci-hcd [ 74.988689] OOM killer enabled. [ 74.990372] Restarting tasks ... done. [ 74.997529] PM: suspend exit [ 75.014009] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 400000Hz, actual 396825HZ div = 63) [root@archl-xu4e ~]# [ 75.243019] mmc_host mmc0: Bus speed (slot 0) = 200000000Hz (slot req 200000000Hz, actual 200000000HZ div = 0) [ 75.255929] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 52000000Hz, actual 50000000HZ div = 0) [ 75.290096] mmc_host mmc0: Bus speed (slot 0) = 400000000Hz (slot req 200000000Hz, actual 200000000HZ div = 1)
[root@archl-xu4e ~]# rtcwake -d /dev/rtc0 -m mem -s 10
rtcwake: assuming RTC uses UTC ...
rtcwake: wakeup from "mem" using /dev/rtc0 at Sun Jun 23 14:30:20 2019
[ 86.308500] PM: suspend entry (deep) [ 86.311962] Filesystems sync: 0.001 seconds [ 86.320781] Freezing user space processes ... (elapsed 0.002 seconds) done. [ 86.328542] OOM killer disabled. [ 86.331644] Freezing remaining freezable tasks ... (elapsed 0.002 seconds) done. [ 86.435700] sd 0:0:0:0: [sda] Synchronizing SCSI cache [ 86.591293] wake enabled for irq 151 [ 86.626989] wake enabled for irq 155 [ 86.747140] samsung-pinctrl 13400000.pinctrl: Setting external wakeup interrupt mask: 0xffffffe7 [ 86.765605] Disabling non-boot CPUs ... [ 86.841073] s3c2410-wdt 101d0000.watchdog: watchdog disabled [ 86.845648] usb usb1: root hub lost power or was reset [ 86.919564] usb usb2: root hub lost power or was reset [ 86.924314] wake disabled for irq 155 [ 86.933852] wake disabled for irq 151 [ 86.950827] exynos-tmu 10060000.tmu: More trip points than supported by this TMU. [ 86.957003] exynos-tmu 10060000.tmu: 2 trip points should be configured in polling mode. [ 86.965055] exynos-tmu 10064000.tmu: More trip points than supported by this TMU. [ 86.972496] exynos-tmu 10064000.tmu: 2 trip points should be configured in polling mode. [ 86.980632] exynos-tmu 10068000.tmu: More trip points than supported by this TMU. [ 86.988014] exynos-tmu 10068000.tmu: 2 trip points should be configured in polling mode. [ 86.996148] exynos-tmu 1006c000.tmu: More trip points than supported by this TMU. [ 87.003452] exynos-tmu 1006c000.tmu: 2 trip points should be configured in polling mode. [ 87.013926] usb usb3: root hub lost power or was reset [ 87.014295] s3c-rtc 101e0000.rtc: rtc disabled, re-enabling [ 87.014473] usb usb5: root hub lost power or was reset [ 87.014498] usb usb6: root hub lost power or was reset [ 87.017644] usb usb4: root hub lost power or was reset [ 87.427075] usb 4-1: reset SuperSpeed Gen 1 USB device number 2 using xhci-hcd [ 87.606386] usb 3-1: reset high-speed USB device number 2 using xhci-hcd [ 87.646461] usb 5-1: reset high-speed USB device number 2 using xhci-hcd [ 87.886242] usb 4-1.1: reset SuperSpeed Gen 1 USB device number 3 using xhci-hcd [ 88.607881] OOM killer enabled. [ 88.609562] Restarting tasks ... done. [ 88.614340] PM: suspend exit [ 88.632953] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 400000Hz, actual 396825HZ div = 63) [root@archl-xu4e ~]# [ 88.896900] mmc_host mmc0: Bus speed (slot 0) = 200000000Hz (slot req 200000000Hz, actual 200000000HZ div = 0) [ 88.912970] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 52000000Hz, actual 50000000HZ div = 0) [ 88.929810] mmc_host mmc0: Bus speed (slot 0) = 400000000Hz (slot req 200000000Hz, actual 200000000HZ div = 1)
[root@archl-xu4e ~]# rtcwake -d /dev/rtc0 -m mem -s 10
rtcwake: assuming RTC uses UTC ...
rtcwake: wakeup from "mem" using /dev/rtc0 at Sun Jun 23 14:30:41 2019
[ 97.024433] PM: suspend entry (deep) [ 97.030395] Filesystems sync: 0.003 seconds [ 97.036715] Freezing user space processes ... (elapsed 0.002 seconds) done. [ 97.044507] OOM killer disabled. [ 97.047753] Freezing remaining freezable tasks ... (elapsed 0.002 seconds) done. [ 97.105552] sd 0:0:0:0: [sda] Synchronizing SCSI cache [ 97.261608] wake enabled for irq 151 [ 97.299424] wake enabled for irq 155 [ 97.415885] samsung-pinctrl 13400000.pinctrl: Setting external wakeup interrupt mask: 0xffffffe7 [ 97.433150] Disabling non-boot CPUs ... [ 97.526880] s3c2410-wdt 101d0000.watchdog: watchdog disabled [ 97.531343] usb usb1: root hub lost power or was reset [ 97.609426] usb usb2: root hub lost power or was reset [ 97.614169] wake disabled for irq 155 [ 97.623676] wake disabled for irq 151 [ 97.640212] exynos-tmu 10060000.tmu: More trip points than supported by this TMU. [ 97.646403] exynos-tmu 10060000.tmu: 2 trip points should be configured in polling mode. [ 97.654436] exynos-tmu 10064000.tmu: More trip points than supported by this TMU. [ 97.661883] exynos-tmu 10064000.tmu: 2 trip points should be configured in polling mode. [ 97.670005] exynos-tmu 10068000.tmu: More trip points than supported by this TMU. [ 97.677395] exynos-tmu 10068000.tmu: 2 trip points should be configured in polling mode. [ 97.685522] exynos-tmu 1006c000.tmu: More trip points than supported by this TMU. [ 97.692834] exynos-tmu 1006c000.tmu: 2 trip points should be configured in polling mode. [ 97.703438] usb usb3: root hub lost power or was reset [ 97.703790] s3c-rtc 101e0000.rtc: rtc disabled, re-enabling [ 97.707156] usb usb4: root hub lost power or was reset [ 97.719084] usb usb5: root hub lost power or was reset [ 97.722931] usb usb6: root hub lost power or was reset [ 98.116558] usb 4-1: reset SuperSpeed Gen 1 USB device number 2 using xhci-hcd [ 98.296240] usb 3-1: reset high-speed USB device number 2 using xhci-hcd [ 98.336318] usb 5-1: reset high-speed USB device number 2 using xhci-hcd [ 98.576097] usb 4-1.1: reset SuperSpeed Gen 1 USB device number 3 using xhci-hcd [ 99.300281] OOM killer enabled. [ 99.301995] Restarting tasks ... done. [ 99.309311] PM: suspend exit [root@archl-xu4e ~]# [ 99.326729] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 400000Hz, actual 396825HZ div = 63) [ 99.563622] mmc_host mmc0: Bus speed (slot 0) = 200000000Hz (slot req 200000000Hz, actual 200000000HZ div = 0) [ 99.577778] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 52000000Hz, actual 50000000HZ div = 0) [ 99.587818] mmc_host mmc0: Bus speed (slot 0) = 400000000Hz (slot req 200000000Hz, actual 200000000HZ div = 1)
[root@archl-xu4e ~]# lsusb -t
/: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=r8152, 480M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/2p, 5000M
|__ Port 1: Dev 3, If 0, Class=Mass Storage, Driver=uas, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/2p, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=exynos-ohci/3p, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=exynos-ehci/3p, 480March/arm/boot/dts/exynos5422-odroid-core.dtsi +7 -3
@@ -552,7 +552,7 @@ buck7_reg: BUCK7 { regulator-name = "vdd_1.0v_ldo"; - regulator-min-microvolt = <800000>; + regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1500000>; regulator-always-on; regulator-boot-on;
@@ -560,8 +560,8 @@ buck8_reg: BUCK8 { regulator-name = "vdd_1.8v_ldo"; - regulator-min-microvolt = <800000>; - regulator-max-microvolt = <2000000>; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2100000>; regulator-always-on; regulator-boot-on; };
@@ -572,6 +572,10 @@ regulator-max-microvolt = <3750000>; regulator-always-on; regulator-boot-on; + + regulator-state-mem { + regulator-off-in-suspend; + }; }; buck10_reg: BUCK10 {
Re: [PATCH v2 3/4] ARM: dts: exynos: Add regulator suspend configuration to Odroid XU3/XU4/HC1 family
Hi Anand,
Quoted 9 lines · Anand Moon
Thanks for this patch. Please add my
Tested-by Anand Moon <[email protected]>[snip]
Could you integrate below small changes into this patch. with these below changes suspend and resume work correctly at my end.
Quoted 7 lines
[1] XU4_suspendresume.patch
As per S2MPS11B PMIC 1.2.1 Regulator (Features)
Fix the min max value for *Buck7* and *Buck8*-- Buck7 (VDD_1.0V_LDO) 1.5 A (1.2 V to 1.5 V, 12.5 mV step, default on 1.35 V) -- Buck8 (VDD_1.8V_LDO) 2.5 A (1.8 V to 2.1 V, 12.5 mV step, default on 2.0 V)
Could you elaborate why such change for Buck7 and Buck8 is needed?
Quoted 5 lines
Also add suspend-off for *Buck9*
Buck9 internally controls the power of USB hub.
Adding suspend the this node help proper reset of USB hub on Odroid XU4 / HC1/ XU3
during suspend and resume. Below it the logs from my testing.
Disabling Buck9 in suspend indeed reduces the power consumed by the board during suspend-to-ram from about 80mA to as little as 7-10mA, what matches the results of OdroidXU3. Thanks for the hint!
Best regards
Signature · 2 lines
Marek Szyprowski, PhD Samsung R&D Institute Poland
Krzysztof Kozlowski
maintainerRe: [PATCH v2 3/4] ARM: dts: exynos: Add regulator suspend configuration to Odroid XU3/XU4/HC1 family
Quoted 15 lines · Marek Szyprowski
Hi Anand,
Quoted 11 lines · Anand Moon
Thanks for this patch. Please add my
Tested-by Anand Moon <[email protected]>[snip]
Could you integrate below small changes into this patch. with these below changes suspend and resume work correctly at my end.
[1] XU4_suspendresume.patch
Quoted 7 lines
Quoted 5 lines
As per S2MPS11B PMIC 1.2.1 Regulator (Features)
Fix the min max value for *Buck7* and *Buck8*-- Buck7 (VDD_1.0V_LDO) 1.5 A (1.2 V to 1.5 V, 12.5 mV step, default on 1.35 V) -- Buck8 (VDD_1.8V_LDO) 2.5 A (1.8 V to 2.1 V, 12.5 mV step, default on 2.0 V)
Could you elaborate why such change for Buck7 and Buck8 is needed?
Anand has here valid point - the constraints in DTS do not match hardware manual. This leads to question whether voltage table in driver is proper... Another point is the voltage itself. The schematics describes them as at specific voltage (1.35 V and 2.0 V) but after boot they are 1.2 V and 1.85 V. Maybe this shift comes from the problem above.
Quoted 10 lines
Quoted 6 lines
Also add suspend-off for *Buck9*
Buck9 internally controls the power of USB hub.
Adding suspend the this node help proper reset of USB hub on Odroid XU4 / HC1/ XU3
during suspend and resume. Below it the logs from my testing.Disabling Buck9 in suspend indeed reduces the power consumed by the board during suspend-to-ram from about 80mA to as little as 7-10mA, what matches the results of OdroidXU3. Thanks for the hint!
Although I did not get what is the difference in the logs (Anand pasted two logs but they look the same) but the power consumption is reason is good enough. I would be happy to put in the changelog entire consumption difference. I can measure it on XU3-Lite but can you give me the XU4 (before and after)?
Best regards,
Krzysztof
Re: [PATCH v2 3/4] ARM: dts: exynos: Add regulator suspend configuration to Odroid XU3/XU4/HC1 family
Hi Krzysztof,
Quoted 31 lines · Krzysztof Kozlowski
Quoted 10 lines · Marek Szyprowski
Quoted 9 lines · Anand Moon
Thanks for this patch. Please add my
Tested-by Anand Moon <[email protected]>[snip]
Could you integrate below small changes into this patch. with these below changes suspend and resume work correctly at my end.
Quoted 8 lines
Quoted 7 lines
[1] XU4_suspendresume.patch
As per S2MPS11B PMIC 1.2.1 Regulator (Features)
Fix the min max value for *Buck7* and *Buck8*-- Buck7 (VDD_1.0V_LDO) 1.5 A (1.2 V to 1.5 V, 12.5 mV step, default on 1.35 V) -- Buck8 (VDD_1.8V_LDO) 2.5 A (1.8 V to 2.1 V, 12.5 mV step, default on 2.0 V)
Could you elaborate why such change for Buck7 and Buck8 is needed?
Anand has here valid point - the constraints in DTS do not match hardware manual. This leads to question whether voltage table in driver is proper... Another point is the voltage itself. The schematics describes them as at specific voltage (1.35 V and 2.0 V) but after boot they are 1.2 V and 1.85 V. Maybe this shift comes from the problem above.
Quoted 5 lines
Quoted 5 lines
Also add suspend-off for *Buck9*
Buck9 internally controls the power of USB hub.
Adding suspend the this node help proper reset of USB hub on Odroid XU4 / HC1/ XU3
during suspend and resume. Below it the logs from my testing.
Quoted 8 lines
Quoted 3 lines
Disabling Buck9 in suspend indeed reduces the power consumed by the board during suspend-to-ram from about 80mA to as little as 7-10mA, what matches the results of OdroidXU3. Thanks for the hint!
Although I did not get what is the difference in the logs (Anand pasted two logs but they look the same) but the power consumption is reason is good enough. I would be happy to put in the changelog entire consumption difference. I can measure it on XU3-Lite but can you give me the XU4 (before and after)?\
HC1:
next-20190620: 120mA (@5V)
this patchset: 72mA (@5V)
this patchset + fixup from Anand: 7-10mA (@5V)
XU4 (SDcard):
next-20190620: 88mA (@5V)
this patchset: 74mA (@5V), sometimes 42mA (@5V) this patchset + fixup from Anand: 6-9mA (@5V)
XU4 (eMMC):
next-20190620: 100mA (@5V)
this patchset: 72mA (@5V), sometimes 41mA (@5V) this patchset + fixup from Anand: 6-9mA (@5V)
Best regards
Signature · 2 lines
Marek Szyprowski, PhD Samsung R&D Institute Poland
Re: [PATCH v2 3/4] ARM: dts: exynos: Add regulator suspend configuration to Odroid XU3/XU4/HC1 family
Hi Marek / Krzysztof,
Quoted 65 lines · Marek Szyprowski
Hi Krzysztof,
Quoted 31 lines · Krzysztof Kozlowski
Quoted 10 lines · Marek Szyprowski
Quoted 9 lines · Anand Moon
Thanks for this patch. Please add my
Tested-by Anand Moon <[email protected]>[snip]
Could you integrate below small changes into this patch. with these below changes suspend and resume work correctly at my end.
Quoted 8 lines
Quoted 7 lines
[1] XU4_suspendresume.patch
As per S2MPS11B PMIC 1.2.1 Regulator (Features)
Fix the min max value for *Buck7* and *Buck8*-- Buck7 (VDD_1.0V_LDO) 1.5 A (1.2 V to 1.5 V, 12.5 mV step, default on 1.35 V) -- Buck8 (VDD_1.8V_LDO) 2.5 A (1.8 V to 2.1 V, 12.5 mV step, default on 2.0 V)
Could you elaborate why such change for Buck7 and Buck8 is needed?
Anand has here valid point - the constraints in DTS do not match hardware manual. This leads to question whether voltage table in driver is proper... Another point is the voltage itself. The schematics describes them as at specific voltage (1.35 V and 2.0 V) but after boot they are 1.2 V and 1.85 V. Maybe this shift comes from the problem above.
Quoted 5 lines
Quoted 5 lines
Also add suspend-off for *Buck9*
Buck9 internally controls the power of USB hub.
Adding suspend the this node help proper reset of USB hub on Odroid XU4 / HC1/ XU3
during suspend and resume. Below it the logs from my testing.Quoted 8 lines
Quoted 3 lines
Disabling Buck9 in suspend indeed reduces the power consumed by the board during suspend-to-ram from about 80mA to as little as 7-10mA, what matches the results of OdroidXU3. Thanks for the hint!
Although I did not get what is the difference in the logs (Anand pasted two logs but they look the same) but the power consumption is reason is good enough. I would be happy to put in the changelog entire consumption difference. I can measure it on XU3-Lite but can you give me the XU4 (before and after)?\
HC1:
next-20190620: 120mA (@5V)
this patchset: 72mA (@5V)
this patchset + fixup from Anand: 7-10mA (@5V)XU4 (SDcard):
next-20190620: 88mA (@5V)
this patchset: 74mA (@5V), sometimes 42mA (@5V) this patchset + fixup from Anand: 6-9mA (@5V)XU4 (eMMC):
next-20190620: 100mA (@5V)
this patchset: 72mA (@5V), sometimes 41mA (@5V) this patchset + fixup from Anand: 6-9mA (@5V)
Quoted 5 lines
Best regards
--
Marek Szyprowski, PhD
Samsung R&D Institute Poland
Thanks for this results.
Best Regards
-Anand
Krzysztof Kozlowski
maintainerPATCH v2 4/4 ARM: dts: exynos: Use proper regulator for eMMC memory on Arndale Octa
In reply to Krzysztof KozlowskiThe eMMC memory is supplied by LDO18 (PVDD_EMMC_1V8) and buck10 (PVDD_EMMCF_2V8), not by LDO10. The LDO10 (PVDD_PRE_1V8) supplies instead VDDP_MMC pin of eMMC host interface and it is already marked as always on.
This change only properly models the hardware and reflects in usage of regulators. There is no functional change because:
1. LDO18 cannot be turned off (e.g. by lack of consumers) because in off mode it is controlled by LDO18EN pin, which is pulled up by always-on regulator LDO2 (PVDD_APIO_1V8).
2. LDO10 is marked as always on so removing its consumer will not have effect.
---
Changes since v1:
1. New patch.
--- arch/arm/boot/dts/exynos5420-arndale-octa.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/exynos5420-arndale-octa.dts +1 -1
@@ -780,7 +780,7 @@ samsung,dw-mshc-ddr-timing = <0 2>; pinctrl-names = "default"; pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8>; - vmmc-supply = <&ldo10_reg>; + vmmc-supply = <&ldo18_reg>; vqmmc-supply = <&ldo3_reg>; bus-width = <8>; cap-mmc-highspeed;
Signature · 1 line
2.17.1