If you want to use I2C and UART pin, you have to build the firmware by yourself. If you use the official OpenWRT buildroot. Please modify the dts file target/linux/ramips/dts/GL-MT300N-V2.dts.
Append those lines to dts file.
&i2c {
status = "okay";
};
Configure uart1 to GPIO.
&pinctrl {
state_default: pinctrl0 {
gpio {
ralink,group = "wdt", "gpio", "wled_an", "p0led_an", "p1led_an", "i2s", "uart1";
ralink,function = "gpio";
};
};
};
Please rebuild the firmware after modifying.
The modified dts file is in the attachment.
GL-MT300N-V2.zip (1.0 KB)