Skip to contentSkip to conversation

dt-bindings: rtc: Convert MXC RTC to json-schema

PATCH Applied Anson Huang 3 participants 6 messages May 14, 2020 – May 28, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 dt-bindings: rtc: Convert MXC RTC to json-schema

Convert the MXC RTC binding to DT schema format using json-schema.

---
 Documentation/devicetree/bindings/rtc/rtc-mxc.txt  | 26 ----------
 Documentation/devicetree/bindings/rtc/rtc-mxc.yaml | 59 ++++++++++++++++++++++
 2 files changed, 59 insertions(+), 26 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/rtc/rtc-mxc.txt
 create mode 100644 Documentation/devicetree/bindings/rtc/rtc-mxc.yaml
Documentation/devicetree/bindings/rtc/rtc-mxc.txt deleted +0 -26
deleted file mode 100644
index 5bcd31d..0000000
@@ -1,26 +0,0 @@
-* Real Time Clock of the i.MX SoCs
-
-RTC controller for the i.MX SoCs
-
-Required properties:
-- compatible: Should be "fsl,imx1-rtc" or "fsl,imx21-rtc".
-- reg: physical base address of the controller and length of memory mapped
-  region.
-- interrupts: IRQ line for the RTC.
-- clocks: should contain two entries:
-  * one for the input reference
-  * one for the the SoC RTC
-- clock-names: should contain:
-  * "ref" for the input reference clock
-  * "ipg" for the SoC RTC clock
-
-Example:
-
-rtc@10007000 {
-	compatible = "fsl,imx21-rtc";
-	reg = <0x10007000 0x1000>;
-	interrupts = <22>;
-	clocks = <&clks IMX27_CLK_CKIL>,
-		 <&clks IMX27_CLK_RTC_IPG_GATE>;
-	clock-names = "ref", "ipg";
-};
Documentation/devicetree/bindings/rtc/rtc-mxc.yaml new file +59 -0

59 lines not on this page · raw message

Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/2 dt-bindings: rtc: Convert MXC RTC V2 to json-schema

Convert the MXC RTC V2 binding to DT schema format using json-schema.

---
 .../devicetree/bindings/rtc/rtc-mxc_v2.txt         | 17 --------
 .../devicetree/bindings/rtc/rtc-mxc_v2.yaml        | 46 ++++++++++++++++++++++
 2 files changed, 46 insertions(+), 17 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/rtc/rtc-mxc_v2.txt
 create mode 100644 Documentation/devicetree/bindings/rtc/rtc-mxc_v2.yaml
Documentation/devicetree/bindings/rtc/rtc-mxc_v2.txt deleted +0 -17
deleted file mode 100644
index 79d7e87..0000000
@@ -1,17 +0,0 @@
-* i.MX53 Secure Real Time Clock (SRTC)
-
-Required properties:
-- compatible: should be: "fsl,imx53-rtc"
-- reg: physical base address of the controller and length of memory mapped
-  region.
-- clocks: should contain the phandle for the rtc clock
-- interrupts: rtc alarm interrupt
-
-Example:
-
-rtc@53fa4000 {
-	compatible = "fsl,imx53-rtc";
-	reg = <0x53fa4000 0x4000>;
-	interrupts = <24>;
-	clocks = <&clks IMX5_CLK_SRTC_GATE>;
-};
Documentation/devicetree/bindings/rtc/rtc-mxc_v2.yaml new file +46 -0

46 lines not on this page · raw message

Signature · 1 line
2.7.4
maintainer Applied
#3 lore raw

Re: [PATCH 2/2] dt-bindings: rtc: Convert MXC RTC V2 to json-schema

In reply to Anson Huang
Quoted 10 lines · Anson Huang

Convert the MXC RTC V2 binding to DT schema format using json-schema.

---
 .../devicetree/bindings/rtc/rtc-mxc_v2.txt         | 17 --------
 .../devicetree/bindings/rtc/rtc-mxc_v2.yaml        | 46 ++++++++++++++++++++++
 2 files changed, 46 insertions(+), 17 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/rtc/rtc-mxc_v2.txt
 create mode 100644 Documentation/devicetree/bindings/rtc/rtc-mxc_v2.yaml

Applied, thanks!

maintainer Applied
#5 lore raw
In reply to Anson Huang
Quoted 10 lines · Anson Huang

Convert the MXC RTC binding to DT schema format using json-schema.

---
 Documentation/devicetree/bindings/rtc/rtc-mxc.txt  | 26 ----------
 Documentation/devicetree/bindings/rtc/rtc-mxc.yaml | 59 ++++++++++++++++++++++
 2 files changed, 59 insertions(+), 26 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/rtc/rtc-mxc.txt
 create mode 100644 Documentation/devicetree/bindings/rtc/rtc-mxc.yaml

Applied, thanks!