Hello all,
Since I am relatively new to Linux device trees I wanted to get some confirmation of my initial findings. I was wondering if 3wire SPI mode is supported for the Arria V board, Kernel 3.10_ltsi?
I have tried to configure it as shown below and but always get the message “setup: unsupported mode bits 10” during bootup. If that appears correct is there anyway to configure it without spidev perhaps? I have tried “snps,dw-spi-mmio” without luck too. (I am trying to talk to the FMCDAQ2 board via the FMCA connector to configure the ADC/DAC)
hps_0_spim0: spi@0xfff00000 { compatible = "snps,dw-spi-mmio-15.0", "snps,dw-spi-mmio"; reg = <0xfff00000 0x00000100>; interrupt-parent = <&hps_0_arm_gic_0>; interrupts = <0 154 4>; clocks = <&spi_m_clk>; #address-cells = <1>; /* embeddedsw.dts.params.#address-cells type NUMBER */ #size-cells = <0>; /* embeddedsw.dts.params.#size-cells type NUMBER */ bus-num = <0>; /* embeddedsw.dts.params.bus-num type NUMBER */ num-chipselect = <3>; /* embeddedsw.dts.params.num-chipselect type NUMBER */ status = "okay"; /* embeddedsw.dts.params.status type STRING */ spi-3wire;
CLKD_SPI: CLKD_SPI@0 { compatible = "spidev"; /* appended from boardinfo */ reg = <0>; /* appended from boardinfo */ spi-max-frequency = <100000000>; /* appended from boardinfo */ enable-dma = <1>; /* appended from boardinfo */ spi-3wire; }; //end spidev@0 (spidev0)
DAC_SPI: DAC_SPI@1 { compatible = "spidev"; /* appended from boardinfo */ reg = <1>; /* appended from boardinfo */ spi-max-frequency = <100000000>; /* appended from boardinfo */ enable-dma = <1>; /* appended from boardinfo */ spi-3wire; }; //end spidev@0 (spidev0)
ADC_SPI: ADC_SPI@2 { compatible = "spidev"; /* appended from boardinfo */ reg = <2>; /* appended from boardinfo */ spi-max-frequency = <100000000>; /* appended from boardinfo */ enable-dma = <1>; /* appended from boardinfo */ spi-3wire; }; //end spidev@0 (spidev0)
}; //end spi@0xfff00000 (hps_0_spim0)
Thank you in advance!
-Steve