Re: [v3] powerpc/mpc85xx: Update the clock device tree nodes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Sun, 2013-08-25 at 21:42 -0500, Tang Yuantian-B29983 wrote:
> > >
> > >  	clockgen: global-utilities@e1000 {
> > > -		compatible = "fsl,b4420-clockgen", "fsl,qoriq-clockgen-2.0";
> > > +		compatible = "fsl,b4420-clockgen", "fsl,qoriq-clockgen-2.0",
> > > +				   "fixed-clock";
> > > +		clock-output-names = "sysclk";
> > > +		#clock-cells = <0>;
> > 
> > Does U-Boot fill in clock-frequency here?
> > 
> Yes, clock-frequency will be filled by uboot.
> You suggested we'd better not add it here.

Right -- I was just making sure.

> > > +		#address-cells = <1>;
> > > +		#size-cells = <0>;
> > > +		pll0: pll0@800 {
> > > +			#clock-cells = <1>;
> > > +			reg = <0x800>;
> > > +			compatible = "fsl,core-pll-clock";
> > > +			clocks = <&clockgen>;
> > > +			clock-output-names = "pll0", "pll0-div2", "pll0-div4";
> > > +		};
> > > +		pll1: pll1@820 {
> > > +			#clock-cells = <1>;
> > > +			reg = <0x820>;
> > > +			compatible = "fsl,core-pll-clock";
> > > +			clocks = <&clockgen>;
> > > +			clock-output-names = "pll1", "pll1-div2", "pll1-div4";
> > > +		};
> > 
> > Please leave a blank line between properties and nodes, and between nodes.
> > 
> OK, will add.
> 
> > What does reg represent?  Where is the binding for this?
> > 
> > The compatible is too vague.
> Reg is register offset.

With no size?

> I should have had a binding document.
> About the compatible, you should pointed it out earlier in SDK review.

Sorry, it doesn't work that way.  I don't know why I didn't notice this
stuff there -- the SDK review was probably rushed, with someone shouting
"urgent".  The SDK does not dictate what goes upstream.  Device tree
bindings should go upstream first.

> It is too later to change since the clock driver is merged for months although 
> I sent this patch first.

It should not have gone in without an approved binding.  It seems it
went in via Mike Turquette (why is a non-ARM-specific tree using
linux-arm-kernel as its list, BTW?).  No ack from Ben, Kumar, or me is
shown in the commit.

In any case, you can preserve compatibility with existing trees without
using this compatible in new trees.  The driver can check for both
compatibles, with a comment indicating that "fsl,core-mux-clock" is
deprecated and for compatibility only.

> Besides, it is not too bad because other arch use the similar name.

I don't follow.  This is a specific Freescale register interface, not a
general concept.

In any case, which "similar names" are you referring to?  A search in
arch/arm/boot/dts for "mux" with "clk" or "clock" turns up
"allwinner,sun4i-apb1-mux-clk" which is much more specific than
"fsl,core-mux-clock".

-Scott



--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux