Re: [PATCH v2 02/12] at91: dt: sam9261: Basic Device Tree support for the at91sam9261ek

2014-01-14 Thread Nicolas Ferre
On 09/01/2014 13:31, Jean-Jacques Hiblot :
> This patch implements a simple DTS to boot a at91sam9261ek with a dt-enabled
> kernel (at91_dt_defconfig).
> Only dbgu, nand and watchdog are described in the DT.
> 
> Signed-off-by: Jean-Jacques Hiblot 
> ---
>  arch/arm/boot/dts/Makefile  |  2 +
>  arch/arm/boot/dts/at91sam9261ek.dts | 75 
> +
>  2 files changed, 77 insertions(+)
>  create mode 100644 arch/arm/boot/dts/at91sam9261ek.dts
> 
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index 772a30e..ece523d 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -11,6 +11,8 @@ dtb-$(CONFIG_ARCH_AT91) += ethernut5.dtb
>  dtb-$(CONFIG_ARCH_AT91) += evk-pro3.dtb
>  dtb-$(CONFIG_ARCH_AT91) += tny_a9260.dtb
>  dtb-$(CONFIG_ARCH_AT91) += usb_a9260.dtb
> +# sam9261
> +dtb-$(CONFIG_ARCH_AT91) += at91sam9261ek.dtb
>  # sam9263
>  dtb-$(CONFIG_ARCH_AT91) += at91sam9263ek.dtb
>  dtb-$(CONFIG_ARCH_AT91) += tny_a9263.dtb
> diff --git a/arch/arm/boot/dts/at91sam9261ek.dts 
> b/arch/arm/boot/dts/at91sam9261ek.dts
> new file mode 100644
> index 000..f3d22a9
> --- /dev/null
> +++ b/arch/arm/boot/dts/at91sam9261ek.dts
> @@ -0,0 +1,75 @@
> +/*
> + * at91sam9261ek.dts - Device Tree file for Atmel at91sam9261 reference board
> + *
> + *  Copyright (C) 2013 Jean-Jacques Hiblot 
> + *
> + * Licensed under GPLv2 only.
> + */
> +/dts-v1/;
> +#include "at91sam9261.dtsi"
> +
> +/ {
> + model = "Atmel at91sam9261ek";
> + compatible = "atmel,at91sam9261ek", "atmel,at91sam9261", 
> "atmel,at91sam9";
> +
> + chosen {
> + bootargs = "mem=64M console=ttyS0,115200";

No "mem=" argument, please.

> + };
> +
> + memory {
> + reg = <0x2000 0x400>;

This is where memory is specified.

> + };
> +
> + clocks {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + ranges;
> +
> + main_clock: clock@0 {
> + compatible = "atmel,osc", "fixed-clock";
> + clock-frequency = <18432000>;
> + };
> + };
> +
> + ahb {
> + apb {
> + dbgu: serial@f200 {
> + status = "okay";
> + };
> +
> + watchdog@fd40 {
> + status = "okay";
> + };
> + };
> +
> + nand0: nand@4000 {
> + nand-bus-width = <8>;
> + nand-ecc-mode = "soft";
> + nand-on-flash-bbt = <1>;
> + status = "okay";
> + at91bootstrap@0 {
> + label = "at91bootstrap";
> + reg = <0x0 0x2>;

Maybe more partitions are needed by default. You may need to align to
the common partition scheme the we use for sama5d3 and:

http://www.at91.com/linux4sam/bin/view/Linux4SAM/GettingStarted#Linux4SAM_NandFlash_demo_Memory

(even if it can be discussed ;-))

> + };
> + };
> + };
> +
> + leds {
> + compatible = "gpio-leds";
> + ds8 {
> + label = "ds8";
> + gpios = < 13 GPIO_ACTIVE_LOW>;
> + linux,default-trigger = "none";
> + };
> + ds7 {
> + label = "ds7";
> + gpios = < 14 GPIO_ACTIVE_LOW>;
> + linux,default-trigger = "nand-disk";
> + };
> + ds1 {
> + label = "ds1";
> + gpios = < 23 GPIO_ACTIVE_LOW>;
> + linux,default-trigger = "heartbeat";
> + };
> + };
> +};
> 


