summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/freescale/imx8qm-enet2-tja1100.dtsi
diff options
context:
space:
mode:
authorFugang Duan <fugang.duan@nxp.com>2019-07-29 15:32:02 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 16:05:21 +0800
commit5157f9ba3e40f74b6fcf5193a2bee29d3f0a07b6 (patch)
treeb3fa7e0dbb3fa48adc68bc119eec21a918a4bb44 /arch/arm64/boot/dts/freescale/imx8qm-enet2-tja1100.dtsi
parent4efe4cf2e1eec7b7bc42fce656f054b89e3bf17c (diff)
arm64: dts: imx8qm-mek: add tja1100 net card support
Add tja1100 net card support on imx8qm MEK base board enet2 connector. Signed-off-by: Fugang Duan <fugang.duan@nxp.com> [ Aisheng: fix small conflicts during upgrade ] Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Diffstat (limited to 'arch/arm64/boot/dts/freescale/imx8qm-enet2-tja1100.dtsi')
-rw-r--r--arch/arm64/boot/dts/freescale/imx8qm-enet2-tja1100.dtsi70
1 files changed, 70 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/freescale/imx8qm-enet2-tja1100.dtsi b/arch/arm64/boot/dts/freescale/imx8qm-enet2-tja1100.dtsi
new file mode 100644
index 000000000000..c18a59f44da1
--- /dev/null
+++ b/arch/arm64/boot/dts/freescale/imx8qm-enet2-tja1100.dtsi
@@ -0,0 +1,70 @@
+/*
+ * Copyright 2019 NXP
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+/* fec1 cannot attach to ethphy0 since the PHY address
+ * conflict with ethphy2. So eth0 should not work.
+ * There still enable fec1 to share the MDIO bus for fec2 due
+ * to board limitation.
+ */
+&fec1 {
+ /* PHY address should rework to 2 */
+ phy-handle = <&ethphy2>;
+
+ mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ ethphy0: ethernet-phy@0 {
+ compatible = "ethernet-phy-ieee802.3-c22";
+ reg = <0>;
+ tja110x,refclk_in;
+ /delete-property/ at803x,eee-disabled;
+ /delete-property/ at803x,vddio-1p8v;
+ };
+
+ ethphy2: ethernet-phy@2 {
+ compatible = "ethernet-phy-ieee802.3-c22";
+ reg = <2>;
+ at803x,eee-disabled;
+ at803x,vddio-1p8v;
+ };
+ };
+};
+
+&fec2 {
+ pinctrl-0 = <&pinctrl_fec2_rmii>;
+ clocks = <&enet1_lpcg 4>,
+ <&enet1_lpcg 2>,
+ <&clk IMX_CONN_ENET1_RMII_REF_50MHZ_CLK>,
+ <&enet1_lpcg 0>,
+ <&enet1_lpcg 1>;
+ phy-mode = "rmii";
+ phy-handle = <&ethphy0>;
+ /delete-property/ phy-supply;
+};
+
+&iomuxc {
+ pinctrl_fec2_rmii: fec2rmiigrp {
+ fsl,pins = <
+ IMX8QM_ENET1_RGMII_TXC_CONN_ENET1_RCLK50M_OUT 0x06000020
+ IMX8QM_ENET1_RGMII_RXD0_CONN_ENET1_RGMII_RXD0 0x06000020
+ IMX8QM_ENET1_RGMII_RXD1_CONN_ENET1_RGMII_RXD1 0x06000020
+ IMX8QM_ENET1_RGMII_RXD2_CONN_ENET1_RMII_RX_ER 0x06000020
+ IMX8QM_ENET1_RGMII_RX_CTL_CONN_ENET1_RGMII_RX_CTL 0x06000020
+ IMX8QM_ENET1_RGMII_TXD0_CONN_ENET1_RGMII_TXD0 0x06000020
+ IMX8QM_ENET1_RGMII_TXD1_CONN_ENET1_RGMII_TXD1 0x06000020
+ IMX8QM_ENET1_RGMII_TX_CTL_CONN_ENET1_RGMII_TX_CTL 0x06000020
+ >;
+ };
+};