From 9fc94c6c35b5f071f5d49aa912a696578d9ce0b1 Mon Sep 17 00:00:00 2001 From: Zhuo Wang Date: Thu, 31 Oct 2019 10:34:05 +0800 Subject: [PATCH] ethernet: switch to gpio when suspend [1/1] PD#SWPL-16033 Problem: save pwr when suspend Solution: switch to gpio when suspend Verify: AB311 Change-Id: I1186263c1fccc82ac4299d95d606d35f5ee7c171 Signed-off-by: Zhuo Wang --- arch/arm/boot/dts/amlogic/tm2_t962e2_ab311.dts | 3 ++- arch/arm/boot/dts/amlogic/tm2_t962e2_ab311_sbr.dts | 3 ++- arch/arm/boot/dts/amlogic/tm2_t962e2_ab319.dts | 3 ++- arch/arm/boot/dts/amlogic/tm2_t962x3_ab301.dts | 3 ++- arch/arm/boot/dts/amlogic/tm2_t962x3_ab309.dts | 3 ++- arch/arm/boot/dts/amlogic/tm2_t962x3_t312.dts | 3 ++- arch/arm64/boot/dts/amlogic/tm2_t962e2_ab311.dts | 3 ++- arch/arm64/boot/dts/amlogic/tm2_t962e2_ab311_sbr.dts | 3 ++- arch/arm64/boot/dts/amlogic/tm2_t962e2_ab319.dts | 3 ++- arch/arm64/boot/dts/amlogic/tm2_t962x3_ab301.dts | 3 ++- arch/arm64/boot/dts/amlogic/tm2_t962x3_ab309.dts | 3 ++- arch/arm64/boot/dts/amlogic/tm2_t962x3_t312.dts | 3 ++- 12 files changed, 24 insertions(+), 12 deletions(-) diff --git a/arch/arm/boot/dts/amlogic/tm2_t962e2_ab311.dts b/arch/arm/boot/dts/amlogic/tm2_t962e2_ab311.dts index d45be81..e193f0e 100644 --- a/arch/arm/boot/dts/amlogic/tm2_t962e2_ab311.dts +++ b/arch/arm/boot/dts/amlogic/tm2_t962e2_ab311.dts @@ -2002,8 +2002,9 @@ ðmac { status = "okay"; - //pinctrl-names = "internal_eth_pins"; + //pinctrl-names = "internal_eth_pins", "internal_gpio_pins"; //pinctrl-0 = <&internal_eth_pins>; + //pinctrl-1 = <&internal_gpio_pins>; mc_val = <0x4be04>; internal_phy=<1>; diff --git a/arch/arm/boot/dts/amlogic/tm2_t962e2_ab311_sbr.dts b/arch/arm/boot/dts/amlogic/tm2_t962e2_ab311_sbr.dts index 0dc7a4f..e3468d2 100644 --- a/arch/arm/boot/dts/amlogic/tm2_t962e2_ab311_sbr.dts +++ b/arch/arm/boot/dts/amlogic/tm2_t962e2_ab311_sbr.dts @@ -2018,8 +2018,9 @@ ðmac { status = "okay"; - //pinctrl-names = "internal_eth_pins"; + //pinctrl-names = "internal_eth_pins", "internal_gpio_pins"; //pinctrl-0 = <&internal_eth_pins>; + //pinctrl-1 = <&internal_gpio_pins>; mc_val = <0x4be04>; internal_phy=<1>; diff --git a/arch/arm/boot/dts/amlogic/tm2_t962e2_ab319.dts b/arch/arm/boot/dts/amlogic/tm2_t962e2_ab319.dts index d09b98e..4772ad2 100644 --- a/arch/arm/boot/dts/amlogic/tm2_t962e2_ab319.dts +++ b/arch/arm/boot/dts/amlogic/tm2_t962e2_ab319.dts @@ -1926,8 +1926,9 @@ ðmac { status = "okay"; - pinctrl-names = "internal_eth_pins"; + pinctrl-names = "internal_eth_pins", "internal_gpio_pins"; pinctrl-0 = <&internal_eth_pins>; + pinctrl-1 = <&internal_gpio_pins>; mc_val = <0x4be04>; internal_phy=<1>; diff --git a/arch/arm/boot/dts/amlogic/tm2_t962x3_ab301.dts b/arch/arm/boot/dts/amlogic/tm2_t962x3_ab301.dts index 2662c20..a2641a3 100644 --- a/arch/arm/boot/dts/amlogic/tm2_t962x3_ab301.dts +++ b/arch/arm/boot/dts/amlogic/tm2_t962x3_ab301.dts @@ -2051,8 +2051,9 @@ ðmac { status = "okay"; - pinctrl-names = "internal_eth_pins"; + pinctrl-names = "internal_eth_pins", "internal_gpio_pins"; pinctrl-0 = <&internal_eth_pins>; + pinctrl-1 = <&internal_gpio_pins>; mc_val = <0x4be04>; internal_phy=<1>; diff --git a/arch/arm/boot/dts/amlogic/tm2_t962x3_ab309.dts b/arch/arm/boot/dts/amlogic/tm2_t962x3_ab309.dts index e453678..6adacf5b 100644 --- a/arch/arm/boot/dts/amlogic/tm2_t962x3_ab309.dts +++ b/arch/arm/boot/dts/amlogic/tm2_t962x3_ab309.dts @@ -1934,8 +1934,9 @@ ðmac { status = "okay"; - pinctrl-names = "internal_eth_pins"; + pinctrl-names = "internal_eth_pins", "internal_gpio_pins"; pinctrl-0 = <&internal_eth_pins>; + pinctrl-1 = <&internal_gpio_pins>; mc_val = <0x4be04>; internal_phy=<1>; diff --git a/arch/arm/boot/dts/amlogic/tm2_t962x3_t312.dts b/arch/arm/boot/dts/amlogic/tm2_t962x3_t312.dts index d67195f..6b4ab29 100644 --- a/arch/arm/boot/dts/amlogic/tm2_t962x3_t312.dts +++ b/arch/arm/boot/dts/amlogic/tm2_t962x3_t312.dts @@ -2012,8 +2012,9 @@ ðmac { status = "okay"; - pinctrl-names = "internal_eth_pins"; + pinctrl-names = "internal_eth_pins", "internal_gpio_pins"; pinctrl-0 = <&internal_eth_pins>; + pinctrl-1 = <&internal_gpio_pins>; mc_val = <0x4be04>; internal_phy=<1>; diff --git a/arch/arm64/boot/dts/amlogic/tm2_t962e2_ab311.dts b/arch/arm64/boot/dts/amlogic/tm2_t962e2_ab311.dts index 49cf6d0..0cb9a0b 100644 --- a/arch/arm64/boot/dts/amlogic/tm2_t962e2_ab311.dts +++ b/arch/arm64/boot/dts/amlogic/tm2_t962e2_ab311.dts @@ -1999,8 +1999,9 @@ ðmac { status = "okay"; - //pinctrl-names = "internal_eth_pins"; + //pinctrl-names = "internal_eth_pins", "internal_gpio_pins"; //pinctrl-0 = <&internal_eth_pins>; + //pinctrl-1 = <&internal_gpio_pins>; mc_val = <0x4be04>; internal_phy=<1>; diff --git a/arch/arm64/boot/dts/amlogic/tm2_t962e2_ab311_sbr.dts b/arch/arm64/boot/dts/amlogic/tm2_t962e2_ab311_sbr.dts index da16f70..c1f0c0d 100644 --- a/arch/arm64/boot/dts/amlogic/tm2_t962e2_ab311_sbr.dts +++ b/arch/arm64/boot/dts/amlogic/tm2_t962e2_ab311_sbr.dts @@ -2014,8 +2014,9 @@ ðmac { status = "okay"; - //pinctrl-names = "internal_eth_pins"; + //pinctrl-names = "internal_eth_pins", "internal_gpio_pins"; //pinctrl-0 = <&internal_eth_pins>; + //pinctrl-1 = <&internal_gpio_pins>; mc_val = <0x4be04>; internal_phy=<1>; diff --git a/arch/arm64/boot/dts/amlogic/tm2_t962e2_ab319.dts b/arch/arm64/boot/dts/amlogic/tm2_t962e2_ab319.dts index f434e18..9b1f474 100644 --- a/arch/arm64/boot/dts/amlogic/tm2_t962e2_ab319.dts +++ b/arch/arm64/boot/dts/amlogic/tm2_t962e2_ab319.dts @@ -1927,8 +1927,9 @@ ðmac { status = "okay"; - pinctrl-names = "internal_eth_pins"; + pinctrl-names = "internal_eth_pins", "internal_gpio_pins"; pinctrl-0 = <&internal_eth_pins>; + pinctrl-1 = <&internal_gpio_pins>; mc_val = <0x4be04>; internal_phy=<1>; diff --git a/arch/arm64/boot/dts/amlogic/tm2_t962x3_ab301.dts b/arch/arm64/boot/dts/amlogic/tm2_t962x3_ab301.dts index 764db88..1ffca1a 100644 --- a/arch/arm64/boot/dts/amlogic/tm2_t962x3_ab301.dts +++ b/arch/arm64/boot/dts/amlogic/tm2_t962x3_ab301.dts @@ -2045,8 +2045,9 @@ ðmac { status = "okay"; - pinctrl-names = "internal_eth_pins"; + pinctrl-names = "internal_eth_pins", "internal_gpio_pins"; pinctrl-0 = <&internal_eth_pins>; + pinctrl-1 = <&internal_gpio_pins>; mc_val = <0x4be04>; internal_phy=<1>; diff --git a/arch/arm64/boot/dts/amlogic/tm2_t962x3_ab309.dts b/arch/arm64/boot/dts/amlogic/tm2_t962x3_ab309.dts index c87929a..d1e8a73 100644 --- a/arch/arm64/boot/dts/amlogic/tm2_t962x3_ab309.dts +++ b/arch/arm64/boot/dts/amlogic/tm2_t962x3_ab309.dts @@ -1934,8 +1934,9 @@ ðmac { status = "okay"; - pinctrl-names = "internal_eth_pins"; + pinctrl-names = "internal_eth_pins", "internal_gpio_pins"; pinctrl-0 = <&internal_eth_pins>; + pinctrl-1 = <&internal_gpio_pins>; mc_val = <0x4be04>; internal_phy=<1>; diff --git a/arch/arm64/boot/dts/amlogic/tm2_t962x3_t312.dts b/arch/arm64/boot/dts/amlogic/tm2_t962x3_t312.dts index 9e2661d..0488474 100644 --- a/arch/arm64/boot/dts/amlogic/tm2_t962x3_t312.dts +++ b/arch/arm64/boot/dts/amlogic/tm2_t962x3_t312.dts @@ -2007,8 +2007,9 @@ ðmac { status = "okay"; - pinctrl-names = "internal_eth_pins"; + pinctrl-names = "internal_eth_pins", "internal_gpio_pins"; pinctrl-0 = <&internal_eth_pins>; + pinctrl-1 = <&internal_gpio_pins>; mc_val = <0x4be04>; internal_phy=<1>; -- 2.7.4