arm: dts: Move am33xx and am43xx mmc nodes to sdhci-omap driver
PATCH v2 1/1 arm: dts: Move am33xx and am43xx mmc nodes to sdhci-omap driver
Move mmc nodes to be compatible with the sdhci-omap driver. The following modifications are required for omap_hsmmc specific properties:
ti,non-removable: convert to the generic mmc non-removable ti,needs-special-reset: co-opted into the sdhci-omap driver ti,dual-volt: removed. Legacy property not used in am335x or am43xx ti,needs-special-hs-handling: removed. Legacy property not used in am335x or am43xx
Also since the sdhci-omap driver does not support runtime PM, explicitly disable the mmc3 instance in the dtsi.
---
v2: Rebased to latest mainline where all kernel dependancies have been merged.
Suspend/Resume is now supported in the sdhci-omap driver.
Tested on: am335x-evm, am335x-boneblack, am335x-sk, am335x-bone, am437x-idk, am43xx-gp-evm, am43xx-epos-evm.
arch/arm/boot/dts/am335x-baltos.dtsi | 2 +- arch/arm/boot/dts/am335x-boneblack-common.dtsi | 1 + arch/arm/boot/dts/am335x-boneblack-wireless.dts | 1 - arch/arm/boot/dts/am335x-boneblue.dts | 1 - arch/arm/boot/dts/am335x-bonegreen-wireless.dts | 1 - arch/arm/boot/dts/am335x-evm.dts | 3 +-- arch/arm/boot/dts/am335x-evmsk.dts | 2 +- arch/arm/boot/dts/am335x-lxm.dts | 2 +- arch/arm/boot/dts/am335x-moxa-uc-2100-common.dtsi | 2 +- arch/arm/boot/dts/am335x-moxa-uc-8100-me-t.dts | 2 +- arch/arm/boot/dts/am335x-pepper.dts | 4 ++-- arch/arm/boot/dts/am335x-phycore-som.dtsi | 2 +- arch/arm/boot/dts/am33xx-l4.dtsi | 6 ++---- arch/arm/boot/dts/am33xx.dtsi | 3 ++- arch/arm/boot/dts/am4372.dtsi | 3 ++- arch/arm/boot/dts/am437x-cm-t43.dts | 2 +- arch/arm/boot/dts/am437x-gp-evm.dts | 4 ++-- arch/arm/boot/dts/am437x-l4.dtsi | 5 ++--- arch/arm/boot/dts/am437x-sk-evm.dts | 2 +- 19 files changed, 22 insertions(+), 26 deletions(-)
arch/arm/boot/dts/am335x-baltos.dtsi +1 -1
@@ -369,7 +369,7 @@ &mmc2 { status = "okay"; vmmc-supply = <&wl12xx_vmmc>; - ti,non-removable; + non-removable; bus-width = <4>; cap-power-off-card; pinctrl-names = "default";
arch/arm/boot/dts/am335x-boneblack-common.dtsi +1 -0
@@ -22,6 +22,7 @@ pinctrl-0 = <&emmc_pins>; bus-width = <8>; status = "okay"; + non-removable; }; &am33xx_pinmux {
arch/arm/boot/dts/am335x-boneblack-wireless.dts +0 -1
@@ -75,7 +75,6 @@ bus-width = <4>; non-removable; cap-power-off-card; - ti,needs-special-hs-handling; keep-power-in-suspend; pinctrl-names = "default"; pinctrl-0 = <&mmc3_pins &wl18xx_pins>;
arch/arm/boot/dts/am335x-boneblue.dts +0 -1
@@ -367,7 +367,6 @@ bus-width = <4>; non-removable; cap-power-off-card; - ti,needs-special-hs-handling; keep-power-in-suspend; pinctrl-names = "default"; pinctrl-0 = <&mmc3_pins &wl18xx_pins>;
arch/arm/boot/dts/am335x-bonegreen-wireless.dts +0 -1
@@ -75,7 +75,6 @@ bus-width = <4>; non-removable; cap-power-off-card; - ti,needs-special-hs-handling; keep-power-in-suspend; pinctrl-names = "default"; pinctrl-0 = <&mmc3_pins &wl18xx_pins>;
arch/arm/boot/dts/am335x-evm.dts +1 -2
@@ -743,8 +743,7 @@ bus-width = <4>; pinctrl-names = "default"; pinctrl-0 = <&mmc3_pins &wlan_pins>; - ti,non-removable; - ti,needs-special-hs-handling; + non-removable; cap-power-off-card; keep-power-in-suspend;
arch/arm/boot/dts/am335x-evmsk.dts +1 -1
@@ -655,7 +655,7 @@ &mmc2 { status = "okay"; vmmc-supply = <&wl12xx_vmmc>; - ti,non-removable; + non-removable; bus-width = <4>; cap-power-off-card; keep-power-in-suspend;
arch/arm/boot/dts/am335x-lxm.dts +1 -1
@@ -339,7 +339,7 @@ pinctrl-0 = <&emmc_pins>; vmmc-supply = <&vmmcsd_fixed>; bus-width = <8>; - ti,non-removable; + non-removable; status = "okay"; };
arch/arm/boot/dts/am335x-moxa-uc-2100-common.dtsi +1 -1
@@ -159,7 +159,7 @@ vmmc-supply = <&vmmcsd_fixed>; bus-width = <8>; pinctrl-0 = <&mmc1_pins_default>; - ti,non-removable; + non-removable; status = "okay"; };
arch/arm/boot/dts/am335x-moxa-uc-8100-me-t.dts +1 -1
@@ -451,7 +451,7 @@ vmmc-supply = <&vmmcsd_fixed>; bus-width = <8>; pinctrl-0 = <&mmc2_pins_default>; - ti,non-removable; + non-removable; status = "okay"; };
arch/arm/boot/dts/am335x-pepper.dts +2 -2
@@ -341,7 +341,7 @@ pinctrl-0 = <&emmc_pins>; vmmc-supply = <&ldo3_reg>; bus-width = <8>; - ti,non-removable; + non-removable; }; &mmc3 {
@@ -351,7 +351,7 @@ pinctrl-0 = <&wireless_pins>; vmmmc-supply = <&v3v3c_reg>; bus-width = <4>; - ti,non-removable; + non-removable; dmas = <&edma_xbar 12 0 1 &edma_xbar 13 0 2>; dma-names = "tx", "rx";
arch/arm/boot/dts/am335x-phycore-som.dtsi +1 -1
@@ -69,7 +69,7 @@ pinctrl-0 = <&emmc_pins>; vmmc-supply = <&vmmc_reg>; bus-width = <8>; - ti,non-removable; + non-removable; status = "disabled"; };
arch/arm/boot/dts/am33xx-l4.dtsi +2 -4
@@ -1337,10 +1337,8 @@ ranges = <0x0 0x60000 0x1000>; mmc1: mmc@0 { - compatible = "ti,omap4-hsmmc"; - ti,dual-volt; + compatible = "ti,am335-sdhci"; ti,needs-special-reset; - ti,needs-special-hs-handling; dmas = <&edma_xbar 24 0 0 &edma_xbar 25 0 0>; dma-names = "tx", "rx";
@@ -1818,7 +1816,7 @@ ranges = <0x0 0xd8000 0x1000>; mmc2: mmc@0 { - compatible = "ti,omap4-hsmmc"; + compatible = "ti,am335-sdhci"; ti,needs-special-reset; dmas = <&edma 2 0 &edma 3 0>;
arch/arm/boot/dts/am33xx.dtsi +2 -1
@@ -322,10 +322,11 @@ ranges = <0x0 0x47810000 0x1000>; mmc3: mmc@0 { - compatible = "ti,omap4-hsmmc"; + compatible = "ti,am335-sdhci"; ti,needs-special-reset; interrupts = <29>; reg = <0x0 0x1000>; + status = "disabled"; }; };
arch/arm/boot/dts/am4372.dtsi +2 -1
@@ -316,10 +316,11 @@ ranges = <0x0 0x47810000 0x1000>; mmc3: mmc@0 { - compatible = "ti,omap4-hsmmc"; + compatible = "ti,am437-sdhci"; ti,needs-special-reset; interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>; reg = <0x0 0x1000>; + status = "disabled"; }; };
arch/arm/boot/dts/am437x-cm-t43.dts +1 -1
@@ -291,7 +291,7 @@ pinctrl-0 = <&emmc_pins>; vmmc-supply = <&vmmc_3v3>; bus-width = <8>; - ti,non-removable; + non-removable; }; &spi0 {
arch/arm/boot/dts/am437x-gp-evm.dts +2 -2
@@ -869,7 +869,7 @@ pinctrl-names = "default", "sleep"; pinctrl-0 = <&emmc_pins_default>; pinctrl-1 = <&emmc_pins_sleep>; - ti,non-removable; + non-removable; }; &mmc3 {
@@ -886,7 +886,7 @@ pinctrl-1 = <&mmc3_pins_sleep>; cap-power-off-card; keep-power-in-suspend; - ti,non-removable; + non-removable; #address-cells = <1>; #size-cells = <0>;
arch/arm/boot/dts/am437x-l4.dtsi +2 -3
@@ -1086,9 +1086,8 @@ ranges = <0x0 0x60000 0x1000>; mmc1: mmc@0 { - compatible = "ti,omap4-hsmmc"; + compatible = "ti,am437-sdhci"; reg = <0x0 0x1000>; - ti,dual-volt; ti,needs-special-reset; dmas = <&edma 24 0>, <&edma 25 0>;
@@ -1601,7 +1600,7 @@ ranges = <0x0 0xd8000 0x1000>; mmc2: mmc@0 { - compatible = "ti,omap4-hsmmc"; + compatible = "ti,am437-sdhci"; reg = <0x0 0x1000>; ti,needs-special-reset; dmas = <&edma 2 0>,
arch/arm/boot/dts/am437x-sk-evm.dts +1 -1
@@ -719,7 +719,7 @@ pinctrl-1 = <&mmc3_pins_sleep>; cap-power-off-card; keep-power-in-suspend; - ti,non-removable; + non-removable; #address-cells = <1>; #size-cells = <0>;
Signature · 1 line
2.17.1
Quoted 12 lines · Faiz Abbas
Move mmc nodes to be compatible with the sdhci-omap driver. The following modifications are required for
omap_hsmmcspecific properties:ti,non-removable: convert to the generic mmc non-removable ti,needs-special-reset: co-opted into the sdhci-omap driver ti,dual-volt: removed. Legacy property not used in am335x or am43xx ti,needs-special-hs-handling: removed. Legacy property not used in am335x or am43xx
Also since the sdhci-omap driver does not support runtime PM, explicitly disable the mmc3 instance in the dtsi.
Quoted 6 lines
Signed-off-by Faiz Abbas <[email protected]>---
v2: Rebased to latest mainline where all kernel dependancies have been merged.
Suspend/Resume is now supported in the sdhci-omap driver.
Great, thanks for updating it.
Keerthy, care to test for am3 and am4?
Regards,
Tony
Quoted 320 lines
Tested on: am335x-evm, am335x-boneblack, am335x-sk, am335x-bone, am437x-idk, am43xx-gp-evm, am43xx-epos-evm.
arch/arm/boot/dts/am335x-baltos.dtsi | 2 +- arch/arm/boot/dts/am335x-boneblack-common.dtsi | 1 + arch/arm/boot/dts/am335x-boneblack-wireless.dts | 1 - arch/arm/boot/dts/am335x-boneblue.dts | 1 - arch/arm/boot/dts/am335x-bonegreen-wireless.dts | 1 - arch/arm/boot/dts/am335x-evm.dts | 3 +-- arch/arm/boot/dts/am335x-evmsk.dts | 2 +- arch/arm/boot/dts/am335x-lxm.dts | 2 +- arch/arm/boot/dts/am335x-moxa-uc-2100-common.dtsi | 2 +- arch/arm/boot/dts/am335x-moxa-uc-8100-me-t.dts | 2 +- arch/arm/boot/dts/am335x-pepper.dts | 4 ++-- arch/arm/boot/dts/am335x-phycore-som.dtsi | 2 +- arch/arm/boot/dts/am33xx-l4.dtsi | 6 ++---- arch/arm/boot/dts/am33xx.dtsi | 3 ++- arch/arm/boot/dts/am4372.dtsi | 3 ++- arch/arm/boot/dts/am437x-cm-t43.dts | 2 +- arch/arm/boot/dts/am437x-gp-evm.dts | 4 ++-- arch/arm/boot/dts/am437x-l4.dtsi | 5 ++--- arch/arm/boot/dts/am437x-sk-evm.dts | 2 +- 19 files changed, 22 insertions(+), 26 deletions(-)arch/arm/boot/dts/am335x-baltos.dtsi +1
-1@@ -369,7 +369,7 @@ &mmc2 { status = "okay"; vmmc-supply = <&wl12xx_vmmc>; - ti,non-removable; + non-removable; bus-width = <4>; cap-power-off-card; pinctrl-names = "default";arch/arm/boot/dts/am335x-boneblack-common.dtsi +1
-0@@ -22,6 +22,7 @@ pinctrl-0 = <&emmc_pins>; bus-width = <8>; status = "okay"; + non-removable; }; &am33xx_pinmux {arch/arm/boot/dts/am335x-boneblack-wireless.dts +0
-1@@ -75,7 +75,6 @@ bus-width = <4>; non-removable; cap-power-off-card; - ti,needs-special-hs-handling; keep-power-in-suspend; pinctrl-names = "default"; pinctrl-0 = <&mmc3_pins &wl18xx_pins>;arch/arm/boot/dts/am335x-boneblue.dts +0
-1@@ -367,7 +367,6 @@ bus-width = <4>; non-removable; cap-power-off-card; - ti,needs-special-hs-handling; keep-power-in-suspend; pinctrl-names = "default"; pinctrl-0 = <&mmc3_pins &wl18xx_pins>;arch/arm/boot/dts/am335x-bonegreen-wireless.dts +0
-1@@ -75,7 +75,6 @@ bus-width = <4>; non-removable; cap-power-off-card; - ti,needs-special-hs-handling; keep-power-in-suspend; pinctrl-names = "default"; pinctrl-0 = <&mmc3_pins &wl18xx_pins>;arch/arm/boot/dts/am335x-evm.dts +1
-2@@ -743,8 +743,7 @@ bus-width = <4>; pinctrl-names = "default"; pinctrl-0 = <&mmc3_pins &wlan_pins>; - ti,non-removable; - ti,needs-special-hs-handling; + non-removable; cap-power-off-card; keep-power-in-suspend;arch/arm/boot/dts/am335x-evmsk.dts +1
-1@@ -655,7 +655,7 @@ &mmc2 { status = "okay"; vmmc-supply = <&wl12xx_vmmc>; - ti,non-removable; + non-removable; bus-width = <4>; cap-power-off-card; keep-power-in-suspend;arch/arm/boot/dts/am335x-lxm.dts +1
-1@@ -339,7 +339,7 @@ pinctrl-0 = <&emmc_pins>; vmmc-supply = <&vmmcsd_fixed>; bus-width = <8>; - ti,non-removable; + non-removable; status = "okay"; };arch/arm/boot/dts/am335x-moxa-uc-2100-common.dtsi +1
-1@@ -159,7 +159,7 @@ vmmc-supply = <&vmmcsd_fixed>; bus-width = <8>; pinctrl-0 = <&mmc1_pins_default>; - ti,non-removable; + non-removable; status = "okay"; };arch/arm/boot/dts/am335x-moxa-uc-8100-me-t.dts +1
-1@@ -451,7 +451,7 @@ vmmc-supply = <&vmmcsd_fixed>; bus-width = <8>; pinctrl-0 = <&mmc2_pins_default>; - ti,non-removable; + non-removable; status = "okay"; };arch/arm/boot/dts/am335x-pepper.dts +2
-2@@ -341,7 +341,7 @@ pinctrl-0 = <&emmc_pins>; vmmc-supply = <&ldo3_reg>; bus-width = <8>; - ti,non-removable; + non-removable; }; &mmc3 {@@ -351,7 +351,7 @@ pinctrl-0 = <&wireless_pins>; vmmmc-supply = <&v3v3c_reg>; bus-width = <4>; - ti,non-removable; + non-removable; dmas = <&edma_xbar 12 0 1 &edma_xbar 13 0 2>; dma-names = "tx", "rx";arch/arm/boot/dts/am335x-phycore-som.dtsi +1
-1@@ -69,7 +69,7 @@ pinctrl-0 = <&emmc_pins>; vmmc-supply = <&vmmc_reg>; bus-width = <8>; - ti,non-removable; + non-removable; status = "disabled"; };arch/arm/boot/dts/am33xx-l4.dtsi +2
-4@@ -1337,10 +1337,8 @@ ranges = <0x0 0x60000 0x1000>; mmc1: mmc@0 { - compatible = "ti,omap4-hsmmc"; - ti,dual-volt; + compatible = "ti,am335-sdhci"; ti,needs-special-reset; - ti,needs-special-hs-handling; dmas = <&edma_xbar 24 0 0 &edma_xbar 25 0 0>; dma-names = "tx", "rx";@@ -1818,7 +1816,7 @@ ranges = <0x0 0xd8000 0x1000>; mmc2: mmc@0 { - compatible = "ti,omap4-hsmmc"; + compatible = "ti,am335-sdhci"; ti,needs-special-reset; dmas = <&edma 2 0 &edma 3 0>;arch/arm/boot/dts/am33xx.dtsi +2
-1@@ -322,10 +322,11 @@ ranges = <0x0 0x47810000 0x1000>; mmc3: mmc@0 { - compatible = "ti,omap4-hsmmc"; + compatible = "ti,am335-sdhci"; ti,needs-special-reset; interrupts = <29>; reg = <0x0 0x1000>; + status = "disabled"; }; };arch/arm/boot/dts/am4372.dtsi +2
-1@@ -316,10 +316,11 @@ ranges = <0x0 0x47810000 0x1000>; mmc3: mmc@0 { - compatible = "ti,omap4-hsmmc"; + compatible = "ti,am437-sdhci"; ti,needs-special-reset; interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>; reg = <0x0 0x1000>; + status = "disabled"; }; };arch/arm/boot/dts/am437x-cm-t43.dts +1
-1@@ -291,7 +291,7 @@ pinctrl-0 = <&emmc_pins>; vmmc-supply = <&vmmc_3v3>; bus-width = <8>; - ti,non-removable; + non-removable; }; &spi0 {arch/arm/boot/dts/am437x-gp-evm.dts +2
-2@@ -869,7 +869,7 @@ pinctrl-names = "default", "sleep"; pinctrl-0 = <&emmc_pins_default>; pinctrl-1 = <&emmc_pins_sleep>; - ti,non-removable; + non-removable; }; &mmc3 {@@ -886,7 +886,7 @@ pinctrl-1 = <&mmc3_pins_sleep>; cap-power-off-card; keep-power-in-suspend; - ti,non-removable; + non-removable; #address-cells = <1>; #size-cells = <0>;arch/arm/boot/dts/am437x-l4.dtsi +2
-3@@ -1086,9 +1086,8 @@ ranges = <0x0 0x60000 0x1000>; mmc1: mmc@0 { - compatible = "ti,omap4-hsmmc"; + compatible = "ti,am437-sdhci"; reg = <0x0 0x1000>; - ti,dual-volt; ti,needs-special-reset; dmas = <&edma 24 0>, <&edma 25 0>;@@ -1601,7 +1600,7 @@ ranges = <0x0 0xd8000 0x1000>; mmc2: mmc@0 { - compatible = "ti,omap4-hsmmc"; + compatible = "ti,am437-sdhci"; reg = <0x0 0x1000>; ti,needs-special-reset; dmas = <&edma 2 0>,arch/arm/boot/dts/am437x-sk-evm.dts +1
-1@@ -719,7 +719,7 @@ pinctrl-1 = <&mmc3_pins_sleep>; cap-power-off-card; keep-power-in-suspend; - ti,non-removable; + non-removable; #address-cells = <1>; #size-cells = <0>;Signature · 1 line
2.17.1
Hi Tony,
Quoted 16 lines · Tony Lindgren
Quoted 15 lines · Faiz Abbas
Move mmc nodes to be compatible with the sdhci-omap driver. The following modifications are required for
omap_hsmmcspecific properties:ti,non-removable: convert to the generic mmc non-removable ti,needs-special-reset: co-opted into the sdhci-omap driver ti,dual-volt: removed. Legacy property not used in am335x or am43xx ti,needs-special-hs-handling: removed. Legacy property not used in am335x or am43xx
Also since the sdhci-omap driver does not support runtime PM, explicitly disable the mmc3 instance in the dtsi.
Signed-off-by Faiz Abbas <[email protected]>---
Quoted 8 lines
Quoted 3 lines
v2: Rebased to latest mainline where all kernel dependancies have been merged.
Suspend/Resume is now supported in the sdhci-omap driver.
Great, thanks for updating it.
Keerthy, care to test for am3 and am4?
Suspend/resume on am43xx-gpevm is broken right now in mainline and the regression looks like it is caused by the display subsystem. I have reported this to Tomi and its being investigated.
Meanwhile I have tested this patch with display configs disabled and Keerthy's suspend/resume tests pass on both am3 and am4.
Thanks,
Faiz
Tony,
Quoted 28 lines · Faiz Abbas
Hi Tony,
Quoted 16 lines · Tony Lindgren
Quoted 15 lines · Faiz Abbas
Move mmc nodes to be compatible with the sdhci-omap driver. The following modifications are required for
omap_hsmmcspecific properties:ti,non-removable: convert to the generic mmc non-removable ti,needs-special-reset: co-opted into the sdhci-omap driver ti,dual-volt: removed. Legacy property not used in am335x or am43xx ti,needs-special-hs-handling: removed. Legacy property not used in am335x or am43xx
Also since the sdhci-omap driver does not support runtime PM, explicitly disable the mmc3 instance in the dtsi.
Signed-off-by Faiz Abbas <[email protected]>---
Quoted 8 lines
Quoted 3 lines
v2: Rebased to latest mainline where all kernel dependancies have been merged.
Suspend/Resume is now supported in the sdhci-omap driver.
Great, thanks for updating it.
Keerthy, care to test for am3 and am4?
Quoted 7 lines
Suspend/resume on am43xx-gpevm is broken right now in mainline and the regression looks like it is caused by the display subsystem. I have reported this to Tomi and its being investigated.
Meanwhile I have tested this patch with display configs disabled and Keerthy's suspend/resume tests pass on both am3 and am4.
Can this patch be picked up? I would really like this to be merged by v5.8
Thanks,
Faiz
Quoted 37 lines · Faiz Abbas
Tony,
Quoted 34 lines · Faiz Abbas
Hi Tony,
Quoted 16 lines · Tony Lindgren
Quoted 15 lines · Faiz Abbas
Move mmc nodes to be compatible with the sdhci-omap driver. The following modifications are required for
omap_hsmmcspecific properties:ti,non-removable: convert to the generic mmc non-removable ti,needs-special-reset: co-opted into the sdhci-omap driver ti,dual-volt: removed. Legacy property not used in am335x or am43xx ti,needs-special-hs-handling: removed. Legacy property not used in am335x or am43xx
Also since the sdhci-omap driver does not support runtime PM, explicitly disable the mmc3 instance in the dtsi.
Signed-off-by Faiz Abbas <[email protected]>---
Quoted 8 lines
Quoted 3 lines
v2: Rebased to latest mainline where all kernel dependancies have been merged.
Suspend/Resume is now supported in the sdhci-omap driver.
Great, thanks for updating it.
Keerthy, care to test for am3 and am4?
Suspend/resume on am43xx-gpevm is broken right now in mainline and the regression looks like it is caused by the display subsystem. I have reported this to Tomi and its being investigated.
Meanwhile I have tested this patch with display configs disabled and Keerthy's suspend/resume tests pass on both am3 and am4.
OK great thanks for checking it. Do you have the display subsystem related commit that broke PM? I'm wondering if my recent DSS platform data removal changes might have caused the regression.
Quoted 1 line
Can this patch be picked up? I would really like this to be merged by v5.8
Yeah me too :) Looks good to me, planning on applying these today.
Thanks,
Tony
(Dropping DT from cc)
Quoted 10 lines · Tony Lindgren
Quoted 6 lines
Quoted 6 lines
Suspend/resume on am43xx-gpevm is broken right now in mainline and the regression looks like it is caused by the display subsystem. I have reported this to Tomi and its being investigated.
Meanwhile I have tested this patch with display configs disabled and Keerthy's suspend/resume tests pass on both am3 and am4.
OK great thanks for checking it. Do you have the display subsystem related commit that broke PM? I'm wondering if my recent DSS platform data removal changes might have caused the regression.
I spent a bit time looking at this, but unfortunately I wasn't even able to resume my AM4 evm from suspend. I tried with rtcwake and with plain console (with no_console_suspend). I did not have DSS loaded.
Anyone have quick hints on how to debug why resume doesn't seem to happen?
Tomi
Signature · 2 lines
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Quoted 11 lines · Tomi Valkeinen
(Dropping DT from cc)
Quoted 7 lines · Tony Lindgren
Quoted 6 lines
Quoted 6 lines
Suspend/resume on am43xx-gpevm is broken right now in mainline and the regression looks like it is caused by the display subsystem. I have reported this to Tomi and its being investigated.
Meanwhile I have tested this patch with display configs disabled and Keerthy's suspend/resume tests pass on both am3 and am4.
Quoted 7 lines
Quoted 3 lines
OK great thanks for checking it. Do you have the display subsystem related commit that broke PM? I'm wondering if my recent DSS platform data removal changes might have caused the regression.
I spent a bit time looking at this, but unfortunately I wasn't even able to resume my AM4 evm from suspend. I tried with rtcwake and with plain console (with
no_console_suspend). I did not have DSS loaded.
My test-bbb-suspend script seems to have:
sudo modprobe wkup_m3_ipc
sudo modprobe pm33xx
sudo modprobe rtc-omap
rtcwake -m mem -s 5
I think the same should work for am437x. But some boards do not support deep sleep like am437x-idk.
Quoted 1 line
Anyone have quick hints on how to debug why resume doesn't seem to happen?
You might get some info with no_console_suspend, but that might also cause other issues.
Regards,
Tony
Quoted 27 lines · Tony Lindgren
Quoted 11 lines · Tomi Valkeinen
(Dropping DT from cc)
Quoted 7 lines · Tony Lindgren
Quoted 6 lines
Quoted 6 lines
Suspend/resume on am43xx-gpevm is broken right now in mainline and the regression looks like it is caused by the display subsystem. I have reported this to Tomi and its being investigated.
Meanwhile I have tested this patch with display configs disabled and Keerthy's suspend/resume tests pass on both am3 and am4.
Quoted 7 lines
Quoted 3 lines
OK great thanks for checking it. Do you have the display subsystem related commit that broke PM? I'm wondering if my recent DSS platform data removal changes might have caused the regression.
I spent a bit time looking at this, but unfortunately I wasn't even able to resume my AM4 evm from suspend. I tried with rtcwake and with plain console (with
no_console_suspend). I did not have DSS loaded.My test-bbb-suspend script seems to have:
sudo modprobe
wkup_m3_ipc
sudo modprobe pm33xx
sudo modprobe rtc-omap
rtcwake -m mem -s 5
Quoted 7 lines
I think the same should work for am437x. But some boards do not support deep sleep like am437x-idk.
Quoted 1 line
Anyone have quick hints on how to debug why resume doesn't seem to happen?
You might get some info with
no_console_suspend, but that might also cause other issues.
To me it seems we may have some dss clock missing with the ti-sysc dts changes that makes resume fail. Or else there is some ordering issue between the dss components now on resume, I'll try to debug more.
Regards,
Tony
Quoted 31 lines · Tony Lindgren
Quoted 30 lines · Tony Lindgren
Quoted 11 lines · Tomi Valkeinen
(Dropping DT from cc)
Quoted 7 lines · Tony Lindgren
Quoted 6 lines
Quoted 6 lines
Suspend/resume on am43xx-gpevm is broken right now in mainline and the regression looks like it is caused by the display subsystem. I have reported this to Tomi and its being investigated.
Meanwhile I have tested this patch with display configs disabled and Keerthy's suspend/resume tests pass on both am3 and am4.
Quoted 7 lines
Quoted 3 lines
OK great thanks for checking it. Do you have the display subsystem related commit that broke PM? I'm wondering if my recent DSS platform data removal changes might have caused the regression.
I spent a bit time looking at this, but unfortunately I wasn't even able to resume my AM4 evm from suspend. I tried with rtcwake and with plain console (with
no_console_suspend). I did not have DSS loaded.My test-bbb-suspend script seems to have:
sudo modprobe
wkup_m3_ipc
sudo modprobe pm33xx
sudo modprobe rtc-omap
rtcwake -m mem -s 5I think the same should work for am437x. But some boards do not support deep sleep like am437x-idk.
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Anyone have quick hints on how to debug why resume doesn't seem to happen?
You might get some info with
no_console_suspend, but that might also cause other issues.To me it seems we may have some dss clock missing with the ti-sysc dts changes that makes resume fail. Or else there is some ordering issue between the dss components now on resume, I'll try to debug more.
Looks like we now set the CLOCKATIVITY bit while earlier we did not set it except for HWMOD_SET_DEFAULT_CLOCKACT cases. I've also found few other minor issues, but I'm still seeing resume fail for DSS. The clock and sysconfig registers look just fine, so getting closer.
Regards,
Tony