LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 1/2] MIPS: Ci20: Enable SPI/GPIO driver
@ 2018-06-06 19:37 Mathieu Malaterre
2018-06-06 19:37 ` [PATCH 2/2] MIPS: jz4780: DTS: Probe the spi-gpio driver from devicetree Mathieu Malaterre
2018-07-24 20:45 ` [PATCH 1/2] MIPS: Ci20: Enable SPI/GPIO driver Paul Burton
0 siblings, 2 replies; 3+ messages in thread
From: Mathieu Malaterre @ 2018-06-06 19:37 UTC (permalink / raw)
To: James Hogan
Cc: Mathieu Malaterre, Rob Herring, Mark Rutland, Ralf Baechle,
devicetree, linux-mips, linux-kernel
Update the Ci20's defconfig to enable the JZ4780's SPI/GPIO driver.
Signed-off-by: Mathieu Malaterre <malat@debian.org>
---
arch/mips/configs/ci20_defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/mips/configs/ci20_defconfig b/arch/mips/configs/ci20_defconfig
index 0ddef6ad2652..0c08c7675b42 100644
--- a/arch/mips/configs/ci20_defconfig
+++ b/arch/mips/configs/ci20_defconfig
@@ -93,6 +93,8 @@ CONFIG_SERIAL_OF_PLATFORM=y
# CONFIG_HW_RANDOM is not set
CONFIG_I2C=y
CONFIG_I2C_JZ4780=y
+CONFIG_SPI=y
+CONFIG_SPI_GPIO=y
CONFIG_GPIO_SYSFS=y
CONFIG_GPIO_INGENIC=y
# CONFIG_HWMON is not set
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] MIPS: jz4780: DTS: Probe the spi-gpio driver from devicetree
2018-06-06 19:37 [PATCH 1/2] MIPS: Ci20: Enable SPI/GPIO driver Mathieu Malaterre
@ 2018-06-06 19:37 ` Mathieu Malaterre
2018-07-24 20:45 ` [PATCH 1/2] MIPS: Ci20: Enable SPI/GPIO driver Paul Burton
1 sibling, 0 replies; 3+ messages in thread
From: Mathieu Malaterre @ 2018-06-06 19:37 UTC (permalink / raw)
To: James Hogan
Cc: Mathieu Malaterre, Rob Herring, Mark Rutland, Ralf Baechle,
devicetree, linux-mips, linux-kernel
The spi-gpio driver supports jz4780.
Signed-off-by: Mathieu Malaterre <malat@debian.org>
---
arch/mips/boot/dts/ingenic/jz4780.dtsi | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/arch/mips/boot/dts/ingenic/jz4780.dtsi b/arch/mips/boot/dts/ingenic/jz4780.dtsi
index 809f01a62955..308079ee8dd3 100644
--- a/arch/mips/boot/dts/ingenic/jz4780.dtsi
+++ b/arch/mips/boot/dts/ingenic/jz4780.dtsi
@@ -167,6 +167,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>;
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] MIPS: Ci20: Enable SPI/GPIO driver
2018-06-06 19:37 [PATCH 1/2] MIPS: Ci20: Enable SPI/GPIO driver Mathieu Malaterre
2018-06-06 19:37 ` [PATCH 2/2] MIPS: jz4780: DTS: Probe the spi-gpio driver from devicetree Mathieu Malaterre
@ 2018-07-24 20:45 ` Paul Burton
1 sibling, 0 replies; 3+ messages in thread
From: Paul Burton @ 2018-07-24 20:45 UTC (permalink / raw)
To: Mathieu Malaterre
Cc: James Hogan, Rob Herring, Mark Rutland, Ralf Baechle, devicetree,
linux-mips, linux-kernel
Hi Mathieu,
On Wed, Jun 06, 2018 at 09:37:29PM +0200, Mathieu Malaterre wrote:
> Update the Ci20's defconfig to enable the JZ4780's SPI/GPIO driver.
>
> Signed-off-by: Mathieu Malaterre <malat@debian.org>
> ---
> arch/mips/configs/ci20_defconfig | 2 ++
> 1 file changed, 2 insertions(+)
Thanks - both patches applied to mips-next for 4.19, with changes to
make the commit messages more descriptive.
Paul
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-07-24 20:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-06 19:37 [PATCH 1/2] MIPS: Ci20: Enable SPI/GPIO driver Mathieu Malaterre
2018-06-06 19:37 ` [PATCH 2/2] MIPS: jz4780: DTS: Probe the spi-gpio driver from devicetree Mathieu Malaterre
2018-07-24 20:45 ` [PATCH 1/2] MIPS: Ci20: Enable SPI/GPIO driver Paul Burton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).