Skip to contentSkip to conversation

dt-bindings: rtc: convert haoyu,hym8563.txt to yaml

PATCH In review Johan Jonker 2 participants 6 messages Oct 26, 2022 – Oct 27, 2022

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

PATCH 1/3 dt-bindings: rtc: convert haoyu,hym8563.txt to yaml

Convert haoyu,hym8563.txt to yaml.

Changed:
Add clock-frequency property

---
 .../devicetree/bindings/rtc/haoyu,hym8563.txt | 30 ----------
 .../bindings/rtc/haoyu,hym8563.yaml           | 60 +++++++++++++++++++
 2 files changed, 60 insertions(+), 30 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/rtc/haoyu,hym8563.txt
 create mode 100644 Documentation/devicetree/bindings/rtc/haoyu,hym8563.yaml
Documentation/devicetree/bindings/rtc/haoyu,hym8563.txt deleted +0 -30
deleted file mode 100644
index a8934fe2a..000000000
@@ -1,30 +0,0 @@
-Haoyu Microelectronics HYM8563 Real Time Clock
-
-The HYM8563 provides basic rtc and alarm functionality
-as well as a clock output of up to 32kHz.
-
-Required properties:
-- compatible: should be: "haoyu,hym8563"
-- reg: i2c address
-- #clock-cells: the value should be 0
-
-Optional properties:
-- clock-output-names: From common clock binding
-- interrupts: rtc alarm/event interrupt
-
-Example:
-
-hym8563: hym8563@51 {
-	compatible = "haoyu,hym8563";
-	reg = <0x51>;
-
-	interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
-
-	#clock-cells = <0>;
-};
-
-device {
-...
-	clocks = <&hym8563>;
-...
-};
Documentation/devicetree/bindings/rtc/haoyu,hym8563.yaml new file +60 -0

60 lines not on this page · raw message

--
2.20.1

#1 lore raw

PATCH 2/3 ARM: dts: rockchip: rename "haoyu,hym8563" rtc nodes

The "haoyu,hym8563" RTC node names should be generic, so change them.

---
 arch/arm/boot/dts/rk3036-evb.dts            | 2 +-
 arch/arm/boot/dts/rk3288-evb-act8846.dts    | 2 +-
 arch/arm/boot/dts/rk3288-firefly-reload.dts | 2 +-
 arch/arm/boot/dts/rk3288-firefly.dtsi       | 2 +-
 arch/arm/boot/dts/rk3288-miqi.dts           | 2 +-
 arch/arm/boot/dts/rk3288-rock2-square.dts   | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)
