/dts-v1/;
/plugin/;
/{
compatible = "allwinner,sun8i-h3";
fragment@0 {
target = <&spi0>; // Targeting SPI0 bus (corrected)
overlay {
status = "okay";
sc16is752: sc16is752@0 {
compatible = "nxp,sc16is752";
reg = <0>;
clocks = <&sc16is752_clk>;
interrupt-parent = <&pio>;
interrupts = <0 7 2>;
gpio-controller;
#gpio-cells = <2>;
spi-max-frequency = <4000000>;
status = "okay";
sc16is752_clk: sc16is752_clk {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <14745600>; // Clock frequency for SC16IS752
};
};
};
};
};
created this overlay for this hat, but i have such logs from dmesg
[ 2.533014] spi spi0.0: Fixed dependency cycle(s) with /soc/spi@1c68000/sc16is752@0/sc16is752_clk
[ 2.533163] sun6i-spi 1c68000.spi: chipselect 0 already in use
[ 2.533175] spi_master spi0: spi_device register error /soc/spi@1c68000/spidev@0
[ 2.533206] spi_master spi0: Failed to create SPI device for /soc/spi@1c68000/spidev@0
[ 8.704292] spi0.0: ttySC0 at I/O 0x0 (irq = 48, base_baud = 921600) is a SC16IS752
[ 8.708394] spi0.0: ttySC1 at I/O 0x1 (irq = 48, base_baud = 921600) is a SC16IS752
Based on this i thought that interfaces are created but not, how i can fix it?