ARM: dts: omap5-uevm: fixup wrong regulator configuration
cover ARM: dts: omap5-uevm: fixup wrong regulator configuration
Due to wrong older revision of documentation used as reference, we seem to have a bunch of LDOs wrongly configured on OMAP5 uEVM. This series is based power tree on production board 750-2628-XXX platform. Unfortunately, the wrong voltages may be detrimental to OMAP5 as they supply hardware blocks at voltages that are out of specification.
Also available at:
based on v3.11-rc1 tag
http link: https://github.com/nmenon/linux-2.6-playground/commits/push/omap5-palmas-fixes
git link: git://github.com/nmenon/linux-2.6-playground.git
branch: push/omap5-palmas-fixes
Tested with https://patchwork.kernel.org/patch/2545061/
+ https://git.kernel.org/cgit/linux/kernel/git/ssantosh/linux.git/log/?h=for_3.11/out_of_tree/omap5_clk_data
Test result: http://pastebin.com/YqASYkXG
Relevant documentation:
- OMAP5 uEVM documentation: https://www.svtronics.com/omap/omap54xx?product_id=33
- OMAP5432 Data Manual: http://www.ti.com/product/OMAP5432
- TWL6037 / OTP information: Currently available only under NDA
Nishanth Menon (9):
ARM: dts: omap5-uevm: document regulator signals used on the actual
board
ARM: dts: omap5-uevm: update SMPS9 settings
ARM: dts: omap5-uevm: update and disable unused regulators LDO[28]
ARM: dts: omap5-uevm: update LDO1 voltage to 1.5V and settings
ARM: dts: omap5-uevm: update LDO3 voltage to 1.5V and settings
ARM: dts: omap5-uevm: update LDO4 voltage to 1.5V and settings
ARM: dts: omap5-uevm: update LDO6 voltage to 1.2V
ARM: dts: omap5-uevm: update LDO7 voltage to 2V and settings
ARM: dts: omap5-uevm: update SDCARD LDO9 and resource REGEN3
arch/arm/boot/dts/omap5-uevm.dts | 78 ++++++++++++++++++++++++-------------- 1 file changed, 49 insertions(+), 29 deletions(-)
Signature · 4 lines
1.7.9.5 Regards, Nishanth Menon
PATCH 1/9 ARM: dts: omap5-uevm: document regulator signals used on the actual board
commit e00c27ef3b4c23e39d0a77b7c8e5be44c28001c7 (ARM: dts: OMAP5: Add Palmas MFD node and regulator nodes) introduced regulator entries for OMAP5uEVM.
However, currently we use the Palmas regulator names which is used for different purposes on uEVM. Document the same based on 750-2628-XXX boards - which is meant to be supported by this dts.
--- arch/arm/boot/dts/omap5-uevm.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
arch/arm/boot/dts/omap5-uevm.dts +18 -0
@@ -282,6 +282,7 @@ regulators { smps123_reg: smps123 { + /* VDD_OPP_MPU */ regulator-name = "smps123"; regulator-min-microvolt = < 600000>; regulator-max-microvolt = <1500000>;
@@ -290,6 +291,7 @@ }; smps45_reg: smps45 { + /* VDD_OPP_MM */ regulator-name = "smps45"; regulator-min-microvolt = < 600000>; regulator-max-microvolt = <1310000>;
@@ -298,6 +300,7 @@ }; smps6_reg: smps6 { + /* VDD_DDR3 - over VDD_SMPS6 */ regulator-name = "smps6"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>;
@@ -306,6 +309,7 @@ }; smps7_reg: smps7 { + /* VDDS_1v8_OMAP over VDDS_1v8_MAIN */ regulator-name = "smps7"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>;
@@ -314,6 +318,7 @@ }; smps8_reg: smps8 { + /* VDD_OPP_CORE */ regulator-name = "smps8"; regulator-min-microvolt = < 600000>; regulator-max-microvolt = <1310000>;
@@ -322,6 +327,7 @@ }; smps9_reg: smps9 { + /* VDDA_2v1_AUD over VDD_2v1 */ regulator-name = "smps9"; regulator-min-microvolt = <2100000>; regulator-max-microvolt = <2100000>;
@@ -331,6 +337,7 @@ }; smps10_reg: smps10 { + /* VBUS_5V_OTG */ regulator-name = "smps10"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
@@ -339,6 +346,7 @@ }; ldo1_reg: ldo1 { + /* VDDAPHY_CAM: vdda_csiport */ regulator-name = "ldo1"; regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>;
@@ -347,6 +355,7 @@ }; ldo2_reg: ldo2 { + /* VCC_2V8_DISP: Does not go anywhere */ regulator-name = "ldo2"; regulator-min-microvolt = <2900000>; regulator-max-microvolt = <2900000>;
@@ -355,6 +364,7 @@ }; ldo3_reg: ldo3 { + /* VDDAPHY_MDM: vdda_lli */ regulator-name = "ldo3"; regulator-min-microvolt = <3000000>; regulator-max-microvolt = <3000000>;
@@ -363,6 +373,7 @@ }; ldo4_reg: ldo4 { + /* VDDAPHY_DISP: vdda_dsiport/hdmi */ regulator-name = "ldo4"; regulator-min-microvolt = <2200000>; regulator-max-microvolt = <2200000>;
@@ -371,6 +382,7 @@ }; ldo5_reg: ldo5 { + /* VDDA_1V8_PHY: usb/sata/hdmi.. */ regulator-name = "ldo5"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>;
@@ -379,6 +391,7 @@ }; ldo6_reg: ldo6 { + /* VDDS_1V2_WKUP: hsic/ldo_emu_wkup */ regulator-name = "ldo6"; regulator-min-microvolt = <1500000>; regulator-max-microvolt = <1500000>;
@@ -387,6 +400,7 @@ }; ldo7_reg: ldo7 { + /* VDD_VPP: vpp1 */ regulator-name = "ldo7"; regulator-min-microvolt = <1500000>; regulator-max-microvolt = <1500000>;
@@ -395,6 +409,7 @@ }; ldo8_reg: ldo8 { + /* VDD_3v0: Does not go anywhere */ regulator-name = "ldo8"; regulator-min-microvolt = <1500000>; regulator-max-microvolt = <1500000>;
@@ -403,6 +418,7 @@ }; ldo9_reg: ldo9 { + /* VCC_DV_SDIO: vdds_sdcard */ regulator-name = "ldo9"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>;
@@ -411,6 +427,7 @@ }; ldoln_reg: ldoln { + /* VDDA_1v8_REF: vdds_osc/mm_l4per.. */ regulator-name = "ldoln"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>;
@@ -419,6 +436,7 @@ }; ldousb_reg: ldousb { + /* VDDA_3V_USB: VDDA_USBHS33 */ regulator-name = "ldousb"; regulator-min-microvolt = <3250000>; regulator-max-microvolt = <3250000>;
Signature · 1 line
1.7.9.5
PATCH 2/9 ARM: dts: omap5-uevm: update SMPS9 settings
In reply to Nishanth Menoncommit e00c27ef3b4c23e39d0a77b7c8e5be44c28001c7 (ARM: dts: OMAP5: Add Palmas MFD node and regulator nodes) introduced regulator entries for OMAP5uEVM.
However, The regulator information is based on an older temporary pre-production board variant and does not reflect production board 750-2628-XXX boards.
SMPS9 supplies TWL6040 over VDDA_2v1_AUD. This regulator needs to be enabled only when audio is active. Since it does not come active by default, it does not require "always-on" or "boot-on".
--- arch/arm/boot/dts/omap5-uevm.dts | 2 -- 1 file changed, 2 deletions(-)
arch/arm/boot/dts/omap5-uevm.dts +0 -2
@@ -331,8 +331,6 @@ regulator-name = "smps9"; regulator-min-microvolt = <2100000>; regulator-max-microvolt = <2100000>; - regulator-always-on; - regulator-boot-on; ti,smps-range = <0x80>; };
Signature · 1 line
1.7.9.5
PATCH 3/9 ARM: dts: omap5-uevm: update and disable unused regulators LDO[28]
In reply to Nishanth Menoncommit e00c27ef3b4c23e39d0a77b7c8e5be44c28001c7 (ARM: dts: OMAP5: Add Palmas MFD node and regulator nodes) introduced regulator entries for OMAP5uEVM.
However, The regulator information is based on an older temporary pre-production board variant and does not reflect production board 750-2628-XXX boards - On production boards, LDO2 and 8 are unused.
LDO2 and LDO8 do not go to any peripheral or connector on the board. Further, these unused regulators should have been 2.8V for LDO2 and 3.0V for LDO8. Mark these LDOs as disabled in the dts until needed.
--- arch/arm/boot/dts/omap5-uevm.dts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-)
arch/arm/boot/dts/omap5-uevm.dts +8 -7
@@ -355,10 +355,10 @@ ldo2_reg: ldo2 { /* VCC_2V8_DISP: Does not go anywhere */ regulator-name = "ldo2"; - regulator-min-microvolt = <2900000>; - regulator-max-microvolt = <2900000>; - regulator-always-on; - regulator-boot-on; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + /* Unused */ + status = "disabled"; }; ldo3_reg: ldo3 {
@@ -409,10 +409,11 @@ ldo8_reg: ldo8 { /* VDD_3v0: Does not go anywhere */ regulator-name = "ldo8"; - regulator-min-microvolt = <1500000>; - regulator-max-microvolt = <1500000>; - regulator-always-on; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; regulator-boot-on; + /* Unused */ + status = "disabled"; }; ldo9_reg: ldo9 {
Signature · 1 line
1.7.9.5
PATCH 4/9 ARM: dts: omap5-uevm: update LDO1 voltage to 1.5V and settings
In reply to Nishanth Menoncommit e00c27ef3b4c23e39d0a77b7c8e5be44c28001c7 (ARM: dts: OMAP5: Add Palmas MFD node and regulator nodes) introduced regulator entries for OMAP5uEVM.
However, The regulator information is based on an older temporary pre-production board variant and does not reflect production board 750-2628-XXX boards.
LDO1 supplies VDDAPHY_CAM which is OMAP5's vdda_csiporta/b/c. This can only be supplied at 1.5V or 1.8V and we currently supply 2.8V.
To prevent any potential device damage risk, use the specified 1.5V-1.8V supply.
Remove 'always-on' and 'boot-on' settings here as it is a 'on need' supply to SoC IP and is not enabled by PMIC by default at boot.
--- arch/arm/boot/dts/omap5-uevm.dts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
arch/arm/boot/dts/omap5-uevm.dts +2 -4
@@ -346,10 +346,8 @@ ldo1_reg: ldo1 { /* VDDAPHY_CAM: vdda_csiport */ regulator-name = "ldo1"; - regulator-min-microvolt = <2800000>; - regulator-max-microvolt = <2800000>; - regulator-always-on; - regulator-boot-on; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <1800000>; }; ldo2_reg: ldo2 {
Signature · 1 line
1.7.9.5
PATCH 5/9 ARM: dts: omap5-uevm: update LDO3 voltage to 1.5V and settings
In reply to Nishanth Menoncommit e00c27ef3b4c23e39d0a77b7c8e5be44c28001c7 (ARM: dts: OMAP5: Add Palmas MFD node and regulator nodes) introduced regulator entries for OMAP5uEVM.
However, The regulator information is based on an older temporary pre-production board variant and does not reflect production board 750-2628-XXX boards.
LDO3 supplies Low Latency Interface(LLI) hardware module which is a special hardware to communicate with Modem. However since uEVM is not setup by default for this communication, this should be disabled by default.
Further, vdda_lli is supposed to be 1.5V and not 3V.
--- arch/arm/boot/dts/omap5-uevm.dts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
arch/arm/boot/dts/omap5-uevm.dts +4 -3
@@ -362,10 +362,11 @@ ldo3_reg: ldo3 { /* VDDAPHY_MDM: vdda_lli */ regulator-name = "ldo3"; - regulator-min-microvolt = <3000000>; - regulator-max-microvolt = <3000000>; - regulator-always-on; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <1500000>; regulator-boot-on; + /* Only if Modem is used */ + status = "disabled"; }; ldo4_reg: ldo4 {
Signature · 1 line
1.7.9.5
PATCH 6/9 ARM: dts: omap5-uevm: update LDO4 voltage to 1.5V and settings
In reply to Nishanth Menoncommit e00c27ef3b4c23e39d0a77b7c8e5be44c28001c7 (ARM: dts: OMAP5: Add Palmas MFD node and regulator nodes) introduced regulator entries for OMAP5uEVM.
However, The regulator information is based on an older temporary pre-production board variant and does not reflect production board 750-2628-XXX boards.
LDO4 supplies VDDAPHY_DISP which is vdda_dsiporta/c/vdda_hdmi
This can only be supplied at 1.5V or 1.8V and we currently supply 2.2V.
To prevent any potential device damage risk, use the specified 1.5V-1.8V supply.
Remove 'always-on' and 'boot-on' settings here as it is a 'on need' supply to SoC IP and is not enabled by PMIC by default at boot.
--- arch/arm/boot/dts/omap5-uevm.dts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
arch/arm/boot/dts/omap5-uevm.dts +2 -4
@@ -372,10 +372,8 @@ ldo4_reg: ldo4 { /* VDDAPHY_DISP: vdda_dsiport/hdmi */ regulator-name = "ldo4"; - regulator-min-microvolt = <2200000>; - regulator-max-microvolt = <2200000>; - regulator-always-on; - regulator-boot-on; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <1800000>; }; ldo5_reg: ldo5 {
Signature · 1 line
1.7.9.5
PATCH 7/9 ARM: dts: omap5-uevm: update LDO6 voltage to 1.2V
In reply to Nishanth Menoncommit e00c27ef3b4c23e39d0a77b7c8e5be44c28001c7 (ARM: dts: OMAP5: Add Palmas MFD node and regulator nodes) introduced regulator entries for OMAP5uEVM.
However, The regulator information is based on an older temporary pre-production board variant and does not reflect production board 750-2628-XXX boards.
LDO6 supplies the board specified VDDS_1V2_WKUP supply going to ldo_emu_wkup/vdds_hsic. To stay within the SoC specification supply 1.2V instead of 1.5V.
--- arch/arm/boot/dts/omap5-uevm.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/omap5-uevm.dts +2 -2
@@ -388,8 +388,8 @@ ldo6_reg: ldo6 { /* VDDS_1V2_WKUP: hsic/ldo_emu_wkup */ regulator-name = "ldo6"; - regulator-min-microvolt = <1500000>; - regulator-max-microvolt = <1500000>; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; regulator-always-on; regulator-boot-on; };
Signature · 1 line
1.7.9.5
PATCH 8/9 ARM: dts: omap5-uevm: update LDO7 voltage to 2V and settings
In reply to Nishanth Menoncommit e00c27ef3b4c23e39d0a77b7c8e5be44c28001c7 (ARM: dts: OMAP5: Add Palmas MFD node and regulator nodes) introduced regulator entries for OMAP5uEVM.
However, The regulator information is based on an older temporary pre-production board variant and does not reflect production board 750-2628-XXX boards.
LDO4 supplies VDD_VPP which is vpp1. This is currently configured for 1.5V which as per data manual "A pulse width of 1000 ns and an amplitude of 2V is required to program each eFuse bit. Otherwise, VPP1 must not be supplied".
So, fix the voltage to 2V. and disable the supply since we have no plans of programming efuse bits - it can only be done once - in factory.
Further it is not enabled by default by PMIC so, 'boot-on' must be removed, and the 'always-on' needs to be removed to achieve pulsing if efuse needs to be programmed.
--- arch/arm/boot/dts/omap5-uevm.dts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm/boot/dts/omap5-uevm.dts +4 -4
@@ -397,10 +397,10 @@ ldo7_reg: ldo7 { /* VDD_VPP: vpp1 */ regulator-name = "ldo7"; - regulator-min-microvolt = <1500000>; - regulator-max-microvolt = <1500000>; - regulator-always-on; - regulator-boot-on; + regulator-min-microvolt = <2000000>; + regulator-max-microvolt = <2000000>; + /* Only for efuse reprograming! */ + status = "disabled"; }; ldo8_reg: ldo8 {
Signature · 1 line
1.7.9.5
PATCH 9/9 ARM: dts: omap5-uevm: update SDCARD LDO9 and resource REGEN3
In reply to Nishanth Menoncommit e00c27ef3b4c23e39d0a77b7c8e5be44c28001c7 (ARM: dts: OMAP5: Add Palmas MFD node and regulator nodes) introduced regulator entries for OMAP5uEVM.
However, The regulator information is based on an older temporary pre-production board variant and does not reflect production board 750-2628-XXX boards.
LDO9 supplies the board specified vdds_sdcard supply going within SoC specification of 1.8V or 3.0V. Further the supply is controlled by switch enabled by REGEN3. So, introduce REGEN3 and map sdcard slot to be powered by LDO9. Remove 'always-on' allowing the LDO to be disabled on need basis.
--- arch/arm/boot/dts/omap5-uevm.dts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
arch/arm/boot/dts/omap5-uevm.dts +9 -3
@@ -235,7 +235,7 @@ }; &mmc1 { - vmmc-supply = <&vmmcsd_fixed>; + vmmc-supply = <&ldo9_reg>; bus-width = <4>; };
@@ -417,8 +417,7 @@ /* VCC_DV_SDIO: vdds_sdcard */ regulator-name = "ldo9"; regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; + regulator-max-microvolt = <3000000>; regulator-boot-on; };
@@ -439,6 +438,13 @@ regulator-always-on; regulator-boot-on; }; + + regen3_reg: regen3 { + /* REGEN3 controls LDO9 supply to card */ + regulator-name = "regen3"; + regulator-always-on; + regulator-boot-on; + }; }; }; };
Signature · 1 line
1.7.9.5
Hi Nishanth,
Quoted 5 lines · Nishanth Menon
Due to wrong older revision of documentation used as reference, we seem to have a bunch of LDOs wrongly configured on OMAP5 uEVM. This series is based power tree on production board 750-2628-XXX platform. Unfortunately, the wrong voltages may be detrimental to OMAP5 as they supply hardware blocks at voltages that are out of specification.
This series looks good to me.
Quoted 27 lines
Also available at:
based on v3.11-rc1 tag
http link: https://github.com/nmenon/linux-2.6-playground/commits/push/omap5-palmas-fixes
git link:git://github.com/nmenon/linux-2.6-playground.git
branch: push/omap5-palmas-fixesTested with https://patchwork.kernel.org/patch/2545061/
+ https://git.kernel.org/cgit/linux/kernel/git/ssantosh/linux.git/log/?h=for_3.11/out_of_tree/omap5_clk_data
Test result: http://pastebin.com/YqASYkXGRelevant documentation:
- OMAP5 uEVM documentation: https://www.svtronics.com/omap/omap54xx?product_id=33
- OMAP5432 Data Manual: http://www.ti.com/product/OMAP5432
- TWL6037 / OTP information: Currently available only under NDANishanth Menon (9):
ARM: dts: omap5-uevm: document regulator signals used on the actual
board
ARM: dts: omap5-uevm: update SMPS9 settings
ARM: dts: omap5-uevm: update and disable unused regulators LDO[28]
ARM: dts: omap5-uevm: update LDO1 voltage to 1.5V and settings
ARM: dts: omap5-uevm: update LDO3 voltage to 1.5V and settings
ARM: dts: omap5-uevm: update LDO4 voltage to 1.5V and settings
ARM: dts: omap5-uevm: update LDO6 voltage to 1.2V
ARM: dts: omap5-uevm: update LDO7 voltage to 2V and settings
ARM: dts: omap5-uevm: update SDCARD LDO9 and resource REGEN3
Quoted 3 lines
arch/arm/boot/dts/omap5-uevm.dts | 78 ++++++++++++++++++++++++-------------- 1 file changed, 49 insertions(+), 29 deletions(-)
Regards,
Keerthy
Quoted 9 lines · Keerthy
Hi Nishanth,
Quoted 5 lines · Nishanth Menon
Due to wrong older revision of documentation used as reference, we seem to have a bunch of LDOs wrongly configured on OMAP5 uEVM. This series is based power tree on production board 750-2628-XXX platform. Unfortunately, the wrong voltages may be detrimental to OMAP5 as they supply hardware blocks at voltages that are out of specification.
Quoted 3 lines
This series looks good to me.
Acked-by J Keerthy <[email protected]>
Tony, Benoit - this series could prevent OMAP5 from being damaged on uEVMs with current 3.11 rc - could you suggest what we need to do to get it in?
Signature · 2 lines
Regards, Nishanth Menon
Hi Nishanth,
Quoted 10 lines · Nishanth Menon
Quoted 9 lines · Keerthy
Hi Nishanth,
Quoted 5 lines · Nishanth Menon
Due to wrong older revision of documentation used as reference, we seem to have a bunch of LDOs wrongly configured on OMAP5 uEVM. This series is based power tree on production board 750-2628-XXX platform. Unfortunately, the wrong voltages may be detrimental to OMAP5 as they supply hardware blocks at voltages that are out of specification.
Quoted 7 lines
Quoted 3 lines
This series looks good to me.
Acked-by J Keerthy <[email protected]>Tony, Benoit - this series could prevent OMAP5 from being damaged on uEVMs with current 3.11 rc - could you suggest what we need to do to get it in?
I'm still on vacation with no way to pull any patch... but I can still comment on the series quickly.
It seems to me that this series contains some real fixes that might damage the board due to hihest voltage than expected and some which are just improvement like for the SMPS9 or LDO[28]. In theory they should no go necesseraly to -rc, but, I guess that's fine for that one.
All the "fixes" are sharing more than 50% of the changelog content with only 2 changes in the code, so you'd better squash them into one patch to avoid repeating the same thing again and again.
Beside that, I will ack the updated one to allow Tony to push them ASAP.
Regards,
Benoit
Quoted 15 lines · Benoit Cousson
Hi Nishanth,
Quoted 12 lines · Nishanth Menon
Quoted 11 lines · Keerthy
Hi Nishanth,
Quoted 5 lines · Nishanth Menon
Due to wrong older revision of documentation used as reference, we seem to have a bunch of LDOs wrongly configured on OMAP5 uEVM. This series is based power tree on production board 750-2628-XXX platform. Unfortunately, the wrong voltages may be detrimental to OMAP5 as they supply hardware blocks at voltages that are out of specification.
This series looks good to me.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Acked-by J Keerthy <[email protected]>Tony, Benoit - this series could prevent OMAP5 from being damaged on uEVMs with current 3.11 rc - could you suggest what we need to do to get it in?
I'm still on vacation with no way to pull any patch... but I can still comment on the series quickly.
Thanks for responding while on vacation.
Quoted 10 lines
It seems to me that this series contains some real fixes that might damage the board due to hihest voltage than expected and some which are just improvement like for the SMPS9 or LDO[28]. In theory they should no go necesseraly to -rc, but, I guess that's fine for that one.
All the "fixes" are sharing more than 50% of the changelog content with only 2 changes in the code, so you'd better squash them into one patch to avoid repeating the same thing again and again.
Reason for keeping them separate was to allow any future git bisect to narrow down to precise patch.
<--->
ARM: dts: omap5-uevm: update SMPS9 settings
ARM: dts: omap5-uevm: update and disable unused regulators LDO[28]
ARM: dts: omap5-uevm: update LDO1 voltage to 1.5V and settings
ARM: dts: omap5-uevm: update LDO3 voltage to 1.5V and settings
ARM: dts: omap5-uevm: update LDO4 voltage to 1.5V and settings
ARM: dts: omap5-uevm: update LDO6 voltage to 1.2V
ARM: dts: omap5-uevm: update LDO7 voltage to 2V and settings
ARM: dts: omap5-uevm: update SDCARD LDO9 and resource REGEN3
<---->
Would you have suggestions on what to squash up?
Signature · 2 lines
Regards, Nishanth Menon
Quoted 4 lines · Benoit Cousson
2013/7/29 Nishanth Menon <nm at ti.com <mailto:[email protected]>>
Well you're lucky I'm now in an area with Wifi and 3G access... last week it whould have been impossible to receive it :-)
hehe :)
Quoted 11 lines
Quoted 10 lines
All the "fixes" are sharing more than 50% of the changelog content with
only 2 changes in the code, so you'd better squash them into one patch
to avoid repeating the same thing again and again.Reason for keeping them separate was to allow any future git bisect to narrow down to precise patch.
<--->Mmm, why? Do you expect some settings to not work or generate crash?
It has worked with a backport to full fledged OS on top and I do not expect it to fail, however, I am never sure about how the future issues look like :)
Quoted 10 lines
ARM: dts: omap5-uevm: update SMPS9 settings
ARM: dts: omap5-uevm: update and disable unused regulators LDO[28]
ARM: dts: omap5-uevm: update LDO1 voltage to 1.5V and settings
ARM: dts: omap5-uevm: update LDO3 voltage to 1.5V and settings
ARM: dts: omap5-uevm: update LDO4 voltage to 1.5V and settings
ARM: dts: omap5-uevm: update LDO6 voltage to 1.2V
ARM: dts: omap5-uevm: update LDO7 voltage to 2V and settings
ARM: dts: omap5-uevm: update SDCARD LDO9 and resource REGEN3
<---->
Quoted 8 lines
Would you have suggestions on what to squash up?
I guess one patch for all the mandatory fixes, and another one with the improvements should be good enough.
Does that sounds OK to you?
patch #1 ARM: dts: omap5-uevm: document regulator signals used on the actual board
-> as is, since it is a documentation patch
Patch #2: ARM: dts: omap5-uevm: fix regulator configurations mandatory for SoC
squash of:
-> ARM: dts: omap5-uevm: update LDO1 voltage to 1.5V and settings -> ARM: dts: omap5-uevm: update LDO3 voltage to 1.5V and settings -> ARM: dts: omap5-uevm: update LDO4 voltage to 1.5V and settings -> ARM: dts: omap5-uevm: update LDO6 voltage to 1.2V
-> ARM: dts: omap5-uevm: update LDO7 voltage to 2V and settings -> ARM: dts: omap5-uevm: update SDCARD LDO9 and resource REGEN3
Patch #3: ARM: dts: omap5-uevm: update optional regulator configurations squash of:
-> ARM: dts: omap5-uevm: update SMPS9 settings
-> ARM: dts: omap5-uevm: update and disable unused regulators LDO[28]
Does that sound fine?
Signature · 2 lines
Regards, Nishanth Menon
v2 cover ARM: dts: omap5-uevm: fixup wrong regulator configuration
Due to wrong older revision of documentation used as reference, we seem to have a bunch of LDOs wrongly configured on OMAP5 uEVM. This series is based power tree on production board 750-2628-XXX platform. Unfortunately, the wrong voltages may be detrimental to OMAP5 as they supply hardware blocks at voltages that are out of specification.
Also available at:
based on v3.11-rc1 tag
http link: https://github.com/nmenon/linux-2.6-playground/commits/push/omap5-palmas-fixes-v2
git link: git://github.com/nmenon/linux-2.6-playground.git
branch: push/omap5-palmas-fixes-v2
Changes since V1:
- squash of patches
- picked up Ack from Keerthy
- based on v3.11-rc3 tag
V1: http://marc.info/?t=137407980100008&r=1&w=2
Nishanth Menon (3):
ARM: dts: omap5-uevm: document regulator signals used on the actual
board
ARM: dts: omap5-uevm: fix regulator configurations mandatory for SoC
ARM: dts: omap5-uevm: update optional/unused regulator configurations
arch/arm/boot/dts/omap5-uevm.dts | 78 ++++++++++++++++++++++++-------------- 1 file changed, 49 insertions(+), 29 deletions(-)
Regards,
Nishanth Menon
Signature · 1 line
1.7.9.5
PATCH v2 1/3 ARM: dts: omap5-uevm: document regulator signals used on the actual board
commit e00c27ef3b4c23e39d0a77b7c8e5be44c28001c7 (ARM: dts: OMAP5: Add Palmas MFD node and regulator nodes) introduced regulator entries for OMAP5uEVM.
However, currently we use the Palmas regulator names which is used for different purposes on uEVM. Document the same based on 750-2628-XXX boards - which is meant to be supported by this dts.
---
V2: no change
V1: https://patchwork.kernel.org/patch/2828862/
arch/arm/boot/dts/omap5-uevm.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
arch/arm/boot/dts/omap5-uevm.dts +18 -0
@@ -282,6 +282,7 @@ regulators { smps123_reg: smps123 { + /* VDD_OPP_MPU */ regulator-name = "smps123"; regulator-min-microvolt = < 600000>; regulator-max-microvolt = <1500000>;
@@ -290,6 +291,7 @@ }; smps45_reg: smps45 { + /* VDD_OPP_MM */ regulator-name = "smps45"; regulator-min-microvolt = < 600000>; regulator-max-microvolt = <1310000>;
@@ -298,6 +300,7 @@ }; smps6_reg: smps6 { + /* VDD_DDR3 - over VDD_SMPS6 */ regulator-name = "smps6"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>;
@@ -306,6 +309,7 @@ }; smps7_reg: smps7 { + /* VDDS_1v8_OMAP over VDDS_1v8_MAIN */ regulator-name = "smps7"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>;
@@ -314,6 +318,7 @@ }; smps8_reg: smps8 { + /* VDD_OPP_CORE */ regulator-name = "smps8"; regulator-min-microvolt = < 600000>; regulator-max-microvolt = <1310000>;
@@ -322,6 +327,7 @@ }; smps9_reg: smps9 { + /* VDDA_2v1_AUD over VDD_2v1 */ regulator-name = "smps9"; regulator-min-microvolt = <2100000>; regulator-max-microvolt = <2100000>;
@@ -331,6 +337,7 @@ }; smps10_reg: smps10 { + /* VBUS_5V_OTG */ regulator-name = "smps10"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
@@ -339,6 +346,7 @@ }; ldo1_reg: ldo1 { + /* VDDAPHY_CAM: vdda_csiport */ regulator-name = "ldo1"; regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>;
@@ -347,6 +355,7 @@ }; ldo2_reg: ldo2 { + /* VCC_2V8_DISP: Does not go anywhere */ regulator-name = "ldo2"; regulator-min-microvolt = <2900000>; regulator-max-microvolt = <2900000>;
@@ -355,6 +364,7 @@ }; ldo3_reg: ldo3 { + /* VDDAPHY_MDM: vdda_lli */ regulator-name = "ldo3"; regulator-min-microvolt = <3000000>; regulator-max-microvolt = <3000000>;
@@ -363,6 +373,7 @@ }; ldo4_reg: ldo4 { + /* VDDAPHY_DISP: vdda_dsiport/hdmi */ regulator-name = "ldo4"; regulator-min-microvolt = <2200000>; regulator-max-microvolt = <2200000>;
@@ -371,6 +382,7 @@ }; ldo5_reg: ldo5 { + /* VDDA_1V8_PHY: usb/sata/hdmi.. */ regulator-name = "ldo5"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>;
@@ -379,6 +391,7 @@ }; ldo6_reg: ldo6 { + /* VDDS_1V2_WKUP: hsic/ldo_emu_wkup */ regulator-name = "ldo6"; regulator-min-microvolt = <1500000>; regulator-max-microvolt = <1500000>;
@@ -387,6 +400,7 @@ }; ldo7_reg: ldo7 { + /* VDD_VPP: vpp1 */ regulator-name = "ldo7"; regulator-min-microvolt = <1500000>; regulator-max-microvolt = <1500000>;
@@ -395,6 +409,7 @@ }; ldo8_reg: ldo8 { + /* VDD_3v0: Does not go anywhere */ regulator-name = "ldo8"; regulator-min-microvolt = <1500000>; regulator-max-microvolt = <1500000>;
@@ -403,6 +418,7 @@ }; ldo9_reg: ldo9 { + /* VCC_DV_SDIO: vdds_sdcard */ regulator-name = "ldo9"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>;
@@ -411,6 +427,7 @@ }; ldoln_reg: ldoln { + /* VDDA_1v8_REF: vdds_osc/mm_l4per.. */ regulator-name = "ldoln"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>;
@@ -419,6 +436,7 @@ }; ldousb_reg: ldousb { + /* VDDA_3V_USB: VDDA_USBHS33 */ regulator-name = "ldousb"; regulator-min-microvolt = <3250000>; regulator-max-microvolt = <3250000>;
Signature · 1 line
1.7.9.5
PATCH v2 2/3 ARM: dts: omap5-uevm: fix regulator configurations mandatory for SoC
In reply to Nishanth Menoncommit e00c27ef3b4c23e39d0a77b7c8e5be44c28001c7 (ARM: dts: OMAP5: Add Palmas MFD node and regulator nodes) introduced regulator entries for OMAP5uEVM.
However, The regulator information is based on an older temporary pre-production board variant and does not reflect production board 750-2628-XXX boards.
The following fixes are hence mandatory to ensure right voltage is supplied to key OMAP5 SoC voltage rails:
- LDO1 supplies VDDAPHY_CAM which is OMAP5's vdda_csiporta/b/c. This can only be supplied at 1.5V or 1.8V and we currently supply 2.8V.
To prevent any potential device damage risk, use the specified 1.5V-1.8V supply.
Remove 'always-on' and 'boot-on' settings here as it is a 'on need' supply to SoC IP and is not enabled by PMIC by default at boot.
- LDO3 supplies Low Latency Interface(LLI) hardware module which is a special hardware to communicate with Modem. However since uEVM is not setup by default for this communication, this should be disabled by default.
Further, vdda_lli is supposed to be 1.5V and not 3V.
- LDO4 supplies VDDAPHY_DISP which is vdda_dsiporta/c/vdda_hdmi
This can only be supplied at 1.5V or 1.8V and we currently supply 2.2V.
To prevent any potential device damage risk, use the specified 1.5V-1.8V supply.
Remove 'always-on' and 'boot-on' settings here as it is a 'on need' supply to SoC IP and is not enabled by PMIC by default at boot.
- LDO6 supplies the board specified VDDS_1V2_WKUP supply going to ldo_emu_wkup/vdds_hsic. To stay within the SoC specification supply 1.2V instead of 1.5V.
- LDO7 supplies VDD_VPP which is vpp1. This is currently configured for 1.5V which as per data manual "A pulse width of 1000 ns and an amplitude of 2V is required to program each eFuse bit. Otherwise, VPP1 must not be supplied".
So, fix the voltage to 2V. and disable the supply since we have no plans of programming efuse bits - it can only be done once - in factory.
Further it is not enabled by default by PMIC so, 'boot-on' must be removed, and the 'always-on' needs to be removed to achieve pulsing if efuse needs to be programmed.
- LDO9 supplies the board specified vdds_sdcard supply going within SoC specification of 1.8V or 3.0V. Further the supply is controlled by switch enabled by REGEN3. So, introduce REGEN3 and map sdcard slot to be powered by LDO9. Remove 'always-on' allowing the LDO to be disabled on need basis.
---
V2: squash of multiple patches from V1, as suggested in:
http://marc.info/?l=devicetree&m=137510852731656&w=2
arch/arm/boot/dts/omap5-uevm.dts | 43 ++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 20 deletions(-)
arch/arm/boot/dts/omap5-uevm.dts +23 -20
@@ -235,7 +235,7 @@ }; &mmc1 { - vmmc-supply = <&vmmcsd_fixed>; + vmmc-supply = <&ldo9_reg>; bus-width = <4>; };
@@ -348,10 +348,8 @@ ldo1_reg: ldo1 { /* VDDAPHY_CAM: vdda_csiport */ regulator-name = "ldo1"; - regulator-min-microvolt = <2800000>; - regulator-max-microvolt = <2800000>; - regulator-always-on; - regulator-boot-on; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <1800000>; }; ldo2_reg: ldo2 {
@@ -366,19 +364,18 @@ ldo3_reg: ldo3 { /* VDDAPHY_MDM: vdda_lli */ regulator-name = "ldo3"; - regulator-min-microvolt = <3000000>; - regulator-max-microvolt = <3000000>; - regulator-always-on; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <1500000>; regulator-boot-on; + /* Only if Modem is used */ + status = "disabled"; }; ldo4_reg: ldo4 { /* VDDAPHY_DISP: vdda_dsiport/hdmi */ regulator-name = "ldo4"; - regulator-min-microvolt = <2200000>; - regulator-max-microvolt = <2200000>; - regulator-always-on; - regulator-boot-on; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <1800000>; }; ldo5_reg: ldo5 {
@@ -393,8 +390,8 @@ ldo6_reg: ldo6 { /* VDDS_1V2_WKUP: hsic/ldo_emu_wkup */ regulator-name = "ldo6"; - regulator-min-microvolt = <1500000>; - regulator-max-microvolt = <1500000>; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; regulator-always-on; regulator-boot-on; };
@@ -402,10 +399,10 @@ ldo7_reg: ldo7 { /* VDD_VPP: vpp1 */ regulator-name = "ldo7"; - regulator-min-microvolt = <1500000>; - regulator-max-microvolt = <1500000>; - regulator-always-on; - regulator-boot-on; + regulator-min-microvolt = <2000000>; + regulator-max-microvolt = <2000000>; + /* Only for efuse reprograming! */ + status = "disabled"; }; ldo8_reg: ldo8 {
@@ -421,8 +418,7 @@ /* VCC_DV_SDIO: vdds_sdcard */ regulator-name = "ldo9"; regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; + regulator-max-microvolt = <3000000>; regulator-boot-on; };
@@ -443,6 +439,13 @@ regulator-always-on; regulator-boot-on; }; + + regen3_reg: regen3 { + /* REGEN3 controls LDO9 supply to card */ + regulator-name = "regen3"; + regulator-always-on; + regulator-boot-on; + }; }; }; };
Signature · 1 line
1.7.9.5
PATCH v2 3/3 ARM: dts: omap5-uevm: update optional/unused regulator configurations
In reply to Nishanth Menoncommit e00c27ef3b4c23e39d0a77b7c8e5be44c28001c7 (ARM: dts: OMAP5: Add Palmas MFD node and regulator nodes) introduced regulator entries for OMAP5uEVM.
However, The regulator information is based on an older temporary pre-production board variant and does not reflect production board 750-2628-XXX boards.
The following optional/unused regulators can be updated:
- SMPS9 supplies TWL6040 over VDDA_2v1_AUD. This regulator needs to be enabled only when audio is active. Since it does not come active by default, it does not require "always-on" or "boot-on".
- LDO2 and LDO8 do not go to any peripheral or connector on the board. Further, these unused regulators should have been 2.8V for LDO2 and 3.0V for LDO8. Mark these LDOs as disabled in the dts until needed.
---
V2: squash of multiple patches from V1, as suggested in:
http://marc.info/?l=devicetree&m=137510852731656&w=2
arch/arm/boot/dts/omap5-uevm.dts | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-)
arch/arm/boot/dts/omap5-uevm.dts +8 -9
@@ -331,8 +331,6 @@ regulator-name = "smps9"; regulator-min-microvolt = <2100000>; regulator-max-microvolt = <2100000>; - regulator-always-on; - regulator-boot-on; ti,smps-range = <0x80>; };
@@ -355,10 +353,10 @@ ldo2_reg: ldo2 { /* VCC_2V8_DISP: Does not go anywhere */ regulator-name = "ldo2"; - regulator-min-microvolt = <2900000>; - regulator-max-microvolt = <2900000>; - regulator-always-on; - regulator-boot-on; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + /* Unused */ + status = "disabled"; }; ldo3_reg: ldo3 {
@@ -408,10 +406,11 @@ ldo8_reg: ldo8 { /* VDD_3v0: Does not go anywhere */ regulator-name = "ldo8"; - regulator-min-microvolt = <1500000>; - regulator-max-microvolt = <1500000>; - regulator-always-on; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; regulator-boot-on; + /* Unused */ + status = "disabled"; }; ldo9_reg: ldo9 {
Signature · 1 line
1.7.9.5
Hi Nishanth,
Thanks for the quick update.
Quoted 25 lines · Nishanth Menon
Due to wrong older revision of documentation used as reference, we seem to have a bunch of LDOs wrongly configured on OMAP5 uEVM. This series is based power tree on production board 750-2628-XXX platform. Unfortunately, the wrong voltages may be detrimental to OMAP5 as they supply hardware blocks at voltages that are out of specification.
Also available at:
based on v3.11-rc1 tag
http link: https://github.com/nmenon/linux-2.6-playground/commits/push/omap5-palmas-fixes-v2
git link:git://github.com/nmenon/linux-2.6-playground.git
branch: push/omap5-palmas-fixes-v2Changes since V1:
- squash of patches
- picked up Ack from Keerthy
- based on v3.11-rc3 tagV1: http://marc.info/?t=137407980100008&r=1&w=2
Nishanth Menon (3):
ARM: dts: omap5-uevm: document regulator signals used on the actual
board
ARM: dts: omap5-uevm: fix regulator configurations mandatory for SoC
ARM: dts: omap5-uevm: update optional/unused regulator configurations
Quoted 5 lines
arch/arm/boot/dts/omap5-uevm.dts | 78 ++++++++++++++++++++++++-------------- 1 file changed, 49 insertions(+), 29 deletions(-)Regards,
Nishanth Menon
For the whole series:
Quoted 33 lines · Benoit Cousson
Hi Nishanth,
Thanks for the quick update.
Quoted 28 lines · Nishanth Menon
Due to wrong older revision of documentation used as reference, we seem to have a bunch of LDOs wrongly configured on OMAP5 uEVM. This series is based power tree on production board 750-2628-XXX platform. Unfortunately, the wrong voltages may be detrimental to OMAP5 as they supply hardware blocks at voltages that are out of specification.
Also available at:
based on v3.11-rc1 tag
http link: https://github.com/nmenon/linux-2.6-playground/commits/push/omap5-palmas-fixes-v2
git link:git://github.com/nmenon/linux-2.6-playground.git
branch: push/omap5-palmas-fixes-v2Changes since V1:
- squash of patches
- picked up Ack from Keerthy
- based on v3.11-rc3 tagV1: http://marc.info/?t=137407980100008&r=1&w=2
Nishanth Menon (3):
ARM: dts: omap5-uevm: document regulator signals used on the actual
board
ARM: dts: omap5-uevm: fix regulator configurations mandatory for SoC
ARM: dts: omap5-uevm: update optional/unused regulator configurationsarch/arm/boot/dts/omap5-uevm.dts | 78 ++++++++++++++++++++++++-------------- 1 file changed, 49 insertions(+), 29 deletions(-)
Quoted 6 lines
Quoted 2 lines
Regards,
Nishanth MenonFor the whole series:
Acked-by Benoit Cousson <[email protected]>
Thanks, I've applied these into omap-for-v3.11/fixes-omap5 and will send a pull request for these today as these seem quite urgent fixes.
Regards,
Tony
Quoted 33 lines · Tony Lindgren
Quoted 32 lines · Benoit Cousson
Quoted 30 lines · Nishanth Menon
Due to wrong older revision of documentation used as reference, we seem to have a bunch of LDOs wrongly configured on OMAP5 uEVM. This series is based power tree on production board 750-2628-XXX platform. Unfortunately, the wrong voltages may be detrimental to OMAP5 as they supply hardware blocks at voltages that are out of specification.
Also available at:
based on v3.11-rc1 tag
http link: https://github.com/nmenon/linux-2.6-playground/commits/push/omap5-palmas-fixes-v2
git link:git://github.com/nmenon/linux-2.6-playground.git
branch: push/omap5-palmas-fixes-v2Changes since V1:
- squash of patches
- picked up Ack from Keerthy
- based on v3.11-rc3 tagV1: http://marc.info/?t=137407980100008&r=1&w=2
Nishanth Menon (3):
ARM: dts: omap5-uevm: document regulator signals used on the actual
board
ARM: dts: omap5-uevm: fix regulator configurations mandatory for SoC
ARM: dts: omap5-uevm: update optional/unused regulator configurationsarch/arm/boot/dts/omap5-uevm.dts | 78 ++++++++++++++++++++++++-------------- 1 file changed, 49 insertions(+), 29 deletions(-)Regards,
Nishanth Menon
Quoted 7 lines
Quoted 3 lines
For the whole series:
Acked-by Benoit Cousson <[email protected]>Thanks, I've applied these into omap-for-v3.11/fixes-omap5 and will send a pull request for these today as these seem quite urgent fixes.
yes they are. thanks for picking these up and the reviews.
Regards,
Nishanth Menon