Skip to contentSkip to conversation

Add RTC DT node to Exynos5420 SoC and Fix RTC DT node name for 5250 Soc

PATCH Superseded Vikas Sajjan 4 participants 9 messages Aug 14, 2013 – Aug 19, 2013

Subsystems (2)

v4 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

v4 cover Add RTC DT node to Exynos5420 SoC and Fix RTC DT node name for 5250 Soc

This patchset does the following 3 things:
1) Fixes the RTC DT node name for Exynos5250 SoC
2) Updates the status of RTC DT node of Exynos5250 SoC to "okay"
3) Adds RTC DT node to Exynos5420 SoC

changes since v3:
- split the 5250 related modifications into 2 separate patch as suggested by Tomasz Figa <[email protected]>

changes since v2:
- split the 5250 related modifications into a separate patch.
- placed the RTC node as per the alphabetical order in the DTS file as suggested by Kukjin Kim <[email protected]>.

changes since v1:
- made DT node status as "okay" in the dtsi file itself.

Vikas Sajjan (3):
ARM: dts: Fix the RTC DT node name for Exynos5250 SoC
ARM: dts: Update the status of RTC DT node of Exynos5250 SoC to

    "okay"

ARM: dts: Add RTC DT node to Exynos5420 SoC

 arch/arm/boot/dts/exynos5.dtsi    |    2 +-
 arch/arm/boot/dts/exynos5250.dtsi |    3 ++-
 arch/arm/boot/dts/exynos5420.dtsi |    6 ++++++
 3 files changed, 9 insertions(+), 2 deletions(-)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH v4 1/3 ARM: dts: Fix the RTC DT node name for Exynos5250 SoC

Fixes the RTC DT node name for Exynos5250 SoC as per the DT node naming convention.

---
 arch/arm/boot/dts/exynos5.dtsi    |    2 +-
 arch/arm/boot/dts/exynos5250.dtsi |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/exynos5.dtsi +1 -1
index f65e124..4a8e223 100644
@@ -95,7 +95,7 @@
 		interrupts = <0 54 0>;
 	};
 
-	rtc {
+	rtc@101E0000 {
 		compatible = "samsung,s3c6410-rtc";
 		reg = <0x101E0000 0x100>;
 		interrupts = <0 43 0>, <0 44 0>;
arch/arm/boot/dts/exynos5250.dtsi +1 -1
index 88589b7..f426ce6 100644
@@ -178,7 +178,7 @@
 		samsung,power-domain = <&pd_mfc>;
 	};
 
-	rtc {
+	rtc@101E0000 {
 		clocks = <&clock 337>;
 		clock-names = "rtc";
 	};
Signature · 1 line
1.7.9.5
#2 lore raw

PATCH v4 2/3 ARM: dts: Update the status of RTC DT node of Exynos5250 SoC to "okay"

In reply to Vikas Sajjan

Updates the RTC DT node's status to "okay", since the bindings in exynos5250.dtsi depicts the RTC h/w completely.

---
 arch/arm/boot/dts/exynos5250.dtsi |    1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/exynos5250.dtsi +1 -0
index f426ce6..c82137b 100644
@@ -181,6 +181,7 @@
 	rtc@101E0000 {
 		clocks = <&clock 337>;
 		clock-names = "rtc";
+		status = "okay";
 	};
 
 	tmu@10060000 {
Signature · 1 line
1.7.9.5
#3 lore raw

Re: [PATCH v4 2/3] ARM: dts: Update the status of RTC DT node of Exynos5250 SoC to "okay"

Quoted 13 lines · Vikas Sajjan

Updates the RTC DT node's status to "okay", since the bindings in exynos5250.dtsi depicts the RTC h/w completely.

---
 arch/arm/boot/dts/exynos5250.dtsi |    1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/exynos5250.dtsi +0 -0
index f426ce6..c82137b 100644

arch/arm/boot/dts/exynos5250.dtsi line 186

Quoted 6 lines
arch/arm/boot/dts/exynos5250.dtsi +1 -0
@@ -181,6 +181,7 @@
        rtc@101E0000 {
                clocks = <&clock 337>;
                clock-names = "rtc";
+               status = "okay";
        };
 

Sometime back we had a discussion on this, the decision was to enable it in respective boards.

Also if we are going ahead with this, we would need to remove the corresponding status statements from board files.

[1] http://lists.infradead.org/pipermail/linux-arm-kernel/2013-June/176402.html

Signature · 1 line
Tushar Behera
#4 lore raw

Re: [PATCH v4 2/3] ARM: dts: Update the status of RTC DT node of Exynos5250 SoC to "okay"

Hi Tushar,

Quoted 21 lines · On Thursday 15 of August 2013 10:02:43 Tushar Behera wrote:
Quoted 20 lines · Vikas Sajjan

Updates the RTC DT node's status to "okay", since the bindings in exynos5250.dtsi depicts the RTC h/w completely.

---

 arch/arm/boot/dts/exynos5250.dtsi |    1 +
 1 file changed, 1 insertion(+)
(quoted diff) +0 -0

b/arch/arm/boot/dts/exynos5250.dtsi index f426ce6..c82137b 100644

arch/arm/boot/dts/exynos5250.dtsi +0 -0
@@ -181,6 +181,7 @@
 
        rtc@101E0000 {
 
                clocks = <&clock 337>;
                clock-names = "rtc";
 
Quoted 6 lines
Quoted 3 lines
arch/arm/boot/dts/exynos5250.dtsi +1 -0
+               status = "okay";
        };

Sometime back we had a discussion on this, the decision was to enable it in respective boards.

This is not entirely true.

According to ePAPR, chapter 2.3.4, the status property has a well defined meaning and it should be set to "disabled" when "the device is not presently operational, but it might become operational in the future (for example, something is not plugged in, or switched off)".

This means that unless setup of the device is missing something (e.g. board-specific properties, like regulators or pin config) or there is a valid technical reason for disabling the device by default (e.g. it needs certain SoC pins to be properly connected to something), then such device should be "okay", because it is operational.

Quoted 2 lines

Also if we are going ahead with this, we would need to remove the corresponding status statements from board files.

Yes, this is true.

Best regards,
Tomasz

#5 lore raw

Re: [PATCH v4 2/3] ARM: dts: Update the status of RTC DT node of Exynos5250 SoC to "okay"

Quoted 2 lines · Tomasz Figa

Hi Tushar,

[...]

Quoted 7 lines
Quoted 6 lines
Quoted 3 lines

+ status = "okay";

         };

Sometime back we had a discussion on this, the decision was to enable it in respective boards.

Quoted 7 lines

This is not entirely true.

According to ePAPR, chapter 2.3.4, the status property has a well defined meaning and it should be set to "disabled" when "the device is not presently operational, but it might become operational in the future (for example, something is not plugged in, or switched off)".

So in my understanding, you mean using "okay" is wrong and only "disabled" is used? and in board dt file? Already there are too many "okay"...

Quoted 11 lines

This means that unless setup of the device is missing something (e.g. board-specific properties, like regulators or pin config) or there is a valid technical reason for disabling the device by default (e.g. it needs certain SoC pins to be properly connected to something), then such device should be "okay", because it is operational.

Quoted 2 lines

Also if we are going ahead with this, we would need to remove the corresponding status statements from board files.

Yes, this is true.

According to above, probably we should add "disabled" in board dt file?

If I'm wrong, correct me.

(+ dt ml)

Anyway, I'm not sure how to use 'okay' and 'disabled' for status...

I think, every hardware information should be defined in SoC dt file and maybe some of them could be set disabled or okay in each board dt file...

Any suggestions?

Thanks,
Kukjin

#6 lore raw

Re: [PATCH v4 2/3] ARM: dts: Update the status of RTC DT node of Exynos5250 SoC to "okay"

Hi Kukjin,

Quoted 33 lines · Kukjin Kim
Quoted 3 lines · Tomasz Figa

Hi Tushar,

[...]

Quoted 9 lines
Quoted 7 lines
Quoted 3 lines

+ status = "okay";

         };

Sometime back we had a discussion on this, the decision was to enable it in respective boards.

Quoted 7 lines

This is not entirely true.

According to ePAPR, chapter 2.3.4, the status property has a well defined meaning and it should be set to "disabled" when "the device is not presently operational, but it might become operational in the future (for example, something is not plugged in, or switched off)".

So in my understanding, you mean using "okay" is wrong and only "disabled" is used? and in board dt file? Already there are too many "okay"...

Quoted 6 lines

This means that unless setup of the device is missing something (e.g. board-specific properties, like regulators or pin config) or there is a valid technical reason for disabling the device by default (e.g. it needs certain SoC pins to be properly connected to something), then such device should be "okay", because it is operational.

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

Also if we are going ahead with this, we would need to remove the corresponding status statements from board files.

Yes, this is true.

According to above, probably we should add "disabled" in board dt file?

what Tushar meant was, since we made the status as "okay" in exynos5250.dtsi itself, its better to remove the "okay" from the board DTS files of exynos5250 ( exynos5250-snow.dts and exynos5250-arndale.dts). Am I right Tushar?

Quoted 13 lines

If I'm wrong, correct me.

(+ dt ml)

Anyway, I'm not sure how to use 'okay' and 'disabled' for status...

I think, every hardware information should be defined in SoC dt file and maybe some of them could be set disabled or okay in each board dt file...

Any suggestions?

Thanks,
Kukjin

Signature · 2 lines
Thanks and Regards
 Vikas Sajjan
#7 lore raw

Re: [PATCH v4 2/3] ARM: dts: Update the status of RTC DT node of Exynos5250 SoC to "okay"

Quoted 26 lines · Vikas Sajjan

Hi Kukjin,

Quoted 23 lines · Kukjin Kim
Quoted 3 lines · Tomasz Figa

Hi Tushar,

[...]

Quoted 16 lines
Quoted 7 lines
Quoted 3 lines

+ status = "okay";

         };

Sometime back we had a discussion on this, the decision was to enable it in respective boards.

This is not entirely true.

According to ePAPR, chapter 2.3.4, the status property has a well defined meaning and it should be set to "disabled" when "the device is not presently operational, but it might become operational in the future (for example, something is not plugged in, or switched off)".

Ok.

Quoted 16 lines
Quoted 16 lines

So in my understanding, you mean using "okay" is wrong and only "disabled" is used? and in board dt file? Already there are too many "okay"...

Quoted 12 lines

This means that unless setup of the device is missing something (e.g. board-specific properties, like regulators or pin config) or there is a valid technical reason for disabling the device by default (e.g. it needs certain SoC pins to be properly connected to something), then such device should be "okay", because it is operational.

Quoted 2 lines

Also if we are going ahead with this, we would need to remove the corresponding status statements from board files.

Yes, this is true.

Quoted 8 lines
Quoted 2 lines

According to above, probably we should add "disabled" in board dt file?

what Tushar meant was, since we made the status as "okay" in exynos5250.dtsi itself, its better to remove the "okay" from the board DTS files of exynos5250 ( exynos5250-snow.dts and exynos5250-arndale.dts). Am I right Tushar?

Yeah. Since we are going ahead with enabling the RTC node in exynos5250.dtsi, I thought it would be good to remove the RTC nodes from subsequent board files.

Quoted 20 lines
Quoted 7 lines

If I'm wrong, correct me.

(+ dt ml)

Anyway, I'm not sure how to use 'okay' and 'disabled' for status...

Quoted 7 lines

I think, every hardware information should be defined in SoC dt file and maybe some of them could be set disabled or okay in each board dt file...

Any suggestions?

Thanks,
Kukjin

--
Thanks and Regards
Vikas Sajjan

Signature · 1 line
Tushar Behera
#8 lore raw

PATCH v4 3/3 ARM: dts: Add RTC DT node to Exynos5420 SoC

In reply to Vikas Sajjan

Adds RTC DT node to Exynos5420 SoC

---
 arch/arm/boot/dts/exynos5420.dtsi |    6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/boot/dts/exynos5420.dtsi +6 -0
index 9e90d1e..713bb5a 100644
@@ -126,6 +126,12 @@
 		interrupts = <0 47 0>;
 	};
 
+	rtc@101E0000 {
+		clocks = <&clock 317>;
+		clock-names = "rtc";
+		status = "okay";
+	};
+
 	serial@12C00000 {
 		clocks = <&clock 257>, <&clock 128>;
 		clock-names = "uart", "clk_uart_baud0";
Signature · 1 line
1.7.9.5