From: s.trumtrar@pengutronix.de (Steffen Trumtrar)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] ARM: socfpga: dts: add eeprom, lcd, and rtc on i2c0
Date: Thu, 3 Apr 2014 07:19:57 +0200 [thread overview]
Message-ID: <20140403051957.GB12170@pengutronix.de> (raw)
In-Reply-To: <1396492834-26035-1-git-send-email-dinguyen@altera.com>
Hi!
On Wed, Apr 02, 2014 at 09:40:33PM -0500, dinguyen at altera.com wrote:
> From: Dinh Nguyen <dinguyen@altera.com>
>
> The Altera Cyclone5 and Arria5 devkit has an EEPROM, LCD and a RTC on the
> board. This patch adds support for them.
>
> Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
> ---
> arch/arm/boot/dts/socfpga_arria5_socdk.dts | 22 ++++++++++++++++++++++
> arch/arm/boot/dts/socfpga_cyclone5_socdk.dts | 22 ++++++++++++++++++++++
> 2 files changed, 44 insertions(+)
>
> diff --git a/arch/arm/boot/dts/socfpga_arria5_socdk.dts b/arch/arm/boot/dts/socfpga_arria5_socdk.dts
> index 88e4a8e..674dcf8 100644
> --- a/arch/arm/boot/dts/socfpga_arria5_socdk.dts
> +++ b/arch/arm/boot/dts/socfpga_arria5_socdk.dts
> @@ -59,3 +59,25 @@
> rxdv-skew-ps = <0>;
> rxc-skew-ps = <2000>;
> };
> +
> +&i2c0 {
> + status = "okay";
> + lcd: lcd at 28 {
> + compatible = "newhaven,nhd-0216k3z-nsw-bbw";
> + reg = <0x28>;
> + height = <2>;
> + width = <16>;
> + brightness = <8>;
> + };
I would prefer if we have the display in an extra patch.
This seems simple and okay, but everybody should get a chance to at least
discuss this new binding+driver instead of just "hiding" it in this patch.
> +
> + eeprom at 51 {
> + compatible = "atmel,24c32";
> + reg = <0x51>;
> + pagesize = <32>;
> + };
> +
> + rtc at 68 {
> + compatible = "dallas,ds1339";
> + reg = <0x68>;
> + };
> +};
> diff --git a/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts b/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts
> index 5e9445a..0d85021 100644
> --- a/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts
> +++ b/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts
> @@ -52,3 +52,25 @@
> rxdv-skew-ps = <0>;
> rxc-skew-ps = <2000>;
> };
> +
> +&i2c0 {
> + status = "okay";
> + lcd: lcd at 28 {
> + compatible = "newhaven,nhd-0216k3z-nsw-bbw";
> + reg = <0x28>;
> + height = <2>;
> + width = <16>;
> + brightness = <8>;
> + };
> +
> + eeprom at 51 {
> + compatible = "atmel,24c32";
> + reg = <0x51>;
> + pagesize = <32>;
> + };
> +
> + rtc at 68 {
> + compatible = "dallas,ds1339";
> + reg = <0x68>;
> + };
> +};
> --
> 1.7.9.5
>
>
The rest looks okay.
Regards,
Steffen
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2014-04-03 5:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-03 2:40 [PATCH 1/2] ARM: socfpga: dts: add eeprom, lcd, and rtc on i2c0 dinguyen at altera.com
2014-04-03 2:40 ` [PATCH 2/2] ARM: dts: socfpga: Remove hard coded clock-frequency property dinguyen at altera.com
2014-04-03 5:32 ` Steffen Trumtrar
2014-04-03 5:19 ` Steffen Trumtrar [this message]
2014-04-03 22:33 ` [PATCH 1/2] ARM: socfpga: dts: add eeprom, lcd, and rtc on i2c0 Dinh Nguyen
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=20140403051957.GB12170@pengutronix.de \
--to=s.trumtrar@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).