I plan to use the third UART_EE_C, so I modified the overlay for SPI-A and it seems to work. I use GPIOH_4 for interrupt – that is number 32 (thanks to @Antonr for the numbers!). I hope it won’t collide with the UART_EE_C just because GPIOH_4 is also assigned as UART_EE_C_RTS
…?
UPDATE: Well, it does… So, changing to GPIOC_7, number 60.
Just in case someone were interested:
/dts-v1/;
/plugin/;
/ {
compatible = "radxa,zero", "amlogic,g12a";
fragment@0 {
target = <&spicc0>;
__overlay__ {
pinctrl-0 = <&spicc0_x_pins>;
pinctrl-names = "default";
#address-cells = <1>;
#size-cells = <0>;
cs-gpios = <&gpio 75 1>;
status = "okay";
ethernet: enc28j60@0 {
compatible = "microchip,enc28j60";
reg = <0>;
spi-max-frequency = <20000000>;
pinctrl-names = "default";
pinctrl-0 = <&enc28j60_int_pins>;
interrupt-parent = <&gpio_intc>;
interrupts = <60 2>;
};
};
};
fragment@1 {
target = <&periphs_pinctrl>;
__overlay__ {
enc28j60_int_pins: enc28j60-int-pins@0 {
mux {
groups = "GPIOC_7";
function = "gpio_periphs";
bias-pull-up;
drive-strength-microamp = <4000>;
};
};
};
};
};