For completeness, add the (known) GPIO pin mappings to the pinctrl node,
indicating the positions of these pins on the SoC package.
For 5.10 kernels, this results in a warning during boot:
gpiochip_add_data_with_key: GPIOs 488..511 (
18003500.gpio-controller) failed to register, -517
This warning is due to the GPIO driver returning -EPROBEDEFER, as the
pinctrl driver hasn't loaded yet. The driver will correctly load at some
later point, and the warning is quelled on later kernel versions.
Signed-off-by: Sander Vanheule <sander@svanheule.net>
#gpio-cells = <2>;
ngpios = <24>;
+ gpio-ranges = <&pinctrl 0 113 1>,
+ <&pinctrl 2 111 1>,
+ <&pinctrl 3 110 1>,
+ <&pinctrl 10 30 2>,
+ <&pinctrl 12 29 1>,
+ <&pinctrl 13 28 1>,
+ <&pinctrl 14 32 1>;
+
interrupt-controller;
#interrupt-cells = <2>;
interrupt-parent = <&intc>;
status = "disabled";
};
- pinctrl {
+ pinctrl: pinctrl {
compatible = "realtek,maple-pinctrl";
pinmux_disable_sys_led: pinmux-sys-led-gpio {