Hi all,
I was playing around with a new U-Boot and I saw starting from 2024.01 there is a MT7988 support in mainline.
But this commit mediatek: mt7988: move gpio-controller up and rename pinctrl to pio · u-boot/u-boot@cd06e60 · GitHub changes the gpio structure in DTS:
- gpio: gpio-controller {
- gpio-controller;
- #gpio-cells = <2>;
- };
+ gpio-controller;
+ #gpio-cells = <2>;
Now if I want to define LEDs for the board I can’t compile a dtsi like this:
/ {
compatible = "bananapi,bpi-r4", "mediatek,mt7988";
keys {
compatible = "gpio-keys";
wps {
label = "wps/reset";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
};
leds {
compatible = "gpio-leds";
led_status_green: green {
label = "green:status";
gpios = <&gpio 79 GPIO_ACTIVE_HIGH>;
};
led_status_blue: blue {
label = "blue:status";
gpios = <&gpio 63 GPIO_ACTIVE_HIGH>;
};
};
How can it be solved? One way was to revert this patch and using the code in dts, but how can be used with new configuration?
Kind regards, EasyNetDev.