public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Daniel Thompson <daniel.thompson@linaro.org>
To: Udit Kumar <udit.kumar@nxp.com>,
	Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Leif Lindholm <leif.lindholm@linaro.org>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>,
	Varun Sethi <V.Sethi@nxp.com>,
	Graeme Gregory <graeme.gregory@linaro.org>
Subject: Re: [RFC] ACPI table HID/CID allocation
Date: Mon, 27 Nov 2017 12:13:59 +0000	[thread overview]
Message-ID: <ed2d36ea-3e71-f30e-cc20-320f2dda259e@linaro.org> (raw)
In-Reply-To: <AM6PR0402MB33349C441632A666EB8E06CC91270@AM6PR0402MB3334.eurprd04.prod.outlook.com>

On 25/11/17 12:56, Udit Kumar wrote:>> -----Original Message-----
>> From: Daniel Thompson [mailto:daniel.thompson@linaro.org]
>> Sent: Thursday, November 23, 2017 1:42 AM
>> To: Ard Biesheuvel <ard.biesheuvel@linaro.org>
>> Cc: Udit Kumar <udit.kumar@nxp.com>; Leif Lindholm
>> <leif.lindholm@linaro.org>; edk2-devel@lists.01.org; Varun Sethi
>> <V.Sethi@nxp.com>; Graeme Gregory <graeme.gregory@linaro.org>
>> Subject: Re: [RFC] ACPI table HID/CID allocation
>>
> 
>>>
>>> PRP0001 + compatible was invented to avoid the need to allocate a _HID
>>> for each and every component in existence that can already be
>>> identified by a DT compatible string (and little else except, e.g., a
>>> I2C slave address) and is not deeply engrained in the SoC in terms of
>>> clock tree, power states etc. So while internal/external may not be
>>> the most accurate distinction, it is still a useful one IMHO.
>>
>> Hmnnn.... it sounds like jedec,spi-nor meets this test.
>>
>> There is only one property in the DT bindings that describes the device
>> itself (fast read support) rather than its "bus address" (chip select,
>> frequency). Further, that single property is obsolete, at least for
>> Linux; the kernel driver now contains a quirks tables to look up by
>> device ID whether fast read is supported and will use that on non-DT
>> systems (and also to censor broken DT systems ;-) ).
> 
> You mean, this more on bus frame work, how to probe slave.
> Example rtc-ds3232.c , when is spi mode just need name
> but for i2c mode it needs of_match_table
I mean nothing more or less than that PRP0001 + compatible:jedec,spi-nor 
is tolerable within the ACPI tables (rather than allocating a HID) 
because it has no properties[1] beyond the bus configuration that ACPI 
can already describe

I'm afraid I don't understand how rtc-ds3232.c fits into this topic; 
there are no documented device tree bindings for the SPI variant of this 
part and, in any case, an RTC should use the ACPI interfaces 
(rtc-cmos.c) so the choice HID is a moot point; it should not be in the 
ACPI tables at all.


Daniel.


[1] Assuming one accepts the argument that the m25p,fast-read property
     can be ignored.
     ignored.


  parent reply	other threads:[~2017-11-27 12:09 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-21  9:19 [RFC] ACPI table HID/CID allocation Udit Kumar
2017-11-21  9:38 ` Ard Biesheuvel
2017-11-21  9:59   ` Udit Kumar
2017-11-21 10:13     ` Ard Biesheuvel
2017-11-21 11:32       ` Udit Kumar
2017-11-21 12:29         ` Ard Biesheuvel
2017-11-21 13:24           ` Udit Kumar
2017-11-21 14:03             ` Ard Biesheuvel
2017-11-21 18:10               ` Udit Kumar
2017-11-22 11:30                 ` Daniel Thompson
2017-11-22 13:39                   ` Udit Kumar
2017-11-22 17:34                     ` Andrew Fish
2017-11-25 12:40                       ` Udit Kumar
2017-11-22 19:39                   ` Ard Biesheuvel
2017-11-22 20:11                     ` Daniel Thompson
2017-11-25 12:56                       ` Udit Kumar
2017-11-25 19:41                         ` Andrew Fish
2017-11-26  8:35                           ` Udit Kumar
2017-11-27 12:13                         ` Daniel Thompson [this message]
2017-11-27 13:31                           ` Udit Kumar
2017-11-25 12:47                     ` Udit Kumar

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-list 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=ed2d36ea-3e71-f30e-cc20-320f2dda259e@linaro.org \
    --to=devel@edk2.groups.io \
    /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