All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] x86: Add alias for SPI node in the board dts
@ 2015-04-15  4:00 Bin Meng
  2015-04-20  3:23 ` Simon Glass
  0 siblings, 1 reply; 3+ messages in thread
From: Bin Meng @ 2015-04-15  4:00 UTC (permalink / raw)
  To: u-boot

Since Intel ICH SPI driver has been converted to driver model, we need
add an alias for SPI node in the board dts files otherwise SPI flash
won't be detected due to 'invalid bus' error.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
---

 arch/x86/dts/crownbay.dts  | 6 +++++-
 arch/x86/dts/galileo.dts   | 4 ++++
 arch/x86/dts/minnowmax.dts | 3 ++-
 3 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/arch/x86/dts/crownbay.dts b/arch/x86/dts/crownbay.dts
index e81054e..fbdeade 100644
--- a/arch/x86/dts/crownbay.dts
+++ b/arch/x86/dts/crownbay.dts
@@ -13,6 +13,10 @@
 	model = "Intel Crown Bay";
 	compatible = "intel,crownbay", "intel,queensbay";
 
+	aliases {
+		spi0 = "/spi";
+	};
+
 	config {
 		silent_console = <0>;
 	};
@@ -46,7 +50,7 @@
 	spi {
 		#address-cells = <1>;
 		#size-cells = <0>;
-		compatible = "intel,ich7";
+		compatible = "intel,ich-spi";
 		spi-flash at 0 {
 			reg = <0>;
 			compatible = "sst,25vf016b", "spi-flash";
diff --git a/arch/x86/dts/galileo.dts b/arch/x86/dts/galileo.dts
index 66af64a..60dbc5f 100644
--- a/arch/x86/dts/galileo.dts
+++ b/arch/x86/dts/galileo.dts
@@ -14,6 +14,10 @@
 	model = "Intel Galileo";
 	compatible = "intel,galileo", "intel,quark";
 
+	aliases {
+		spi0 = "/spi";
+	};
+
 	config {
 		silent_console = <0>;
 	};
diff --git a/arch/x86/dts/minnowmax.dts b/arch/x86/dts/minnowmax.dts
index 8f34369..ecd4a89 100644
--- a/arch/x86/dts/minnowmax.dts
+++ b/arch/x86/dts/minnowmax.dts
@@ -15,6 +15,7 @@
 
 	aliases {
 		serial0 = &serial;
+		spi0 = "/spi";
 	};
 
 	config {
@@ -28,7 +29,7 @@
 	spi {
 		#address-cells = <1>;
 		#size-cells = <0>;
-		compatible = "intel,ich";
+		compatible = "intel,ich-spi";
 		spi-flash at 0 {
 			reg = <0>;
 			compatible = "sst,25vf016b", "spi-flash";
-- 
1.8.2.1

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

* [U-Boot] [PATCH] x86: Add alias for SPI node in the board dts
  2015-04-15  4:00 [U-Boot] [PATCH] x86: Add alias for SPI node in the board dts Bin Meng
@ 2015-04-20  3:23 ` Simon Glass
  2015-04-20  4:02   ` Simon Glass
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Glass @ 2015-04-20  3:23 UTC (permalink / raw)
  To: u-boot

On 14 April 2015 at 22:00, Bin Meng <bmeng.cn@gmail.com> wrote:
> Since Intel ICH SPI driver has been converted to driver model, we need
> add an alias for SPI node in the board dts files otherwise SPI flash
> won't be detected due to 'invalid bus' error.
>
> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
> ---
>
>  arch/x86/dts/crownbay.dts  | 6 +++++-
>  arch/x86/dts/galileo.dts   | 4 ++++
>  arch/x86/dts/minnowmax.dts | 3 ++-
>  3 files changed, 11 insertions(+), 2 deletions(-)

Acked-by: Simon Glass <sjg@chromium.org>

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

* [U-Boot] [PATCH] x86: Add alias for SPI node in the board dts
  2015-04-20  3:23 ` Simon Glass
@ 2015-04-20  4:02   ` Simon Glass
  0 siblings, 0 replies; 3+ messages in thread
From: Simon Glass @ 2015-04-20  4:02 UTC (permalink / raw)
  To: u-boot

On 19 April 2015 at 21:23, Simon Glass <sjg@chromium.org> wrote:
> On 14 April 2015 at 22:00, Bin Meng <bmeng.cn@gmail.com> wrote:
>> Since Intel ICH SPI driver has been converted to driver model, we need
>> add an alias for SPI node in the board dts files otherwise SPI flash
>> won't be detected due to 'invalid bus' error.
>>
>> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
>> ---
>>
>>  arch/x86/dts/crownbay.dts  | 6 +++++-
>>  arch/x86/dts/galileo.dts   | 4 ++++
>>  arch/x86/dts/minnowmax.dts | 3 ++-
>>  3 files changed, 11 insertions(+), 2 deletions(-)
>
> Acked-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-x86, thanks!

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

end of thread, other threads:[~2015-04-20  4:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-15  4:00 [U-Boot] [PATCH] x86: Add alias for SPI node in the board dts Bin Meng
2015-04-20  3:23 ` Simon Glass
2015-04-20  4:02   ` Simon Glass

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.