Sorry, it was Ralink MT7628. I boot via device tree yes and the dts is configured to use AT86RF212B with chip select 1 : palmbus@10000000 { spi@b00 { status = "okay"; m25p80@0 { #address-cells = <1>; #size-cells = <1>; compatible = "en25q64"; reg = <0 0>; ... }; at86rf212@0 { compatible = "atmel,at86rf212"; reg = <1>; interrupts = <15 4>; interrupt-parent = <&intc>; reset-gpio = <&gpio0 16 1>; sleep-gpio = <&gpio0 17 1>; spi-max-frequency = <1000000>; }; }; }; This didn't work so I had a look a the spi driver spi-mt7621.c and I saw that the driver wasn't implemented FOR two chip selects. This is why I change the function "static void mt7621_spi_set_cs();" (last message) Does it make sense? 2015-05-31 14:34 GMT+02:00 Alexander Aring <alex.aring@xxxxxxxxx>: > On Fri, May 29, 2015 at 11:28:48AM +0200, Baptiste Clenet wrote: >> Hi, >> >> I'm working on the board Ralink MT7228 with an Atmel AT86RF212B by SPI. >> I've configured the transceiver to be on cs1. I plugged cs from the >> transceiver to pin 6 of MT7228. >> I've edited spi-mt7621.c to allow two slave on SPI master as follow: >> > > sorry, I have no idea what you mean and did there. To make the > chipselect right I suppose this part of spi subsystem, you don't need > (if you don't doing hacks) to touch anything at driver layer. What you > need is to tell the spi subsystem the right configuration so the spi > controller can do the right thing. > > I also tried to google "Ralink MT7228" without luck. > > Do you boot via device tree or the old way? > > - Alex -- To unsubscribe from this list: send the line "unsubscribe linux-wpan" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html