mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Flavio Suligoi <f.suligoi@asem.it>
To: David Woodhouse <dwmw2@infradead.org>,
	Brian Norris <computersforpeace@gmail.com>,
	Boris Brezillon <bbrezillon@kernel.org>,
	"Marek Vasut" <marek.vasut@gmail.com>,
	Richard Weinberger <richard@nod.at>,
	"Mark Brown" <broonie@kernel.org>,
	Frieder Schrempf <frieder.schrempf@exceet.de>,
	Yogesh Gaur <yogeshnarayan.gaur@nxp.com>,
	"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH v1 1/1] mtd: devices: add ACPI support for non-jedec m25p80
Date: Thu, 7 Mar 2019 17:50:19 +0000	[thread overview]
Message-ID: <f03c76b1d0cb49848371915f53f9784d@asem.it> (raw)
In-Reply-To: <a655aeea9c499623a458f79fba396ed8d088f2e1.camel@infradead.org>

> -----Original Message-----
> From: David Woodhouse <dwmw2@infradead.org>
> Sent: giovedì 7 marzo 2019 18:40
> To: Flavio Suligoi <f.suligoi@asem.it>; Brian Norris
> <computersforpeace@gmail.com>; Boris Brezillon <bbrezillon@kernel.org>;
> Marek Vasut <marek.vasut@gmail.com>; Richard Weinberger <richard@nod.at>;
> Mark Brown <broonie@kernel.org>; Frieder Schrempf
> <frieder.schrempf@exceet.de>; Yogesh Gaur <yogeshnarayan.gaur@nxp.com>;
> linux-mtd@lists.infradead.org; linux-kernel@vger.kernel.org
> Subject: Re: [PATCH v1 1/1] mtd: devices: add ACPI support for non-jedec
> m25p80
> 
> On Tue, 2019-02-26 at 11:48 +0100, Flavio Suligoi wrote:
> > For the x86 machines a m25p80-compatible device have to be declared
> using
> > an ACPI table (which can be directly a part of the BIOS ACPI tables).
> >
> > In this case it is necessary to add the device in the "of_device_id"
> structure
> > list, to permit the device name matching by the ACPI kernel functions.
> >
> > This is an example of a SSDT table for the Everspin mr25h40:
> >
> > DefinitionBlock ("mr25h40.aml", "SSDT", 5, "ASEMsp", "MR25H40", 1)
> > {
> > 	External (_SB.SPI1, DeviceObj)
> >
> > 	Scope (\_SB.SPI1)
> > 	{
> > 		Device (NVR0)
> > 		{
> > 			Name (_HID, "PRP0001")
> > 			Name (_DDN, "Everspin MR25H40 MRAM")
> > 			Name (_CRS, ResourceTemplate () {
> > 				SpiSerialBus (
> > 				1,                      // Chip select
> > 				PolarityLow,            // Chip select is active
> low
> > 				FourWireMode,           // Full duplex
> > 				8,                      // Bits per word is 8
> (byte)
> > 				ControllerInitiated,    // Don't care
> > 				10000000,               // 10 MHz
> > 				ClockPolarityLow,       // SPI mode 0
> ClockPolarityLow
> > 				ClockPhaseFirst,        // SPI mode 0
> ClockPhaseFirst
> > 				"\\_SB.SPI1",      	// SPI host controller
> > 				0,			// Must be 0
> > 				ResourceConsumer,
> > 				,
> > 				)
> > 			})
> >
> > 			Name (_DSD, Package () {
> > 				ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
> > 				Package () {
> > 					Package () {"compatible", "mr25h40"},
> > 				}
> > 			})
> > 		}
> > 	}
> > }
> >
> > Signed-off-by: Flavio Suligoi <f.suligoi@asem.it>
> 
> Why use the specific chip name in the "compatible" property? Why isn't
> it using "jedec,spi-nor"?
> 
> Does this still actually get passed through to spi_nor_scan()... and is
> it *necessary*? Can't the chips be probed?
> 

Hi David,

exactly, the mr25h40 is not Jedec compatible, so it can't be probed, 
so it is necessary to identify it explicitly.

Flavio

      reply	other threads:[~2019-03-07 17:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-26 10:48 [PATCH v1 0/1] " Flavio Suligoi
2019-02-26 10:48 ` [PATCH v1 1/1] " Flavio Suligoi
2019-03-07 17:40   ` David Woodhouse
2019-03-07 17:50     ` Flavio Suligoi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f03c76b1d0cb49848371915f53f9784d@asem.it \
    --to=f.suligoi@asem.it \
    --cc=bbrezillon@kernel.org \
    --cc=broonie@kernel.org \
    --cc=computersforpeace@gmail.com \
    --cc=dwmw2@infradead.org \
    --cc=frieder.schrempf@exceet.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=marek.vasut@gmail.com \
    --cc=richard@nod.at \
    --cc=yogeshnarayan.gaur@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®