rtc: at91rm9200: add DT support
PATCH 1/1 rtc: at91rm9200: add DT support
Signed-off-by Joachim Eastwood <[email protected]>
--- .../devicetree/bindings/rtc/atmel,at91rm9200-rtc.txt | 15 +++++++++++++++ drivers/rtc/rtc-at91rm9200.c | 9 +++++++++ 2 files changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/atmel,at91rm9200-rtc.txt
Documentation/devicetree/bindings/rtc/atmel,at91rm9200-rtc.txt new file +15 -0
@@ -0,0 +1,15 @@ +Atmel AT91RM9200 Real Time Clock + +Required properties: +- compatible: should be: "atmel,at91rm9200-rtc" +- reg: physical base address of the controller and length of memory mapped + region. +- interrupts: rtc alarm/event interrupt + +Example: + +rtc@fffffe00 { + compatible = "atmel,at91rm9200-rtc"; + reg = <0xfffffe00 0x100>; + interrupts = <1 4 7>; +};
drivers/rtc/rtc-at91rm9200.c +9 -0
@@ -28,6 +28,8 @@#include <linux/ioctl.h> #include <linux/completion.h> #include <linux/io.h> +#include <linux/of.h> +#include <linux/of_device.h> #include <asm/uaccess.h>
@@ -382,12 +384,19 @@ static const struct dev_pm_ops at91_rtc_pm = {#define at91_rtc_pm_ptr NULL#endif +static const struct of_device_id at91_rtc_dt_ids[] = { + { .compatible ="atmel,at91rm9200-rtc" }, + {/* sentinel */ } +}; +MODULE_DEVICE_TABLE (of, at91_rtc_dt_ids); +static struct platform_driver at91_rtc_driver = { .remove =__exit_p (at91_rtc_remove), .driver = { .name ="at91_rtc" , .owner =THIS_MODULE , .pm = at91_rtc_pm_ptr, + .of_match_table =of_match_ptr (at91_rtc_dt_ids), }, };
Signature · 1 line
1.8.0
PATCH 1/1 rtc: at91rm9200: add DT support
On 02/14/2013 10:59 PM, Joachim Eastwood :
Quoted 1 line
Signed-off-by Joachim Eastwood <[email protected]>
Acked-by Nicolas Ferre <[email protected]>
Alessandro, do you want to queue this one on your side?
Best regards,
Quoted 59 lines
--- .../devicetree/bindings/rtc/atmel,at91rm9200-rtc.txt | 15 +++++++++++++++ drivers/rtc/rtc-at91rm9200.c | 9 +++++++++ 2 files changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/atmel,at91rm9200-rtc.txtDocumentation/devicetree/bindings/rtc/atmel,at91rm9200-rtc.txt new file +15
-0@@ -0,0 +1,15 @@ +Atmel AT91RM9200 Real Time Clock + +Required properties: +- compatible: should be: "atmel,at91rm9200-rtc" +- reg: physical base address of the controller and length of memory mapped + region. +- interrupts: rtc alarm/event interrupt + +Example: + +rtc at fffffe00 { + compatible = "atmel,at91rm9200-rtc"; + reg = <0xfffffe00 0x100>; + interrupts = <1 4 7>; +};drivers/rtc/rtc-at91rm9200.c +9
-0@@ -28,6 +28,8 @@#include <linux/ioctl.h> #include <linux/completion.h> #include <linux/io.h> +#include <linux/of.h> +#include <linux/of_device.h> #include <asm/uaccess.h> @@ -382,12 +384,19 @@ static const struct dev_pm_ops at91_rtc_pm = {#define at91_rtc_pm_ptr NULL#endif +static const struct of_device_id at91_rtc_dt_ids[] = { + { .compatible ="atmel,at91rm9200-rtc" }, + {/* sentinel */ } +}; +MODULE_DEVICE_TABLE (of, at91_rtc_dt_ids); +static struct platform_driver at91_rtc_driver = { .remove =__exit_p (at91_rtc_remove), .driver = { .name ="at91_rtc" , .owner =THIS_MODULE , .pm = at91_rtc_pm_ptr, + .of_match_table =of_match_ptr (at91_rtc_dt_ids), }, };
Signature · 1 line
Nicolas Ferre
On 03/08/2013 10:14 AM, Nicolas Ferre :
Quoted 6 lines
On 02/14/2013 10:59 PM, Joachim Eastwood :
Quoted 1 line
Signed-off-by Joachim Eastwood <[email protected]>Acked-by Nicolas Ferre <[email protected]>Alessandro, do you want to queue this one on your side?
Ping?
Maybe Andrew, you may take this one on your side?
Quoted 61 lines
Best regards,
Quoted 59 lines
--- .../devicetree/bindings/rtc/atmel,at91rm9200-rtc.txt | 15 +++++++++++++++ drivers/rtc/rtc-at91rm9200.c | 9 +++++++++ 2 files changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/atmel,at91rm9200-rtc.txtDocumentation/devicetree/bindings/rtc/atmel,at91rm9200-rtc.txt new file +15
-0@@ -0,0 +1,15 @@ +Atmel AT91RM9200 Real Time Clock + +Required properties: +- compatible: should be: "atmel,at91rm9200-rtc" +- reg: physical base address of the controller and length of memory mapped + region. +- interrupts: rtc alarm/event interrupt + +Example: + +rtc at fffffe00 { + compatible = "atmel,at91rm9200-rtc"; + reg = <0xfffffe00 0x100>; + interrupts = <1 4 7>; +};drivers/rtc/rtc-at91rm9200.c +9
-0@@ -28,6 +28,8 @@#include <linux/ioctl.h> #include <linux/completion.h> #include <linux/io.h> +#include <linux/of.h> +#include <linux/of_device.h> #include <asm/uaccess.h> @@ -382,12 +384,19 @@ static const struct dev_pm_ops at91_rtc_pm = {#define at91_rtc_pm_ptr NULL#endif +static const struct of_device_id at91_rtc_dt_ids[] = { + { .compatible ="atmel,at91rm9200-rtc" }, + {/* sentinel */ } +}; +MODULE_DEVICE_TABLE (of, at91_rtc_dt_ids); +static struct platform_driver at91_rtc_driver = { .remove =__exit_p (at91_rtc_remove), .driver = { .name ="at91_rtc" , .owner =THIS_MODULE , .pm = at91_rtc_pm_ptr, + .of_match_table =of_match_ptr (at91_rtc_dt_ids), }, };
Signature · 1 line
Nicolas Ferre