请教一下 我想使用JAO里的RGMII接口,使用overlay方式,下述的代码是否有问题?
` /*
- Device Tree Overlay file for the pinctrl_mcp23s08 driver.
- the driver is being assigned to i2c bus 0.
- You build this overlay file using te Device Tree Compiler on the machine (dtc)
- The command used to build the device tree blob is:
- dtc -@ -I dts -O dtb -o pinctrl_mcp23s08_ol.dtbo pinctrl_mcp23s08_ol.dts
*/
/dts-v1/;
/plugin/;
/{
compatible = “nvidia,p3737-0000+p3701-0000”;
overlay-name = “JAO-RGMII Overlay”;
fragment@0 {
target-path = "/";
__overlay__ {
bus@0 {
/* EQOS */
ethernet@2310000 {
status = "okay";
nvidia,mac-addr-idx = <0>;
nvidia,mac-platform-mtu = <8000>;
/* 1=enable, 0=disable */
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@0 { /* phy@1 */
reg = <0>; /* reg = <1>;设备树的地址要对应上 按照官方的都是偏移1地址,MDIO连接不上,遂都改为0 */
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>;
};
};
};
};
};
};
};`