LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Kumar Gala <galak@kernel.crashing.org>
To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: linuxppc-dev@ozlabs.org, paulus@samba.org
Subject: Re: [PATCH/RFC (take 3)] linkstation / kurobox support under arch/powerpc
Date: Tue, 14 Nov 2006 15:05:11 -0600	[thread overview]
Message-ID: <3CC50148-9122-4133-A304-E2723077EE1D@kernel.crashing.org> (raw)
In-Reply-To: <Pine.LNX.4.60.0611141956070.5542@poirot.grange>


On Nov 14, 2006, at 1:09 PM, Guennadi Liakhovetski wrote:

> On Tue, 14 Nov 2006, Kumar Gala wrote:
>
>> Out of interest how are you booting this kernel build & dts on the
>> linkstation/kurobox? u-boot or wrapper?
>
> u-boot.
>
>>> diff --git a/arch/powerpc/boot/dts/kuroboxHG.dts b/arch/powerpc/ 
>>> boot/dts/kuroboxHG.dts
>>> new file mode 100644
>>> index 0000000..6c76ef6
>>> --- /dev/null
>>> +++ b/arch/powerpc/boot/dts/kuroboxHG.dts
>>
>> would make more sense if this file was called linkstation.dts to  
>> match the
>> Kconfig
>
> Well, as I wrote in the patch description, there are several NAS  
> devices
> which can be hopefully made to run one kernel with just different  
> fdts.
> The systems are LinkStation-I (I think, there are 2 variants thereof:
> HDLAN and HGLAN), Kurobox (normal and HG version), Terastation  
> (several
> variations). You can see them and other non-powerpc devices, e.g.,  
> here:
> http://linkstationwiki.net/index.php?title=Main_Page
> The kernel patch traditionally was called "linkstation", that's  
> where the
> CONFIG name comes from too. However, the device I have is a KuroboxHG,
> therefore the dts file is called kuroboxHG.dts, as it is indeed system
> specific. Makes sense?
>

Ok that makes sense, then KuroboxHG for the dts makes sense (lets  
just add a comment in the header saying it uses the linkstation  
kernel config)

>>> +		dma@80001100 {
>>> +			linux,phandle = <4100>;
>>> +			#interrupt-cells = <1>;
>>> +			#address-cells = <1>;
>>> +			#size-cells = <1>;
>>> +			device_type = "dma";
>>> +			compatible = "fsl-dma";
>>> +			clock-frequency = <0>;
>>> +			reg = <80001100 24>;
>>> +			interrupts = <6 0>;
>>> +			interrupt-parent = <4400>;
>>> +		};
>>> +
>>> +		dma@80001200 {
>>> +			linux,phandle = <4200>;
>>> +			#interrupt-cells = <1>;
>>> +			#address-cells = <1>;
>>> +			#size-cells = <1>;
>>> +			device_type = "dma";
>>> +			compatible = "fsl-dma";
>>> +			clock-frequency = <0>;
>>> +			reg = <80001200 24>;
>>> +			interrupts = <7 0>;
>>> +			interrupt-parent = <4400>;
>>> +		};
>>
>> Can we drop the dma nodes?  are you using them for something.  I'd  
>> prefer not
>> to specify what they look like until we figure out how to handle  
>> the various
>> "features" between the families of FSL PPC's that share the DMA  
>> controller
>> (10x, 824x, 83xx, 85xx)
>
> Sure, will do.
>
>>> +		i2c@80003000 {
>>> +			linux,phandle = <4300>;
>>> +			device_type = "i2c";
>>> +			compatible = "fsl-i2c";
>>> +			clock-frequency = <0>;
>>
>> Any reason for adding this clock-frequency property?
>
> Copy-paste:-)

from where?

>>> +		pic@80040000 {
>>> +			linux,phandle = <4400>;
>>> +			#interrupt-cells = <2>;
>>> +			#address-cells = <0>;
>>> +			device_type = "open-pic";
>>> +			compatible = "chrp,open-pic";
>>> +			interrupt-controller;
>>> +			reg = <80040000 40000>;
>>> +			clock-frequency = <0>;		/* ??? */
>>
>> Any reason for adding this clock-frequency property?
>
> Ditto.
>
>>> diff --git a/arch/powerpc/configs/kuroboxhg_defconfig b/arch/ 
>>> powerpc/configs/kuroboxhg_defconfig
>>> new file mode 100644
>>> index 0000000..136632f
>>> --- /dev/null
>>> +++ b/arch/powerpc/configs/kuroboxhg_defconfig
>>
>> similar file rename comment linkstation_defconfig
>
> Well, it should eventually be linkstation_defconfig, but so far it  
> only
> has drivers for kuroboxhg, but, perhaps, you're right. As the goal  
> is to
> have 1 kernel for all with one defconfig, I can rename it now and just
> hope it will be extended in the future as the patch is used /  
> tested on
> more systems. Will rename, thanks.
>
> So, I would leave most parts with "linkstation" notation, apart  
> from the
> .dts, will throw unneeded entries from the .dts, rename the  
> defconfig, but
> keep the .dts name. Agree?

Agreed, also update the comment/help in the Kconfig to make it clear  
that Kurobox and KuroboxHG are two different things.  The Kurobox(HG)  
was a bit confusing to me at first glance, and since its help, no  
reason not be more specific :)

- k

  reply	other threads:[~2006-11-14 21:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-01 18:22 [PATCH/RFC] linkstation / kurobox support under arch/powerpc Guennadi Liakhovetski
2006-11-05 15:22 ` [PATCH/RFC (take 2)] " Guennadi Liakhovetski
2006-11-06 19:41   ` Kumar Gala
2006-11-06 20:00     ` Guennadi Liakhovetski
2006-11-13 22:27       ` [PATCH/RFC (take 3)] " Guennadi Liakhovetski
2006-11-14 16:34         ` Kumar Gala
2006-11-14 19:09           ` Guennadi Liakhovetski
2006-11-14 21:05             ` Kumar Gala [this message]
2006-11-15 15:31         ` Kumar Gala
2006-11-15 20:58           ` [PATCH/RFC (take 4)] " Guennadi Liakhovetski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3CC50148-9122-4133-A304-E2723077EE1D@kernel.crashing.org \
    --to=galak@kernel.crashing.org \
    --cc=g.liakhovetski@gmx.de \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=paulus@samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox