mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Raphael Poggi <poggi.raph@gmail.com>
To: barebox@lists.infradead.org
Cc: "Raphaël Poggi" <poggi.raph@gmail.com>
Subject: [PATCH 2/2] dts: at91: initial support of at91sam9m10g45ek dts
Date: Fri,  1 Aug 2014 15:42:18 +0200	[thread overview]
Message-ID: <1406900538-29656-3-git-send-email-raphael.poggi@erocca.com> (raw)
In-Reply-To: <1406900538-29656-1-git-send-email-raphael.poggi@erocca.com>

From: Raphaël Poggi <poggi.raph@gmail.com>

Signed-off-by: Raphaël Poggi <poggi.raph@gmail.com>
---
 arch/arm/dts/Makefile             |    1 +
 arch/arm/dts/at91sam9g45.dtsi     |  105 +++++++++++++++++++++++++++++++++++++
 arch/arm/dts/at91sam9m10g45ek.dts |   22 ++++++++
 3 files changed, 128 insertions(+)
 create mode 100644 arch/arm/dts/at91sam9g45.dtsi
 create mode 100644 arch/arm/dts/at91sam9m10g45ek.dts

diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index 9bff8a0..5a3405e 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -1,6 +1,7 @@
 BUILTIN_DTB := $(patsubst "%",%,$(CONFIG_BUILTIN_DTB_NAME))
 obj-dtb-$(CONFIG_BUILTIN_DTB) += $(BUILTIN_DTB).dtb.o
 
+pbl-dtb-$(CONFIG_ARCH_AT91) += at91sam9m10g45ek.dtb.o
 pbl-dtb-$(CONFIG_MACH_BEAGLEBONE) += am335x-bone.dtb.o am335x-boneblack.dtb.o am335x-bone-common.dtb.o
 pbl-dtb-$(CONFIG_MACH_DFI_FS700_M60) += imx6q-dfi-fs700-m60-6q.dtb.o imx6dl-dfi-fs700-m60-6s.dtb.o
 pbl-dtb-$(CONFIG_MACH_EFIKA_MX_SMARTBOOK) += imx51-genesi-efika-sb.dtb.o
diff --git a/arch/arm/dts/at91sam9g45.dtsi b/arch/arm/dts/at91sam9g45.dtsi
new file mode 100644
index 0000000..5b287f2
--- /dev/null
+++ b/arch/arm/dts/at91sam9g45.dtsi
@@ -0,0 +1,105 @@
+/*
+ * at91sam9g45.dtsi - Device Tree Include file for AT91SAM9G45 family SoC
+ *                    applies to AT91SAM9G45, AT91SAM9M10,
+ *                    AT91SAM9G46, AT91SAM9M11 SoC
+ *
+ *  Copyright (C) 2011 Atmel,
+ *                2011 Nicolas Ferre <nicolas.ferre@atmel.com>
+ *
+ * Licensed under GPLv2 or later.
+ */
+
+#include "skeleton.dtsi"
+#include <dt-bindings/pinctrl/at91.h>
+
+/ {
+	model = "Atmel AT91SAM9G45 family SoC";
+	compatible = "atmel,at91sam9g45";
+
+	aliases {
+		gpio0 = &pioA;
+		gpio1 = &pioB;
+		gpio2 = &pioC;
+		gpio3 = &pioD;
+		gpio4 = &pioE;
+	};
+
+	pinctrl@fffff200 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "atmel,at91rm9200-pinctrl", "simple-bus";
+		ranges = <0xfffff200 0xfffff200 0xa00>;
+
+		atmel,mux-mask = <
+			  /*    A         B     */
+			   0xffffffff 0xffc003ff  /* pioA */
+			   0xffffffff 0x800f8f00  /* pioB */
+			   0xffffffff 0x00000e00  /* pioC */
+			   0xffffffff 0xff0c1381  /* pioD */
+			   0xffffffff 0x81ffff81  /* pioE */
+			  >;
+
+		i2c0 {
+			pinctrl_i2c0: i2c0-0 {
+				atmel,pins =
+					<AT91_PIOA 21 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PA21 periph A TWCK0 */
+					 AT91_PIOA 20 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PA20 periph A TWD0 */
+			};
+		};
+
+		i2c1 {
+			pinctrl_i2c1: i2c1-0 {
+				atmel,pins =
+					<AT91_PIOB 11 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB11 periph A TWCK1 */
+					 AT91_PIOB 10 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PB10 periph A TWD1 */
+			};
+		};
+
+	};
+
+
+	pioA: gpio@fffff200 {
+		compatible = "atmel,at91rm9200-gpio";
+		reg = <0xfffff200 0x200>;
+		#gpio-cells = <2>;
+		gpio-controller;
+	};
+
+	pioB: gpio@fffff400 {
+		compatible = "atmel,at91rm9200-gpio";
+		reg = <0xfffff400 0x200>;
+		#gpio-cells = <2>;
+		gpio-controller;
+	};
+
+	pioC: gpio@fffff600 {
+		compatible = "atmel,at91rm9200-gpio";
+		reg = <0xfffff600 0x200>;
+		#gpio-cells = <2>;
+		gpio-controller;
+	};
+
+	pioD: gpio@fffff800 {
+		compatible = "atmel,at91rm9200-gpio";
+		reg = <0xfffff800 0x200>;
+		#gpio-cells = <2>;
+		gpio-controller;
+	};
+
+	pioE: gpio@fffffa00 {
+		compatible = "atmel,at91rm9200-gpio";
+		reg = <0xfffffa00 0x200>;
+		#gpio-cells = <2>;
+		gpio-controller;
+	};
+
+	i2c0: i2c@fff84000 {
+		compatible = "atmel,at91sam9g10-i2c";
+		reg = <0xfff84000 0x100>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_i2c0>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		status = "disabled";
+	};
+};
diff --git a/arch/arm/dts/at91sam9m10g45ek.dts b/arch/arm/dts/at91sam9m10g45ek.dts
new file mode 100644
index 0000000..df0da9d
--- /dev/null
+++ b/arch/arm/dts/at91sam9m10g45ek.dts
@@ -0,0 +1,22 @@
+/*
+* at91sam9m10g45ek.dts - Device Tree file for AT91SAM9M10G45-EK board
+*
+*  Copyright (C) 2011 Atmel,
+*                2011 Nicolas Ferre <nicolas.ferre@atmel.com>
+*
+* Licensed under GPLv2 or later.
+*/
+
+/dts-v1/;
+
+#include "at91sam9g45.dtsi"
+
+/ {
+	model = "Atmel AT91SAM9M10G45-EK";
+	compatible = "atmel,at91sam9m10g45ek", "atmel,at91sam9g45", "atmel,at91sam9";
+
+	i2c0: i2c@fff84000 {
+		status = "okay";
+	};
+
+};
-- 
1.7.9.5


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2014-08-01 13:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-01 13:42 [PATCH 0/2] Add initial support of at91sam9m10g45ek device tree Raphael Poggi
2014-08-01 13:42 ` [PATCH 1/2] dt-bindings: pinctrl: add at91 file Raphael Poggi
2014-08-01 13:42 ` Raphael Poggi [this message]
2014-08-01 16:59 ` [PATCH 0/2] Add initial support of at91sam9m10g45ek device tree Sascha Hauer
2014-08-01 17:34   ` Raphaël Poggi

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=1406900538-29656-3-git-send-email-raphael.poggi@erocca.com \
    --to=poggi.raph@gmail.com \
    --cc=barebox@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