arch/arm/boot/dts/rk3036-evb.dts +1 -1
index 9fd4d9db9..89b0927ce 100644
@@ -35,7 +35,7 @@
 &i2c1 {
 	status = "okay";
 
-	hym8563: hym8563@51 {
+	hym8563: rtc@51 {
 		compatible = "haoyu,hym8563";
 		reg = <0x51>;
 		#clock-cells = <0>;
arch/arm/boot/dts/rk3288-evb-act8846.dts +1 -1
index be695b8c1..8a635c243 100644
@@ -54,7 +54,7 @@
 		vin-supply = <&vcc_sys>;
 	};
 
-	hym8563@51 {
+	rtc@51 {
 		compatible = "haoyu,hym8563";
 		reg = <0x51>;
 
arch/arm/boot/dts/rk3288-firefly-reload.dts +1 -1
index a5a082634..2b462bbca 100644
@@ -197,7 +197,7 @@
 };
 
 &i2c0 {
-	hym8563: hym8563@51 {
+	hym8563: rtc@51 {
 		compatible = "haoyu,hym8563";
 		reg = <0x51>;
 		#clock-cells = <0>;
arch/arm/boot/dts/rk3288-firefly.dtsi +1 -1
index 052afe554..9267857be 100644
@@ -233,7 +233,7 @@
 		vin-supply = <&vcc_sys>;
 	};
 
-	hym8563: hym8563@51 {
+	hym8563: rtc@51 {
 		compatible = "haoyu,hym8563";
 		reg = <0x51>;
 		#clock-cells = <0>;
arch/arm/boot/dts/rk3288-miqi.dts +1 -1
index 713f55e14..e3d5644f2 100644
@@ -162,7 +162,7 @@
 		vin-supply = <&vcc_sys>;
 	};
 
-	hym8563: hym8563@51 {
+	hym8563: rtc@51 {
 		compatible = "haoyu,hym8563";
 		reg = <0x51>;
 		#clock-cells = <0>;
arch/arm/boot/dts/rk3288-rock2-square.dts +1 -1
index 80e0f07c8..07a3a5275 100644
@@ -165,7 +165,7 @@
 };
 
 &i2c0 {
-	hym8563: hym8563@51 {
+	hym8563: rtc@51 {
 		compatible = "haoyu,hym8563";
 		reg = <0x51>;
 		#clock-cells = <0>;

--
2.20.1

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

#2 lore raw

Re: [PATCH v1 2/3] ARM: dts: rockchip: rename "haoyu,hym8563" rtc nodes

Quoted 6 lines · Johan Jonker

The "haoyu,hym8563" RTC node names should be generic, so change them.

---
 arch/arm/boot/dts/rk3036-evb.dts            | 2 +-

Also done.

Best regards,
Krzysztof

#3 lore raw

PATCH 3/3 arm64: dts: rockchip: rename "haoyu,hym8563" rtc nodes

In reply to Johan Jonker

The "haoyu,hym8563" RTC node names should be generic, so change them.

---
 arch/arm64/boot/dts/rockchip/rk3368-orion-r68-meta.dts | 2 +-
 arch/arm64/boot/dts/rockchip/rk3368-r88.dts            | 2 +-
 arch/arm64/boot/dts/rockchip/rk3399-roc-pc-plus.dts    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/rockchip/rk3368-orion-r68-meta.dts +1 -1
index 7f5bba0c6..0e88e9592 100644
@@ -208,7 +208,7 @@
 		vin-supply = <&vcc_sys>;
 	};
 
-	hym8563: hym8563@51 {
+	hym8563: rtc@51 {
 		compatible = "haoyu,hym8563";
 		reg = <0x51>;
 		#clock-cells = <0>;
arch/arm64/boot/dts/rockchip/rk3368-r88.dts +1 -1
index 38d757c00..e147d6f8b 100644
@@ -192,7 +192,7 @@
 		vin-supply = <&vcc_sys>;
 	};
 
-	hym8563: hym8563@51 {
+	hym8563: rtc@51 {
 		compatible = "haoyu,hym8563";
 		reg = <0x51>;
 		#clock-cells = <0>;
arch/arm64/boot/dts/rockchip/rk3399-roc-pc-plus.dts +1 -1
index 5a2661ae0..18b5050c6 100644
@@ -98,7 +98,7 @@
 };
 
 &i2c0 {
-	hym8563: hym8563@51 {
+	hym8563: rtc@51 {
 		compatible = "haoyu,hym8563";
 		reg = <0x51>;
 		interrupt-parent = <&gpio0>;

--
2.20.1

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

#5 lore raw
Quoted 6 lines · Krzysztof Kozlowski
Quoted 5 lines · Johan Jonker

Convert haoyu,hym8563.txt to yaml.

Changed:
Add clock-frequency property

Quoted 7 lines
Quoted 4 lines
---
 .../devicetree/bindings/rtc/haoyu,hym8563.txt | 30 ----------
 .../bindings/rtc/haoyu,hym8563.yaml           | 60 +++++++++++++++++++

https://lore.kernel.org/all/[email protected]/

Ooops, didn't see that one...
Needed it for the rk3128-evb board to pass without notifications.

Johan

Quoted 4 lines

Best regards,
Krzysztof