-- 
Nicolas Ferre
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v2 02/12] at91: dt: sam9261: Basic Device Tree support for the at91sam9261ek

2014-01-14 Thread Nicolas Ferre
On 09/01/2014 13:31, Jean-Jacques Hiblot :
 This patch implements a simple DTS to boot a at91sam9261ek with a dt-enabled
 kernel (at91_dt_defconfig).
 Only dbgu, nand and watchdog are described in the DT.
 
 Signed-off-by: Jean-Jacques Hiblot jjhib...@traphandler.com
 ---
  arch/arm/boot/dts/Makefile  |  2 +
  arch/arm/boot/dts/at91sam9261ek.dts | 75 
 +
  2 files changed, 77 insertions(+)
  create mode 100644 arch/arm/boot/dts/at91sam9261ek.dts
 
 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
 index 772a30e..ece523d 100644
 --- a/arch/arm/boot/dts/Makefile
 +++ b/arch/arm/boot/dts/Makefile
 @@ -11,6 +11,8 @@ dtb-$(CONFIG_ARCH_AT91) += ethernut5.dtb
  dtb-$(CONFIG_ARCH_AT91) += evk-pro3.dtb
  dtb-$(CONFIG_ARCH_AT91) += tny_a9260.dtb
  dtb-$(CONFIG_ARCH_AT91) += usb_a9260.dtb
 +# sam9261
 +dtb-$(CONFIG_ARCH_AT91) += at91sam9261ek.dtb
  # sam9263
  dtb-$(CONFIG_ARCH_AT91) += at91sam9263ek.dtb
  dtb-$(CONFIG_ARCH_AT91) += tny_a9263.dtb
 diff --git a/arch/arm/boot/dts/at91sam9261ek.dts 
 b/arch/arm/boot/dts/at91sam9261ek.dts
 new file mode 100644
 index 000..f3d22a9
 --- /dev/null
 +++ b/arch/arm/boot/dts/at91sam9261ek.dts
 @@ -0,0 +1,75 @@
 +/*
 + * at91sam9261ek.dts - Device Tree file for Atmel at91sam9261 reference board
 + *
 + *  Copyright (C) 2013 Jean-Jacques Hiblot jjhib...@traphandler.com
 + *
 + * Licensed under GPLv2 only.
 + */
 +/dts-v1/;
 +#include at91sam9261.dtsi
 +
 +/ {
 + model = Atmel at91sam9261ek;
 + compatible = atmel,at91sam9261ek, atmel,at91sam9261, 
 atmel,at91sam9;
 +
 + chosen {
 + bootargs = mem=64M console=ttyS0,115200;

No mem= argument, please.

 + };
 +
 + memory {
 + reg = 0x2000 0x400;

This is where memory is specified.

 + };
 +
 + clocks {
 + #address-cells = 1;
 + #size-cells = 1;
 + ranges;
 +
 + main_clock: clock@0 {
 + compatible = atmel,osc, fixed-clock;
 + clock-frequency = 18432000;
 + };
 + };
 +
 + ahb {
 + apb {
 + dbgu: serial@f200 {
 + status = okay;
 + };
 +
 + watchdog@fd40 {
 + status = okay;
 + };
 + };
 +
 + nand0: nand@4000 {
 + nand-bus-width = 8;
 + nand-ecc-mode = soft;
 + nand-on-flash-bbt = 1;
 + status = okay;
 + at91bootstrap@0 {
 + label = at91bootstrap;
 + reg = 0x0 0x2;

Maybe more partitions are needed by default. You may need to align to
the common partition scheme the we use for sama5d3 and:

http://www.at91.com/linux4sam/bin/view/Linux4SAM/GettingStarted#Linux4SAM_NandFlash_demo_Memory

(even if it can be discussed ;-))

 + };
 + };
 + };
 +
 + leds {
 + compatible = gpio-leds;
 + ds8 {
 + label = ds8;
 + gpios = pioA 13 GPIO_ACTIVE_LOW;
 + linux,default-trigger = none;
 + };
 + ds7 {
 + label = ds7;
 + gpios = pioA 14 GPIO_ACTIVE_LOW;
 + linux,default-trigger = nand-disk;
 + };
 + ds1 {
 + label = ds1;
 + gpios = pioA 23 GPIO_ACTIVE_LOW;
 + linux,default-trigger = heartbeat;
 + };
 + };
 +};
 


