* [PATCH 0/2] arm: am43xx: Enable rtc
@ 2016-02-18 5:29 ` Keerthy
0 siblings, 0 replies; 17+ messages in thread
From: Keerthy @ 2016-02-18 5:29 UTC (permalink / raw)
To: tony
Cc: paul, linux-omap, linux-arm-kernel, linux-kernel, devicetree,
robh+dt, Keerthy
The patch adds rtc hwmod. This is present on gp and sk evm and not on
epos evm. Hence adding it selectively using a seprate list.
Keerthy (2):
ARM: dts: am43x-epos-evm: Add the am438 compatible string
ARM: AM43XX: HWMOD: Add rtc hwmod
Documentation/devicetree/bindings/arm/omap/omap.txt | 2 +-
arch/arm/boot/dts/am43x-epos-evm.dts | 2 +-
arch/arm/mach-omap2/omap_hwmod_43xx_data.c | 14 +++++++++++++-
3 files changed, 15 insertions(+), 3 deletions(-)
--
1.9.1
^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH 0/2] arm: am43xx: Enable rtc
@ 2016-02-18 5:29 ` Keerthy
0 siblings, 0 replies; 17+ messages in thread
From: Keerthy @ 2016-02-18 5:29 UTC (permalink / raw)
To: tony
Cc: paul, linux-omap, linux-arm-kernel, linux-kernel, devicetree,
robh+dt, Keerthy
The patch adds rtc hwmod. This is present on gp and sk evm and not on
epos evm. Hence adding it selectively using a seprate list.
Keerthy (2):
ARM: dts: am43x-epos-evm: Add the am438 compatible string
ARM: AM43XX: HWMOD: Add rtc hwmod
Documentation/devicetree/bindings/arm/omap/omap.txt | 2 +-
arch/arm/boot/dts/am43x-epos-evm.dts | 2 +-
arch/arm/mach-omap2/omap_hwmod_43xx_data.c | 14 +++++++++++++-
3 files changed, 15 insertions(+), 3 deletions(-)
--
1.9.1
^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH 0/2] arm: am43xx: Enable rtc
@ 2016-02-18 5:29 ` Keerthy
0 siblings, 0 replies; 17+ messages in thread
From: Keerthy @ 2016-02-18 5:29 UTC (permalink / raw)
To: linux-arm-kernel
The patch adds rtc hwmod. This is present on gp and sk evm and not on
epos evm. Hence adding it selectively using a seprate list.
Keerthy (2):
ARM: dts: am43x-epos-evm: Add the am438 compatible string
ARM: AM43XX: HWMOD: Add rtc hwmod
Documentation/devicetree/bindings/arm/omap/omap.txt | 2 +-
arch/arm/boot/dts/am43x-epos-evm.dts | 2 +-
arch/arm/mach-omap2/omap_hwmod_43xx_data.c | 14 +++++++++++++-
3 files changed, 15 insertions(+), 3 deletions(-)
--
1.9.1
^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH 1/2] ARM: dts: am43x-epos-evm: Add the am438 compatible string
2016-02-18 5:29 ` Keerthy
(?)
@ 2016-02-18 5:29 ` Keerthy
-1 siblings, 0 replies; 17+ messages in thread
From: Keerthy @ 2016-02-18 5:29 UTC (permalink / raw)
To: tony
Cc: paul, linux-omap, linux-arm-kernel, linux-kernel, devicetree,
robh+dt, Keerthy
The SoCs on am43x-epos-evm are named am438x.
Hence add the compatibility string and remove the am4372 string.
Signed-off-by: Keerthy <j-keerthy@ti.com>
---
Documentation/devicetree/bindings/arm/omap/omap.txt | 2 +-
arch/arm/boot/dts/am43x-epos-evm.dts | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/arm/omap/omap.txt b/Documentation/devicetree/bindings/arm/omap/omap.txt
index a2bd593..739bc48 100644
--- a/Documentation/devicetree/bindings/arm/omap/omap.txt
+++ b/Documentation/devicetree/bindings/arm/omap/omap.txt
@@ -154,7 +154,7 @@ Boards:
compatible = "compulab,am437x-sbc-t43", "compulab,am437x-cm-t43", "ti,am4372", "ti,am43"
- AM43x EPOS EVM
- compatible = "ti,am43x-epos-evm", "ti,am4372", "ti,am43"
+ compatible = "ti,am43x-epos-evm", "ti,am43", "ti,am438x"
- AM437x GP EVM
compatible = "ti,am437x-gp-evm", "ti,am4372", "ti,am43"
diff --git a/arch/arm/boot/dts/am43x-epos-evm.dts b/arch/arm/boot/dts/am43x-epos-evm.dts
index d580e2b..d2408c4 100644
--- a/arch/arm/boot/dts/am43x-epos-evm.dts
+++ b/arch/arm/boot/dts/am43x-epos-evm.dts
@@ -18,7 +18,7 @@
/ {
model = "TI AM43x EPOS EVM";
- compatible = "ti,am43x-epos-evm","ti,am4372","ti,am43";
+ compatible = "ti,am43x-epos-evm","ti,am438x","ti,am43";
aliases {
display0 = &lcd0;
--
1.9.1
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 1/2] ARM: dts: am43x-epos-evm: Add the am438 compatible string
@ 2016-02-18 5:29 ` Keerthy
0 siblings, 0 replies; 17+ messages in thread
From: Keerthy @ 2016-02-18 5:29 UTC (permalink / raw)
To: tony
Cc: paul, linux-omap, linux-arm-kernel, linux-kernel, devicetree,
robh+dt, Keerthy
The SoCs on am43x-epos-evm are named am438x.
Hence add the compatibility string and remove the am4372 string.
Signed-off-by: Keerthy <j-keerthy@ti.com>
---
Documentation/devicetree/bindings/arm/omap/omap.txt | 2 +-
arch/arm/boot/dts/am43x-epos-evm.dts | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/arm/omap/omap.txt b/Documentation/devicetree/bindings/arm/omap/omap.txt
index a2bd593..739bc48 100644
--- a/Documentation/devicetree/bindings/arm/omap/omap.txt
+++ b/Documentation/devicetree/bindings/arm/omap/omap.txt
@@ -154,7 +154,7 @@ Boards:
compatible = "compulab,am437x-sbc-t43", "compulab,am437x-cm-t43", "ti,am4372", "ti,am43"
- AM43x EPOS EVM
- compatible = "ti,am43x-epos-evm", "ti,am4372", "ti,am43"
+ compatible = "ti,am43x-epos-evm", "ti,am43", "ti,am438x"
- AM437x GP EVM
compatible = "ti,am437x-gp-evm", "ti,am4372", "ti,am43"
diff --git a/arch/arm/boot/dts/am43x-epos-evm.dts b/arch/arm/boot/dts/am43x-epos-evm.dts
index d580e2b..d2408c4 100644
--- a/arch/arm/boot/dts/am43x-epos-evm.dts
+++ b/arch/arm/boot/dts/am43x-epos-evm.dts
@@ -18,7 +18,7 @@
/ {
model = "TI AM43x EPOS EVM";
- compatible = "ti,am43x-epos-evm","ti,am4372","ti,am43";
+ compatible = "ti,am43x-epos-evm","ti,am438x","ti,am43";
aliases {
display0 = &lcd0;
--
1.9.1
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 1/2] ARM: dts: am43x-epos-evm: Add the am438 compatible string
@ 2016-02-18 5:29 ` Keerthy
0 siblings, 0 replies; 17+ messages in thread
From: Keerthy @ 2016-02-18 5:29 UTC (permalink / raw)
To: linux-arm-kernel
The SoCs on am43x-epos-evm are named am438x.
Hence add the compatibility string and remove the am4372 string.
Signed-off-by: Keerthy <j-keerthy@ti.com>
---
Documentation/devicetree/bindings/arm/omap/omap.txt | 2 +-
arch/arm/boot/dts/am43x-epos-evm.dts | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/arm/omap/omap.txt b/Documentation/devicetree/bindings/arm/omap/omap.txt
index a2bd593..739bc48 100644
--- a/Documentation/devicetree/bindings/arm/omap/omap.txt
+++ b/Documentation/devicetree/bindings/arm/omap/omap.txt
@@ -154,7 +154,7 @@ Boards:
compatible = "compulab,am437x-sbc-t43", "compulab,am437x-cm-t43", "ti,am4372", "ti,am43"
- AM43x EPOS EVM
- compatible = "ti,am43x-epos-evm", "ti,am4372", "ti,am43"
+ compatible = "ti,am43x-epos-evm", "ti,am43", "ti,am438x"
- AM437x GP EVM
compatible = "ti,am437x-gp-evm", "ti,am4372", "ti,am43"
diff --git a/arch/arm/boot/dts/am43x-epos-evm.dts b/arch/arm/boot/dts/am43x-epos-evm.dts
index d580e2b..d2408c4 100644
--- a/arch/arm/boot/dts/am43x-epos-evm.dts
+++ b/arch/arm/boot/dts/am43x-epos-evm.dts
@@ -18,7 +18,7 @@
/ {
model = "TI AM43x EPOS EVM";
- compatible = "ti,am43x-epos-evm","ti,am4372","ti,am43";
+ compatible = "ti,am43x-epos-evm","ti,am438x","ti,am43";
aliases {
display0 = &lcd0;
--
1.9.1
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 2/2] ARM: AM43XX: HWMOD: Add rtc hwmod
2016-02-18 5:29 ` Keerthy
(?)
@ 2016-02-18 5:29 ` Keerthy
-1 siblings, 0 replies; 17+ messages in thread
From: Keerthy @ 2016-02-18 5:29 UTC (permalink / raw)
To: tony
Cc: paul, linux-omap, linux-arm-kernel, linux-kernel, devicetree,
robh+dt, Keerthy
The patch adds rtc hwmod. RTC module The RTC module is physically
present on the AM438x SoC used on AM43X-EPOS-EVM, but it is permanently
disabled. A secure RTC is used instead on these devices, where needed.
. Hence adding it selectively using a seprate list to get RTC Module
functional on the other am43x SoCs used on am437x-gp-evm and
am437x-sk-evm.
Signed-off-by: Keerthy <j-keerthy@ti.com>
---
No Public TRM is available for AM438x SoC as of now.
arch/arm/mach-omap2/omap_hwmod_43xx_data.c | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
index e97a894..fcffaf8 100644
--- a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
@@ -1020,9 +1020,21 @@ static struct omap_hwmod_ocp_if *am43xx_hwmod_ocp_ifs[] __initdata = {
NULL,
};
+static struct omap_hwmod_ocp_if *am43xx_rtc_hwmod_ocp_ifs[] __initdata = {
+ &am33xx_l4_wkup__rtc,
+ NULL,
+};
+
int __init am43xx_hwmod_init(void)
{
+ int ret;
+
omap_hwmod_am43xx_reg();
omap_hwmod_init();
- return omap_hwmod_register_links(am43xx_hwmod_ocp_ifs);
+ ret = omap_hwmod_register_links(am43xx_hwmod_ocp_ifs);
+
+ if (!(of_machine_is_compatible("ti,am438x")))
+ ret = omap_hwmod_register_links(am43xx_rtc_hwmod_ocp_ifs);
+
+ return ret;
}
--
1.9.1
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 2/2] ARM: AM43XX: HWMOD: Add rtc hwmod
@ 2016-02-18 5:29 ` Keerthy
0 siblings, 0 replies; 17+ messages in thread
From: Keerthy @ 2016-02-18 5:29 UTC (permalink / raw)
To: tony
Cc: paul, linux-omap, linux-arm-kernel, linux-kernel, devicetree,
robh+dt, Keerthy
The patch adds rtc hwmod. RTC module The RTC module is physically
present on the AM438x SoC used on AM43X-EPOS-EVM, but it is permanently
disabled. A secure RTC is used instead on these devices, where needed.
. Hence adding it selectively using a seprate list to get RTC Module
functional on the other am43x SoCs used on am437x-gp-evm and
am437x-sk-evm.
Signed-off-by: Keerthy <j-keerthy@ti.com>
---
No Public TRM is available for AM438x SoC as of now.
arch/arm/mach-omap2/omap_hwmod_43xx_data.c | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
index e97a894..fcffaf8 100644
--- a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
@@ -1020,9 +1020,21 @@ static struct omap_hwmod_ocp_if *am43xx_hwmod_ocp_ifs[] __initdata = {
NULL,
};
+static struct omap_hwmod_ocp_if *am43xx_rtc_hwmod_ocp_ifs[] __initdata = {
+ &am33xx_l4_wkup__rtc,
+ NULL,
+};
+
int __init am43xx_hwmod_init(void)
{
+ int ret;
+
omap_hwmod_am43xx_reg();
omap_hwmod_init();
- return omap_hwmod_register_links(am43xx_hwmod_ocp_ifs);
+ ret = omap_hwmod_register_links(am43xx_hwmod_ocp_ifs);
+
+ if (!(of_machine_is_compatible("ti,am438x")))
+ ret = omap_hwmod_register_links(am43xx_rtc_hwmod_ocp_ifs);
+
+ return ret;
}
--
1.9.1
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 2/2] ARM: AM43XX: HWMOD: Add rtc hwmod
@ 2016-02-18 5:29 ` Keerthy
0 siblings, 0 replies; 17+ messages in thread
From: Keerthy @ 2016-02-18 5:29 UTC (permalink / raw)
To: linux-arm-kernel
The patch adds rtc hwmod. RTC module The RTC module is physically
present on the AM438x SoC used on AM43X-EPOS-EVM, but it is permanently
disabled. A secure RTC is used instead on these devices, where needed.
. Hence adding it selectively using a seprate list to get RTC Module
functional on the other am43x SoCs used on am437x-gp-evm and
am437x-sk-evm.
Signed-off-by: Keerthy <j-keerthy@ti.com>
---
No Public TRM is available for AM438x SoC as of now.
arch/arm/mach-omap2/omap_hwmod_43xx_data.c | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
index e97a894..fcffaf8 100644
--- a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
@@ -1020,9 +1020,21 @@ static struct omap_hwmod_ocp_if *am43xx_hwmod_ocp_ifs[] __initdata = {
NULL,
};
+static struct omap_hwmod_ocp_if *am43xx_rtc_hwmod_ocp_ifs[] __initdata = {
+ &am33xx_l4_wkup__rtc,
+ NULL,
+};
+
int __init am43xx_hwmod_init(void)
{
+ int ret;
+
omap_hwmod_am43xx_reg();
omap_hwmod_init();
- return omap_hwmod_register_links(am43xx_hwmod_ocp_ifs);
+ ret = omap_hwmod_register_links(am43xx_hwmod_ocp_ifs);
+
+ if (!(of_machine_is_compatible("ti,am438x")))
+ ret = omap_hwmod_register_links(am43xx_rtc_hwmod_ocp_ifs);
+
+ return ret;
}
--
1.9.1
^ permalink raw reply related [flat|nested] 17+ messages in thread
* Re: [PATCH 2/2] ARM: AM43XX: HWMOD: Add rtc hwmod
@ 2016-02-18 6:42 ` Paul Walmsley
0 siblings, 0 replies; 17+ messages in thread
From: Paul Walmsley @ 2016-02-18 6:42 UTC (permalink / raw)
To: Keerthy
Cc: tony, linux-omap, linux-arm-kernel, linux-kernel, devicetree, robh+dt
Hi Keerthy
On Thu, 18 Feb 2016, Keerthy wrote:
> The patch adds rtc hwmod. RTC module The RTC module is physically
> present on the AM438x SoC used on AM43X-EPOS-EVM, but it is permanently
> disabled. A secure RTC is used instead on these devices, where needed.
> . Hence adding it selectively using a seprate list to get RTC Module
> functional on the other am43x SoCs used on am437x-gp-evm and
> am437x-sk-evm.
>
> Signed-off-by: Keerthy <j-keerthy@ti.com>
> ---
>
> No Public TRM is available for AM438x SoC as of now.
>
> arch/arm/mach-omap2/omap_hwmod_43xx_data.c | 14 +++++++++++++-
> 1 file changed, 13 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
> index e97a894..fcffaf8 100644
> --- a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
> +++ b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
> @@ -1020,9 +1020,21 @@ static struct omap_hwmod_ocp_if *am43xx_hwmod_ocp_ifs[] __initdata = {
> NULL,
> };
>
> +static struct omap_hwmod_ocp_if *am43xx_rtc_hwmod_ocp_ifs[] __initdata = {
> + &am33xx_l4_wkup__rtc,
> + NULL,
> +};
> +
> int __init am43xx_hwmod_init(void)
> {
> + int ret;
> +
> omap_hwmod_am43xx_reg();
> omap_hwmod_init();
> - return omap_hwmod_register_links(am43xx_hwmod_ocp_ifs);
> + ret = omap_hwmod_register_links(am43xx_hwmod_ocp_ifs);
> +
> + if (!(of_machine_is_compatible("ti,am438x")))
> + ret = omap_hwmod_register_links(am43xx_rtc_hwmod_ocp_ifs);
> +
> + return ret;
> }
Could you please invert the test of this case such that the RTC hwmod is
only registered on AM43xx SoCs where it is specifically known to be
enabled?
That way, if another AM43xx SoC comes out that doesn't have the RTC
module, it won't inadvertently be registered. This seems like a safer
approach.
- Paul
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 2/2] ARM: AM43XX: HWMOD: Add rtc hwmod
@ 2016-02-18 6:42 ` Paul Walmsley
0 siblings, 0 replies; 17+ messages in thread
From: Paul Walmsley @ 2016-02-18 6:42 UTC (permalink / raw)
To: Keerthy
Cc: tony-4v6yS6AI5VpBDgjK7y7TUQ, linux-omap-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
devicetree-u79uwXL29TY76Z2rM5mHXA,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A
Hi Keerthy
On Thu, 18 Feb 2016, Keerthy wrote:
> The patch adds rtc hwmod. RTC module The RTC module is physically
> present on the AM438x SoC used on AM43X-EPOS-EVM, but it is permanently
> disabled. A secure RTC is used instead on these devices, where needed.
> . Hence adding it selectively using a seprate list to get RTC Module
> functional on the other am43x SoCs used on am437x-gp-evm and
> am437x-sk-evm.
>
> Signed-off-by: Keerthy <j-keerthy-l0cyMroinI0@public.gmane.org>
> ---
>
> No Public TRM is available for AM438x SoC as of now.
>
> arch/arm/mach-omap2/omap_hwmod_43xx_data.c | 14 +++++++++++++-
> 1 file changed, 13 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
> index e97a894..fcffaf8 100644
> --- a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
> +++ b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
> @@ -1020,9 +1020,21 @@ static struct omap_hwmod_ocp_if *am43xx_hwmod_ocp_ifs[] __initdata = {
> NULL,
> };
>
> +static struct omap_hwmod_ocp_if *am43xx_rtc_hwmod_ocp_ifs[] __initdata = {
> + &am33xx_l4_wkup__rtc,
> + NULL,
> +};
> +
> int __init am43xx_hwmod_init(void)
> {
> + int ret;
> +
> omap_hwmod_am43xx_reg();
> omap_hwmod_init();
> - return omap_hwmod_register_links(am43xx_hwmod_ocp_ifs);
> + ret = omap_hwmod_register_links(am43xx_hwmod_ocp_ifs);
> +
> + if (!(of_machine_is_compatible("ti,am438x")))
> + ret = omap_hwmod_register_links(am43xx_rtc_hwmod_ocp_ifs);
> +
> + return ret;
> }
Could you please invert the test of this case such that the RTC hwmod is
only registered on AM43xx SoCs where it is specifically known to be
enabled?
That way, if another AM43xx SoC comes out that doesn't have the RTC
module, it won't inadvertently be registered. This seems like a safer
approach.
- Paul
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH 2/2] ARM: AM43XX: HWMOD: Add rtc hwmod
@ 2016-02-18 6:42 ` Paul Walmsley
0 siblings, 0 replies; 17+ messages in thread
From: Paul Walmsley @ 2016-02-18 6:42 UTC (permalink / raw)
To: linux-arm-kernel
Hi Keerthy
On Thu, 18 Feb 2016, Keerthy wrote:
> The patch adds rtc hwmod. RTC module The RTC module is physically
> present on the AM438x SoC used on AM43X-EPOS-EVM, but it is permanently
> disabled. A secure RTC is used instead on these devices, where needed.
> . Hence adding it selectively using a seprate list to get RTC Module
> functional on the other am43x SoCs used on am437x-gp-evm and
> am437x-sk-evm.
>
> Signed-off-by: Keerthy <j-keerthy@ti.com>
> ---
>
> No Public TRM is available for AM438x SoC as of now.
>
> arch/arm/mach-omap2/omap_hwmod_43xx_data.c | 14 +++++++++++++-
> 1 file changed, 13 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
> index e97a894..fcffaf8 100644
> --- a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
> +++ b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
> @@ -1020,9 +1020,21 @@ static struct omap_hwmod_ocp_if *am43xx_hwmod_ocp_ifs[] __initdata = {
> NULL,
> };
>
> +static struct omap_hwmod_ocp_if *am43xx_rtc_hwmod_ocp_ifs[] __initdata = {
> + &am33xx_l4_wkup__rtc,
> + NULL,
> +};
> +
> int __init am43xx_hwmod_init(void)
> {
> + int ret;
> +
> omap_hwmod_am43xx_reg();
> omap_hwmod_init();
> - return omap_hwmod_register_links(am43xx_hwmod_ocp_ifs);
> + ret = omap_hwmod_register_links(am43xx_hwmod_ocp_ifs);
> +
> + if (!(of_machine_is_compatible("ti,am438x")))
> + ret = omap_hwmod_register_links(am43xx_rtc_hwmod_ocp_ifs);
> +
> + return ret;
> }
Could you please invert the test of this case such that the RTC hwmod is
only registered on AM43xx SoCs where it is specifically known to be
enabled?
That way, if another AM43xx SoC comes out that doesn't have the RTC
module, it won't inadvertently be registered. This seems like a safer
approach.
- Paul
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 2/2] ARM: AM43XX: HWMOD: Add rtc hwmod
2016-02-18 6:42 ` Paul Walmsley
(?)
@ 2016-02-18 7:45 ` Keerthy
-1 siblings, 0 replies; 17+ messages in thread
From: Keerthy @ 2016-02-18 7:45 UTC (permalink / raw)
To: Paul Walmsley, Keerthy
Cc: tony, linux-omap, linux-arm-kernel, linux-kernel, devicetree, robh+dt
Hi Paul,
On Thursday 18 February 2016 12:12 PM, Paul Walmsley wrote:
> Hi Keerthy
>
> On Thu, 18 Feb 2016, Keerthy wrote:
>
>> The patch adds rtc hwmod. RTC module The RTC module is physically
>> present on the AM438x SoC used on AM43X-EPOS-EVM, but it is permanently
>> disabled. A secure RTC is used instead on these devices, where needed.
>> . Hence adding it selectively using a seprate list to get RTC Module
>> functional on the other am43x SoCs used on am437x-gp-evm and
>> am437x-sk-evm.
>>
>> Signed-off-by: Keerthy <j-keerthy@ti.com>
>> ---
>>
>> No Public TRM is available for AM438x SoC as of now.
>>
>> arch/arm/mach-omap2/omap_hwmod_43xx_data.c | 14 +++++++++++++-
>> 1 file changed, 13 insertions(+), 1 deletion(-)
>>
>> diff --git a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
>> index e97a894..fcffaf8 100644
>> --- a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
>> +++ b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
>> @@ -1020,9 +1020,21 @@ static struct omap_hwmod_ocp_if *am43xx_hwmod_ocp_ifs[] __initdata = {
>> NULL,
>> };
>>
>> +static struct omap_hwmod_ocp_if *am43xx_rtc_hwmod_ocp_ifs[] __initdata = {
>> + &am33xx_l4_wkup__rtc,
>> + NULL,
>> +};
>> +
>> int __init am43xx_hwmod_init(void)
>> {
>> + int ret;
>> +
>> omap_hwmod_am43xx_reg();
>> omap_hwmod_init();
>> - return omap_hwmod_register_links(am43xx_hwmod_ocp_ifs);
>> + ret = omap_hwmod_register_links(am43xx_hwmod_ocp_ifs);
>> +
>> + if (!(of_machine_is_compatible("ti,am438x")))
>> + ret = omap_hwmod_register_links(am43xx_rtc_hwmod_ocp_ifs);
>> +
>> + return ret;
>> }
>
> Could you please invert the test of this case such that the RTC hwmod is
> only registered on AM43xx SoCs where it is specifically known to be
> enabled?
>
> That way, if another AM43xx SoC comes out that doesn't have the RTC
> module, it won't inadvertently be registered. This seems like a safer
> approach.
I get your point but currently only am438x SoC has RTC disabled forever.
So i checked negating am438x. I can add a check with am4372 here and
register for only those SoCs.
I will resend a v2 in a while.
Thanks for the quick response.
Best Regards,
Keerthy
>
> - Paul
>
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 2/2] ARM: AM43XX: HWMOD: Add rtc hwmod
@ 2016-02-18 7:45 ` Keerthy
0 siblings, 0 replies; 17+ messages in thread
From: Keerthy @ 2016-02-18 7:45 UTC (permalink / raw)
To: Paul Walmsley, Keerthy
Cc: tony, linux-omap, linux-arm-kernel, linux-kernel, devicetree, robh+dt
Hi Paul,
On Thursday 18 February 2016 12:12 PM, Paul Walmsley wrote:
> Hi Keerthy
>
> On Thu, 18 Feb 2016, Keerthy wrote:
>
>> The patch adds rtc hwmod. RTC module The RTC module is physically
>> present on the AM438x SoC used on AM43X-EPOS-EVM, but it is permanently
>> disabled. A secure RTC is used instead on these devices, where needed.
>> . Hence adding it selectively using a seprate list to get RTC Module
>> functional on the other am43x SoCs used on am437x-gp-evm and
>> am437x-sk-evm.
>>
>> Signed-off-by: Keerthy <j-keerthy@ti.com>
>> ---
>>
>> No Public TRM is available for AM438x SoC as of now.
>>
>> arch/arm/mach-omap2/omap_hwmod_43xx_data.c | 14 +++++++++++++-
>> 1 file changed, 13 insertions(+), 1 deletion(-)
>>
>> diff --git a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
>> index e97a894..fcffaf8 100644
>> --- a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
>> +++ b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
>> @@ -1020,9 +1020,21 @@ static struct omap_hwmod_ocp_if *am43xx_hwmod_ocp_ifs[] __initdata = {
>> NULL,
>> };
>>
>> +static struct omap_hwmod_ocp_if *am43xx_rtc_hwmod_ocp_ifs[] __initdata = {
>> + &am33xx_l4_wkup__rtc,
>> + NULL,
>> +};
>> +
>> int __init am43xx_hwmod_init(void)
>> {
>> + int ret;
>> +
>> omap_hwmod_am43xx_reg();
>> omap_hwmod_init();
>> - return omap_hwmod_register_links(am43xx_hwmod_ocp_ifs);
>> + ret = omap_hwmod_register_links(am43xx_hwmod_ocp_ifs);
>> +
>> + if (!(of_machine_is_compatible("ti,am438x")))
>> + ret = omap_hwmod_register_links(am43xx_rtc_hwmod_ocp_ifs);
>> +
>> + return ret;
>> }
>
> Could you please invert the test of this case such that the RTC hwmod is
> only registered on AM43xx SoCs where it is specifically known to be
> enabled?
>
> That way, if another AM43xx SoC comes out that doesn't have the RTC
> module, it won't inadvertently be registered. This seems like a safer
> approach.
I get your point but currently only am438x SoC has RTC disabled forever.
So i checked negating am438x. I can add a check with am4372 here and
register for only those SoCs.
I will resend a v2 in a while.
Thanks for the quick response.
Best Regards,
Keerthy
>
> - Paul
>
^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH 2/2] ARM: AM43XX: HWMOD: Add rtc hwmod
@ 2016-02-18 7:45 ` Keerthy
0 siblings, 0 replies; 17+ messages in thread
From: Keerthy @ 2016-02-18 7:45 UTC (permalink / raw)
To: linux-arm-kernel
Hi Paul,
On Thursday 18 February 2016 12:12 PM, Paul Walmsley wrote:
> Hi Keerthy
>
> On Thu, 18 Feb 2016, Keerthy wrote:
>
>> The patch adds rtc hwmod. RTC module The RTC module is physically
>> present on the AM438x SoC used on AM43X-EPOS-EVM, but it is permanently
>> disabled. A secure RTC is used instead on these devices, where needed.
>> . Hence adding it selectively using a seprate list to get RTC Module
>> functional on the other am43x SoCs used on am437x-gp-evm and
>> am437x-sk-evm.
>>
>> Signed-off-by: Keerthy <j-keerthy@ti.com>
>> ---
>>
>> No Public TRM is available for AM438x SoC as of now.
>>
>> arch/arm/mach-omap2/omap_hwmod_43xx_data.c | 14 +++++++++++++-
>> 1 file changed, 13 insertions(+), 1 deletion(-)
>>
>> diff --git a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
>> index e97a894..fcffaf8 100644
>> --- a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
>> +++ b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
>> @@ -1020,9 +1020,21 @@ static struct omap_hwmod_ocp_if *am43xx_hwmod_ocp_ifs[] __initdata = {
>> NULL,
>> };
>>
>> +static struct omap_hwmod_ocp_if *am43xx_rtc_hwmod_ocp_ifs[] __initdata = {
>> + &am33xx_l4_wkup__rtc,
>> + NULL,
>> +};
>> +
>> int __init am43xx_hwmod_init(void)
>> {
>> + int ret;
>> +
>> omap_hwmod_am43xx_reg();
>> omap_hwmod_init();
>> - return omap_hwmod_register_links(am43xx_hwmod_ocp_ifs);
>> + ret = omap_hwmod_register_links(am43xx_hwmod_ocp_ifs);
>> +
>> + if (!(of_machine_is_compatible("ti,am438x")))
>> + ret = omap_hwmod_register_links(am43xx_rtc_hwmod_ocp_ifs);
>> +
>> + return ret;
>> }
>
> Could you please invert the test of this case such that the RTC hwmod is
> only registered on AM43xx SoCs where it is specifically known to be
> enabled?
>
> That way, if another AM43xx SoC comes out that doesn't have the RTC
> module, it won't inadvertently be registered. This seems like a safer
> approach.
I get your point but currently only am438x SoC has RTC disabled forever.
So i checked negating am438x. I can add a check with am4372 here and
register for only those SoCs.
I will resend a v2 in a while.
Thanks for the quick response.
Best Regards,
Keerthy
>
> - Paul
>
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 1/2] ARM: dts: am43x-epos-evm: Add the am438 compatible string
2016-02-18 5:29 ` Keerthy
@ 2016-02-22 2:54 ` Rob Herring
-1 siblings, 0 replies; 17+ messages in thread
From: Rob Herring @ 2016-02-22 2:54 UTC (permalink / raw)
To: Keerthy
Cc: tony, paul, linux-omap, linux-arm-kernel, linux-kernel, devicetree
On Thu, Feb 18, 2016 at 10:59:40AM +0530, Keerthy wrote:
> The SoCs on am43x-epos-evm are named am438x.
> Hence add the compatibility string and remove the am4372 string.
Presumably nothing is using these strings ATM for matching.
> Signed-off-by: Keerthy <j-keerthy@ti.com>
> ---
> Documentation/devicetree/bindings/arm/omap/omap.txt | 2 +-
> arch/arm/boot/dts/am43x-epos-evm.dts | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
Acked-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH 1/2] ARM: dts: am43x-epos-evm: Add the am438 compatible string
@ 2016-02-22 2:54 ` Rob Herring
0 siblings, 0 replies; 17+ messages in thread
From: Rob Herring @ 2016-02-22 2:54 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Feb 18, 2016 at 10:59:40AM +0530, Keerthy wrote:
> The SoCs on am43x-epos-evm are named am438x.
> Hence add the compatibility string and remove the am4372 string.
Presumably nothing is using these strings ATM for matching.
> Signed-off-by: Keerthy <j-keerthy@ti.com>
> ---
> Documentation/devicetree/bindings/arm/omap/omap.txt | 2 +-
> arch/arm/boot/dts/am43x-epos-evm.dts | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
Acked-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2016-02-22 2:55 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-18 5:29 [PATCH 0/2] arm: am43xx: Enable rtc Keerthy
2016-02-18 5:29 ` Keerthy
2016-02-18 5:29 ` Keerthy
2016-02-18 5:29 ` [PATCH 1/2] ARM: dts: am43x-epos-evm: Add the am438 compatible string Keerthy
2016-02-18 5:29 ` Keerthy
2016-02-18 5:29 ` Keerthy
2016-02-22 2:54 ` Rob Herring
2016-02-22 2:54 ` Rob Herring
2016-02-18 5:29 ` [PATCH 2/2] ARM: AM43XX: HWMOD: Add rtc hwmod Keerthy
2016-02-18 5:29 ` Keerthy
2016-02-18 5:29 ` Keerthy
2016-02-18 6:42 ` Paul Walmsley
2016-02-18 6:42 ` Paul Walmsley
2016-02-18 6:42 ` Paul Walmsley
2016-02-18 7:45 ` Keerthy
2016-02-18 7:45 ` Keerthy
2016-02-18 7:45 ` Keerthy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.