Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1299426

Re: [PATCH 1/2] dt-bindings: GPIO: Add generic serializer binding

From "Andrew F. Davis" <afd@ti.com>
Newsgroups linux.kernel
Subject Re: [PATCH 1/2] dt-bindings: GPIO: Add generic serializer binding
Date 2015-12-30 18:10 +0100
Message-ID <qLsq7-YR-25@gated-at.bofh.it> (permalink)
References (2 earlier) <qEDJE-1yy-3@gated-at.bofh.it> <qFEtY-di-21@gated-at.bofh.it> <qFJWH-3Ss-53@gated-at.bofh.it> <qFKJ4-4oW-11@gated-at.bofh.it> <qIrTB-2h1-27@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 12/22/2015 03:51 AM, Linus Walleij wrote:
> On Tue, Dec 15, 2015 at 12:19 AM, Andrew F. Davis <afd@ti.com> wrote:
>> [Rob]
>>> I agree the generic version is fine (or find who made the first part
>>> ;)). What "pisosr" is is not very obvious though. Having 74165 in the
>>> compatible would make it somewhat more obvious it is a standard logic
>>> part.
>>>
>>
>> A quick search shows shift-registers being made from vacuum tubes for
>> the Colossus! Those might work with this driver if you could match the
>> voltage to an SPI bus... :)
>>
>> I agree about the name not being very good, but I'm not sure about
>> 74165 ether as it is also just a single part number.
>
> We can add many compatible strings so it's not an issue.
> "ti,74165" works for me as TI invented the 74xx series.
>

Free advertising for our parts :)

>> The idea was to
>> have a non-part number compatible string for any shift-register you
>> can hook to the SPI line.
>
> Again, one does not exclude the other. I'm happy with a generic
> compatible *and* "ti,74165".
>
>> That way when we have boards with a sn65x882
>> or something we wont have to call it a 74165. But I guess that's why
>> it's a "compatible:" string, and not "is-a:" string.
>
> Compatible ranges from the specific to the more generic
> so compatible = "ti,74165", "pisosr"; is just fine. Something
> will match if there is a suitable driver. The OS may choose to
> provide something part-specific or something more generic.
>

And so we won't need to have "ti,74165" in the driver itself,
if we just have "pisosr", then dts files can use what ever they
like to correctly identify the part then fall back to pisosr.

compatible = "company,random_numbers_of_exact_part_actually_on_board", "pisosr";

Andrew

> Yours,
> Linus Walleij
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH 1/2] dt-bindings: GPIO: Add generic serializer binding "Andrew F. Davis" <afd@ti.com> - 2015-12-14 17:50 +0100
  Re: [PATCH 1/2] dt-bindings: GPIO: Add generic serializer binding Rob Herring <robh+dt@kernel.org> - 2015-12-14 23:40 +0100
    Re: [PATCH 1/2] dt-bindings: GPIO: Add generic serializer binding "Andrew F. Davis" <afd@ti.com> - 2015-12-15 00:30 +0100
      Re: [PATCH 1/2] dt-bindings: GPIO: Add generic serializer binding Rob Herring <robh+dt@kernel.org> - 2015-12-16 17:40 +0100
        Re: [PATCH 1/2] dt-bindings: GPIO: Add generic serializer binding "Andrew F. Davis" <afd@ti.com> - 2015-12-30 18:10 +0100
      Re: [PATCH 1/2] dt-bindings: GPIO: Add generic serializer binding Linus Walleij <linus.walleij@linaro.org> - 2015-12-22 11:00 +0100
        Re: [PATCH 1/2] dt-bindings: GPIO: Add generic serializer binding "Andrew F. Davis" <afd@ti.com> - 2015-12-30 18:10 +0100
  Re: [PATCH 1/2] dt-bindings: GPIO: Add generic serializer binding Geert Uytterhoeven <geert@linux-m68k.org> - 2015-12-17 09:30 +0100
  Re: [PATCH 1/2] dt-bindings: GPIO: Add generic serializer binding Geert Uytterhoeven <geert@linux-m68k.org> - 2015-12-17 09:30 +0100

csiph-web