ARM64: dts: meson-gxbb: set reset for ethernet
Subsystems (2)
PATCH 1/1 ARM64: dts: meson-gxbb: set reset for ethernet
Add reset control for ethernet.
--- arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi +2 -0
@@ -113,6 +113,8 @@ <&clkc CLKID_FCLK_DIV2>, <&clkc CLKID_MPLL2>; clock-names = "stmmaceth", "clkin0", "clkin1"; + resets = <&reset RESET_ETHERNET>; + reset-names = "stmmaceth"; }; &aobus {
Signature · 1 line
2.11.0
PATCH 1/1 ARM64: dts: meson-gxbb: set reset for ethernet
Quoted 13 lines · Heiner Kallweit
Add reset control for ethernet.
Signed-off-by Heiner Kallweit <[email protected]>--- arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 2 ++ 1 file changed, 2 insertions(+)arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi +0
-0
arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi line 120
Quoted 8 lines
arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi +2
-0@@ -113,6 +113,8 @@ <&clkc CLKID_FCLK_DIV2>, <&clkc CLKID_MPLL2>; clock-names = "stmmaceth", "clkin0", "clkin1"; + resets = <&reset RESET_ETHERNET>; + reset-names = "stmmaceth"; }; &aobus {
Hi,
Actually this is a no-op since the Amlogic reset controller only supports "pulse" resets and the STMMAC driver only supports "level" resets. If you want to use this reset, you must add the corresponding support code in the meson8b glue code to call device_reset().
Neil
PATCH 1/1 ARM64: dts: meson-gxbb: set reset for ethernet
Am 06.02.2017 um 10:29 schrieb Neil Armstrong:
Quoted 20 lines · Heiner Kallweit
Quoted 19 lines
Add reset control for ethernet.
Signed-off-by Heiner Kallweit <[email protected]>--- arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 2 ++ 1 file changed, 2 insertions(+)arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi +2
-0@@ -113,6 +113,8 @@ <&clkc CLKID_FCLK_DIV2>, <&clkc CLKID_MPLL2>; clock-names = "stmmaceth", "clkin0", "clkin1"; + resets = <&reset RESET_ETHERNET>; + reset-names = "stmmaceth"; };
Quoted 9 lines
arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi line 120
Quoted 2 lines
arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi +0
-0&aobus {Hi,
Actually this is a no-op since the Amlogic reset controller only supports "pulse" resets and the STMMAC driver only supports "level" resets. If you want to use this reset, you must add the corresponding support code in the meson8b glue code to call
device_reset().
Thanks for the hint! I did some further tests to check the "nature" of the reset register bits. Setting a reset bit and immediately reading it back always returns 0.
And the chip spec doesn't mention whether writing a reset bit triggers a reset pulse or whether it asserts the reset line.
Therefore I'm a little clueless whether it's possible to have "level" resets.
Quoted 2 lines
Neil
PATCH 1/1 ARM64: dts: meson-gxbb: set reset for ethernet
Quoted 30 lines · Heiner Kallweit
Am 06.02.2017 um 10:29 schrieb Neil Armstrong:
Quoted 20 lines · Heiner Kallweit
Quoted 19 lines
Add reset control for ethernet.
Signed-off-by Heiner Kallweit <[email protected]>--- arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 2 ++ 1 file changed, 2 insertions(+)arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi +2
-0@@ -113,6 +113,8 @@ <&clkc CLKID_FCLK_DIV2>, <&clkc CLKID_MPLL2>; clock-names = "stmmaceth", "clkin0", "clkin1"; + resets = <&reset RESET_ETHERNET>; + reset-names = "stmmaceth"; };Quoted 9 lines
arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi line 120
Quoted 2 lines
arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi +0
-0&aobus {Hi,
Actually this is a no-op since the Amlogic reset controller only supports "pulse" resets and the STMMAC driver only supports "level" resets. If you want to use this reset, you must add the corresponding support code in the meson8b glue code to call
device_reset().
Quoted 5 lines
Thanks for the hint! I did some further tests to check the "nature" of the reset register bits. Setting a reset bit and immediately reading it back always returns 0.
And the chip spec doesn't mention whether writing a reset bit triggers a reset pulse or whether it asserts the reset line.
Therefore I'm a little clueless whether it's possible to have "level" resets.
It seems that there is some "level" register in the next addresses used by the VPU reset in u-boot, but I did not get the same behaviour as the pulse reset registers.
It seems the resets are not mapped the same way.
Neil
Quoted 4 lines
Quoted 3 lines
Neil