From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.24]) by ozlabs.org (Postfix) with ESMTP id 69209B7CBB for ; Wed, 24 Mar 2010 23:05:38 +1100 (EST) Received: by qw-out-2122.google.com with SMTP id 8so1633884qwh.15 for ; Wed, 24 Mar 2010 05:05:36 -0700 (PDT) MIME-Version: 1.0 Sender: timur.tabi@gmail.com In-Reply-To: References: <1269380552-10418-1-git-send-email-timur@freescale.com> From: Timur Tabi Date: Wed, 24 Mar 2010 07:05:15 -0500 Message-ID: Subject: Re: [PATCH] powerpc/fsl: add device tree binding for QE firmware To: Grant Likely Content-Type: text/plain; charset=ISO-8859-1 Cc: linuxppc-dev@ozlabs.org, devicetree-discuss@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, Mar 24, 2010 at 1:07 AM, Grant Likely w= rote: >> +- fsl,firmware-phandle: >> + =A0 =A0Usage: required >> + =A0 =A0Value type: >> + =A0 =A0Definition: Points to a firmware node (see "QE Firmware Node" b= elow) >> + =A0 =A0 =A0 =A0that contains the firmware that should be uploaded for = this QE. >> + =A0 =A0 =A0 =A0The compatible property for the firmware node should sa= y, >> + =A0 =A0 =A0 =A0"fsl,qe-firmware". >> + > > Why the phandle redirection? =A0Why not just put the firmware blob into > a property in the QE node, or as a subnode? Because there might be multiple QE devices on a single chip, and each will need to upload the same firmware. So instead of embedding the firmware multiple times, just embed it once, and have a pointer. I could expand the binding to say that a node should look for either fsl,firmware-phandle *or* a child fsl,qe-firmware node, but I think that overly complicates things. It also makes it more complicated for the boot loader to create the fsl,qe-firmware node, since it has to figure out where to put that node. I can imaging a situation where the DTS has the fsl,firmware-phandle properties and an empty fsl,qe-firmware node at the root, and the boot loader just fills it in. --=20 Timur Tabi Linux kernel developer at Freescale