All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARC: [plat-hsdk]: enable DW SPI controller
@ 2019-06-07 14:48 ` Eugeniy Paltsev
  0 siblings, 0 replies; 6+ messages in thread
From: Eugeniy Paltsev @ 2019-06-07 14:48 UTC (permalink / raw)
  To: linux-snps-arc, Vineet Gupta
  Cc: linux-kernel, Alexey Brodkin, Eugeniy Paltsev

HSDK SoC has DW SPI controller. Enable it in preparation of
enabling on-board SPI peripherals.

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

diff --git a/arch/arc/boot/dts/hsdk.dts b/arch/arc/boot/dts/hsdk.dts
index e57b24dd02e7..42e1c961ba48 100644
--- a/arch/arc/boot/dts/hsdk.dts
+++ b/arch/arc/boot/dts/hsdk.dts
@@ -11,6 +11,7 @@
  */
 /dts-v1/;
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/reset/snps,hsdk-reset.h>
 
 / {
@@ -233,6 +234,19 @@
 			dma-coherent;
 		};
 
+		spi0: spi@20000 {
+			compatible = "snps,dw-apb-ssi";
+			reg = <0x20000 0x100>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			interrupts = <16>;
+			num-cs = <2>;
+			reg-io-width = <4>;
+			clocks = <&input_clk>;
+			cs-gpios = <&creg_gpio 0 GPIO_ACTIVE_LOW>,
+				   <&creg_gpio 1 GPIO_ACTIVE_LOW>;
+		};
+
 		creg_gpio: gpio@14b0 {
 			compatible = "snps,creg-gpio-hsdk";
 			reg = <0x14b0 0x4>;
diff --git a/arch/arc/configs/hsdk_defconfig b/arch/arc/configs/hsdk_defconfig
index 0c4411f50948..ccfa744fe755 100644
--- a/arch/arc/configs/hsdk_defconfig
+++ b/arch/arc/configs/hsdk_defconfig
@@ -46,6 +46,9 @@ CONFIG_SERIAL_8250_CONSOLE=y
 CONFIG_SERIAL_8250_DW=y
 CONFIG_SERIAL_OF_PLATFORM=y
 # CONFIG_HW_RANDOM is not set
+CONFIG_SPI=y
+CONFIG_SPI_DESIGNWARE=y
+CONFIG_SPI_DW_MMIO=y
 CONFIG_GPIOLIB=y
 CONFIG_GPIO_SYSFS=y
 CONFIG_GPIO_DWAPB=y
-- 
2.21.0


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

* [PATCH] ARC: [plat-hsdk]: enable DW SPI controller
@ 2019-06-07 14:48 ` Eugeniy Paltsev
  0 siblings, 0 replies; 6+ messages in thread
From: Eugeniy Paltsev @ 2019-06-07 14:48 UTC (permalink / raw)
  To: linux-snps-arc

HSDK SoC has DW SPI controller. Enable it in preparation of
enabling on-board SPI peripherals.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev at synopsys.com>
---
 arch/arc/boot/dts/hsdk.dts      | 14 ++++++++++++++
 arch/arc/configs/hsdk_defconfig |  3 +++
 2 files changed, 17 insertions(+)

diff --git a/arch/arc/boot/dts/hsdk.dts b/arch/arc/boot/dts/hsdk.dts
index e57b24dd02e7..42e1c961ba48 100644
--- a/arch/arc/boot/dts/hsdk.dts
+++ b/arch/arc/boot/dts/hsdk.dts
@@ -11,6 +11,7 @@
  */
 /dts-v1/;
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/reset/snps,hsdk-reset.h>
 
 / {
@@ -233,6 +234,19 @@
 			dma-coherent;
 		};
 
