All,

Trying create a dt using new sunxi-ng for SPI0:

sun8i-h3.dtsi:
....
        uart3: serial@01c28c00 {
            compatible = "snps,dw-apb-uart";
            reg = <0x01c28c00 0x400>;
            interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
            reg-shift = <2>;
            reg-io-width = <4>;
            clocks = <&ccu CLK_BUS_UART3>;
            resets = <&ccu RST_BUS_UART3>;
            dmas = <&dma 9>, <&dma 9>;
            dma-names = "rx", "tx";
            status = "disabled";
        };

        spi0: spi@01c68000 {
            compatible = "allwinner,sun6i-a31-spi";
            reg = <0x01c68000 0x1000>;
            interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
            clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>;
            resets = <&ccu RST_BUS_SPI0>;
            dmas = <&dma 23>, <&dma 23>;
            dma-names = "rx", "tx";
            status = "disabled";
            #address-cells = <1>;
            #size-cells = <0>;
        };

sun8i-orangepi-pc.dts:
.....
    usb0_id_detect_pin: usb0_id_detect_pin@0 {
        allwinner,pins = "PG12";
        allwinner,function = "gpio_in";
        allwinner,drive = <SUN4I_PINCTRL_10_MA>;
        allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
    };

    spi0_pins_a: spi0@0 {
                allwinner,pins = "PC0", "PC1", "PC2";
                allwinner,function = "spi0";
                allwinner,drive = <SUN4I_PINCTRL_10_MA>;
                allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
            };

    spi0_cs0_pins_a: spi0_cs0@0 {
                allwinner,pins = "PC3";
                allwinner,function = "spi0";
                allwinner,drive = <SUN4I_PINCTRL_10_MA>;
                allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
            };
..

&spi0 {
    pinctrl-names = "default";
    pinctrl-0 = <&spi0_pins_a>, <&spi0_cs0_pins_a>;
    status = "okay";
    };

Linux kernel is reporting:

[    0.766378] sun6i-spi 1c68000.spi: Unable to acquire AHB clock
[    0.772273] sun6i-spi: probe of 1c68000.spi failed with error -2

What I'm doing wrong?  (yes, it should be an overlay, but, trying to debug 
first)

Tim

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to