public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Stephen Warren <swarren@wwwdotorg.org>
To: Shawn Guo <shawn.guo@linaro.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>,
	Dong Aisheng <dongas86@gmail.com>,
	devicetree-discuss@lists.ozlabs.org,
	linux-kernel@vger.kernel.org, rob.herring@calxeda.com,
	kernel@pengutronix.de, linux-arm-kernel@lists.infradead.org,
	linus.walleij@stericsson.com
Subject: Re: [PATCH 1/3] pinctrl: pinctrl-imx: add imx pinctrl core driver
Date: Mon, 16 Apr 2012 12:01:30 -0600	[thread overview]
Message-ID: <4F8C5E7A.9090705@wwwdotorg.org> (raw)
In-Reply-To: <20120416014720.GH24997@S2101-09.ap.freescale.net>

On 04/15/2012 07:47 PM, Shawn Guo wrote:
> On Sun, Apr 15, 2012 at 07:29:58PM +0200, Sascha Hauer wrote:
> ...
>> How far are we away from getting macro support? Do we already agree that we
>> want to have such a feature? I remember I saw someone mentioning it,
>> maybe even by piping the devicetree though CPP, but I didn't follow the
>> further discussion.
>>
> My understanding is we agree that we want to have this feature, and
> are approaching it slowly, but I do not have the exact status.
> Stephen may want to give an update, please?

The status is:

* I proposed a "/define/ var 5" syntax to dtc.

* It was at least temporarily rejected because it wasn't clear whether
that syntax would fit into whatever future expression/language/...
support dtc might acquire in the future.

* However, there has been a long-standing impasse on defining what the
future expression/language/... support in dtc will look like.

* In an attempt to move that forward, I took one of David Gibson's old
integer expressions patches (that allows math within cells in
properties), updated that to ToT, and now it's checked in. This only
allows match with literals, not variables/symbols/..., but is hopefully
a step in the right direction.

* The next step is to revisit my /define/ patch on top of the integer
expressions patch. Perhaps the presence of integer expressions is enough
to know whether /define/ is a reasonable syntax, perhaps not. We'll have
to see when I update and repost it.

In summary: There is some progress, but it's slow. I wouldn't rely on
seeing /define/ or similar support in dtc in any particular near-term
timescale.

  reply	other threads:[~2012-04-16 18:01 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-13 16:18 [PATCH 1/3] pinctrl: pinctrl-imx: add imx pinctrl core driver Dong Aisheng
2012-04-13 16:18 ` [PATCH 2/3] pinctrl: pinctrl-imx: add imx6q pinctrl driver Dong Aisheng
2012-04-17 20:12   ` Stephen Warren
2012-04-18  3:40     ` Dong Aisheng
2012-04-13 16:18 ` [PATCH 3/3] ARM: imx6q: switch to use " Dong Aisheng
2012-04-14 13:53   ` Sascha Hauer
2012-04-15  4:03     ` Dong Aisheng
2012-04-15  7:37       ` Shawn Guo
2012-04-16  3:35         ` Dong Aisheng
2012-04-20  1:08           ` Jean-Christophe PLAGNIOL-VILLARD
2012-04-24  8:23           ` Linus Walleij
2012-04-24  8:46             ` Dong Aisheng
2012-04-17 20:23   ` Stephen Warren
2012-04-13 18:17 ` [PATCH 1/3] pinctrl: pinctrl-imx: add imx pinctrl core driver Dong Aisheng
2012-04-14 13:48 ` Sascha Hauer
2012-04-15  3:49   ` Dong Aisheng
2012-04-15 14:17     ` Shawn Guo
2012-04-15 14:45       ` Sascha Hauer
2012-04-15 17:29       ` Sascha Hauer
2012-04-16  1:47         ` Shawn Guo
2012-04-16 18:01           ` Stephen Warren [this message]
2012-04-16  3:47       ` Dong Aisheng
2012-04-16  3:46         ` Shawn Guo
2012-04-17  9:57           ` Dong Aisheng
2012-04-17 12:30             ` Sascha Hauer
2012-04-18  3:38               ` Dong Aisheng
2012-04-17 20:58 ` Stephen Warren
2012-04-18  7:19   ` Dong Aisheng
2012-04-18 18:06     ` Stephen Warren
2012-04-19 15:28 ` Shawn Guo

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=4F8C5E7A.9090705@wwwdotorg.org \
    --to=swarren@wwwdotorg.org \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=dongas86@gmail.com \
    --cc=kernel@pengutronix.de \
    --cc=linus.walleij@stericsson.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rob.herring@calxeda.com \
    --cc=s.hauer@pengutronix.de \
    --cc=shawn.guo@linaro.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