mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Scott Branden <scott.branden@broadcom.com>
To: Rob Herring <robh@kernel.org>,
	Arun Parameswaran <arun.parameswaran@broadcom.com>
Cc: Richard Cochran <richardcochran@gmail.com>,
	Mark Rutland <mark.rutland@arm.com>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	netdev@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com
Subject: Re: [PATCH v1 1/2] dt-binding: ptp: add bindings document for dte based ptp clock
Date: Tue, 20 Jun 2017 13:48:18 -0700	[thread overview]
Message-ID: <74b85a32-63c5-b7c5-47a2-831504be318e@broadcom.com> (raw)
In-Reply-To: <20170618140449.aek7vag22i5lnbhl@rob-hp-laptop>

Hi Rob,


On 17-06-18 07:04 AM, Rob Herring wrote:
> On Mon, Jun 12, 2017 at 01:26:00PM -0700, Arun Parameswaran wrote:
>> Add device tree binding documentation for the Broadcom DTE
>> PTP clock driver.
>>
>> Signed-off-by: Arun Parameswaran <arun.parameswaran@broadcom.com>
>> ---
>>   Documentation/devicetree/bindings/ptp/brcm,ptp-dte.txt | 13 +++++++++++++
>>   1 file changed, 13 insertions(+)
>>   create mode 100644 Documentation/devicetree/bindings/ptp/brcm,ptp-dte.txt
>>
>> diff --git a/Documentation/devicetree/bindings/ptp/brcm,ptp-dte.txt b/Documentation/devicetree/bindings/ptp/brcm,ptp-dte.txt
>> new file mode 100644
>> index 0000000..07590bc
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/ptp/brcm,ptp-dte.txt
>> @@ -0,0 +1,13 @@
>> +* Broadcom Digital Timing Engine(DTE) based PTP clock driver
> Bindings describe h/w, not drivers.
>
>> +
>> +Required properties:
>> +- compatible: should be "brcm,ptp-dte"
> Looks too generic. You need SoC specific compatible strings.

Rob, could you please help me understand the use of adding SoC specific 
compatible strings.
I still don't get it.

It's my understanding that the SoC compatibility string is to future 
proof against bugs/incompatibilities
between different versions of the hardware block due to integration 
issues or any other reason.
You can then compare in your driver because the strings were already 
used in the dtb.

That would make sense if you can't already differentiate what SoC you 
are running on.
But the SoC is already specified in the root of the device tree in the 
compatible string?
Why can't you just use of_machine_is_compatible inside your driver when 
needed?

Please explain what I'm missing.  I see other drivers already following 
the of_machine_is_compatible
approach and it makes more sense to me than adding SoC specific 
compatible strings into every
driver.

Regards,
  Scott

  parent reply	other threads:[~2017-06-20 20:48 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-12 20:25 [PATCH v1 0/2] Add support for Broadcom DTE based PTP clock Arun Parameswaran
2017-06-12 20:26 ` [PATCH v1 1/2] dt-binding: ptp: add bindings document for dte based ptp clock Arun Parameswaran
2017-06-13  5:09   ` Richard Cochran
2017-06-13 17:46     ` Arun Parameswaran
2017-06-14 18:18       ` Ray Jui
2017-06-14 18:33         ` Arun Parameswaran
2017-06-14 18:39         ` Arun Parameswaran
2017-06-18 14:04   ` Rob Herring
2017-06-19 16:50     ` Arun Parameswaran
2017-06-20 20:48     ` Scott Branden [this message]
2017-06-22  3:19       ` Rob Herring
2017-06-23  0:42         ` Scott Branden
2017-06-23  1:04           ` Florian Fainelli
2017-06-27  5:10             ` Scott Branden
2017-06-29 22:40               ` Rob Herring
2017-06-30  1:05                 ` Scott Branden
2017-06-12 20:26 ` [PATCH v1 2/2] ptp: Add a ptp clock driver for Broadcom DTE Arun Parameswaran
2017-06-15 16:07 ` [PATCH v1 0/2] Add support for Broadcom DTE based PTP clock David Miller

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=74b85a32-63c5-b7c5-47a2-831504be318e@broadcom.com \
    --to=scott.branden@broadcom.com \
    --cc=arun.parameswaran@broadcom.com \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=netdev@vger.kernel.org \
    --cc=richardcochran@gmail.com \
    --cc=robh@kernel.org \
    /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®