Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1740762 > unrolled thread

[PATCH v2 0/6] dt-bindings: rtc: document existing bindings

Started byAlexandre Belloni <alexandre.belloni@free-electrons.com>
First post2017-09-27 16:10 +0200
Last post2017-09-27 16:10 +0200
Articles 4 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH v2 0/6] dt-bindings: rtc: document existing bindings Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-09-27 16:10 +0200
    [PATCH v2 4/6] dt-bindings: rtc: DS1307 and compatibles are not trivial Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-09-27 16:10 +0200
    [PATCH v2 1/6] dt-bindings: trivial: Add RTCs Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-09-27 16:10 +0200
    [PATCH v2 3/6] dt-bindings: rtc: Add sirf,prima2-sysrtc bindings Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-09-27 16:10 +0200

#1740762 — [PATCH v2 0/6] dt-bindings: rtc: document existing bindings

FromAlexandre Belloni <alexandre.belloni@free-electrons.com>
Date2017-09-27 16:10 +0200
Subject[PATCH v2 0/6] dt-bindings: rtc: document existing bindings
Message-ID<uulcd-44V-3@gated-at.bofh.it>
Document currently undocumented bindings.

Rob, as discussed, all of this can probably go through your tree.

Changes in v2:
 - made a proper series
 - fixed sirf2 example
 - listed the ds1307 compatible that support the trickle charging properties

Alexandre Belloni (6):
  dt-bindings: trivial: Add RTCs
  dt-bindings: rtc: add stericsson,coh901331 bindings
  dt-bindings: rtc: Add sirf,prima2-sysrtc bindings
  dt-bindings: rtc: DS1307 and compatibles are not trivial
  dt-bindings: rtc: Add bindings for m41t80 and compatibles
  dt-bindings: rtc: merge ds1339 in ds1307 documentation

 .../devicetree/bindings/rtc/dallas,ds1339.txt      | 18 ---------
 .../devicetree/bindings/rtc/rtc-ds1307.txt         | 44 ++++++++++++++++++++++
 .../devicetree/bindings/rtc/rtc-m41t80.txt         | 31 +++++++++++++++
 .../devicetree/bindings/rtc/sirf,prima2-sysrtc.txt | 13 +++++++
 .../bindings/rtc/stericsson,coh901331.txt          | 17 +++++++++
 .../devicetree/bindings/trivial-devices.txt        | 13 +++----
 6 files changed, 110 insertions(+), 26 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/rtc/dallas,ds1339.txt
 create mode 100644 Documentation/devicetree/bindings/rtc/rtc-ds1307.txt
 create mode 100644 Documentation/devicetree/bindings/rtc/rtc-m41t80.txt
 create mode 100644 Documentation/devicetree/bindings/rtc/sirf,prima2-sysrtc.txt
 create mode 100644 Documentation/devicetree/bindings/rtc/stericsson,coh901331.txt

-- 
2.14.2

[toc] | [next] | [standalone]


#1740764 — [PATCH v2 4/6] dt-bindings: rtc: DS1307 and compatibles are not trivial

FromAlexandre Belloni <alexandre.belloni@free-electrons.com>
Date2017-09-27 16:10 +0200
Subject[PATCH v2 4/6] dt-bindings: rtc: DS1307 and compatibles are not trivial
Message-ID<uulcf-44V-31@gated-at.bofh.it>
In reply to#1740762
Document optional properties for ds1307 and compatible RTCs

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
 .../devicetree/bindings/rtc/rtc-ds1307.txt         | 36 ++++++++++++++++++++++
 .../devicetree/bindings/trivial-devices.txt        |  6 ----
 2 files changed, 36 insertions(+), 6 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/rtc/rtc-ds1307.txt

diff --git a/Documentation/devicetree/bindings/rtc/rtc-ds1307.txt b/Documentation/devicetree/bindings/rtc/rtc-ds1307.txt
new file mode 100644
index 000000000000..c010f18a85a0
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/rtc-ds1307.txt
@@ -0,0 +1,36 @@
+Dallas DS1307 and compatible RTC
+
+Required properties:
+- compatible: should be one of:
+	"dallas,ds1307",
+	"dallas,ds1308",
+	"dallas,ds1337",
+	"dallas,ds1338",
+	"dallas,ds1339",
+	"dallas,ds1388",
+	"dallas,ds1340",
+	"dallas,ds1341",
+	"maxim,ds3231",
+	"st,m41t0",
+	"st,m41t00",
+	"microchip,mcp7940x",
+	"microchip,mcp7941x",
+	"pericom,pt7c4338",
+	"epson,rx8025",
+	"isil,isl12057"
+- reg: I2C bus address of the device
+
+Optional properties:
+- interrupt-parent: phandle for the interrupt controller.
+- interrupts: rtc alarm interrupt.
+- clock-output-names: From common clock binding to override the default output
+                      clock name
+- wakeup-source: Enables wake up of host system on alarm
+
+Example:
+	rtc1: ds1339@68 {
+		compatible = "dallas,ds1339";
+		reg = <0x68>;
+		interrupt-parent = <&gpio4>;
+		interrupts = <20 0>;
+	};
diff --git a/Documentation/devicetree/bindings/trivial-devices.txt b/Documentation/devicetree/bindings/trivial-devices.txt
index d0666acdec66..db7dc1edd4a2 100644
--- a/Documentation/devicetree/bindings/trivial-devices.txt
+++ b/Documentation/devicetree/bindings/trivial-devices.txt
@@ -36,9 +36,6 @@ atmel,at97sc3204t	i2c trusted platform module (TPM)
 capella,cm32181		CM32181: Ambient Light Sensor
 capella,cm3232		CM3232: Ambient Light Sensor
 cirrus,cs42l51		Cirrus Logic CS42L51 audio codec
-dallas,ds1307		64 x 8, Serial, I2C Real-Time Clock
-dallas,ds1338		I2C RTC with 56-Byte NV RAM
-dallas,ds1340		I2C RTC with Trickle Charger
 dallas,ds1374		I2C, 32-Bit Binary Counter Watchdog RTC with Trickle Charger and Reset Input/Output
 dallas,ds1631		High-Precision Digital Thermometer
 dallas,ds1672		Dallas DS1672 Real-time Clock
@@ -55,7 +52,6 @@ dlg,da9063		DA9063: system PMIC for quad-core application processors
 domintech,dmard09	DMARD09: 3-axis Accelerometer
 domintech,dmard10	DMARD10: 3-axis Accelerometer
 epson,rx8010		I2C-BUS INTERFACE REAL TIME CLOCK MODULE
-epson,rx8025		High-Stability. I2C-Bus INTERFACE REAL TIME CLOCK MODULE
 epson,rx8581		I2C-BUS INTERFACE REAL TIME CLOCK MODULE
 emmicro,em3027		EM Microelectronic EM3027 Real-time Clock
 fsl,mag3110		MAG3110: Xtrinsic High Accuracy, 3D Magnetometer
@@ -179,8 +175,6 @@ sii,s35390a		2-wire CMOS real-time clock
 silabs,si7020		Relative Humidity and Temperature Sensors
 skyworks,sky81452	Skyworks SKY81452: Six-Channel White LED Driver with Touch Panel Bias Supply
 st,24c256		i2c serial eeprom  (24cxx)
-st,m41t0		Serial real-time clock (RTC)
-st,m41t00		Serial real-time clock (RTC)
 st,m41t62		Serial real-time clock (RTC) with alarm
 st,m41t80		M41T80 - SERIAL ACCESS RTC WITH ALARMS
 taos,tsl2550		Ambient Light Sensor with SMBUS/Two Wire Serial Interface
-- 
2.14.2

[toc] | [prev] | [next] | [standalone]


#1740765 — [PATCH v2 1/6] dt-bindings: trivial: Add RTCs

FromAlexandre Belloni <alexandre.belloni@free-electrons.com>
Date2017-09-27 16:10 +0200
Subject[PATCH v2 1/6] dt-bindings: trivial: Add RTCs
Message-ID<uulcf-44V-35@gated-at.bofh.it>
In reply to#1740762
Add remaining trivial RTC bindings.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
 Documentation/devicetree/bindings/trivial-devices.txt | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Documentation/devicetree/bindings/trivial-devices.txt b/Documentation/devicetree/bindings/trivial-devices.txt
