Part Number: TDA4VM
Hi, Expert
I need to toggle a gpio pin to an ethernet phy chip reset when u-boot boots.
this reset pin is low active, and I hope this toggle pin keep low about 2 sec after power on.
Thanks E2E give me some information, but these do not work for me
https://patchwork.kernel.org/project/linux-omap/patch/daa29a99-0a17-d316-57eb-3e6162938d8d@ti.com/
The toggle pin is GPIO0_30 (AF21)
so I try to modify device tree in u-boot
I set gpio0_30 reset active low after power on
&davinci_mdio {
status = "okay";
reset-gpios = <&main_gpio0 30 GPIO_ACTIVE_LOW>;
reset-delay-us = <2000000>;
initially-in-reset = <1>;
phy0: ethernet-phy@0 {
reg = <0>;
max-speed = <100>;
};
};
main_gpio0: gpio@600000 {
compatible = "ti,j721e-gpio", "ti,keystone-gpio";
reg = <0x0 0x00600000 0x0 0x100>;
gpio-controller;
#gpio-cells = <2>;
interrupt-parent = <&main_gpio_intr>;
interrupts = <256>, <257>, <258>, <259>,
<260>, <261>, <262>, <263>;
interrupt-controller;
#interrupt-cells = <2>;
ti,ngpio = <128>;
ti,davinci-gpio-unbanked = <0>;
power-domains = <&k3_pds 105 TI_SCI_PD_EXCLUSIVE>;
clocks = <&k3_clks 105 0>;
clock-names = "gpio";
};
Do I miss something?
I think it should be work ....
Thanks very much
Gibbs
