Re: [U-Boot] [PATCH v2 2/2] board: atmel: Use the new PIT timer driver

2017-08-26 Thread Simon Glass
On 15 August 2017 at 03:40, Wenyou Yang  wrote:
> Use the Atmel PIT timer driver which supports the driver model
> and device tree.
>
> Signed-off-by: Wenyou Yang 
> ---
>
> Changes in v2:
>  - Integrate the PATCH {timer: Add Atmel PIT timer driver} to
>one patch set.
>  - Rebase on latest commit of uboot/master (2d3c4ae35).
>  - Retain the CONFIG_SYS_TIMER_COUNTER macro in .
>  - Convert all atmel boards to support the new timer driver.
>
>  arch/arm/dts/sama5d2.dtsi  | 28 
> ++
>  configs/at91sam9260ek_dataflash_cs0_defconfig  |  2 ++
>  configs/at91sam9260ek_dataflash_cs1_defconfig  |  2 ++
>  configs/at91sam9260ek_nandflash_defconfig  |  2 ++
>  configs/at91sam9261ek_dataflash_cs0_defconfig  |  2 ++
>  configs/at91sam9261ek_dataflash_cs3_defconfig  |  2 ++
>  configs/at91sam9261ek_nandflash_defconfig  |  2 ++
>  configs/at91sam9263ek_dataflash_cs0_defconfig  |  2 ++
>  configs/at91sam9263ek_dataflash_defconfig  |  2 ++
>  configs/at91sam9263ek_nandflash_defconfig  |  2 ++
>  configs/at91sam9263ek_norflash_boot_defconfig  |  2 ++
>  configs/at91sam9263ek_norflash_defconfig   |  2 ++
>  configs/at91sam9g20ek_2mmc_defconfig   |  2 ++
>  configs/at91sam9g20ek_2mmc_nandflash_defconfig |  2 ++
>  configs/at91sam9g20ek_dataflash_cs0_defconfig  |  2 ++
>  configs/at91sam9g20ek_dataflash_cs1_defconfig  |  2 ++
>  configs/at91sam9g20ek_nandflash_defconfig  |  2 ++
>  configs/at91sam9m10g45ek_mmc_defconfig |  2 ++
>  configs/at91sam9m10g45ek_nandflash_defconfig   |  2 ++
>  configs/at91sam9n12ek_mmc_defconfig|  2 ++
>  configs/at91sam9n12ek_nandflash_defconfig  |  2 ++
>  configs/at91sam9n12ek_spiflash_defconfig   |  2 ++
>  configs/at91sam9rlek_dataflash_defconfig   |  2 ++
>  configs/at91sam9rlek_mmc_defconfig |  2 ++
>  configs/at91sam9rlek_nandflash_defconfig   |  2 ++
>  configs/at91sam9x5ek_dataflash_defconfig   |  2 ++
>  configs/at91sam9x5ek_mmc_defconfig |  2 ++
>  configs/at91sam9x5ek_nandflash_defconfig   |  2 ++
>  configs/at91sam9x5ek_spiflash_defconfig|  2 ++
>  configs/at91sam9xeek_dataflash_cs0_defconfig   |  2 ++
>  configs/at91sam9xeek_dataflash_cs1_defconfig   |  2 ++
>  configs/at91sam9xeek_nandflash_defconfig   |  2 ++
>  configs/gurnard_defconfig  |  2 ++
>  configs/sama5d2_xplained_mmc_defconfig |  3 +++
>  configs/sama5d2_xplained_spiflash_defconfig|  3 +++
>  configs/sama5d36ek_cmp_mmc_defconfig   |  2 ++
>  configs/sama5d36ek_cmp_nandflash_defconfig |  2 ++
>  configs/sama5d36ek_cmp_spiflash_defconfig  |  2 ++
>  configs/sama5d3_xplained_mmc_defconfig |  3 +++
>  configs/sama5d3_xplained_nandflash_defconfig   |  3 +++
>  configs/sama5d3xek_mmc_defconfig   |  3 +++
>  configs/sama5d3xek_nandflash_defconfig |  3 +++
>  configs/sama5d3xek_spiflash_defconfig  |  3 +++
>  configs/sama5d4_xplained_mmc_defconfig |  3 +++
>  configs/sama5d4_xplained_nandflash_defconfig   |  3 +++
>  configs/sama5d4_xplained_spiflash_defconfig|  3 +++
>  configs/sama5d4ek_mmc_defconfig|  3 +++
>  configs/sama5d4ek_nandflash_defconfig  |  3 +++
>  configs/sama5d4ek_spiflash_defconfig   |  3 +++
>  49 files changed, 137 insertions(+)

I wonder if you could 'imply' these options in Kconfig instead?

Reviewed-by: Simon Glass 
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 2/2] board: atmel: Use the new PIT timer driver

2017-08-15 Thread Wenyou Yang
Use the Atmel PIT timer driver which supports the driver model
and device tree.

Signed-off-by: Wenyou Yang 
---

Changes in v2:
 - Integrate the PATCH {timer: Add Atmel PIT timer driver} to
   one patch set.
 - Rebase on latest commit of uboot/master (2d3c4ae35).
 - Retain the CONFIG_SYS_TIMER_COUNTER macro in .
 - Convert all atmel boards to support the new timer driver.

 arch/arm/dts/sama5d2.dtsi  | 28 ++
 configs/at91sam9260ek_dataflash_cs0_defconfig  |  2 ++
 configs/at91sam9260ek_dataflash_cs1_defconfig  |  2 ++
 configs/at91sam9260ek_nandflash_defconfig  |  2 ++
 configs/at91sam9261ek_dataflash_cs0_defconfig  |  2 ++
 configs/at91sam9261ek_dataflash_cs3_defconfig  |  2 ++
 configs/at91sam9261ek_nandflash_defconfig  |  2 ++
 configs/at91sam9263ek_dataflash_cs0_defconfig  |  2 ++
 configs/at91sam9263ek_dataflash_defconfig  |  2 ++
 configs/at91sam9263ek_nandflash_defconfig  |  2 ++
 configs/at91sam9263ek_norflash_boot_defconfig  |  2 ++
 configs/at91sam9263ek_norflash_defconfig   |  2 ++
 configs/at91sam9g20ek_2mmc_defconfig   |  2 ++
 configs/at91sam9g20ek_2mmc_nandflash_defconfig |  2 ++
 configs/at91sam9g20ek_dataflash_cs0_defconfig  |  2 ++
 configs/at91sam9g20ek_dataflash_cs1_defconfig  |  2 ++
 configs/at91sam9g20ek_nandflash_defconfig  |  2 ++
 configs/at91sam9m10g45ek_mmc_defconfig |  2 ++
 configs/at91sam9m10g45ek_nandflash_defconfig   |  2 ++
 configs/at91sam9n12ek_mmc_defconfig|  2 ++
 configs/at91sam9n12ek_nandflash_defconfig  |  2 ++
 configs/at91sam9n12ek_spiflash_defconfig   |  2 ++
 configs/at91sam9rlek_dataflash_defconfig   |  2 ++
 configs/at91sam9rlek_mmc_defconfig |  2 ++
 configs/at91sam9rlek_nandflash_defconfig   |  2 ++
 configs/at91sam9x5ek_dataflash_defconfig   |  2 ++
 configs/at91sam9x5ek_mmc_defconfig |  2 ++
 configs/at91sam9x5ek_nandflash_defconfig   |  2 ++
 configs/at91sam9x5ek_spiflash_defconfig|  2 ++
 configs/at91sam9xeek_dataflash_cs0_defconfig   |  2 ++
 configs/at91sam9xeek_dataflash_cs1_defconfig   |  2 ++
 configs/at91sam9xeek_nandflash_defconfig   |  2 ++
 configs/gurnard_defconfig  |  2 ++
 configs/sama5d2_xplained_mmc_defconfig |  3 +++
 configs/sama5d2_xplained_spiflash_defconfig|  3 +++
 configs/sama5d36ek_cmp_mmc_defconfig   |  2 ++
 configs/sama5d36ek_cmp_nandflash_defconfig |  2 ++
 configs/sama5d36ek_cmp_spiflash_defconfig  |  2 ++
 configs/sama5d3_xplained_mmc_defconfig |  3 +++
 configs/sama5d3_xplained_nandflash_defconfig   |  3 +++
 configs/sama5d3xek_mmc_defconfig   |  3 +++
 configs/sama5d3xek_nandflash_defconfig |  3 +++
 configs/sama5d3xek_spiflash_defconfig  |  3 +++
 configs/sama5d4_xplained_mmc_defconfig |  3 +++
 configs/sama5d4_xplained_nandflash_defconfig   |  3 +++
 configs/sama5d4_xplained_spiflash_defconfig|  3 +++
 configs/sama5d4ek_mmc_defconfig|  3 +++
 configs/sama5d4ek_nandflash_defconfig  |  3 +++
 configs/sama5d4ek_spiflash_defconfig   |  3 +++
 49 files changed, 137 insertions(+)

diff --git a/arch/arm/dts/sama5d2.dtsi b/arch/arm/dts/sama5d2.dtsi
index 8d89b83b53..d8a65145d6 100644
--- a/arch/arm/dts/sama5d2.dtsi
+++ b/arch/arm/dts/sama5d2.dtsi
@@ -632,6 +632,34 @@
status = "disabled";
};
 
+   rstc@f8048000 {
+   compatible = "atmel,sama5d3-rstc";
+   reg = <0xf8048000 0x10>;
+   clocks = <>;
+   };
+
+   shdwc@f8048010 {
+   compatible = "atmel,sama5d2-shdwc";
+   reg = <0xf8048010 0x10>;
+   clocks = <>;
+   #address-cells = <1>;
+   #size-cells = <0>;
+   atmel,wakeup-rtc-timer;
+   };
+
+   pit: timer@f8048030 {
+   compatible = "atmel,at91sam9260-pit";
+   reg = <0xf8048030 0x10>;
+   clocks = <>;
+   };
+
+   watchdog@f8048040 {
+   compatible = "atmel,sama5d4-wdt";
+   reg = <0xf8048040 0x10>;
+   clocks = <>;
+   status = "disabled";
+   };
+
sckc@f8048050 {
compatible = "atmel,at91sam9x5-sckc";
reg = <0xf8048050 0x4>;
diff --git a/configs/at91sam9260ek_dataflash_cs0_defconfig 
b/configs/at91sam9260ek_dataflash_cs0_defconfig
index 8661d9f098..c231f5f8ab 100644
---