[PATCH 1/6] ARM: bcm476x: Add infrastructure
Stephen Warren
swarren at wwwdotorg.org
Mon Oct 8 22:41:03 EDT 2012
On 10/08/2012 05:50 AM, Florian Fainelli wrote:
> Hi Domenico,
>
> On Sunday 07 October 2012 03:53:01 Domenico Andreoli wrote:
>> From: Domenico Andreoli <domenico.andreoli at linux.com>
>>
>> BCM476x's minimal infrastructure, Kernel's great reuse.
>>
>> Look mom, no include/mach directory!
>> Index: b/arch/arm/boot/dts/bcm476x.dtsi
>> ===================================================================
>> --- /dev/null
>> +++ b/arch/arm/boot/dts/bcm476x.dtsi
>> @@ -0,0 +1,31 @@
>> +/include/ "skeleton.dtsi"
>> +
>> +/ {
>> + compatible = "brcm,bcm476x";
>> + model = "Broadcom BCM476x";
>> +
>> + chosen {
>> + bootargs = "earlyprintk";
>> + };
>> +
>> + amba {
>
> I would rather explicitely mention that the peripheral base address is at 0
> so something like this:
>
> amba at 0 {
>
> to make it clear that the peripherals declared as leaf nodes of this one are
> at a relative address.
>
>> + compatible = "arm,amba-bus";
>> + #address-cells = <1>;
>> + #size-cells = <1>;
>> + ranges;
You should only put a unit address ("@0") in the node name if there's a
matching reg property and the unit address is needed to make the node
name unique. Neither condition applies in this case.
More information about the linux-arm-kernel
mailing list