ARM: dts: ZII: Disable HW Ethernet switch reset GPIO
PATCH 1/1 ARM: dts: ZII: Disable HW Ethernet switch reset GPIO
Disable Ethernet switch reset GPIO with ZII platforms that have it enabled to sync up with existing ZII platforms that already have it disabled.
--- arch/arm/boot/dts/vf610-zii-cfu1.dts | 2 -- arch/arm/boot/dts/vf610-zii-spb4.dts | 2 -- arch/arm/boot/dts/vf610-zii-ssmb-dtu.dts | 2 -- arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts | 2 -- 4 files changed, 8 deletions(-)
arch/arm/boot/dts/vf610-zii-cfu1.dts +0 -2
@@ -170,7 +170,6 @@ interrupts = <2 IRQ_TYPE_LEVEL_LOW>; interrupt-controller; #interrupt-cells = <2>; - reset-gpios = <&gpio3 11 GPIO_ACTIVE_LOW>; ports { #address-cells = <1>;
@@ -354,7 +353,6 @@ pinctrl_switch: switch-grp { fsl,pins = < VF610_PAD_PTB28__GPIO_98 0x3061 - VF610_PAD_PTE2__GPIO_107 0x1042 >; };
arch/arm/boot/dts/vf610-zii-spb4.dts +0 -2
@@ -127,7 +127,6 @@ pinctrl-names = "default"; reg = <0>; eeprom-length = <65536>; - reset-gpios = <&gpio3 11 GPIO_ACTIVE_LOW>; interrupt-parent = <&gpio3>; interrupts = <2 IRQ_TYPE_LEVEL_LOW>; interrupt-controller;
@@ -312,7 +311,6 @@ pinctrl_gpio_switch0: pinctrl-gpio-switch0 { fsl,pins = < - VF610_PAD_PTE2__GPIO_107 0x31c2 VF610_PAD_PTB28__GPIO_98 0x219d >; };
arch/arm/boot/dts/vf610-zii-ssmb-dtu.dts +0 -2
@@ -113,7 +113,6 @@ pinctrl-names = "default"; reg = <0>; eeprom-length = <65536>; - reset-gpios = <&gpio3 11 GPIO_ACTIVE_LOW>; interrupt-parent = <&gpio3>; interrupts = <2 IRQ_TYPE_LEVEL_LOW>; interrupt-controller;
@@ -288,7 +287,6 @@ pinctrl_gpio_switch0: pinctrl-gpio-switch0 { fsl,pins = < - VF610_PAD_PTE2__GPIO_107 0x31c2 VF610_PAD_PTB28__GPIO_98 0x219d >; };
arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts +0 -2
@@ -141,7 +141,6 @@ pinctrl-names = "default"; reg = <0>; eeprom-length = <65536>; - reset-gpios = <&gpio3 11 GPIO_ACTIVE_LOW>; interrupt-parent = <&gpio3>; interrupts = <2 IRQ_TYPE_LEVEL_LOW>; interrupt-controller;
@@ -319,7 +318,6 @@ pinctrl_gpio_switch0: pinctrl-gpio-switch0 { fsl,pins = < - VF610_PAD_PTE2__GPIO_107 0x31c2 VF610_PAD_PTB28__GPIO_98 0x219d >; };
Signature · 1 line
2.21.3
Quoted 3 lines · Chris Healy
Disable Ethernet switch reset GPIO with ZII platforms that have it enabled to sync up with existing ZII platforms that already have it disabled.
I do not follow it. The reset GPIO is part of hardware description. We shouldn't add or remove it for sake of sync-up with other platforms.
Shawn
Quoted 92 lines
Signed-off-by Chris Healy <[email protected]>--- arch/arm/boot/dts/vf610-zii-cfu1.dts | 2 -- arch/arm/boot/dts/vf610-zii-spb4.dts | 2 -- arch/arm/boot/dts/vf610-zii-ssmb-dtu.dts | 2 -- arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts | 2 -- 4 files changed, 8 deletions(-)arch/arm/boot/dts/vf610-zii-cfu1.dts +0
-2@@ -170,7 +170,6 @@ interrupts = <2 IRQ_TYPE_LEVEL_LOW>; interrupt-controller; #interrupt-cells = <2>; - reset-gpios = <&gpio3 11 GPIO_ACTIVE_LOW>; ports { #address-cells = <1>;@@ -354,7 +353,6 @@ pinctrl_switch: switch-grp { fsl,pins = < VF610_PAD_PTB28__GPIO_98 0x3061 - VF610_PAD_PTE2__GPIO_107 0x1042 >; };arch/arm/boot/dts/vf610-zii-spb4.dts +0
-2@@ -127,7 +127,6 @@ pinctrl-names = "default"; reg = <0>; eeprom-length = <65536>; - reset-gpios = <&gpio3 11 GPIO_ACTIVE_LOW>; interrupt-parent = <&gpio3>; interrupts = <2 IRQ_TYPE_LEVEL_LOW>; interrupt-controller;@@ -312,7 +311,6 @@ pinctrl_gpio_switch0: pinctrl-gpio-switch0 { fsl,pins = < - VF610_PAD_PTE2__GPIO_107 0x31c2 VF610_PAD_PTB28__GPIO_98 0x219d >; };arch/arm/boot/dts/vf610-zii-ssmb-dtu.dts +0
-2@@ -113,7 +113,6 @@ pinctrl-names = "default"; reg = <0>; eeprom-length = <65536>; - reset-gpios = <&gpio3 11 GPIO_ACTIVE_LOW>; interrupt-parent = <&gpio3>; interrupts = <2 IRQ_TYPE_LEVEL_LOW>; interrupt-controller;@@ -288,7 +287,6 @@ pinctrl_gpio_switch0: pinctrl-gpio-switch0 { fsl,pins = < - VF610_PAD_PTE2__GPIO_107 0x31c2 VF610_PAD_PTB28__GPIO_98 0x219d >; };arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts +0
-2@@ -141,7 +141,6 @@ pinctrl-names = "default"; reg = <0>; eeprom-length = <65536>; - reset-gpios = <&gpio3 11 GPIO_ACTIVE_LOW>; interrupt-parent = <&gpio3>; interrupts = <2 IRQ_TYPE_LEVEL_LOW>; interrupt-controller;@@ -319,7 +318,6 @@ pinctrl_gpio_switch0: pinctrl-gpio-switch0 { fsl,pins = < - VF610_PAD_PTE2__GPIO_107 0x31c2 VF610_PAD_PTB28__GPIO_98 0x219d >; };Signature · 1 line
2.21.3
Quoted 8 lines · Shawn Guo
Quoted 3 lines · Chris Healy
Disable Ethernet switch reset GPIO with ZII platforms that have it enabled to sync up with existing ZII platforms that already have it disabled.
I do not follow it. The reset GPIO is part of hardware description. We shouldn't add or remove it for sake of sync-up with other platforms.
I see that my description is not very good. What I should have said is that we don't want to use the HW reset GPIO as it results in things being done that we do not want done. Specifically, when the switch is hit with the HW reset GPIO, it results in the switch's copper PHYs being HW reset which we want to avoid as this results in unnecessary network downtime on a soft reboot of the processor. With the HW reset GPIO not in the devicetree description, the switch driver resorts to doing a SW reset which resets the switch core but not the switch's copper PHYs. This results in a much shorter network downtime on a soft reboot of the processor.
I can do a v2 of the patch with the description updated if you think it would be appropriate.
Quoted 95 lines
Shawn
Quoted 92 lines
Signed-off-by Chris Healy <[email protected]>--- arch/arm/boot/dts/vf610-zii-cfu1.dts | 2 -- arch/arm/boot/dts/vf610-zii-spb4.dts | 2 -- arch/arm/boot/dts/vf610-zii-ssmb-dtu.dts | 2 -- arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts | 2 -- 4 files changed, 8 deletions(-)arch/arm/boot/dts/vf610-zii-cfu1.dts +0
-2@@ -170,7 +170,6 @@ interrupts = <2 IRQ_TYPE_LEVEL_LOW>; interrupt-controller; #interrupt-cells = <2>; - reset-gpios = <&gpio3 11 GPIO_ACTIVE_LOW>; ports { #address-cells = <1>;@@ -354,7 +353,6 @@ pinctrl_switch: switch-grp { fsl,pins = < VF610_PAD_PTB28__GPIO_98 0x3061 - VF610_PAD_PTE2__GPIO_107 0x1042 >; };arch/arm/boot/dts/vf610-zii-spb4.dts +0
-2@@ -127,7 +127,6 @@ pinctrl-names = "default"; reg = <0>; eeprom-length = <65536>; - reset-gpios = <&gpio3 11 GPIO_ACTIVE_LOW>; interrupt-parent = <&gpio3>; interrupts = <2 IRQ_TYPE_LEVEL_LOW>; interrupt-controller;@@ -312,7 +311,6 @@ pinctrl_gpio_switch0: pinctrl-gpio-switch0 { fsl,pins = < - VF610_PAD_PTE2__GPIO_107 0x31c2 VF610_PAD_PTB28__GPIO_98 0x219d >; };arch/arm/boot/dts/vf610-zii-ssmb-dtu.dts +0
-2@@ -113,7 +113,6 @@ pinctrl-names = "default"; reg = <0>; eeprom-length = <65536>; - reset-gpios = <&gpio3 11 GPIO_ACTIVE_LOW>; interrupt-parent = <&gpio3>; interrupts = <2 IRQ_TYPE_LEVEL_LOW>; interrupt-controller;@@ -288,7 +287,6 @@ pinctrl_gpio_switch0: pinctrl-gpio-switch0 { fsl,pins = < - VF610_PAD_PTE2__GPIO_107 0x31c2 VF610_PAD_PTB28__GPIO_98 0x219d >; };arch/arm/boot/dts/vf610-zii-ssmb-spu3.dts +0
-3@@ -141,7 +141,6 @@ pinctrl-names = "default"; reg = <0>; eeprom-length = <65536>; - reset-gpios = <&gpio3 11 GPIO_ACTIVE_LOW>; interrupt-parent = <&gpio3>; interrupts = <2 IRQ_TYPE_LEVEL_LOW>; interrupt-controller;@@ -319,7 +318,6 @@ pinctrl_gpio_switch0: pinctrl-gpio-switch0 { fsl,pins = < - VF610_PAD_PTE2__GPIO_107 0x31c2 VF610_PAD_PTB28__GPIO_98 0x219d >; }; --2.21.3