* Re: [PATCH] ARM: tegra: add "nor-jedec" flash compatible binding [not found] ` <20150508184317.GZ32500@ld-irv-0074> @ 2015-05-08 18:47 ` Brian Norris 2015-05-08 20:57 ` Geert Uytterhoeven 1 sibling, 0 replies; 5+ messages in thread From: Brian Norris @ 2015-05-08 18:47 UTC (permalink / raw) To: linux-arm-kernel On Fri, May 08, 2015 at 11:43:17AM -0700, Brian Norris wrote: > I'm open to change, as this binding is new in 4.1-rc1. Though we'd need to make sure any change to "nor-jedec" gets applied to the shmobile platforms that have started using this string in linux-next. Brian ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: tegra: add "nor-jedec" flash compatible binding [not found] ` <20150508184317.GZ32500@ld-irv-0074> 2015-05-08 18:47 ` [PATCH] ARM: tegra: add "nor-jedec" flash compatible binding Brian Norris @ 2015-05-08 20:57 ` Geert Uytterhoeven 2015-05-08 21:04 ` Stephen Warren 1 sibling, 1 reply; 5+ messages in thread From: Geert Uytterhoeven @ 2015-05-08 20:57 UTC (permalink / raw) To: linux-arm-kernel On Fri, May 8, 2015 at 8:43 PM, Brian Norris <computersforpeace@gmail.com> wrote: > On Fri, May 08, 2015 at 10:00:12AM -0600, Stephen Warren wrote: >> On 05/08/2015 12:21 AM, Rafał Miłecki wrote: >> >Starting with commits >> >8ff16cf ("Documentation: devicetree: m25p80: add "nor-jedec" binding") >> >1103b85 ("mtd: m25p80: bind to "nor-jedec" ID, for auto-detection") >> >we have "nor-jedec" binding indicating support for JEDEC identification. >> >> The documentation looks quite incomplete. "nor-jedec" sounds like >> it's intended to be something generic. As such, it should be >> documented in e.g. >> Documentation/devicetree/bindings/mtd/nor-jedec.txt, not buried in >> one particular flash device's binding. If it's not intended to be >> generic, why isn't the existing "winbond,w25q32dw" enough? > > It is generic, though there are plenty of additional manufacturer/device > pairs that could go on top of it. m25p80 was (one of?) the first > supported, so the naming has been based on legacy, and we're in the > process of unwinding a bit of that. If it helps, we could move the doc > to .../mtd/spi-nor,nor-jedec.txt or something like that. > >> Equally, "nor-jedec" doesn't sound like the right name. It doesn't >> differentiate between SPI and parallel NOR flash, which presumably >> need different compatible values, since the programming model is >> quite different, and the compatible value is supposed to >> define/imply the SW-visible programming model. > > It's definitely for SPI only. There was much discussion about this a > few months back. Somewhere along the way, it was mentioned that the > context (SPI slave is a child of SPI master) would make this clear. I'm > still not sure why we didn't end up with something more descriptive, > though, like "spi-nor,nor-jedec". What about "jedec,spi-nor"? Is this "SERIAL FLASH DISCOVERABLE PARAMETERS (SFDP)"? https://www.jedec.org/standards-documents/docs/jesd216b (Don't have time to register with jedec now...) If yes, "jedec,sfdp"? "jedec,jesd216b"? > I'm open to change, as this binding is new in 4.1-rc1. Indeed, as long as all users are fixed before 4.1 is released. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: tegra: add "nor-jedec" flash compatible binding 2015-05-08 20:57 ` Geert Uytterhoeven @ 2015-05-08 21:04 ` Stephen Warren 2015-05-08 21:34 ` Brian Norris 0 siblings, 1 reply; 5+ messages in thread From: Stephen Warren @ 2015-05-08 21:04 UTC (permalink / raw) To: linux-arm-kernel On 05/08/2015 02:57 PM, Geert Uytterhoeven wrote: > On Fri, May 8, 2015 at 8:43 PM, Brian Norris > <computersforpeace@gmail.com> wrote: >> On Fri, May 08, 2015 at 10:00:12AM -0600, Stephen Warren wrote: >>> On 05/08/2015 12:21 AM, Rafał Miłecki wrote: >>>> Starting with commits >>>> 8ff16cf ("Documentation: devicetree: m25p80: add "nor-jedec" binding") >>>> 1103b85 ("mtd: m25p80: bind to "nor-jedec" ID, for auto-detection") >>>> we have "nor-jedec" binding indicating support for JEDEC identification. >>> >>> The documentation looks quite incomplete. "nor-jedec" sounds like >>> it's intended to be something generic. As such, it should be >>> documented in e.g. >>> Documentation/devicetree/bindings/mtd/nor-jedec.txt, not buried in >>> one particular flash device's binding. If it's not intended to be >>> generic, why isn't the existing "winbond,w25q32dw" enough? >> >> It is generic, though there are plenty of additional manufacturer/device >> pairs that could go on top of it. m25p80 was (one of?) the first >> supported, so the naming has been based on legacy, and we're in the >> process of unwinding a bit of that. If it helps, we could move the doc >> to .../mtd/spi-nor,nor-jedec.txt or something like that. >> >>> Equally, "nor-jedec" doesn't sound like the right name. It doesn't >>> differentiate between SPI and parallel NOR flash, which presumably >>> need different compatible values, since the programming model is >>> quite different, and the compatible value is supposed to >>> define/imply the SW-visible programming model. >> >> It's definitely for SPI only. There was much discussion about this a >> few months back. Somewhere along the way, it was mentioned that the >> context (SPI slave is a child of SPI master) would make this clear. I'm >> still not sure why we didn't end up with something more descriptive, >> though, like "spi-nor,nor-jedec". > > What about "jedec,spi-nor"? That seems unique enough to me, or the options below if they're actually applicable. > Is this "SERIAL FLASH DISCOVERABLE PARAMETERS (SFDP)"? > https://www.jedec.org/standards-documents/docs/jesd216b > (Don't have time to register with jedec now...) > > If yes, "jedec,sfdp"? "jedec,jesd216b"? ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: tegra: add "nor-jedec" flash compatible binding 2015-05-08 21:04 ` Stephen Warren @ 2015-05-08 21:34 ` Brian Norris 2015-05-11 22:46 ` Brian Norris 0 siblings, 1 reply; 5+ messages in thread From: Brian Norris @ 2015-05-08 21:34 UTC (permalink / raw) To: linux-arm-kernel On Fri, May 08, 2015 at 03:04:26PM -0600, Stephen Warren wrote: > On 05/08/2015 02:57 PM, Geert Uytterhoeven wrote: > >On Fri, May 8, 2015 at 8:43 PM, Brian Norris > ><computersforpeace@gmail.com> wrote: > >>On Fri, May 08, 2015 at 10:00:12AM -0600, Stephen Warren wrote: > >>>On 05/08/2015 12:21 AM, Rafał Miłecki wrote: > >>>>Starting with commits > >>>>8ff16cf ("Documentation: devicetree: m25p80: add "nor-jedec" binding") > >>>>1103b85 ("mtd: m25p80: bind to "nor-jedec" ID, for auto-detection") > >>>>we have "nor-jedec" binding indicating support for JEDEC identification. > >>> > >>>The documentation looks quite incomplete. "nor-jedec" sounds like > >>>it's intended to be something generic. As such, it should be > >>>documented in e.g. > >>>Documentation/devicetree/bindings/mtd/nor-jedec.txt, not buried in > >>>one particular flash device's binding. If it's not intended to be > >>>generic, why isn't the existing "winbond,w25q32dw" enough? > >> > >>It is generic, though there are plenty of additional manufacturer/device > >>pairs that could go on top of it. m25p80 was (one of?) the first > >>supported, so the naming has been based on legacy, and we're in the > >>process of unwinding a bit of that. If it helps, we could move the doc > >>to .../mtd/spi-nor,nor-jedec.txt or something like that. > >> > >>>Equally, "nor-jedec" doesn't sound like the right name. It doesn't > >>>differentiate between SPI and parallel NOR flash, which presumably > >>>need different compatible values, since the programming model is > >>>quite different, and the compatible value is supposed to > >>>define/imply the SW-visible programming model. > >> > >>It's definitely for SPI only. There was much discussion about this a > >>few months back. Somewhere along the way, it was mentioned that the > >>context (SPI slave is a child of SPI master) would make this clear. I'm > >>still not sure why we didn't end up with something more descriptive, > >>though, like "spi-nor,nor-jedec". > > > >What about "jedec,spi-nor"? > > That seems unique enough to me, or the options below if they're > actually applicable. That could be OK with me. If I can get the magic blessing from the DT folks, then I'll send patches to update everything. > >Is this "SERIAL FLASH DISCOVERABLE PARAMETERS (SFDP)"? > >https://www.jedec.org/standards-documents/docs/jesd216b > >(Don't have time to register with jedec now...) > > > >If yes, "jedec,sfdp"? "jedec,jesd216b"? It's not SFDP. We're looking at SPI flash that are detected simply by the READ ID (9Fh) opcode. SFDP is on newer SPI flash which support the 5Ah opcode, for reading a parameter table. (I'd like to support this soon, actually, and one of those sorts of strings might work.) Brian ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: tegra: add "nor-jedec" flash compatible binding 2015-05-08 21:34 ` Brian Norris @ 2015-05-11 22:46 ` Brian Norris 0 siblings, 0 replies; 5+ messages in thread From: Brian Norris @ 2015-05-11 22:46 UTC (permalink / raw) To: linux-arm-kernel Hi DT maintainers, On Fri, May 08, 2015 at 02:34:14PM -0700, Brian Norris wrote: > On Fri, May 08, 2015 at 03:04:26PM -0600, Stephen Warren wrote: > > On 05/08/2015 02:57 PM, Geert Uytterhoeven wrote: > > >On Fri, May 8, 2015 at 8:43 PM, Brian Norris <computersforpeace@gmail.com> wrote: > > >>On Fri, May 08, 2015 at 10:00:12AM -0600, Stephen Warren wrote: > > >>>Equally, "nor-jedec" doesn't sound like the right name. It doesn't > > >>>differentiate between SPI and parallel NOR flash, which presumably > > >>>need different compatible values, since the programming model is > > >>>quite different, and the compatible value is supposed to > > >>>define/imply the SW-visible programming model. > > >> > > >>It's definitely for SPI only. There was much discussion about this a > > >>few months back. Somewhere along the way, it was mentioned that the > > >>context (SPI slave is a child of SPI master) would make this clear. I'm > > >>still not sure why we didn't end up with something more descriptive, > > >>though, like "spi-nor,nor-jedec". > > > > > >What about "jedec,spi-nor"? > > > > That seems unique enough to me, or the options below if they're > > actually applicable. > > That could be OK with me. If I can get the magic blessing from the DT > folks, then I'll send patches to update everything. Can I get an 'ack' for this change? We merged a binding for "nor-jedec" in 4.1-rc1, with review (but no explicit 'ack') from Mark, and a few DTS's are starting to use it. But we're now seeing objections, with a request to change this to "jedec,spi-nor". I don't care too much, but I can understand Stephen's point. Anyway, I don't want to go through too many more patch cycles without an explicit ack here on the "jedec,spi-nor" binding (i.e., s/nor-jedec/jedec,spi-nor/g). With an ack, then I can make sure the binding and current users get changed before 4.1 is minted, and prevent other ARM subarchitectures from pulling in the "wrong" binding for 4.2. Brian ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-05-11 22:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1431066098-19821-1-git-send-email-zajec5@gmail.com>
[not found] ` <554CDD8C.7050000@wwwdotorg.org>
[not found] ` <20150508184317.GZ32500@ld-irv-0074>
2015-05-08 18:47 ` [PATCH] ARM: tegra: add "nor-jedec" flash compatible binding Brian Norris
2015-05-08 20:57 ` Geert Uytterhoeven
2015-05-08 21:04 ` Stephen Warren
2015-05-08 21:34 ` Brian Norris
2015-05-11 22:46 ` Brian Norris
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox