aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/core-api/printk-formats.rst18
-rw-r--r--Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt10
-rw-r--r--Documentation/devicetree/bindings/rtc/abracon,abx80x.txt2
-rw-r--r--Documentation/devicetree/bindings/rtc/nxp,rtc-2123.txt1
-rw-r--r--Documentation/devicetree/bindings/rtc/pcf85363.txt4
-rw-r--r--Documentation/devicetree/bindings/rtc/rtc-ds1307.txt2
-rw-r--r--Documentation/devicetree/bindings/rtc/sun6i-rtc.txt33
-rw-r--r--arch/m68k/mac/misc.c8
-rw-r--r--drivers/base/power/trace.c4
-rw-r--r--drivers/char/rtc.c7
-rw-r--r--drivers/input/misc/hp_sdc_rtc.c8
-rw-r--r--drivers/rtc/Kconfig7
-rw-r--r--drivers/rtc/Makefile9
-rw-r--r--drivers/rtc/class.c187
-rw-r--r--drivers/rtc/dev.c (renamed from drivers/rtc/rtc-dev.c)0
-rw-r--r--drivers/rtc/hctosys.c8
-rw-r--r--drivers/rtc/interface.c27
-rw-r--r--drivers/rtc/lib.c (renamed from drivers/rtc/rtc-lib.c)0
-rw-r--r--drivers/rtc/nvmem.c38
-rw-r--r--drivers/rtc/proc.c (renamed from drivers/rtc/rtc-proc.c)36
-rw-r--r--drivers/rtc/rtc-abx80x.c38
-rw-r--r--drivers/rtc/rtc-at91rm9200.c15
-rw-r--r--drivers/rtc/rtc-at91sam9.c16
-rw-r--r--drivers/rtc/rtc-ep93xx.c2
-rw-r--r--drivers/rtc/rtc-imx-sc.c91
-rw-r--r--drivers/rtc/rtc-isl1208.c37
-rw-r--r--drivers/rtc/rtc-m41t80.c21
-rw-r--r--drivers/rtc/rtc-m48t59.c8
-rw-r--r--drivers/rtc/rtc-max6916.c2
-rw-r--r--drivers/rtc/rtc-max77686.c2
-rw-r--r--drivers/rtc/rtc-max8997.c2
-rw-r--r--drivers/rtc/rtc-mcp795.c18
-rw-r--r--drivers/rtc/rtc-omap.c4
-rw-r--r--drivers/rtc/rtc-pcf2123.c1
-rw-r--r--drivers/rtc/rtc-pcf50633.c8
-rw-r--r--drivers/rtc/rtc-pcf8523.c32
-rw-r--r--drivers/rtc/rtc-pcf85363.c94
-rw-r--r--drivers/rtc/rtc-pic32.c18
-rw-r--r--drivers/rtc/rtc-pm8xxx.c16
-rw-r--r--drivers/rtc/rtc-puv3.c18
-rw-r--r--drivers/rtc/rtc-rk808.c22
-rw-r--r--drivers/rtc/rtc-rx6110.c12
-rw-r--r--drivers/rtc/rtc-rx8025.c19
-rw-r--r--drivers/rtc/rtc-s3c.c26
-rw-r--r--drivers/rtc/rtc-s5m.c27
-rw-r--r--drivers/rtc/rtc-sh.c7
-rw-r--r--drivers/rtc/rtc-sun6i.c121
-rw-r--r--drivers/rtc/rtc-tegra.c30
-rw-r--r--drivers/rtc/sysfs.c (renamed from drivers/rtc/rtc-sysfs.c)16
-rw-r--r--include/linux/rtc.h17
-rw-r--r--lib/test_printf.c61
-rw-r--r--lib/vsprintf.c100
52 files changed, 744 insertions, 566 deletions
diff --git a/Documentation/core-api/printk-formats.rst b/Documentation/core-api/printk-formats.rst
index ff48b55040ef..a7fae4538946 100644
--- a/Documentation/core-api/printk-formats.rst
+++ b/Documentation/core-api/printk-formats.rst
@@ -412,6 +412,24 @@ Examples::
412 412
413Passed by reference. 413Passed by reference.
414 414
415Time and date (struct rtc_time)
416-------------------------------
417
418::
419
420 %ptR YYYY-mm-ddTHH:MM:SS
421 %ptRd YYYY-mm-dd
422 %ptRt HH:MM:SS
423 %ptR[dt][r]
424
425For printing date and time as represented by struct rtc_time structure in
426human readable format.
427
428By default year will be incremented by 1900 and month by 1. Use %ptRr (raw)
429to suppress this behaviour.
430
431Passed by reference.
432
415struct clk 433struct clk
416---------- 434----------
417 435
diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt
index 0af618b6a448..27784b6edfed 100644
--- a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt
+++ b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt
@@ -109,6 +109,12 @@ Required properties for Pinctrl sub nodes:
109[2] Documentation/devicetree/bindings/power/power_domain.txt 109[2] Documentation/devicetree/bindings/power/power_domain.txt
110[3] Documentation/devicetree/bindings/pinctrl/fsl,imx-pinctrl.txt 110[3] Documentation/devicetree/bindings/pinctrl/fsl,imx-pinctrl.txt
111 111
112RTC bindings based on SCU Message Protocol
113------------------------------------------------------------
114
115Required properties:
116- compatible: should be "fsl,imx8qxp-sc-rtc";
117
112Example (imx8qxp): 118Example (imx8qxp):
113------------- 119-------------
114lsio_mu1: mailbox@5d1c0000 { 120lsio_mu1: mailbox@5d1c0000 {
@@ -151,6 +157,10 @@ firmware {
151 compatible = "fsl,imx8qxp-scu-pd"; 157 compatible = "fsl,imx8qxp-scu-pd";
152 #power-domain-cells = <1>; 158 #power-domain-cells = <1>;
153 }; 159 };
160
161 rtc: rtc {
162 compatible = "fsl,imx8qxp-sc-rtc";
163 };
154 }; 164 };
155}; 165};
156 166
diff --git a/Documentation/devicetree/bindings/rtc/abracon,abx80x.txt b/Documentation/devicetree/bindings/rtc/abracon,abx80x.txt
index be789685a1c2..18b892d010d8 100644
--- a/Documentation/devicetree/bindings/rtc/abracon,abx80x.txt
+++ b/Documentation/devicetree/bindings/rtc/abracon,abx80x.txt
@@ -27,4 +27,4 @@ and valid to enable charging:
27 27
28 - "abracon,tc-diode": should be "standard" (0.6V) or "schottky" (0.3V) 28 - "abracon,tc-diode": should be "standard" (0.6V) or "schottky" (0.3V)
29 - "abracon,tc-resistor": should be <0>, <3>, <6> or <11>. 0 disables the output 29 - "abracon,tc-resistor": should be <0>, <3>, <6> or <11>. 0 disables the output
30 resistor, the other values are in ohm. 30 resistor, the other values are in kOhm.
diff --git a/Documentation/devicetree/bindings/rtc/nxp,rtc-2123.txt b/Documentation/devicetree/bindings/rtc/nxp,rtc-2123.txt
index 811124a36d16..1994f601800a 100644
--- a/Documentation/devicetree/bindings/rtc/nxp,rtc-2123.txt
+++ b/Documentation/devicetree/bindings/rtc/nxp,rtc-2123.txt
@@ -2,6 +2,7 @@ NXP PCF2123 SPI Real Time Clock
2 2
3Required properties: 3Required properties:
4- compatible: should be: "nxp,rtc-pcf2123" 4- compatible: should be: "nxp,rtc-pcf2123"
5 or "microcrystal,rv2123"
5- reg: should be the SPI slave chipselect address 6- reg: should be the SPI slave chipselect address
6 7
7Optional properties: 8Optional properties:
diff --git a/Documentation/devicetree/bindings/rtc/pcf85363.txt b/Documentation/devicetree/bindings/rtc/pcf85363.txt
index 76fdabc59742..94adc1cf93d9 100644
--- a/Documentation/devicetree/bindings/rtc/pcf85363.txt
+++ b/Documentation/devicetree/bindings/rtc/pcf85363.txt
@@ -1,8 +1,8 @@
1NXP PCF85363 Real Time Clock 1NXP PCF85263/PCF85363 Real Time Clock
2============================ 2============================
3 3
4Required properties: 4Required properties:
5- compatible: Should contain "nxp,pcf85363". 5- compatible: Should contain "nxp,pcf85263" or "nxp,pcf85363".
6- reg: I2C address for chip. 6- reg: I2C address for chip.
7 7
8Optional properties: 8Optional properties:
diff --git a/Documentation/devicetree/bindings/rtc/rtc-ds1307.txt b/Documentation/devicetree/bindings/rtc/rtc-ds1307.txt
index eebfbe04207a..eaee19b60960 100644
--- a/Documentation/devicetree/bindings/rtc/rtc-ds1307.txt
+++ b/Documentation/devicetree/bindings/rtc/rtc-ds1307.txt
@@ -35,7 +35,7 @@ Optional properties:
35 Should be given if internal trickle charger diode should be disabled 35 Should be given if internal trickle charger diode should be disabled
36 36
37Example: 37Example:
38 rtc1: ds1339@68 { 38 ds1339: rtc@68 {
39 compatible = "dallas,ds1339"; 39 compatible = "dallas,ds1339";
40 reg = <0x68>; 40 reg = <0x68>;
41 interrupt-parent = <&gpio4>; 41 interrupt-parent = <&gpio4>;
diff --git a/Documentation/devicetree/bindings/rtc/sun6i-rtc.txt b/Documentation/devicetree/bindings/rtc/sun6i-rtc.txt
index 12c083c1140a..6b732c41392b 100644
--- a/Documentation/devicetree/bindings/rtc/sun6i-rtc.txt
+++ b/Documentation/devicetree/bindings/rtc/sun6i-rtc.txt
@@ -3,25 +3,44 @@
3RTC controller for the Allwinner A31 3RTC controller for the Allwinner A31
4 4
5Required properties: 5Required properties:
6- compatible : Should be "allwinner,sun6i-a31-rtc" 6- compatible : Should be one of the following combinations:
7 - "allwinner,sun6i-a31-rtc"
8 - "allwinner,sun8i-a23-rtc"