On Fri, Nov 29, 2013 at 09:59 +0800, Tien Hock Loh wrote: > > On Fri, Nov 29, 2013 at 4:24 AM, Gerhard Sittig <gsi@xxxxxxx> wrote: > > On Wed, Nov 27, 2013 at 11:49 +0800, thloh@xxxxxxxxxx wrote: > >> > >> --- /dev/null > >> +++ b/Documentation/devicetree/bindings/gpio/gpio-altera.txt > >> @@ -0,0 +1,35 @@ > >> +[ ... ] > >> + > >> +Example: > >> + > >> +gpio_altr: gpio_altr { > >> + compatible = "altr,pio-1.0"; > >> + reg = <0xff200000 0x10>; > > > > This length appears to be less than what the code defines (the > > latter has offsets beyond 0x10). > > The higher registers (0x10 and 0x14) are only available if the > controller is configured as GPIO output. Thus, there are two > configuration - one that has the length 0x10 (GPIO without output > ports), and one with the length 0x20 (GPIO with output ports). Is > there anything I need to handle for cases like this? Hmm. I cannot tell whether there is a preference in mainline or whether there is prior art of IP blocks having different sizes depending on their "being compatible" to something or their configuration and feature set. Others may know more. With your explanation in mind, writing "specify an address and size that fits your component" may be considered "stating the obvious". So I don't have strong feelings about it, I was just wondering. This need not mean that something was wrong. :) virtually yours Gerhard Sittig -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr. 5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office@xxxxxxx -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html