From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lee Jones Subject: Re: [PATCH] dt: platform: Extract device name from device tree blob Date: Wed, 14 Nov 2012 09:21:58 +0000 Message-ID: <20121114092158.GA12596@gmail.com> References: <1352732343-1199-1-git-send-email-per.forlin@stericsson.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Disposition: inline In-Reply-To: <1352732343-1199-1-git-send-email-per.forlin@stericsson.com> Sender: linux-kernel-owner@vger.kernel.org To: Per Forlin Cc: grant.likely@secretlab.ca, rob.herring@calxeda.com, Linus Walleij , fredrik.soderstedt@stericsson.com, devicetree-discuss@lists.ozlabs.org, linux-kernel@vger.kernel.org List-Id: devicetree@vger.kernel.org On Mon, 12 Nov 2012, Per Forlin wrote: > Add support to extract device name from device tree blob. > If the property "dev-name" is set in the DTS this name will > be used when creating the device. > The auxdata_lookup has precedence and will override > the "dev-name" property. >=20 > Adding support to parse DTS "dev-name" will make it possible to > replace these kind of structures with a dev-name in the DTS. > OF_DEV_AUXDATA("compatible", BASE_ADDRESS, "dev-name", NULL) This patch isn't required. The correct action is to make the driver DT aware. Also, is naming devices "devname.id" a Linux only thing, or do other OSes do the same? If the former is true, then we definitely do not want to add this binding. > OF_DEV_AUXDATA("st,nomadik-gpio", 0x8012e000, "gpio.0", NULL), > OF_DEV_AUXDATA("st,nomadik-i2c", 0x80004000, "nmk-i2c.0", NULL), In this case, once we have added common clk functionality to our Device Trees, these will vanish. Kind regards, Lee --=20 Lee Jones Linaro ST-Ericsson Landing Team Lead Linaro.org =E2=94=82 Open source software for ARM SoCs =46ollow Linaro: Facebook | Twitter | Blog