Skip to content

Commit

Permalink
Merge pull request #40 from HarveyHunt/ci20-v3.18-spi-gpio
Browse files Browse the repository at this point in the history
DT: Add support for spi-gpio to JZ4780's DT

bitbanging for now. There is a hardware spi module. Driver from 3.0.8 can be used as a base for forward porting by any enthusiast.
  • Loading branch information
ZubairLK committed Jul 7, 2015
2 parents eae0a95 + 1e6da8a commit 0f231e7
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 0f231e7

Please sign in to comment.