Thu Jul 09, 2020 6:50 am
When I use a script to manually set GPIO 33 to high before shutdown or reboot it works perfectly. But it does not shutdown when using device tree
Why is the terminationn = "pull_up" not working? If I don't enter polarity = "active_low" the LAN chip doesn't even start
Here is my dt-blob.dts file -
/dts-v1/;
/ {
videocore {
pins_cm3 {
pin_config {
pin@default {
polarity = "active_low";
termination = "pull_down";
startup_state = "inactive";
function = "input";
}; // pin
pin@p31 { function = "output"; termination = "pull_up"; startup_state = "active"; polarity = "active_low";}; // LAN_RUN
pin@p128 { function = "input"; termination = "no_pulling"; polarity = "active_low"; }; // Hotplug
pin@p129 { function = "output"; termination = "no_pulling"; polarity = "active_low"; }; // EMMC_ENABLE_N
}; // pin_config
pin_defines {
pin_define@LAN_RUN {
type = "internal";
number = <31>;
};
}; // pin_defines
}; // pins_cm3
};
};