Linux SNPS ARC Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH 0/2] ARC: [plat-hsdk]: enable on-board SPI peripherals
@ 2019-10-18 11:11 Eugeniy Paltsev
  2019-10-18 11:11 ` [PATCH 1/2] ARC: [plat-hsdk]: Enable on-board SPI NOR flash IC Eugeniy Paltsev
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Eugeniy Paltsev @ 2019-10-18 11:11 UTC (permalink / raw)
  To: linux-snps-arc, Vineet Gupta
  Cc: devicetree, Alexey Brodkin, Eugeniy Paltsev, linux-kernel, Rob Herring

HSDK board has SPI flash IC and SPI ADC IC. As all SPI-related
blocking changes/fixes are finally applied we can enable them.

Eugeniy Paltsev (2):
  ARC: [plat-hsdk]: Enable on-board SPI NOR flash IC
  ARC: [plat-hsdk]: Enable on-boardi SPI ADC IC

 arch/arc/boot/dts/hsdk.dts      | 23 +++++++++++++++++++++++
 arch/arc/configs/hsdk_defconfig |  6 ++++++
 2 files changed, 29 insertions(+)

-- 
2.21.0


_______________________________________________
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc

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

* [PATCH 1/2] ARC: [plat-hsdk]: Enable on-board SPI NOR flash IC
  2019-10-18 11:11 [PATCH 0/2] ARC: [plat-hsdk]: enable on-board SPI peripherals Eugeniy Paltsev
@ 2019-10-18 11:11 ` Eugeniy Paltsev
  2019-10-18 11:11 ` [PATCH 2/2] ARC: [plat-hsdk]: Enable on-boardi SPI ADC IC Eugeniy Paltsev
  2019-10-18 13:39 ` [PATCH 0/2] ARC: [plat-hsdk]: enable on-board SPI peripherals Alexey Brodkin
  2 siblings, 0 replies; 4+ messages in thread
From: Eugeniy Paltsev @ 2019-10-18 11:11 UTC (permalink / raw)
  To: linux-snps-arc, Vineet Gupta
  Cc: devicetree, Alexey Brodkin, Eugeniy Paltsev, linux-kernel, Rob Herring

HSDK board has sst26wf016b SPI NOR flash IC installed, enable it.

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

diff --git a/arch/arc/boot/dts/hsdk.dts b/arch/arc/boot/dts/hsdk.dts
index bfc7f5f5d6f2..9bea5daadd23 100644
--- a/arch/arc/boot/dts/hsdk.dts
+++ b/arch/arc/boot/dts/hsdk.dts
@@ -264,6 +264,14 @@
 			clocks = <&input_clk>;
 			cs-gpios = <&creg_gpio 0 GPIO_ACTIVE_LOW>,
 				   <&creg_gpio 1 GPIO_ACTIVE_LOW>;
+
+			spi-flash@0 {
+				compatible = "sst26wf016b", "jedec,spi-nor";
+				reg = <0>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				spi-max-frequency = <4000000>;
+			};
 		};
 
 		creg_gpio: gpio@14b0 {
diff --git a/arch/arc/configs/hsdk_defconfig b/arch/arc/configs/hsdk_defconfig
index 9b9a74444ce2..22fc70396a3b 100644
--- a/arch/arc/configs/hsdk_defconfig
+++ b/arch/arc/configs/hsdk_defconfig
@@ -32,6 +32,8 @@ CONFIG_INET=y
 CONFIG_DEVTMPFS=y
 # CONFIG_STANDALONE is not set
 # CONFIG_PREVENT_FIRMWARE_BUILD is not set
+CONFIG_MTD=y
+CONFIG_MTD_SPI_NOR=y
 CONFIG_SCSI=y
 CONFIG_BLK_DEV_SD=y
 CONFIG_NETDEVICES=y
-- 
2.21.0


_______________________________________________
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc

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

* [PATCH 2/2] ARC: [plat-hsdk]: Enable on-boardi SPI ADC IC
  2019-10-18 11:11 [PATCH 0/2] ARC: [plat-hsdk]: enable on-board SPI peripherals Eugeniy Paltsev
  2019-10-18 11:11 ` [PATCH 1/2] ARC: [plat-hsdk]: Enable on-board SPI NOR flash IC Eugeniy Paltsev
@ 2019-10-18 11:11 ` Eugeniy Paltsev
  2019-10-18 13:39 ` [PATCH 0/2] ARC: [plat-hsdk]: enable on-board SPI peripherals Alexey Brodkin
  2 siblings, 0 replies; 4+ messages in thread
From: Eugeniy Paltsev @ 2019-10-18 11:11 UTC (permalink / raw)
  To: linux-snps-arc, Vineet Gupta
  Cc: devicetree, Alexey Brodkin, Eugeniy Paltsev, linux-kernel, Rob Herring

HSDK board has adc108s102 SPI ADC IC installed, enable it.

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

diff --git a/arch/arc/boot/dts/hsdk.dts b/arch/arc/boot/dts/hsdk.dts
index 9bea5daadd23..9acbeba832c0 100644
--- a/arch/arc/boot/dts/hsdk.dts
+++ b/arch/arc/boot/dts/hsdk.dts
@@ -65,6 +65,14 @@
 		clock-frequency = <33333333>;
 	};
 
+	reg_5v0: regulator-5v0 {
+		compatible = "regulator-fixed";
+
+		regulator-name = "5v0-supply";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+	};
+
 	cpu_intc: cpu-interrupt-controller {
 		compatible = "snps,archs-intc";
 		interrupt-controller;
@@ -272,6 +280,13 @@
 				#size-cells = <1>;
 				spi-max-frequency = <4000000>;
 			};
+
+			adc@1 {
+				compatible = "ti,adc108s102";
+				reg = <1>;
+				vref-supply = <&reg_5v0>;
+				spi-max-frequency = <1000000>;
+			};
 		};
 
 		creg_gpio: gpio@14b0 {
diff --git a/arch/arc/configs/hsdk_defconfig b/arch/arc/configs/hsdk_defconfig
index 22fc70396a3b..0974226fab55 100644
--- a/arch/arc/configs/hsdk_defconfig
+++ b/arch/arc/configs/hsdk_defconfig
@@ -57,6 +57,8 @@ CONFIG_GPIO_SYSFS=y
 CONFIG_GPIO_DWAPB=y
 CONFIG_GPIO_SNPS_CREG=y
 # CONFIG_HWMON is not set
+CONFIG_REGULATOR=y
+CONFIG_REGULATOR_FIXED_VOLTAGE=y
 CONFIG_DRM=y
 # CONFIG_DRM_FBDEV_EMULATION is not set
 CONFIG_DRM_UDL=y
@@ -74,6 +76,8 @@ CONFIG_MMC_SDHCI_PLTFM=y
 CONFIG_MMC_DW=y
 CONFIG_DMADEVICES=y
 CONFIG_DW_AXI_DMAC=y
+CONFIG_IIO=y
+CONFIG_TI_ADC108S102=y
 CONFIG_EXT3_FS=y
 CONFIG_VFAT_FS=y
 CONFIG_TMPFS=y
-- 
2.21.0


_______________________________________________
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc

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

* RE: [PATCH 0/2] ARC: [plat-hsdk]: enable on-board SPI peripherals
  2019-10-18 11:11 [PATCH 0/2] ARC: [plat-hsdk]: enable on-board SPI peripherals Eugeniy Paltsev
  2019-10-18 11:11 ` [PATCH 1/2] ARC: [plat-hsdk]: Enable on-board SPI NOR flash IC Eugeniy Paltsev
  2019-10-18 11:11 ` [PATCH 2/2] ARC: [plat-hsdk]: Enable on-boardi SPI ADC IC Eugeniy Paltsev
@ 2019-10-18 13:39 ` Alexey Brodkin
  2 siblings, 0 replies; 4+ messages in thread
From: Alexey Brodkin @ 2019-10-18 13:39 UTC (permalink / raw)
  To: Eugeniy Paltsev
  Cc: devicetree, Vineet Gupta, Rob Herring, linux-kernel, linux-snps-arc

Hi Eugeniy,

> -----Original Message-----
> From: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
> Sent: Friday, October 18, 2019 2:11 PM
> To: linux-snps-arc@lists.infradead.org; Vineet Gupta <vgupta@synopsys.com>
> Cc: linux-kernel@vger.kernel.org; Alexey Brodkin <abrodkin@synopsys.com>; Rob Herring
> <robh+dt@kernel.org>; devicetree@vger.kernel.org; Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
> Subject: [PATCH 0/2] ARC: [plat-hsdk]: enable on-board SPI peripherals
> 
> HSDK board has SPI flash IC and SPI ADC IC. As all SPI-related
> blocking changes/fixes are finally applied we can enable them.
> 
> Eugeniy Paltsev (2):
>   ARC: [plat-hsdk]: Enable on-board SPI NOR flash IC
>   ARC: [plat-hsdk]: Enable on-boardi SPI ADC IC

For both patches in the series

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


_______________________________________________
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc

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

end of thread, back to index

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-18 11:11 [PATCH 0/2] ARC: [plat-hsdk]: enable on-board SPI peripherals Eugeniy Paltsev
2019-10-18 11:11 ` [PATCH 1/2] ARC: [plat-hsdk]: Enable on-board SPI NOR flash IC Eugeniy Paltsev
2019-10-18 11:11 ` [PATCH 2/2] ARC: [plat-hsdk]: Enable on-boardi SPI ADC IC Eugeniy Paltsev
2019-10-18 13:39 ` [PATCH 0/2] ARC: [plat-hsdk]: enable on-board SPI peripherals Alexey Brodkin

Linux SNPS ARC Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-snps-arc/0 linux-snps-arc/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-snps-arc linux-snps-arc/ https://lore.kernel.org/linux-snps-arc \
		linux-snps-arc@lists.infradead.org
	public-inbox-index linux-snps-arc

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.infradead.lists.linux-snps-arc


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git