Commit bec576a2 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Rob Herring

dt-bindings: rtc: s3c: Use defines instead of clock numbers

Make the examples in S3C RTC bindings more readable and bring them
closer to real DTS by using defines for clocks.
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Acked-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent c2b474b0
...@@ -75,11 +75,14 @@ allOf: ...@@ -75,11 +75,14 @@ allOf:
examples: examples:
- | - |
#include <dt-bindings/clock/exynos5420.h>
#include <dt-bindings/clock/samsung,s2mps11.h>
rtc@10070000 { rtc@10070000 {
compatible = "samsung,s3c6410-rtc"; compatible = "samsung,s3c6410-rtc";
reg = <0x10070000 0x100>; reg = <0x10070000 0x100>;
interrupts = <0 44 4>, <0 45 4>; interrupts = <0 44 4>, <0 45 4>;
clocks = <&clock 0>, // CLK_RTC clocks = <&clock CLK_RTC>,
<&s2mps11_osc 0>; // S2MPS11_CLK_AP <&s2mps11_osc S2MPS11_CLK_AP>;
clock-names = "rtc", "rtc_src"; clock-names = "rtc", "rtc_src";
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment