Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1512920
| From | Rob Herring <robh@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v4 2/2] fpga: Add support for Lattice iCE40 FPGAs |
| Date | 2016-10-31 22:30 +0100 |
| Message-ID | <sysjw-7Pf-31@gated-at.bofh.it> (permalink) |
| References | <sxJw5-3Ir-9@gated-at.bofh.it> <sxJw5-3Ir-7@gated-at.bofh.it> <syeqe-7aO-13@gated-at.bofh.it> <syo6d-4ZT-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Oct 31, 2016 at 11:58 AM, Joel Holdsworth <joel@airwebreathe.org.uk> wrote: > Hi Rob, > > Thanks for taking the time review the patches. > >>> .../bindings/fpga/lattice-ice40-fpga-mgr.txt | 23 +++ >> >> >> It's preferred that bindings are a separate patch. > > > Can you just clarify a little? I'm happy to split the patch up, but I don't > understand how it could work without the bindings. For example, in > ice40_fpga_probe, I have to get the GPIOs with devm_gpiod_get for the driver > to work. > > Maybe I'm missing something. Or do you just mean the documentation? Yes, just the documentation. [...] >>> +- creset_b-gpio: GPIO connected to CRESET_B pin. Note that >>> CRESET_B is >> >> >> Don't use '_'. In this case, I'd just do cresetb-gpios. > > > So the pin is called CRESET_B in the datasheet. I think the _B refers to the > active-low polarity of the line. > > So I would think it should be creset-b-gpios or creset-gpios. I'm not so > convinced cresetb-gpios is ideal, but it's a minor point. > >> >>> + treated as an active-low output because the >>> signal is >>> + treated as an enable signal, rather than a reset. >>> This >> >> >> Though for enable signals, enable-gpios is fairly standard even if that >> deviates from the pin name. > > > I would think that would just confuse the user, unless they dig out the > binding docs. The FPGA doesn't have an enable pin, and it's not at all > obvious that a "reset" pin means "enable" in this driver. > > Again, if you're adamant this is the correct convention it's no problem to > make the change - just seems weird to me. What do you think? "reset-gpios" is also somewhat standard if you prefer. You're the one that called it an enable. :) Rob
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v4 2/2] fpga: Add support for Lattice iCE40 FPGAs Joel Holdsworth <joel@airwebreathe.org.uk> - 2016-10-29 23:40 +0200
Re: [PATCH v4 2/2] fpga: Add support for Lattice iCE40 FPGAs Geert Uytterhoeven <geert@linux-m68k.org> - 2016-10-30 20:30 +0100
Re: [PATCH v4 2/2] fpga: Add support for Lattice iCE40 FPGAs Joel Holdsworth <joel@airwebreathe.org.uk> - 2016-10-30 22:40 +0100
Re: [PATCH v4 2/2] fpga: Add support for Lattice iCE40 FPGAs Rob Herring <robh@kernel.org> - 2016-10-31 07:40 +0100
Re: [PATCH v4 2/2] fpga: Add support for Lattice iCE40 FPGAs Joel Holdsworth <joel@airwebreathe.org.uk> - 2016-10-31 18:00 +0100
Re: [PATCH v4 2/2] fpga: Add support for Lattice iCE40 FPGAs Moritz Fischer <moritz.fischer@ettus.com> - 2016-10-31 18:10 +0100
Re: [PATCH v4 2/2] fpga: Add support for Lattice iCE40 FPGAs Rob Herring <robh@kernel.org> - 2016-10-31 22:30 +0100
csiph-web