From mboxrd@z Thu Jan 1 00:00:00 1970 From: stillcompiling@gmail.com (Joshua Clayton) Date: Fri, 6 May 2016 12:19:11 -0700 Subject: [PATCH] ARM: dts: imx: Remove unneeded unit-addresses In-Reply-To: References: <1462283851-10820-1-git-send-email-fabio.estevam@nxp.com> Message-ID: <20160506121911.04a7aa6e@jclayton-pc> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, 3 May 2016 12:45:07 -0300 Fabio Estevam wrote: > On Tue, May 3, 2016 at 12:42 PM, Fabio Estevam > wrote: > > On Tue, May 3, 2016 at 12:37 PM, Rob Herring > > wrote: > >> Presumably these are register offsets which could be useful to have > >> even if the Linux driver doesn't use them. But either way is fine > >> with me. > > > > Yes, these are register offsets. > > > > reg_3p0: regulator-3p0 { > > compatible = "fsl,anatop-regulator"; > > regulator-name = "vdd3p0"; > > regulator-min-microvolt = <2625000>; > > regulator-max-microvolt = <3400000>; > > anatop-reg-offset = <0x120>; > > Sorry, pressed the 'send' button too quickly. > > There is a "anatop-reg-offset = <0x120>;" property that is used to > pass the offset to the anatop regulator driver, so that's why I > preferred to remove the unneeded unit-address. > > Thanks > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel at lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel There are actually 2 registers (on some of them), anatop-reg-offset, and anatop-delay-reg-offset... Converting those to use reg and deprecating the anatop specific items would seem like a Good Thing (tm) to me. ...wandering into less safe territory: I know reg is usually a memory offset in bytes, but each of the anatop memory offsets also include a bit-shift and a bit-width item, which really narrowly defines the register bits that pertain to each regulator. would it be totally inappropriate to use #address-cells = 2 and #size-cells =1 where address cells would contain the byte offset and the bit shift, and the size cell would contain the bit offset?