+		spi0: spi at 20000 {
+			compatible = "snps,dw-apb-ssi";
+			reg = <0x20000 0x100>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			interrupts = <16>;
+			num-cs = <2>;
+			reg-io-width = <4>;
+			clocks = <&input_clk>;
+			cs-gpios = <&creg_gpio 0 GPIO_ACTIVE_LOW>,
+				   <&creg_gpio 1 GPIO_ACTIVE_LOW>;
+		};
+
 		creg_gpio: gpio at 14b0 {
 			compatible = "snps,creg-gpio-hsdk";
 			reg = <0x14b0 0x4>;
diff --git a/arch/arc/configs/hsdk_defconfig b/arch/arc/configs/hsdk_defconfig
index 0c4411f50948..ccfa744fe755 100644
--- a/arch/arc/configs/hsdk_defconfig
+++ b/arch/arc/configs/hsdk_defconfig
@@ -46,6 +46,9 @@ CONFIG_SERIAL_8250_CONSOLE=y
 CONFIG_SERIAL_8250_DW=y
 CONFIG_SERIAL_OF_PLATFORM=y
 # CONFIG_HW_RANDOM is not set
+CONFIG_SPI=y
+CONFIG_SPI_DESIGNWARE=y
+CONFIG_SPI_DW_MMIO=y
 CONFIG_GPIOLIB=y
 CONFIG_GPIO_SYSFS=y
 CONFIG_GPIO_DWAPB=y
-- 
2.21.0

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

* RE: [PATCH] ARC: [plat-hsdk]: enable DW SPI controller
  2019-06-07 14:48 ` Eugeniy Paltsev
@ 2019-06-07 15:29   ` Alexey Brodkin
  -1 siblings, 0 replies; 6+ messages in thread
From: Alexey Brodkin @ 2019-06-07 15:29 UTC (permalink / raw)
  To: linux-snps-arc; +Cc: linux-kernel, Rob Herring, Vineet Gupta, Eugeniy Paltsev

Hi Eugeniy,

> -----Original Message-----
> From: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
> Sent: Friday, June 7, 2019 5:48 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 DW SPI controller
> 
> HSDK SoC has DW SPI controller. Enable it in preparation of
> enabling on-board SPI peripherals.
> 
> Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>

Adding Rob and...

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

>  arch/arc/boot/dts/hsdk.dts      | 14 ++++++++++++++
>  arch/arc/configs/hsdk_defconfig |  3 +++
>  2 files changed, 17 insertions(+)
> 
> diff --git a/arch/arc/boot/dts/hsdk.dts b/arch/arc/boot/dts/hsdk.dts
> index e57b24dd02e7..42e1c961ba48 100644
> --- a/arch/arc/boot/dts/hsdk.dts
> +++ b/arch/arc/boot/dts/hsdk.dts
> @@ -11,6 +11,7 @@
>   */
>  /dts-v1/;
> 
> +#include <dt-bindings/gpio/gpio.h>
>  #include <dt-bindings/reset/snps,hsdk-reset.h>
> 
>  / {
> @@ -233,6 +234,19 @@
>  			dma-coherent;
>  		};
> 
> +		spi0: spi@20000 {
> +			compatible = "snps,dw-apb-ssi";
> +			reg = <0x20000 0x100>;
> +			#address-cells = <1>;
> +			#size-cells = <0>;
> +			interrupts = <16>;
> +			num-cs = <2>;
> +			reg-io-width = <4>;
> +			clocks = <&input_clk>;
> +			cs-gpios = <&creg_gpio 0 GPIO_ACTIVE_LOW>,
> +				   <&creg_gpio 1 GPIO_ACTIVE_LOW>;
> +		};
> +
>  		creg_gpio: gpio@14b0 {
>  			compatible = "snps,creg-gpio-hsdk";
>  			reg = <0x14b0 0x4>;
> diff --git a/arch/arc/configs/hsdk_defconfig b/arch/arc/configs/hsdk_defconfig
> index 0c4411f50948..ccfa744fe755 100644
> --- a/arch/arc/configs/hsdk_defconfig
> +++ b/arch/arc/configs/hsdk_defconfig
> @@ -46,6 +46,9 @@ CONFIG_SERIAL_8250_CONSOLE=y
>  CONFIG_SERIAL_8250_DW=y
>  CONFIG_SERIAL_OF_PLATFORM=y
>  # CONFIG_HW_RANDOM is not set
> +CONFIG_SPI=y
> +CONFIG_SPI_DESIGNWARE=y
> +CONFIG_SPI_DW_MMIO=y
>  CONFIG_GPIOLIB=y
>  CONFIG_GPIO_SYSFS=y
>  CONFIG_GPIO_DWAPB=y
> --
> 2.21.0


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

* [PATCH] ARC: [plat-hsdk]: enable DW SPI controller
@ 2019-06-07 15:29   ` Alexey Brodkin
  0 siblings, 0 replies; 6+ messages in thread
From: Alexey Brodkin @ 2019-06-07 15:29 UTC (permalink / raw)
  To: linux-snps-arc

Hi Eugeniy,

> -----Original Message-----
> From: Eugeniy Paltsev <Eugeniy.Paltsev at synopsys.com>
> Sent: Friday, June 7, 2019 5:48 PM
> To: linux-snps-arc at lists.infradead.org; Vineet Gupta <vgupta at synopsys.com>
> Cc: linux-kernel at vger.kernel.org; Alexey Brodkin <abrodkin at synopsys.com>; Eugeniy Paltsev
> <Eugeniy.Paltsev at synopsys.com>
> Subject: [PATCH] ARC: [plat-hsdk]: enable DW SPI controller
> 
> HSDK SoC has DW SPI controller. Enable it in preparation of
> enabling on-board SPI peripherals.
> 
> Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev at synopsys.com>

Adding Rob and...

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

>  arch/arc/boot/dts/hsdk.dts      | 14 ++++++++++++++
>  arch/arc/configs/hsdk_defconfig |  3 +++
>  2 files changed, 17 insertions(+)
> 
> diff --git a/arch/arc/boot/dts/hsdk.dts b/arch/arc/boot/dts/hsdk.dts
> index e57b24dd02e7..42e1c961ba48 100644
> --- a/arch/arc/boot/dts/hsdk.dts
> +++ b/arch/arc/boot/dts/hsdk.dts
> @@ -11,6 +11,7 @@
>   */
>  /dts-v1/;
> 
> +#include <dt-bindings/gpio/gpio.h>
>  #include <dt-bindings/reset/snps,hsdk-reset.h>
> 
>  / {
> @@ -233,6 +234,19 @@
>  			dma-coherent;
>  		};
> 
> +		spi0: spi at 20000 {
> +			compatible = "snps,dw-apb-ssi";
> +			reg = <0x20000 0x100>;
> +			#address-cells = <1>;
> +			#size-cells = <0>;
> +			interrupts = <16>;
> +			num-cs = <2>;
> +			reg-io-width = <4>;
> +			clocks = <&input_clk>;
> +			cs-gpios = <&creg_gpio 0 GPIO_ACTIVE_LOW>,
> +				   <&creg_gpio 1 GPIO_ACTIVE_LOW>;
> +		};
> +
>  		creg_gpio: gpio at 14b0 {
>  			compatible = "snps,creg-gpio-hsdk";
>  			reg = <0x14b0 0x4>;
> diff --git a/arch/arc/configs/hsdk_defconfig b/arch/arc/configs/hsdk_defconfig
> index 0c4411f50948..ccfa744fe755 100644
> --- a/arch/arc/configs/hsdk_defconfig
> +++ b/arch/arc/configs/hsdk_defconfig
> @@ -46,6 +46,9 @@ CONFIG_SERIAL_8250_CONSOLE=y
>  CONFIG_SERIAL_8250_DW=y
>  CONFIG_SERIAL_OF_PLATFORM=y
>  # CONFIG_HW_RANDOM is not set
> +CONFIG_SPI=y
> +CONFIG_SPI_DESIGNWARE=y
> +CONFIG_SPI_DW_MMIO=y
>  CONFIG_GPIOLIB=y
>  CONFIG_GPIO_SYSFS=y
>  CONFIG_GPIO_DWAPB=y
> --
> 2.21.0

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

* Re: [PATCH] ARC: [plat-hsdk]: enable DW SPI controller
  2019-06-07 15:29   ` Alexey Brodkin
@ 2019-07-05 16:03     ` Eugeniy Paltsev
  -1 siblings, 0 replies; 6+ messages in thread
From: Eugeniy Paltsev @ 2019-07-05 16:03 UTC (permalink / raw)
  To: linux-snps-arc
  Cc: Eugeniy.Paltsev, Vineet Gupta, Alexey Brodkin, linux-kernel

Hi Vineet,

I guess you'll add this to 5.3, right?

On Fri, 2019-06-07 at 15:29 +0000, Alexey Brodkin wrote:
> Hi Eugeniy,
> 
> > -----Original Message-----
> > From: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
> > Sent: Friday, June 7, 2019 5:48 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 DW SPI controller
> > 
> > HSDK SoC has DW SPI controller. Enable it in preparation of
> > enabling on-board SPI peripherals.
> > 
> > Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
> 
> Adding Rob and...
> 
> Acked-by: Alexey Brodkin <abrodkin@synopsys.com>
> 
> >  arch/arc/boot/dts/hsdk.dts      | 14 ++++++++++++++
> >  arch/arc/configs/hsdk_defconfig |  3 +++
> >  2 files changed, 17 insertions(+)
> > 
> > diff --git a/arch/arc/boot/dts/hsdk.dts b/arch/arc/boot/dts/hsdk.dts
> > index e57b24dd02e7..42e1c961ba48 100644
> > --- a/arch/arc/boot/dts/hsdk.dts
> > +++ b/arch/arc/boot/dts/hsdk.dts
> > @@ -11,6 +11,7 @@
> >   */
> >  /dts-v1/;
> > 
> > +#include <dt-bindings/gpio/gpio.h>
> >  #include <dt-bindings/reset/snps,hsdk-reset.h>
> > 
> >  / {
> > @@ -233,6 +234,19 @@
> >  			dma-coherent;
> >  		};
> > 
> > +		spi0: spi@20000 {
> > +			compatible = "snps,dw-apb-ssi";
> > +			reg = <0x20000 0x100>;
> > +			#address-cells = <1>;
> > +			#size-cells = <0>;
> > +			interrupts = <16>;
> > +			num-cs = <2>;
> > +			reg-io-width = <4>;
> > +			clocks = <&input_clk>;
> > +			cs-gpios = <&creg_gpio 0 GPIO_ACTIVE_LOW>,
> > +				   <&creg_gpio 1 GPIO_ACTIVE_LOW>;
> > +		};
> > +
> >  		creg_gpio: gpio@14b0 {
> >  			compatible = "snps,creg-gpio-hsdk";
> >  			reg = <0x14b0 0x4>;
> > diff --git a/arch/arc/configs/hsdk_defconfig b/arch/arc/configs/hsdk_defconfig
> > index 0c4411f50948..ccfa744fe755 100644
> > --- a/arch/arc/configs/hsdk_defconfig
> > +++ b/arch/arc/configs/hsdk_defconfig
> > @@ -46,6 +46,9 @@ CONFIG_SERIAL_8250_CONSOLE=y
> >  CONFIG_SERIAL_8250_DW=y
> >  CONFIG_SERIAL_OF_PLATFORM=y
> >  # CONFIG_HW_RANDOM is not set
> > +CONFIG_SPI=y
> > +CONFIG_SPI_DESIGNWARE=y
> > +CONFIG_SPI_DW_MMIO=y
> >  CONFIG_GPIOLIB=y
> >  CONFIG_GPIO_SYSFS=y
> >  CONFIG_GPIO_DWAPB=y
> > --
> > 2.21.0
-- 
 Eugeniy Paltsev

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

* [PATCH] ARC: [plat-hsdk]: enable DW SPI controller
@ 2019-07-05 16:03     ` Eugeniy Paltsev
  0 siblings, 0 replies; 6+ messages in thread
From: Eugeniy Paltsev @ 2019-07-05 16:03 UTC (permalink / raw)
  To: linux-snps-arc

Hi Vineet,

I guess you'll add this to 5.3, right?

On Fri, 2019-06-07@15:29 +0000, Alexey Brodkin wrote:
> Hi Eugeniy,
> 
> > -----Original Message-----
> > From: Eugeniy Paltsev <Eugeniy.Paltsev at synopsys.com>
> > Sent: Friday, June 7, 2019 5:48 PM
> > To: linux-snps-arc at lists.infradead.org; Vineet Gupta <vgupta at synopsys.com>
> > Cc: linux-kernel at vger.kernel.org; Alexey Brodkin <abrodkin at synopsys.com>; Eugeniy Paltsev
> > <Eugeniy.Paltsev at synopsys.com>
> > Subject: [PATCH] ARC: [plat-hsdk]: enable DW SPI controller
> > 
> > HSDK SoC has DW SPI controller. Enable it in preparation of
> > enabling on-board SPI peripherals.
> > 
> > Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev at synopsys.com>
> 
> Adding Rob and...
> 
> Acked-by: Alexey Brodkin <abrodkin at synopsys.com>
> 
> >  arch/arc/boot/dts/hsdk.dts      | 14 ++++++++++++++
> >  arch/arc/configs/hsdk_defconfig |  3 +++
> >  2 files changed, 17 insertions(+)
> > 
> > diff --git a/arch/arc/boot/dts/hsdk.dts b/arch/arc/boot/dts/hsdk.dts
> > index e57b24dd02e7..42e1c961ba48 100644
> > --- a/arch/arc/boot/dts/hsdk.dts
> > +++ b/arch/arc/boot/dts/hsdk.dts
> > @@ -11,6 +11,7 @@
> >   */
> >  /dts-v1/;
> > 
> > +#include <dt-bindings/gpio/gpio.h>
> >  #include <dt-bindings/reset/snps,hsdk-reset.h>
> > 
> >  / {
> > @@ -233,6 +234,19 @@
> >  			dma-coherent;
> >  		};
> > 
> > +		spi0: spi at 20000 {
> > +			compatible = "snps,dw-apb-ssi";
> > +			reg = <0x20000 0x100>;
> > +			#address-cells = <1>;
> > +			#size-cells = <0>;
> > +			interrupts = <16>;
> > +			num-cs = <2>;
> > +			reg-io-width = <4>;
> > +			clocks = <&input_clk>;
> > +			cs-gpios = <&creg_gpio 0 GPIO_ACTIVE_LOW>,
> > +				   <&creg_gpio 1 GPIO_ACTIVE_LOW>;
> > +		};
> > +
> >  		creg_gpio: gpio at 14b0 {
> >  			compatible = "snps,creg-gpio-hsdk";
> >  			reg = <0x14b0 0x4>;
> > diff --git a/arch/arc/configs/hsdk_defconfig b/arch/arc/configs/hsdk_defconfig
> > index 0c4411f50948..ccfa744fe755 100644
> > --- a/arch/arc/configs/hsdk_defconfig
> > +++ b/arch/arc/configs/hsdk_defconfig
> > @@ -46,6 +46,9 @@ CONFIG_SERIAL_8250_CONSOLE=y
> >  CONFIG_SERIAL_8250_DW=y
> >  CONFIG_SERIAL_OF_PLATFORM=y
> >  # CONFIG_HW_RANDOM is not set
> > +CONFIG_SPI=y
> > +CONFIG_SPI_DESIGNWARE=y
> > +CONFIG_SPI_DW_MMIO=y
> >  CONFIG_GPIOLIB=y
> >  CONFIG_GPIO_SYSFS=y
> >  CONFIG_GPIO_DWAPB=y
> > --
> > 2.21.0
-- 
 Eugeniy Paltsev

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

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

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-07 14:48 [PATCH] ARC: [plat-hsdk]: enable DW SPI controller Eugeniy Paltsev
2019-06-07 14:48 ` Eugeniy Paltsev
2019-06-07 15:29 ` Alexey Brodkin
2019-06-07 15:29   ` Alexey Brodkin
2019-07-05 16:03   ` Eugeniy Paltsev
2019-07-05 16:03     ` Eugeniy Paltsev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.