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 25, 2022
1 parent 6418093 commit 64a6f2f
Show file tree
Hide file tree
Showing 2 changed files with 36 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 @@ -93,6 +93,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
35 changes: 35 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,35 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2019 BayLibre SAS. All rights reserved.
* Copyright (c) 2020 Christian Hewitt <[email protected]>
* Copyright (c) 2022 flippy <[email protected]>
*/

/dts-v1/;

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

&ethmac {
phy-mode = "rgmii";
/delete-property/ rx-internal-delay-ps;
//rx-internal-delay-ps = <800>;
amlogic,tx-delay-ns = <2>;
};

&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 64a6f2f

Please sign in to comment.