index aae37352c574..d0666acdec66 100644
--- a/Documentation/devicetree/bindings/trivial-devices.txt
+++ b/Documentation/devicetree/bindings/trivial-devices.txt
@@ -41,6 +41,7 @@ dallas,ds1338		I2C RTC with 56-Byte NV RAM
 dallas,ds1340		I2C RTC with Trickle Charger
 dallas,ds1374		I2C, 32-Bit Binary Counter Watchdog RTC with Trickle Charger and Reset Input/Output
 dallas,ds1631		High-Precision Digital Thermometer
+dallas,ds1672		Dallas DS1672 Real-time Clock
 dallas,ds1682		Total-Elapsed-Time Recorder with Alarm
 dallas,ds1775		Tiny Digital Thermometer and Thermostat
 dallas,ds3232		Extremely Accurate I²C RTC with Integrated Crystal and SRAM
@@ -56,6 +57,7 @@ domintech,dmard10	DMARD10: 3-axis Accelerometer
 epson,rx8010		I2C-BUS INTERFACE REAL TIME CLOCK MODULE
 epson,rx8025		High-Stability. I2C-Bus INTERFACE REAL TIME CLOCK MODULE
 epson,rx8581		I2C-BUS INTERFACE REAL TIME CLOCK MODULE
+emmicro,em3027		EM Microelectronic EM3027 Real-time Clock
 fsl,mag3110		MAG3110: Xtrinsic High Accuracy, 3D Magnetometer
 fsl,mc13892		MC13892: Power Management Integrated Circuit (PMIC) for i.MX35/51
 fsl,mma7660		MMA7660FC: 3-Axis Orientation/Motion Detection Sensor
@@ -67,6 +69,8 @@ gmt,g751		G751: Digital Temperature Sensor and Thermal Watchdog with Two-Wire In
 infineon,slb9635tt	Infineon SLB9635 (Soft-) I2C TPM (old protocol, max 100khz)
 infineon,slb9645tt	Infineon SLB9645 I2C TPM (new protocol, max 400khz)
 isil,isl1208		Intersil ISL1208 Low Power RTC with Battery Backed SRAM
+isil,isl1218		Intersil ISL1218 Low Power RTC with Battery Backed SRAM
+isil,isl12022		Intersil ISL12022 Real-time Clock
 isil,isl29028		Intersil ISL29028 Ambient Light and Proximity Sensor
 isil,isl29030		Intersil ISL29030 Ambient Light and Proximity Sensor
 maxim,ds1050		5 Bit Programmable, Pulse-Width Modulator
@@ -155,6 +159,7 @@ nxp,pca9556		Octal SMBus and I2C registered interface
 nxp,pca9557		8-bit I2C-bus and SMBus I/O port with reset
 nxp,pcf2127		Real-time clock
 nxp,pcf2129		Real-time clock
+nxp,pcf8523		Real-time Clock
 nxp,pcf8563		Real-time clock/calendar
 nxp,pcf85063		Tiny Real-Time Clock
 oki,ml86v7667		OKI ML86V7667 video decoder
-- 
2.14.2

[toc] | [prev] | [next] | [standalone]


#1740767 — [PATCH v2 3/6] dt-bindings: rtc: Add sirf,prima2-sysrtc bindings

FromAlexandre Belloni <alexandre.belloni@free-electrons.com>
Date2017-09-27 16:10 +0200
Subject[PATCH v2 3/6] dt-bindings: rtc: Add sirf,prima2-sysrtc bindings
Message-ID<uulcf-44V-39@gated-at.bofh.it>
In reply to#1740762
Add device tree bindings for the SiRFSoC Real Time Clock.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
 .../devicetree/bindings/rtc/sirf,prima2-sysrtc.txt          | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/rtc/sirf,prima2-sysrtc.txt

diff --git a/Documentation/devicetree/bindings/rtc/sirf,prima2-sysrtc.txt b/Documentation/devicetree/bindings/rtc/sirf,prima2-sysrtc.txt
new file mode 100644
index 000000000000..58885b55da21
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/sirf,prima2-sysrtc.txt
@@ -0,0 +1,13 @@
+SiRFSoC Real Time Clock
+
+Required properties:
+- compatible: must be "sirf,prima2-sysrtc"
+- reg: address range of rtc register set.
+- interrupts: rtc alarm interrupts.
+
+Example:
+	rtc@2000 {
+		compatible = "sirf,prima2-sysrtc";
+		reg = <0x2000 0x1000>;
+		interrupts = <52 53 54>;
+	};
-- 
2.14.2

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web