devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Shawn Guo <shawnguo@kernel.org>
To: Wen He <wen.he_1@nxp.com>
Cc: "devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	Leo Li <leoyang.li@nxp.com>,
	"liviu.dudau@arm.com" <liviu.dudau@arm.com>,
	"brian.starkey@arm.com" <brian.starkey@arm.com>
Subject: Re: [PATCH 1/2] arm64: dts: ls1028a: Add properties for Mali DP500 node
Date: Thu, 11 Apr 2019 10:15:43 +0800	[thread overview]
Message-ID: <20190411021542.GI26817@dragon> (raw)
In-Reply-To: <AM6PR0402MB3382FEA0EC535DCD0A94635EE2570@AM6PR0402MB3382.eurprd04.prod.outlook.com>

On Wed, Apr 03, 2019 at 01:03:17PM +0000, Wen He wrote:
> 
> 
> > -----Original Message-----
> > From: Shawn Guo [mailto:shawnguo@kernel.org]
> > Sent: 2019年4月3日 18:14
> > To: Wen He <wen.he_1@nxp.com>
> > Cc: devicetree@vger.kernel.org; Leo Li <leoyang.li@nxp.com>;
> > liviu.dudau@arm.com; brian.starkey@arm.com
> > Subject: Re: [PATCH 1/2] arm64: dts: ls1028a: Add properties for Mali DP500
> > node
> > 
> > On Thu, Mar 28, 2019 at 03:51:46AM +0000, Wen He wrote:
> > > The LS1028A has a LCD controller and Displayport interface that
> > > connects to eDP and Displayport connectors on the LS1028A board.
> > >
> > > This patch enables the LCD controller driver on the LS1028A.
> > >
> > > Signed-off-by: Alison Wang <alison.wang@nxp.com>
> > > Signed-off-by: Wen He <wen.he_1@nxp.com>
> > > ---
> > >  .../arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 37
> > > +++++++++++++++++++
> > >  1 file changed, 37 insertions(+)
> > >
> > > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
> > > b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
> > > index 8dd3501b1333..0d5963bb46c5 100644
> > > --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
> > > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
> > > @@ -70,6 +70,27 @@
> > >  		clock-output-names = "sysclk";
> > >  	};
> > >
> > > +	dpclk: dpclk {
> > 
> > Please follow the naming convention "clock-xxx".
> > 
> > > +		compatible = "fixed-clock";
> > > +		#clock-cells = <0>;
> > > +		clock-frequency = <27000000>;
> > > +		clock-output-names= "dpclk";
> > > +	};
> > > +
> > > +	aclk: aclk {
> > > +		compatible = "fixed-clock";
> > > +		#clock-cells = <0>;
> > > +		clock-frequency = <650000000>;
> > > +		clock-output-names= "aclk";
> > > +	};
> > > +
> > > +	pclk: pclk {
> > > +		compatible = "fixed-clock";
> > > +		#clock-cells = <0>;
> > > +		clock-frequency = <650000000>;
> > > +		clock-output-names= "pclk";
> > > +	};
> > > +
> > >  	reboot {
> > >  		compatible ="syscon-reboot";
> > >  		regmap = <&dcfg>;
> > > @@ -433,4 +454,20 @@
> > >  			};
> > >  		};
> > >  	};
> > > +
> > > +	dp0: malidp@f080000 {
> > 
> > The node name should be something generic.  The recommendation from
> > Devicetree Specification is 'display'.
> > 
> 
> That definition following by malidp Devicetree bindings file.
> If use name is 'display', how to define display port controller? this only is LCD controller dts node.

We can use some sort of suffix to define multiple nodes:

 - display-0, display-1 ...
 - display-dp, display-lcd, ...

Whatever suffix works for you, but begin with a generic name.

> 
> > > +		compatible = "arm,mali-dp500";
> > > +		reg = <0x0 0xf080000 0x0 0x10000>;
> > > +		interrupts = <0 222 IRQ_TYPE_LEVEL_HIGH>,
> > > +			     <0 223 IRQ_TYPE_LEVEL_HIGH>;
> > > +		interrupt-names = "DE", "SE";
> > > +		clocks = <&dpclk>, <&aclk>, <&aclk>, <&pclk>;
> > > +		clock-names = "pxlclk", "mclk", "aclk", "pclk";
> > > +		arm,malidp-output-port-lines = /bits/ 8 <8 8 8>;
> > 
> > Please have a newline between properties and child node.
> > 
> > Shawn
> > 
> 
> Sure, but I see the mail devicetree binding doesn't have a blank line. So I removed it.
> Is need to add a newline?

Different bindings use different conventions, but we have a set of
conventions for devicetree sources I maintain.

Shawn

  reply	other threads:[~2019-04-11  2:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-28  3:51 [PATCH 1/2] arm64: dts: ls1028a: Add properties for Mali DP500 node Wen He
2019-03-28 16:17 ` liviu.dudau
2019-04-03 10:14 ` Shawn Guo
2019-04-03 13:03   ` Wen He
2019-04-11  2:15     ` Shawn Guo [this message]
2019-04-15  7:18       ` [EXT] " Wen He

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=20190411021542.GI26817@dragon \
    --to=shawnguo@kernel.org \
    --cc=brian.starkey@arm.com \
    --cc=devicetree@vger.kernel.org \
    --cc=leoyang.li@nxp.com \
    --cc=liviu.dudau@arm.com \
    --cc=wen.he_1@nxp.com \
    /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;
as well as URLs for NNTP newsgroup(s).