All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/1] orange-pi-zero: minor updates for peripherals
@ 2017-05-28 10:30 ` Sergey Matyukevich
  0 siblings, 0 replies; 6+ messages in thread
From: Sergey Matyukevich @ 2017-05-28 10:30 UTC (permalink / raw)
  To: Maxime Ripard, Chen-Yu Tsai
  Cc: Icenowy Zheng, devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

This patch adds optional node for SPI NOR chip on the orange-pi-zero board.

Changes from v2:
- add new node in alphabetical order
- drop changes for wifi xr819 node for the time being:
  -- more work is needed, e.g. adding bindings for XR819

Changes from v1:
- update commit messages: drop links to wiki at linux-sunxi.org
- disable SPI NOR flash by default
- drop description of the flash partitions
- add compatible property for XR819 wifi node

sun8i-h2-plus-orangepi-zero.dts |   13 +++++++++++++
1 file changed, 13 insertions(+)

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* [PATCH v3 0/1] orange-pi-zero: minor updates for peripherals
@ 2017-05-28 10:30 ` Sergey Matyukevich
  0 siblings, 0 replies; 6+ messages in thread
From: Sergey Matyukevich @ 2017-05-28 10:30 UTC (permalink / raw)
  To: linux-arm-kernel

This patch adds optional node for SPI NOR chip on the orange-pi-zero board.

Changes from v2:
- add new node in alphabetical order
- drop changes for wifi xr819 node for the time being:
  -- more work is needed, e.g. adding bindings for XR819

Changes from v1:
- update commit messages: drop links to wiki at linux-sunxi.org
- disable SPI NOR flash by default
- drop description of the flash partitions
- add compatible property for XR819 wifi node

sun8i-h2-plus-orangepi-zero.dts |   13 +++++++++++++
1 file changed, 13 insertions(+)

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

* [PATCH v3 1/1] ARM: dts: orange-pi-zero: add node for SPI NOR
  2017-05-28 10:30 ` Sergey Matyukevich
@ 2017-05-28 10:30     ` Sergey Matyukevich
  -1 siblings, 0 replies; 6+ messages in thread
From: Sergey Matyukevich @ 2017-05-28 10:30 UTC (permalink / raw)
  To: Maxime Ripard, Chen-Yu Tsai
  Cc: Icenowy Zheng, devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	Sergey Matyukevich

Add node for SPI NOR flash on orange-pi-zero board. Disable this node
by default and leave it to users to enable it if their board has
SPI NOR flash chip populated.

SPI NOR flash was optional in the first production batch in Dec 2016.
In later batches flash chip was pre-populated. However there should
be quite a few boards around which do not have flash chip.

Signed-off-by: Sergey Matyukevich <geomatsi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
 arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
index 9e8b082c134f..0b8b969f7c64 100644
--- a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
+++ b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
@@ -143,6 +143,19 @@
 	status = "okay";
 };
 
+&spi0 {
+	/* Disable SPI NOR by default: it optional on Orange Pi Zero boards */
+	status = "disabled";
+
+	flash@0 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "mxicy,mx25l1606e", "winbond,w25q128";
+		reg = <0>;
+		spi-max-frequency = <40000000>;
+	};
+};
+
 &uart0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart0_pins_a>;
-- 
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* [PATCH v3 1/1] ARM: dts: orange-pi-zero: add node for SPI NOR
@ 2017-05-28 10:30     ` Sergey Matyukevich
  0 siblings, 0 replies; 6+ messages in thread
From: Sergey Matyukevich @ 2017-05-28 10:30 UTC (permalink / raw)
  To: linux-arm-kernel

Add node for SPI NOR flash on orange-pi-zero board. Disable this node
by default and leave it to users to enable it if their board has
SPI NOR flash chip populated.

SPI NOR flash was optional in the first production batch in Dec 2016.
In later batches flash chip was pre-populated. However there should
be quite a few boards around which do not have flash chip.

Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
---
 arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
index 9e8b082c134f..0b8b969f7c64 100644
--- a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
+++ b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
@@ -143,6 +143,19 @@
 	status = "okay";
 };
 
+&spi0 {
+	/* Disable SPI NOR by default: it optional on Orange Pi Zero boards */
+	status = "disabled";
+
+	flash at 0 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "mxicy,mx25l1606e", "winbond,w25q128";
+		reg = <0>;
+		spi-max-frequency = <40000000>;
+	};
+};
+
 &uart0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart0_pins_a>;
-- 
2.11.0

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

* Re: [PATCH v3 1/1] ARM: dts: orange-pi-zero: add node for SPI NOR
  2017-05-28 10:30     ` Sergey Matyukevich
@ 2017-05-29  8:30         ` Maxime Ripard
  -1 siblings, 0 replies; 6+ messages in thread
From: Maxime Ripard @ 2017-05-29  8:30 UTC (permalink / raw)
  To: Sergey Matyukevich
  Cc: Chen-Yu Tsai, Icenowy Zheng, devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

[-- Attachment #1: Type: text/plain, Size: 676 bytes --]

On Sun, May 28, 2017 at 01:30:26PM +0300, Sergey Matyukevich wrote:
> Add node for SPI NOR flash on orange-pi-zero board. Disable this node
> by default and leave it to users to enable it if their board has
> SPI NOR flash chip populated.
> 
> SPI NOR flash was optional in the first production batch in Dec 2016.
> In later batches flash chip was pre-populated. However there should
> be quite a few boards around which do not have flash chip.
> 
> Signed-off-by: Sergey Matyukevich <geomatsi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

Merged, thanks!
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

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

* [PATCH v3 1/1] ARM: dts: orange-pi-zero: add node for SPI NOR
@ 2017-05-29  8:30         ` Maxime Ripard
  0 siblings, 0 replies; 6+ messages in thread
From: Maxime Ripard @ 2017-05-29  8:30 UTC (permalink / raw)
  To: linux-arm-kernel

On Sun, May 28, 2017 at 01:30:26PM +0300, Sergey Matyukevich wrote:
> Add node for SPI NOR flash on orange-pi-zero board. Disable this node
> by default and leave it to users to enable it if their board has
> SPI NOR flash chip populated.
> 
> SPI NOR flash was optional in the first production batch in Dec 2016.
> In later batches flash chip was pre-populated. However there should
> be quite a few boards around which do not have flash chip.
> 
> Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>

Merged, thanks!
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170529/bee06885/attachment-0001.sig>

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

end of thread, other threads:[~2017-05-29  8:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-28 10:30 [PATCH v3 0/1] orange-pi-zero: minor updates for peripherals Sergey Matyukevich
2017-05-28 10:30 ` Sergey Matyukevich
     [not found] ` <20170528103026.6396-1-geomatsi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-05-28 10:30   ` [PATCH v3 1/1] ARM: dts: orange-pi-zero: add node for SPI NOR Sergey Matyukevich
2017-05-28 10:30     ` Sergey Matyukevich
     [not found]     ` <20170528103026.6396-2-geomatsi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-05-29  8:30       ` Maxime Ripard
2017-05-29  8:30         ` Maxime Ripard

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.