Skip to content

Commit bca00ac

Browse files
committed
arm64: amlogic: dts: add special x96max plus board (with ip1001m phy)
1 parent a9929b4 commit bca00ac

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

arch/arm64/boot/dts/amlogic/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-sm1-x96-air.dtb
9292
dtb-$(CONFIG_ARCH_MESON) += meson-sm1-x96-air-gbit.dtb
9393
dtb-$(CONFIG_ARCH_MESON) += meson-sm1-x96-max-plus.dtb
9494
dtb-$(CONFIG_ARCH_MESON) += meson-sm1-x96-max-plus-oc.dtb
95+
dtb-$(CONFIG_ARCH_MESON) += meson-sm1-x96-max-plus-ip1001m.dtb
9596
dtb-$(CONFIG_ARCH_MESON) += meson-sm1-x96-max-plus-100m.dtb
9697
dtb-$(CONFIG_ARCH_MESON) += meson-sm1-h96-max-x3.dtb
9798
dtb-$(CONFIG_ARCH_MESON) += meson-sm1-h96-max-x3-oc.dtb
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2+
/*
3+
* Copyright (c) 2019 BayLibre SAS. All rights reserved.
4+
* Copyright (c) 2020 Christian Hewitt <christianshewitt@gmail.com>
5+
* Copyright (c) 2022 flippy <uniqfreq@gmail.com>
6+
*/
7+
8+
/dts-v1/;
9+
10+
#include "meson-sm1-x96-max-plus-oc.dts"
11+
12+
&ethmac {
13+
phy-mode = "rgmii-txid";
14+
/* After a simple testing, temporarily set rx-internal-delay-ps to 2800 ps,
15+
* if anyone finds a more suitable value please let me know.
16+
*/
17+
rx-internal-delay-ps = <2800>;
18+
};
19+
20+
&ext_mdio {
21+
/delete-node/ ethernet-phy@0;
22+
23+
external_phy: ethernet-phy@3 {
24+
/* ICPlus IP1001M */
25+
reg = <3>;
26+
max-speed = <1000>;
27+
28+
reset-assert-us = <10000>;
29+
reset-deassert-us = <80000>;
30+
reset-gpios = <&gpio GPIOZ_15 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>;
31+
32+
interrupt-parent = <&gpio_intc>;
33+
/* MAC_INTR on GPIOZ_14 */
34+
interrupts = <26 IRQ_TYPE_LEVEL_LOW>;
35+
};
36+
};

0 commit comments

Comments
 (0)