Skip to content

Commit 0f231e7

Browse files
committed
Merge pull request #40 from HarveyHunt/ci20-v3.18-spi-gpio
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.
2 parents eae0a95 + 1e6da8a commit 0f231e7

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

arch/mips/boot/dts/jz4780.dtsi

+19
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,25 @@
384384
};
385385
};
386386

387+
spi_gpio {
388+
compatible = "spi-gpio";
389+
#address-cells = <1>;
390+
#size-cells = <0>;
391+
num-chipselects = <2>;
392+
393+
gpio-miso = <&gpe 14 0>;
394+
gpio-sck = <&gpe 15 0>;
395+
gpio-mosi = <&gpe 17 0>;
396+
cs-gpios = <&gpe 16 0
397+
&gpe 18 0>;
398+
399+
spidev@0 {
400+
compatible = "spidev";
401+
reg = <0>;
402+
spi-max-frequency = <1000000>;
403+
};
404+
};
405+
387406
uart0: serial@10030000 {
388407
compatible = "ingenic,jz4780-uart";
389408
reg = <0x10030000 0x100>;

0 commit comments

Comments
 (0)