* [PATCH v2 1/2] ARM: dts: am335x-bone-common: Add vcc-supply for on-board eeprom [not found] <20230806085044.1917-1-wiagn233@outlook.com> @ 2023-08-06 8:50 ` Shengyu Qu 2023-08-06 8:50 ` [PATCH v2 2/2] ARM: dts: am335x-bone-common: Add GPIO PHY reset on revision C3 board Shengyu Qu 1 sibling, 0 replies; 7+ messages in thread From: Shengyu Qu @ 2023-08-06 8:50 UTC (permalink / raw) To: bcousson, tony, robh+dt, krzysztof.kozlowski+dt, conor+dt, linux-omap, devicetree, linux-kernel Cc: Shengyu Qu The on-board eeprom on beaglebone series has a power supply from VDD_3V3A, add that to dts to reduce dummy regulator warning. Signed-off-by: Shengyu Qu <wiagn233@outlook.com> --- arch/arm/boot/dts/ti/omap/am335x-bone-common.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/ti/omap/am335x-bone-common.dtsi b/arch/arm/boot/dts/ti/omap/am335x-bone-common.dtsi index b958607c71dc..7b784a87efc6 100644 --- a/arch/arm/boot/dts/ti/omap/am335x-bone-common.dtsi +++ b/arch/arm/boot/dts/ti/omap/am335x-bone-common.dtsi @@ -215,6 +215,7 @@ tps: tps@24 { baseboard_eeprom: baseboard_eeprom@50 { compatible = "atmel,24c256"; reg = <0x50>; + vcc-supply = <&ldo4_reg>; #address-cells = <1>; #size-cells = <1>; -- 2.41.0 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2 2/2] ARM: dts: am335x-bone-common: Add GPIO PHY reset on revision C3 board [not found] <20230806085044.1917-1-wiagn233@outlook.com> 2023-08-06 8:50 ` [PATCH v2 1/2] ARM: dts: am335x-bone-common: Add vcc-supply for on-board eeprom Shengyu Qu @ 2023-08-06 8:50 ` Shengyu Qu 2023-08-09 7:28 ` Tony Lindgren 1 sibling, 1 reply; 7+ messages in thread From: Shengyu Qu @ 2023-08-06 8:50 UTC (permalink / raw) To: bcousson, tony, robh+dt, krzysztof.kozlowski+dt, conor+dt, linux-omap, devicetree, linux-kernel Cc: Shengyu Qu, Robert Nelson This patch adds ethernet PHY reset GPIO config for Beaglebone Black series boards with revision C3. This fixes a random phy startup failure bug discussed at [1]. The GPIO pin used for reset is not used on older revisions, so it is ok to apply to all board revisions. The reset timing was discussed and tested at [2]. [1] https://forum.digikey.com/t/ethernet-device-is-not-detecting-on-ubuntu-20-04-lts-on-bbg/19948 [2] https://forum.beagleboard.org/t/recognizing-a-beaglebone-black-rev-c3-board/31249/ Signed-off-by: Robert Nelson <robertcnelson@gmail.com> Signed-off-by: Shengyu Qu <wiagn233@outlook.com> --- Changes since v1: - Using /**/ rather than // to comment --- arch/arm/boot/dts/ti/omap/am335x-bone-common.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/ti/omap/am335x-bone-common.dtsi b/arch/arm/boot/dts/ti/omap/am335x-bone-common.dtsi index 7b784a87efc6..96451c8a815c 100644 --- a/arch/arm/boot/dts/ti/omap/am335x-bone-common.dtsi +++ b/arch/arm/boot/dts/ti/omap/am335x-bone-common.dtsi @@ -145,6 +145,8 @@ davinci_mdio_default: davinci-mdio-default-pins { /* MDIO */ AM33XX_PADCONF(AM335X_PIN_MDIO, PIN_INPUT_PULLUP | SLEWCTRL_FAST, MUX_MODE0) AM33XX_PADCONF(AM335X_PIN_MDC, PIN_OUTPUT_PULLUP, MUX_MODE0) + /* Added to support GPIO controlled PHY reset */ + AM33XX_PADCONF(AM335X_PIN_UART0_CTSN, PIN_OUTPUT_PULLUP, MUX_MODE7) >; }; @@ -153,6 +155,8 @@ davinci_mdio_sleep: davinci-mdio-sleep-pins { /* MDIO reset value */ AM33XX_PADCONF(AM335X_PIN_MDIO, PIN_INPUT_PULLDOWN, MUX_MODE7) AM33XX_PADCONF(AM335X_PIN_MDC, PIN_INPUT_PULLDOWN, MUX_MODE7) + /* Added to support GPIO controlled PHY reset */ + AM33XX_PADCONF(AM335X_PIN_UART0_CTSN, PIN_INPUT_PULLDOWN, MUX_MODE7) >; }; @@ -378,6 +382,10 @@ &davinci_mdio_sw { ethphy0: ethernet-phy@0 { reg = <0>; + /* Support GPIO reset on revision C3 boards */ + reset-gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + reset-assert-us = <300>; + reset-deassert-us = <6500>; }; }; -- 2.41.0 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v2 2/2] ARM: dts: am335x-bone-common: Add GPIO PHY reset on revision C3 board 2023-08-06 8:50 ` [PATCH v2 2/2] ARM: dts: am335x-bone-common: Add GPIO PHY reset on revision C3 board Shengyu Qu @ 2023-08-09 7:28 ` Tony Lindgren 2023-08-09 11:33 ` Shengyu Qu 0 siblings, 1 reply; 7+ messages in thread From: Tony Lindgren @ 2023-08-09 7:28 UTC (permalink / raw) To: Shengyu Qu Cc: bcousson, robh+dt, krzysztof.kozlowski+dt, conor+dt, linux-omap, devicetree, linux-kernel, Robert Nelson * Shengyu Qu <wiagn233@outlook.com> [230806 11:51]: > This patch adds ethernet PHY reset GPIO config for Beaglebone Black > series boards with revision C3. This fixes a random phy startup failure > bug discussed at [1]. The GPIO pin used for reset is not used on older > revisions, so it is ok to apply to all board revisions. The reset timing > was discussed and tested at [2]. Nice, should we add some Fixes tag for this so it gets applied to the stable kernels automatically? Regards, Tony ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 2/2] ARM: dts: am335x-bone-common: Add GPIO PHY reset on revision C3 board 2023-08-09 7:28 ` Tony Lindgren @ 2023-08-09 11:33 ` Shengyu Qu 2023-08-10 6:27 ` Tony Lindgren 0 siblings, 1 reply; 7+ messages in thread From: Shengyu Qu @ 2023-08-09 11:33 UTC (permalink / raw) To: Tony Lindgren Cc: wiagn233, bcousson, robh+dt, krzysztof.kozlowski+dt, conor+dt, linux-omap, devicetree, linux-kernel, Robert Nelson [-- Attachment #1.1.1: Type: text/plain, Size: 607 bytes --] Hello Tony, I think that's OK. What should I do? Best regards, Shengyu > * Shengyu Qu <wiagn233@outlook.com> [230806 11:51]: >> This patch adds ethernet PHY reset GPIO config for Beaglebone Black >> series boards with revision C3. This fixes a random phy startup failure >> bug discussed at [1]. The GPIO pin used for reset is not used on older >> revisions, so it is ok to apply to all board revisions. The reset timing >> was discussed and tested at [2]. > Nice, should we add some Fixes tag for this so it gets applied to > the stable kernels automatically? > > Regards, > > Tony [-- Attachment #1.1.2: OpenPGP public key --] [-- Type: application/pgp-keys, Size: 6977 bytes --] [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 2/2] ARM: dts: am335x-bone-common: Add GPIO PHY reset on revision C3 board 2023-08-09 11:33 ` Shengyu Qu @ 2023-08-10 6:27 ` Tony Lindgren 2023-08-10 13:47 ` Shengyu Qu 0 siblings, 1 reply; 7+ messages in thread From: Tony Lindgren @ 2023-08-10 6:27 UTC (permalink / raw) To: Shengyu Qu Cc: bcousson, robh+dt, krzysztof.kozlowski+dt, conor+dt, linux-omap, devicetree, linux-kernel, Robert Nelson * Shengyu Qu <wiagn233@outlook.com> [230809 11:33]: > I think that's OK. What should I do? Can you check if there is maybe some earlier Linux kernel commit that this fixes? If so we can have a Fixes tag and it will be applied automatically to the stable kernels. If it's adding new feature and no Fixes tag can be set, I can just add Cc: stable for it. Regards, Tony ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 2/2] ARM: dts: am335x-bone-common: Add GPIO PHY reset on revision C3 board 2023-08-10 6:27 ` Tony Lindgren @ 2023-08-10 13:47 ` Shengyu Qu 2023-08-14 10:50 ` Tony Lindgren 0 siblings, 1 reply; 7+ messages in thread From: Shengyu Qu @ 2023-08-10 13:47 UTC (permalink / raw) To: Tony Lindgren Cc: wiagn233, bcousson, robh+dt, krzysztof.kozlowski+dt, conor+dt, linux-omap, devicetree, linux-kernel, Robert Nelson [-- Attachment #1.1.1: Type: text/plain, Size: 552 bytes --] Hi Tony, No commit is fixed by this, since this is a hardware design problem on older revision board. :( Best regards, Shengyu > * Shengyu Qu <wiagn233@outlook.com> [230809 11:33]: >> I think that's OK. What should I do? > Can you check if there is maybe some earlier Linux kernel commit > that this fixes? > > If so we can have a Fixes tag and it will be applied automatically > to the stable kernels. > > If it's adding new feature and no Fixes tag can be set, I can just > add Cc: stable for it. > > Regards, > > Tony [-- Attachment #1.1.2: OpenPGP public key --] [-- Type: application/pgp-keys, Size: 6977 bytes --] [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 2/2] ARM: dts: am335x-bone-common: Add GPIO PHY reset on revision C3 board 2023-08-10 13:47 ` Shengyu Qu @ 2023-08-14 10:50 ` Tony Lindgren 0 siblings, 0 replies; 7+ messages in thread From: Tony Lindgren @ 2023-08-14 10:50 UTC (permalink / raw) To: Shengyu Qu Cc: bcousson, robh+dt, krzysztof.kozlowski+dt, conor+dt, linux-omap, devicetree, linux-kernel, Robert Nelson * Shengyu Qu <wiagn233@outlook.com> [230810 13:48]: > Hi Tony, > > No commit is fixed by this, since this is a hardware design problem on > > older revision board. :( OK no worries, I'll add both to omap-for-v6.5/fixes. Depending how the current -rc cycle goes, it may not get merged until for v6.6-rc1 FYI. Thanks, Tony ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-08-14 10:51 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <20230806085044.1917-1-wiagn233@outlook.com> 2023-08-06 8:50 ` [PATCH v2 1/2] ARM: dts: am335x-bone-common: Add vcc-supply for on-board eeprom Shengyu Qu 2023-08-06 8:50 ` [PATCH v2 2/2] ARM: dts: am335x-bone-common: Add GPIO PHY reset on revision C3 board Shengyu Qu 2023-08-09 7:28 ` Tony Lindgren 2023-08-09 11:33 ` Shengyu Qu 2023-08-10 6:27 ` Tony Lindgren 2023-08-10 13:47 ` Shengyu Qu 2023-08-14 10:50 ` Tony Lindgren
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).