summaryrefslogtreecommitdiffstats
path: root/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi
diff options
context:
space:
mode:
authorMartin Blumenstingl2016-09-04 20:23:20 +0200
committerKevin Hilman2016-09-14 19:47:52 +0200
commit42bede64c834e29fda0bd126c61ef61bc9d71278 (patch)
tree0d0f99a88152bb9f1d38a977af679f3785a2b611 /arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi
parentARM64: dts: meson-gxbb: Add Meson GXBB PWM Controller nodes (diff)
downloadkernel-qcow2-linux-42bede64c834e29fda0bd126c61ef61bc9d71278.tar.gz
kernel-qcow2-linux-42bede64c834e29fda0bd126c61ef61bc9d71278.tar.xz
kernel-qcow2-linux-42bede64c834e29fda0bd126c61ef61bc9d71278.zip
ARM64: dts: meson-gxbb: use the new GXBB DWMAC glue driver
The Amlogic reference driver uses the "mc_val" devicetree property to configure the PRG_ETHERNET_ADDR0 register. Unfortunately it uses magic values for this configuration. According to the datasheet the PRG_ETHERNET_ADDR0 register is at address 0xc8834108. However, the reference driver uses 0xc8834540 instead. According to my tests, the value from the reference driver is correct. No changes are required to the board dts files because the only required configuration option is the phy-mode, which had to be configured correctly before as well. Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Diffstat (limited to 'arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi')
-rw-r--r--arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi
index 3b181939f437..f76a3cdd1b2c 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi
@@ -500,13 +500,15 @@
};
ethmac: ethernet@c9410000 {
- compatible = "amlogic,meson6-dwmac", "snps,dwmac";
+ compatible = "amlogic,meson-gxbb-dwmac", "snps,dwmac";
reg = <0x0 0xc9410000 0x0 0x10000
0x0 0xc8834540 0x0 0x4>;
interrupts = <0 8 1>;
interrupt-names = "macirq";
- clocks = <&clkc CLKID_ETH>;
- clock-names = "stmmaceth";
+ clocks = <&clkc CLKID_ETH>,
+ <&clkc CLKID_FCLK_DIV2>,
+ <&clkc CLKID_MPLL2>;
+ clock-names = "stmmaceth", "clkin0", "clkin1";
phy-mode = "rgmii";
status = "disabled";
};