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 t.figa@samsung.com
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 kgene@kernel.org.
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(-)
Fixes the RTC DT node name for Exynos5250 SoC as per the DT node naming convention.
Signed-off-by: Vikas Sajjan vikas.sajjan@linaro.org --- arch/arm/boot/dts/exynos5.dtsi | 2 +- arch/arm/boot/dts/exynos5250.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/exynos5.dtsi b/arch/arm/boot/dts/exynos5.dtsi index f65e124..4a8e223 100644 --- a/arch/arm/boot/dts/exynos5.dtsi +++ b/arch/arm/boot/dts/exynos5.dtsi @@ -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>; diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index 88589b7..f426ce6 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -178,7 +178,7 @@ samsung,power-domain = <&pd_mfc>; };
- rtc { + rtc@101E0000 { clocks = <&clock 337>; clock-names = "rtc"; };
Updates the RTC DT node's status to "okay", since the bindings in exynos5250.dtsi depicts the RTC h/w completely.
Signed-off-by: Vikas Sajjan vikas.sajjan@linaro.org --- arch/arm/boot/dts/exynos5250.dtsi | 1 + 1 file changed, 1 insertion(+)
diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index f426ce6..c82137b 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -181,6 +181,7 @@ rtc@101E0000 { clocks = <&clock 337>; clock-names = "rtc"; + status = "okay"; };
tmu@10060000 {
On 14 August 2013 19:28, Vikas Sajjan vikas.sajjan@linaro.org wrote:
Updates the RTC DT node's status to "okay", since the bindings in exynos5250.dtsi depicts the RTC h/w completely.
Signed-off-by: Vikas Sajjan vikas.sajjan@linaro.org
arch/arm/boot/dts/exynos5250.dtsi | 1 + 1 file changed, 1 insertion(+)
diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index f426ce6..c82137b 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -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
Hi Tushar,
On Thursday 15 of August 2013 10:02:43 Tushar Behera wrote:
On 14 August 2013 19:28, Vikas Sajjan vikas.sajjan@linaro.org wrote:
Updates the RTC DT node's status to "okay", since the bindings in exynos5250.dtsi depicts the RTC h/w completely.
Signed-off-by: Vikas Sajjan vikas.sajjan@linaro.org
arch/arm/boot/dts/exynos5250.dtsi | 1 + 1 file changed, 1 insertion(+)
diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index f426ce6..c82137b 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -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.
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.
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
On 08/15/13 17:59, Tomasz Figa wrote:
Hi Tushar,
[...]
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)".
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"...
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.
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
Hi Kukjin,
On 19 August 2013 00:10, Kukjin Kim kgene.kim@samsung.com wrote:
On 08/15/13 17:59, Tomasz Figa wrote:
Hi Tushar,
[...]
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)".
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"...
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.
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?
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
On 19 August 2013 13:48, Vikas Sajjan vikas.sajjan@linaro.org wrote:
Hi Kukjin,
On 19 August 2013 00:10, Kukjin Kim kgene.kim@samsung.com wrote:
On 08/15/13 17:59, Tomasz Figa wrote:
Hi Tushar,
[...]
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.
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"...
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.
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?
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.
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
-- Thanks and Regards Vikas Sajjan
Adds RTC DT node to Exynos5420 SoC
Signed-off-by: Vikas Sajjan vikas.sajjan@linaro.org --- arch/arm/boot/dts/exynos5420.dtsi | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi index 9e90d1e..713bb5a 100644 --- a/arch/arm/boot/dts/exynos5420.dtsi +++ b/arch/arm/boot/dts/exynos5420.dtsi @@ -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";
linaro-kernel@lists.linaro.org