Skip to content

Commit

Permalink
arm64: amlogic: dts: add special x96max plus board (with ip1001m phy)
Browse files Browse the repository at this point in the history
  • Loading branch information
unifreq committed Apr 27, 2022
1 parent a9929b4 commit bca00ac
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm64/boot/dts/amlogic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-sm1-x96-air.dtb
dtb-$(CONFIG_ARCH_MESON) += meson-sm1-x96-air-gbit.dtb
dtb-$(CONFIG_ARCH_MESON) += meson-sm1-x96-max-plus.dtb
dtb-$(CONFIG_ARCH_MESON) += meson-sm1-x96-max-plus-oc.dtb
dtb-$(CONFIG_ARCH_MESON) += meson-sm1-x96-max-plus-ip1001m.dtb
dtb-$(CONFIG_ARCH_MESON) += meson-sm1-x96-max-plus-100m.dtb
dtb-$(CONFIG_ARCH_MESON) += meson-sm1-h96-max-x3.dtb
dtb-$(CONFIG_ARCH_MESON) += meson-sm1-h96-max-x3-oc.dtb
Expand Down
36 changes: 36 additions & 0 deletions arch/arm64/boot/dts/amlogic/meson-sm1-x96-max-plus-ip1001m.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2019 BayLibre SAS. All rights reserved.
* Copyright (c) 2020 Christian Hewitt <christianshewitt@gmail.com>
* Copyright (c) 2022 flippy <uniqfreq@gmail.com>
*/

/dts-v1/;

#include "meson-sm1-x96-max-plus-oc.dts"

&ethmac {
phy-mode = "rgmii-txid";
/* After a simple testing, temporarily set rx-internal-delay-ps to 2800 ps,
* if anyone finds a more suitable value please let me know.
*/
rx-internal-delay-ps = <2800>;
};

&ext_mdio {
/delete-node/ ethernet-phy@0;

external_phy: ethernet-phy@3 {
/* ICPlus IP1001M */
reg = <3>;
max-speed = <1000>;

reset-assert-us = <10000>;
reset-deassert-us = <80000>;
reset-gpios = <&gpio GPIOZ_15 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>;

interrupt-parent = <&gpio_intc>;
/* MAC_INTR on GPIOZ_14 */
interrupts = <26 IRQ_TYPE_LEVEL_LOW>;
};
};

0 comments on commit bca00ac

Please sign in to comment.