Date:2013-04-24 09:31:02 (10 years 11 months ago)
Author:Lars C.
Commit:688271817eca9317d27fdc4f0f0d35f09d7cd8d7
Message:drivers/rtc/rtc-jz4740.c: jz4740: Add device tree support

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Files: Documentation/devicetree/bindings/rtc/jz4740-rtc.txt (1 diff)
drivers/rtc/rtc-jz4740.c (1 diff)

Change Details

Documentation/devicetree/bindings/rtc/jz4740-rtc.txt
1Ingenic JZ4740 RTC controller
2
3Required properties:
4- compatible: "ingenic,jz4740-rtc"
5- reg: physical base address of the controller and length of memory mapped
6  region.
7- interrupts: IRQ line for the controller.
8- clocks: Phandle to the parent clock
9
10Example:
11
12    rtc@3000 {
13        compatible = "ingenic,jz4740-rtc";
14        reg = <0x3000 0x1000>;
15        interrupts = <15>;
16        clocks = <&rtc_clk>;
17    };
drivers/rtc/rtc-jz4740.c
312312#define JZ4740_RTC_PM_OPS NULL
313313#endif /* CONFIG_PM */
314314
315static const struct of_device_id jz4740_rtc_of_match[] = {
316    { .compatible = "ingenic,jz4740-rtc" },
317    {},
318};
319MODULE_DEVICE_TABLE(of, jz4740_rtc_of_match);
320
315321static struct platform_driver jz4740_rtc_driver = {
316322    .probe = jz4740_rtc_probe,
317323    .driver = {
318324        .name = "jz4740-rtc",
319325        .owner = THIS_MODULE,
320326        .pm = JZ4740_RTC_PM_OPS,
327        .of_match_table = jz4740_rtc_of_match,
321328    },
322329};
323330

Archive Download the corresponding diff file



interactive