Skip to content

Commit

Permalink
MIPS: Ci20: Add DT node for spi-gpio driver
Browse files Browse the repository at this point in the history
A SPI driver that uses the JZ4780's SPI hardware isn't available, so using
a bit banging GPIO driver will work for now. Once the SPI driver is completed,
it will use the same pins as the spi-gpio driver.

Signed-off-by: Harvey Hunt <[email protected]>
  • Loading branch information
HarveyHunt committed Jul 7, 2015
1 parent e3d0871 commit 1e6da8a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions arch/mips/boot/dts/jz4780.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,25 @@
};
};

spi_gpio {
compatible = "spi-gpio";
#address-cells = <1>;
#size-cells = <0>;
num-chipselects = <2>;

gpio-miso = <&gpe 14 0>;
gpio-sck = <&gpe 15 0>;
gpio-mosi = <&gpe 17 0>;
cs-gpios = <&gpe 16 0
&gpe 18 0>;

spidev@0 {
compatible = "spidev";
reg = <0>;
spi-max-frequency = <1000000>;
};
};

uart0: serial@10030000 {
compatible = "ingenic,jz4780-uart";
reg = <0x10030000 0x100>;
Expand Down

0 comments on commit 1e6da8a

Please sign in to comment.