Hi,
We developed our own carrier. Adapt orin.
I was going to use 1G PHY, but I couldn’t configure it properly,
My carrier uses 1G PHY and PCIE in Configuration #2 mode.
I have a few questions now:
1.How to check if my pinmux configuration works and is correct?
2.How should I configure my device tree?
3.This is my ethernet device tree configuration, should I add a new node configuration here (1G PHY)? One more thing. The currently configured node ethernet@2310000 is suitable for the RGMII network configuration, but there is an exception.
`/*
- Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
- This program is free software; you can redistribute it and/or modify it
- under the terms and conditions of the GNU General Public License,
- version 2, as published by the Free Software Foundation.
- This program is distributed in the hope 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.
- You should have received a copy of the GNU General Public License
- along with this program. If not, see http://www.gnu.org/licenses/.
*/
#include <dt-bindings/gpio/tegra234-gpio.h>
/ {
ethernet@6810000 {
status = "disabled";
};
ethernet@6910000 {
status = "disabled";
};
ethernet@6A10000 {
status = "disabled";
};
ethernet@6B10000 {
status = "disabled";
};
/* EQOS */
ethernet@2310000 {
status = "okay";
nvidia,mac-addr-idx = <0>;
nvidia,mac-platform-mtu = <8000>;
nvidia,pause_frames = <0>;
nvidia,phy-reset-gpio = <&tegra_main_gpio TEGRA234_MAIN_GPIO(G, 5) 0>;
phy-mode = "rgmii-id";
phy-handle = <&phy>;
/delete-node/ fixed-link;
fixed-link{
speed = <0x3e8>;
full-duplex;
};
mdio {
compatible = "nvidia,eqos-mdio";
#address-cells = <1>;
#size-cells = <0>;
phy: phy@1 { /* phy@1*/
reg = <1>; /*reg = <1>; */
nvidia,phy-rst-pdelay-msec = <224>; /* msec */
nvidia,phy-rst-duration-usec = <10000>; /* usec */
/*interrupt-parent = <&tegra_main_gpio>;
interrupts = <TEGRA234_MAIN_GPIO(G,4) IRQ_TYPE_LEVEL_LOW>;
marvell,copper-mode;
marvell,reg-init = <0x03 0x12 0x7fff 0x880>;*/
};
};
};
};
`