-- 
Nicolas Ferre
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH v2 02/12] at91: dt: sam9261: Basic Device Tree support for the at91sam9261ek

2014-01-09 Thread Jean-Jacques Hiblot
This patch implements a simple DTS to boot a at91sam9261ek with a dt-enabled
kernel (at91_dt_defconfig).
Only dbgu, nand and watchdog are described in the DT.

Signed-off-by: Jean-Jacques Hiblot 
---
 arch/arm/boot/dts/Makefile  |  2 +
 arch/arm/boot/dts/at91sam9261ek.dts | 75 +
 2 files changed, 77 insertions(+)
 create mode 100644 arch/arm/boot/dts/at91sam9261ek.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 772a30e..ece523d 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -11,6 +11,8 @@ dtb-$(CONFIG_ARCH_AT91) += ethernut5.dtb
 dtb-$(CONFIG_ARCH_AT91) += evk-pro3.dtb
 dtb-$(CONFIG_ARCH_AT91) += tny_a9260.dtb
 dtb-$(CONFIG_ARCH_AT91) += usb_a9260.dtb
+# sam9261
+dtb-$(CONFIG_ARCH_AT91) += at91sam9261ek.dtb
 # sam9263
 dtb-$(CONFIG_ARCH_AT91) += at91sam9263ek.dtb
 dtb-$(CONFIG_ARCH_AT91) += tny_a9263.dtb
diff --git a/arch/arm/boot/dts/at91sam9261ek.dts 
b/arch/arm/boot/dts/at91sam9261ek.dts
new file mode 100644
index 000..f3d22a9
--- /dev/null
+++ b/arch/arm/boot/dts/at91sam9261ek.dts
@@ -0,0 +1,75 @@
+/*
+ * at91sam9261ek.dts - Device Tree file for Atmel at91sam9261 reference board
+ *
+ *  Copyright (C) 2013 Jean-Jacques Hiblot 
+ *
+ * Licensed under GPLv2 only.
+ */
+/dts-v1/;
+#include "at91sam9261.dtsi"
+
+/ {
+   model = "Atmel at91sam9261ek";
+   compatible = "atmel,at91sam9261ek", "atmel,at91sam9261", 
"atmel,at91sam9";
+
+   chosen {
+   bootargs = "mem=64M console=ttyS0,115200";
+   };
+
+   memory {
+   reg = <0x2000 0x400>;
+   };
+
+   clocks {
+   #address-cells = <1>;
+   #size-cells = <1>;
+   ranges;
+
+   main_clock: clock@0 {
+   compatible = "atmel,osc", "fixed-clock";
+   clock-frequency = <18432000>;
+   };
+   };
+
+   ahb {
+   apb {
+   dbgu: serial@f200 {
+   status = "okay";
+   };
+
+   watchdog@fd40 {
+   status = "okay";
+   };
+   };
+
+   nand0: nand@4000 {
+   nand-bus-width = <8>;
+   nand-ecc-mode = "soft";
+   nand-on-flash-bbt = <1>;
+   status = "okay";
+   at91bootstrap@0 {
+   label = "at91bootstrap";
+   reg = <0x0 0x2>;
+   };
+   };
+   };
+
+   leds {
+   compatible = "gpio-leds";
+   ds8 {
+   label = "ds8";
+   gpios = < 13 GPIO_ACTIVE_LOW>;
+   linux,default-trigger = "none";
+   };
+   ds7 {
+   label = "ds7";
+   gpios = < 14 GPIO_ACTIVE_LOW>;
+   linux,default-trigger = "nand-disk";
+   };
+   ds1 {
+   label = "ds1";
+   gpios = < 23 GPIO_ACTIVE_LOW>;
+   linux,default-trigger = "heartbeat";
+   };
+   };
+};
-- 
1.8.5.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH v2 02/12] at91: dt: sam9261: Basic Device Tree support for the at91sam9261ek

