LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] ARC: [plat-hsdk]: enable creg-gpio controller
@ 2019-05-28  9:40 Eugeniy Paltsev
  2019-05-28 12:04 ` Alexey Brodkin
  2019-05-28 17:07 ` Vineet Gupta
  0 siblings, 2 replies; 3+ messages in thread
From: Eugeniy Paltsev @ 2019-05-28  9:40 UTC (permalink / raw)
  To: linux-snps-arc, Vineet Gupta
  Cc: linux-kernel, Alexey Brodkin, Eugeniy Paltsev

HSDK SOC has CREG GPIO controller which can be used to control
SPI chip select lines.
Enable it in preparation of enabling SPI peripherals.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
---
 arch/arc/boot/dts/hsdk.dts      | 8 ++++++++
 arch/arc/configs/hsdk_defconfig | 1 +
 2 files changed, 9 insertions(+)

diff --git a/arch/arc/boot/dts/hsdk.dts b/arch/arc/boot/dts/hsdk.dts
index 7425bb0f2d1b..83e163e51b34 100644
--- a/arch/arc/boot/dts/hsdk.dts
+++ b/arch/arc/boot/dts/hsdk.dts
@@ -237,6 +237,14 @@
 			dma-coherent;
 		};
 
+		creg_gpio: gpio@14b0 {
+			compatible = "snps,creg-gpio-hsdk";
+			reg = <0x14b0 0x4>;
+			gpio-controller;
+			#gpio-cells = <2>;
+			ngpios = <2>;
+		};
+
 		gpio: gpio@3000 {
 			compatible = "snps,dw-apb-gpio";
 			reg = <0x3000 0x20>;
diff --git a/arch/arc/configs/hsdk_defconfig b/arch/arc/configs/hsdk_defconfig
index 0e5fd29ed238..0c4411f50948 100644
--- a/arch/arc/configs/hsdk_defconfig
+++ b/arch/arc/configs/hsdk_defconfig
@@ -49,6 +49,7 @@ CONFIG_SERIAL_OF_PLATFORM=y
 CONFIG_GPIOLIB=y
 CONFIG_GPIO_SYSFS=y
 CONFIG_GPIO_DWAPB=y
+CONFIG_GPIO_SNPS_CREG=y
 # CONFIG_HWMON is not set
 CONFIG_DRM=y
 # CONFIG_DRM_FBDEV_EMULATION is not set
-- 
2.21.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH] ARC: [plat-hsdk]: enable creg-gpio controller
  2019-05-28  9:40 [PATCH] ARC: [plat-hsdk]: enable creg-gpio controller Eugeniy Paltsev
@ 2019-05-28 12:04 ` Alexey Brodkin
  2019-05-28 17:07 ` Vineet Gupta
  1 sibling, 0 replies; 3+ messages in thread
From: Alexey Brodkin @ 2019-05-28 12:04 UTC (permalink / raw)
  To: Eugeniy Paltsev; +Cc: linux-kernel, Rob Herring, Vineet Gupta, linux-snps-arc

Hi Eugeniy,

> -----Original Message-----
> From: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
> Sent: Tuesday, May 28, 2019 12:41 PM
> To: linux-snps-arc@lists.infradead.org; Vineet Gupta <vgupta@synopsys.com>
> Cc: linux-kernel@vger.kernel.org; Alexey Brodkin <abrodkin@synopsys.com>; Eugeniy Paltsev
> <Eugeniy.Paltsev@synopsys.com>
> Subject: [PATCH] ARC: [plat-hsdk]: enable creg-gpio controller
> 
> HSDK SOC has CREG GPIO controller which can be used to control

SoC

> SPI chip select lines.
> Enable it in preparation of enabling SPI peripherals.

Acked-by: Alexey Brodkin <abrodkin@synopsys.com>

Adding Rob to the Cc list.

-Alexey


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ARC: [plat-hsdk]: enable creg-gpio controller
  2019-05-28  9:40 [PATCH] ARC: [plat-hsdk]: enable creg-gpio controller Eugeniy Paltsev
  2019-05-28 12:04 ` Alexey Brodkin
@ 2019-05-28 17:07 ` Vineet Gupta
  1 sibling, 0 replies; 3+ messages in thread
From: Vineet Gupta @ 2019-05-28 17:07 UTC (permalink / raw)
  To: Eugeniy Paltsev, linux-snps-arc; +Cc: Alexey Brodkin, linux-kernel

On 5/28/19 2:40 AM, Eugeniy Paltsev wrote:
> HSDK SOC has CREG GPIO controller which can be used to control
> SPI chip select lines.
> Enable it in preparation of enabling SPI peripherals.
> 
> Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>

Added to for-curr

Thx,
-Vineet

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-28 17:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-28  9:40 [PATCH] ARC: [plat-hsdk]: enable creg-gpio controller Eugeniy Paltsev
2019-05-28 12:04 ` Alexey Brodkin
2019-05-28 17:07 ` Vineet Gupta

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).