* [PATCH] arm: at91: Add new board
@ 2012-07-03 14:27 Jiri Prchal
2012-07-03 16:19 ` Nicolas Ferre
0 siblings, 1 reply; 4+ messages in thread
From: Jiri Prchal @ 2012-07-03 14:27 UTC (permalink / raw)
To: linux-arm-kernel
I'd like to add support for our "CDU" board based up on Telit's module GE863 Pro3.
It has more uarts, leds, another nand partitioning.
Signed-off-by: Jiri Prchal <jiri.prchal@aksignal.cz>
---
arch/arm/boot/dts/cdu.dtsi | 126 ++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 126 insertions(+), 0 deletions(-)
create mode 100644 arch/arm/boot/dts/cdu.dtsi
diff --git a/arch/arm/boot/dts/cdu.dtsi b/arch/arm/boot/dts/cdu.dtsi
new file mode 100644
index 0000000..0f9ed04
--- /dev/null
+++ b/arch/arm/boot/dts/cdu.dtsi
@@ -0,0 +1,126 @@
+/*
+ * cdu.dtsi - Device Tree file for AKsignal CDU
+ *
+ * Copyright (C) 2012 AKsignal Brno,
+ * 2012 Jiri Prchal <jiri.prchal@aksignal.cz>
+ *
+ * Licensed under GPLv2 or later.
+ */
+
+/include/ "at91sam9260.dtsi"
+
+/ {
+ clocks {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges;
+
+ main_clock: clock at 0 {
+ compatible = "atmel,osc", "fixed-clock";
+ clock-frequency = <6000000>;
+ };
+ };
+
+ chosen {
+ bootargs = "console=ttyS0,115200 ubi.mtd=4 root=ubi0:rootfs rootfstype=ubifs";
+ };
+
+ ahb {
+ apb {
+ dbgu: serial at fffff200 {
+ status = "okay";
+ };
+
+ usart0: serial at fffb0000 {
+ status = "okay";
+ };
+
+ usart1: serial at fffb4000 {
+ status = "okay";
+ linux,rs485-enabled-at-boot-time;
+ rs485-rts-delay = <0 0>;
+ };
+
+ usart2: serial at fffb8000 {
+ status = "okay";
+ linux,rs485-enabled-at-boot-time;
+ rs485-rts-delay = <0 0>;
+ };
+
+ usart3: serial at fffd0000 {
+ status = "okay";
+ linux,rs485-enabled-at-boot-time;
+ rs485-rts-delay = <0 0>;
+ };
+
+ macb0: ethernet at fffbc000 {
+ phy-mode = "rmii";
+ status = "okay";
+ };
+
+ usb1: gadget at fffa4000 {
+ atmel,vbus-gpio = <&pioC 15 0>;
+ status = "okay";
+ };
+ };
+
+ usb0: ohci at 00500000 {
+ num-ports = <2>;
+ status = "okay";
+ };
+
+ nand0: nand at 40000000 {
+ nand-bus-width = <8>;
+ nand-ecc-mode = "soft";
+ nand-on-flash-bbt;
+ status = "okay";
+
+ bootstrap at 0 {
+ label = "bootstrap";
+ reg = <0x0 0x40000>;
+ };
+
+ uboot at 40000 {
+ label = "uboot";
+ reg = <0x40000 0x80000>;
+ };
+ ubootenv at c0000 {
+ label = "ubootenv";
+ reg = <0xc0000 0x40000>;
+ };
+ kernel at 100000 {
+ label = "kernel";
+ reg = <0x100000 0x400000>;
+ };
+ rootfs at 500000 {
+ label = "rootfs";
+ reg = <0x500000 0x7b00000>;
+ };
+ };
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ red {
+ gpios = <&pioC 10 0>;
+ linux,default-trigger = "none";
+ };
+
+ green {
+ gpios = <&pioA 5 1>;
+ linux,default-trigger = "none";
+ default-state = "on";
+ };
+
+ yellow {
+ gpios = <&pioB 20 1>;
+ linux,default-trigger = "none";
+ };
+
+ blue {
+ gpios = <&pioB 21 1>;
+ linux,default-trigger = "none";
+ };
+ };
+};
--
1.7.7
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] arm: at91: Add new board
2012-07-03 14:27 [PATCH] arm: at91: Add new board Jiri Prchal
@ 2012-07-03 16:19 ` Nicolas Ferre
0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Ferre @ 2012-07-03 16:19 UTC (permalink / raw)
To: linux-arm-kernel
On 07/03/2012 04:27 PM, Jiri Prchal :
> I'd like to add support for our "CDU" board based up on Telit's module GE863 Pro3.
> It has more uarts, leds, another nand partitioning.
>
> Signed-off-by: Jiri Prchal <jiri.prchal@aksignal.cz>
Thanks a lot for taking time to rearrange your board description to
Device Tree!
> ---
> arch/arm/boot/dts/cdu.dtsi | 126 ++++++++++++++++++++++++++++++++++++++++++++
> 1 files changed, 126 insertions(+), 0 deletions(-)
> create mode 100644 arch/arm/boot/dts/cdu.dtsi
I think that this board name is a little bit too short.
Moreover, if it is a board by itself, I would have expected a *.dts
file. Otherwise you will not be able to generate a .dtb out of it...
> diff --git a/arch/arm/boot/dts/cdu.dtsi b/arch/arm/boot/dts/cdu.dtsi
> new file mode 100644
> index 0000000..0f9ed04
> --- /dev/null
> +++ b/arch/arm/boot/dts/cdu.dtsi
> @@ -0,0 +1,126 @@
> +/*
> + * cdu.dtsi - Device Tree file for AKsignal CDU
> + *
> + * Copyright (C) 2012 AKsignal Brno,
> + * 2012 Jiri Prchal <jiri.prchal@aksignal.cz>
> + *
> + * Licensed under GPLv2 or later.
> + */
> +
> +/include/ "at91sam9260.dtsi"
As it is based on Telit board, maybe you can take advantage of their own
board as a common base? Am I wrong?
> +
> +/ {
> + clocks {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + ranges;
> +
> + main_clock: clock at 0 {
> + compatible = "atmel,osc", "fixed-clock";
> + clock-frequency = <6000000>;
> + };
> + };
> +
> + chosen {
> + bootargs = "console=ttyS0,115200 ubi.mtd=4 root=ubi0:rootfs rootfstype=ubifs";
> + };
> +
> + ahb {
> + apb {
> + dbgu: serial at fffff200 {
> + status = "okay";
> + };
> +
> + usart0: serial at fffb0000 {
> + status = "okay";
> + };
> +
> + usart1: serial at fffb4000 {
> + status = "okay";
> + linux,rs485-enabled-at-boot-time;
> + rs485-rts-delay = <0 0>;
> + };
> +
> + usart2: serial at fffb8000 {
> + status = "okay";
> + linux,rs485-enabled-at-boot-time;
> + rs485-rts-delay = <0 0>;
> + };
> +
> + usart3: serial at fffd0000 {
> + status = "okay";
> + linux,rs485-enabled-at-boot-time;
> + rs485-rts-delay = <0 0>;
> + };
> +
> + macb0: ethernet at fffbc000 {
> + phy-mode = "rmii";
> + status = "okay";
> + };
> +
> + usb1: gadget at fffa4000 {
> + atmel,vbus-gpio = <&pioC 15 0>;
> + status = "okay";
> + };
> + };
> +
> + usb0: ohci at 00500000 {
> + num-ports = <2>;
> + status = "okay";
> + };
> +
> + nand0: nand at 40000000 {
> + nand-bus-width = <8>;
> + nand-ecc-mode = "soft";
> + nand-on-flash-bbt;
> + status = "okay";
> +
> + bootstrap at 0 {
> + label = "bootstrap";
> + reg = <0x0 0x40000>;
> + };
> +
> + uboot at 40000 {
> + label = "uboot";
> + reg = <0x40000 0x80000>;
> + };
> + ubootenv at c0000 {
> + label = "ubootenv";
> + reg = <0xc0000 0x40000>;
> + };
> + kernel at 100000 {
> + label = "kernel";
> + reg = <0x100000 0x400000>;
> + };
> + rootfs at 500000 {
> + label = "rootfs";
> + reg = <0x500000 0x7b00000>;
> + };
> + };
> + };
> +
> + leds {
> + compatible = "gpio-leds";
> +
> + red {
> + gpios = <&pioC 10 0>;
> + linux,default-trigger = "none";
> + };
> +
> + green {
> + gpios = <&pioA 5 1>;
> + linux,default-trigger = "none";
> + default-state = "on";
> + };
> +
> + yellow {
> + gpios = <&pioB 20 1>;
> + linux,default-trigger = "none";
> + };
> +
> + blue {
> + gpios = <&pioB 21 1>;
> + linux,default-trigger = "none";
> + };
> + };
> +};
Thanks for submitting this work, it has to be amended but it seems on
the good way.
Best regards,
--
Nicolas Ferre
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] arm: at91: Add new board
@ 2012-07-04 7:04 Jiri Prchal
2012-07-06 11:51 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 1 reply; 4+ messages in thread
From: Jiri Prchal @ 2012-07-04 7:04 UTC (permalink / raw)
To: linux-arm-kernel
I'd like to add support for our "CDU" board based up on Telit's module GE863 Pro3.
It has more uarts, leds, another nand partitioning.
Signed-off-by: Jiri Prchal <jiri.prchal@aksignal.cz>
---
arch/arm/boot/dts/aks-cdu.dts | 111 +++++++++++++++++++++++++++++++++++++++++
1 files changed, 111 insertions(+), 0 deletions(-)
create mode 100644 arch/arm/boot/dts/aks-cdu.dts
diff --git a/arch/arm/boot/dts/aks-cdu.dts b/arch/arm/boot/dts/aks-cdu.dts
new file mode 100644
index 0000000..05590cc
--- /dev/null
+++ b/arch/arm/boot/dts/aks-cdu.dts
@@ -0,0 +1,111 @@
+/*
+ * aks-cdu.dts - Device Tree file for AK signal CDU
+ *
+ * Copyright (C) 2012 AK signal Brno a.s.
+ * 2012 Jiri Prchal <jiri.prchal@aksignal.cz>
+ *
+ * Licensed under GPLv2 or later.
+ */
+
+/include/ "ge863-pro3.dtsi"
+
+/ {
+ chosen {
+ bootargs = "console=ttyS0,115200 ubi.mtd=4 root=ubi0:rootfs rootfstype=ubifs";
+ };
+
+ ahb {
+ apb {
+ usart0: serial at fffb0000 {
+ status = "okay";
+ };
+
+ usart1: serial at fffb4000 {
+ status = "okay";
+ linux,rs485-enabled-at-boot-time;
+ rs485-rts-delay = <0 0>;
+ };
+
+ usart2: serial at fffb8000 {
+ status = "okay";
+ linux,rs485-enabled-at-boot-time;
+ rs485-rts-delay = <0 0>;
+ };
+
+ usart3: serial at fffd0000 {
+ status = "okay";
+ linux,rs485-enabled-at-boot-time;
+ rs485-rts-delay = <0 0>;
+ };
+
+ macb0: ethernet at fffbc000 {
+ phy-mode = "rmii";
+ status = "okay";
+ };
+
+ usb1: gadget at fffa4000 {
+ atmel,vbus-gpio = <&pioC 15 0>;
+ status = "okay";
+ };
+ };
+
+ usb0: ohci at 00500000 {
+ num-ports = <2>;
+ status = "okay";
+ };
+
+ nand0: nand at 40000000 {
+ nand-bus-width = <8>;
+ nand-ecc-mode = "soft";
+ nand-on-flash-bbt;
+ status = "okay";
+
+ bootstrap at 0 {
+ label = "bootstrap";
+ reg = <0x0 0x40000>;
+ };
+
+ uboot at 40000 {
+ label = "uboot";
+ reg = <0x40000 0x80000>;
+ };
+ ubootenv at c0000 {
+ label = "ubootenv";
+ reg = <0xc0000 0x40000>;
+ };
+ kernel at 100000 {
+ label = "kernel";
+ reg = <0x100000 0x400000>;
+ };
+ rootfs at 500000 {
+ label = "rootfs";
+ reg = <0x500000 0x7b00000>;
+ };
+ };
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ red {
+ gpios = <&pioC 10 0>;
+ linux,default-trigger = "none";
+ };
+
+ green {
+ gpios = <&pioA 5 1>;
+ linux,default-trigger = "none";
+ default-state = "on";
+ };
+
+ yellow {
+ gpios = <&pioB 20 1>;
+ linux,default-trigger = "none";
+ };
+
+ blue {
+ gpios = <&pioB 21 1>;
+ linux,default-trigger = "none";
+ };
+ };
+};
--
1.7.7
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] arm: at91: Add new board
2012-07-04 7:04 Jiri Prchal
@ 2012-07-06 11:51 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 0 replies; 4+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-07-06 11:51 UTC (permalink / raw)
To: linux-arm-kernel
HI,
please put a correct title of the commit
On 09:04 Wed 04 Jul , Jiri Prchal wrote:
> I'd like to add support for our "CDU" board based up on Telit's module GE863 Pro3.
> It has more uarts, leds, another nand partitioning.
>
> Signed-off-by: Jiri Prchal <jiri.prchal@aksignal.cz>
> ---
> arch/arm/boot/dts/aks-cdu.dts | 111 +++++++++++++++++++++++++++++++++++++++++
plewase update thei
arch/arm/mach-at91/Makefile.boot
Best Regards,
J.
> 1 files changed, 111 insertions(+), 0 deletions(-)
> create mode 100644 arch/arm/boot/dts/aks-cdu.dts
>
> diff --git a/arch/arm/boot/dts/aks-cdu.dts b/arch/arm/boot/dts/aks-cdu.dts
> new file mode 100644
> index 0000000..05590cc
> --- /dev/null
> +++ b/arch/arm/boot/dts/aks-cdu.dts
> @@ -0,0 +1,111 @@
> +/*
> + * aks-cdu.dts - Device Tree file for AK signal CDU
> + *
> + * Copyright (C) 2012 AK signal Brno a.s.
> + * 2012 Jiri Prchal <jiri.prchal@aksignal.cz>
> + *
> + * Licensed under GPLv2 or later.
> + */
> +
> +/include/ "ge863-pro3.dtsi"
> +
> +/ {
> + chosen {
> + bootargs = "console=ttyS0,115200 ubi.mtd=4 root=ubi0:rootfs rootfstype=ubifs";
> + };
> +
> + ahb {
> + apb {
> + usart0: serial at fffb0000 {
> + status = "okay";
> + };
> +
> + usart1: serial at fffb4000 {
> + status = "okay";
> + linux,rs485-enabled-at-boot-time;
> + rs485-rts-delay = <0 0>;
> + };
> +
> + usart2: serial at fffb8000 {
> + status = "okay";
> + linux,rs485-enabled-at-boot-time;
> + rs485-rts-delay = <0 0>;
> + };
> +
> + usart3: serial at fffd0000 {
> + status = "okay";
> + linux,rs485-enabled-at-boot-time;
> + rs485-rts-delay = <0 0>;
> + };
> +
> + macb0: ethernet at fffbc000 {
> + phy-mode = "rmii";
> + status = "okay";
> + };
> +
> + usb1: gadget at fffa4000 {
> + atmel,vbus-gpio = <&pioC 15 0>;
> + status = "okay";
> + };
> + };
> +
> + usb0: ohci at 00500000 {
> + num-ports = <2>;
> + status = "okay";
> + };
> +
> + nand0: nand at 40000000 {
> + nand-bus-width = <8>;
> + nand-ecc-mode = "soft";
> + nand-on-flash-bbt;
> + status = "okay";
> +
> + bootstrap at 0 {
> + label = "bootstrap";
> + reg = <0x0 0x40000>;
> + };
> +
> + uboot at 40000 {
> + label = "uboot";
> + reg = <0x40000 0x80000>;
> + };
> + ubootenv at c0000 {
> + label = "ubootenv";
> + reg = <0xc0000 0x40000>;
> + };
> + kernel at 100000 {
> + label = "kernel";
> + reg = <0x100000 0x400000>;
> + };
> + rootfs at 500000 {
> + label = "rootfs";
> + reg = <0x500000 0x7b00000>;
> + };
> + };
> + };
> +
> + leds {
> + compatible = "gpio-leds";
> +
> + red {
> + gpios = <&pioC 10 0>;
> + linux,default-trigger = "none";
> + };
> +
> + green {
> + gpios = <&pioA 5 1>;
> + linux,default-trigger = "none";
> + default-state = "on";
> + };
> +
> + yellow {
> + gpios = <&pioB 20 1>;
> + linux,default-trigger = "none";
> + };
> +
> + blue {
> + gpios = <&pioB 21 1>;
> + linux,default-trigger = "none";
> + };
> + };
> +};
> --
> 1.7.7
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-07-06 11:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-03 14:27 [PATCH] arm: at91: Add new board Jiri Prchal
2012-07-03 16:19 ` Nicolas Ferre
-- strict thread matches above, loose matches on Subject: below --
2012-07-04 7:04 Jiri Prchal
2012-07-06 11:51 ` Jean-Christophe PLAGNIOL-VILLARD
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.