2014-01-09 Thread Jean-Jacques Hiblot
This patch implements a simple DTS to boot a at91sam9261ek with a dt-enabled
kernel (at91_dt_defconfig).
Only dbgu, nand and watchdog are described in the DT.

Signed-off-by: Jean-Jacques Hiblot jjhib...@traphandler.com
---
 arch/arm/boot/dts/Makefile  |  2 +
 arch/arm/boot/dts/at91sam9261ek.dts | 75 +
 2 files changed, 77 insertions(+)
 create mode 100644 arch/arm/boot/dts/at91sam9261ek.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 772a30e..ece523d 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -11,6 +11,8 @@ dtb-$(CONFIG_ARCH_AT91) += ethernut5.dtb
 dtb-$(CONFIG_ARCH_AT91) += evk-pro3.dtb
 dtb-$(CONFIG_ARCH_AT91) += tny_a9260.dtb
 dtb-$(CONFIG_ARCH_AT91) += usb_a9260.dtb
+# sam9261
+dtb-$(CONFIG_ARCH_AT91) += at91sam9261ek.dtb
 # sam9263
 dtb-$(CONFIG_ARCH_AT91) += at91sam9263ek.dtb
 dtb-$(CONFIG_ARCH_AT91) += tny_a9263.dtb
diff --git a/arch/arm/boot/dts/at91sam9261ek.dts 
b/arch/arm/boot/dts/at91sam9261ek.dts
new file mode 100644
index 000..f3d22a9
--- /dev/null
+++ b/arch/arm/boot/dts/at91sam9261ek.dts
@@ -0,0 +1,75 @@
+/*
+ * at91sam9261ek.dts - Device Tree file for Atmel at91sam9261 reference board
+ *
+ *  Copyright (C) 2013 Jean-Jacques Hiblot jjhib...@traphandler.com
+ *
+ * Licensed under GPLv2 only.
+ */
+/dts-v1/;
+#include at91sam9261.dtsi
+
+/ {
+   model = Atmel at91sam9261ek;
+   compatible = atmel,at91sam9261ek, atmel,at91sam9261, 
atmel,at91sam9;
+
+   chosen {
+   bootargs = mem=64M console=ttyS0,115200;
+   };
+
+   memory {
+   reg = 0x2000 0x400;
+   };
+
+   clocks {
+   #address-cells = 1;
+   #size-cells = 1;
+   ranges;
+
+   main_clock: clock@0 {
+   compatible = atmel,osc, fixed-clock;
+   clock-frequency = 18432000;
+   };
+   };
+
+   ahb {
+   apb {
+   dbgu: serial@f200 {
+   status = okay;
+   };
+
+   watchdog@fd40 {
+   status = okay;
+   };
+   };
+
+   nand0: nand@4000 {
+   nand-bus-width = 8;
+   nand-ecc-mode = soft;
+   nand-on-flash-bbt = 1;
+   status = okay;
+   at91bootstrap@0 {
+   label = at91bootstrap;
+   reg = 0x0 0x2;
+   };
+   };
+   };
+
+   leds {
+   compatible = gpio-leds;
+   ds8 {
+   label = ds8;
+   gpios = pioA 13 GPIO_ACTIVE_LOW;
+   linux,default-trigger = none;
+   };
+   ds7 {
+   label = ds7;
+   gpios = pioA 14 GPIO_ACTIVE_LOW;
+   linux,default-trigger = nand-disk;
+   };
+   ds1 {
+   label = ds1;
+   gpios = pioA 23 GPIO_ACTIVE_LOW;
+   linux,default-trigger = heartbeat;
+   };
+   };
+};
-- 
1.8.5.2

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/