Reset Controller Nodes for TI Keystone platforms
Subsystems (4)
v2 cover Reset Controller Nodes for TI Keystone platforms
Hi Santosh,
This is a slightly updated patch series for the reset controller nodes for TI Keystone2 SoCs. The only change is to rename the reset controller nodes from "psc-reset-controller" to just "reset-controller" following Rob Herring's comment on the Documentation update patch [1]. There are no changes to the first 2 patches. I have already posted a v2 for the Documentation update as well. Please pick this up instead of the v1 series [2].
regards
Suman
[1] https://www.spinics.net/lists/arm-kernel/msg553646.html
[2] https://www.spinics.net/lists/arm-kernel/msg552911.html
Suman Anna (5):
ARM: Keystone: Enable ARCH_HAS_RESET_CONTROLLER
ARM: dts: keystone: Add PSC node
ARM: dts: keystone-k2hk: Add PSC reset controller node
ARM: dts: keystone-k2l: Add PSC reset controller node
ARM: dts: keystone-k2e: Add PSC reset controller node
arch/arm/boot/dts/keystone-k2e.dtsi | 13 +++++++++++++ arch/arm/boot/dts/keystone-k2hk.dtsi | 20 ++++++++++++++++++++ arch/arm/boot/dts/keystone-k2l.dtsi | 16 ++++++++++++++++ arch/arm/boot/dts/keystone.dtsi | 5 +++++ arch/arm/mach-keystone/Kconfig | 1 + 5 files changed, 55 insertions(+)
Signature · 1 line
2.10.2
PATCH v2 1/5 ARM: Keystone: Enable ARCH_HAS_RESET_CONTROLLER
The Keystone 2 family of SoCs will use various Reset Controller drivers for managing the resets of remote processor devices like DSPs on the SoC, so select the ARCH_HAS_RESET_CONTROLLER option by default to enable the Reset framework.
---
v2: No changes
arch/arm/mach-keystone/Kconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm/mach-keystone/Kconfig +1 -0
@@ -4,6 +4,7 @@ config ARCH_KEYSTONE select ARM_GIC select HAVE_ARM_ARCH_TIMER select KEYSTONE_TIMER + select ARCH_HAS_RESET_CONTROLLER select ARM_ERRATA_798181 if SMP select COMMON_CLK_KEYSTONE select ARCH_SUPPORTS_BIG_ENDIAN
Signature · 1 line
2.10.2
PATCH v2 2/5 ARM: dts: keystone: Add PSC node
In reply to Suman AnnaThe Power Sleep Controller (PSC) module is responsible for the power and clock management for each of the peripherals present on the SoC. Represent this as a syscon node so that multiple users can leverage it for various functionalities.
---
v2: No changes
arch/arm/boot/dts/keystone.dtsi | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/boot/dts/keystone.dtsi +5 -0
@@ -83,6 +83,11 @@ reg = <0x02310000 0x200>; }; + psc: power-sleep-controller at 02350000 { + compatible = "syscon", "simple-mfd"; + reg = <0x02350000 0x1000>; + }; + devctrl: device-state-control at 02620000 { compatible = "ti,keystone-devctrl", "syscon"; reg = <0x02620000 0x1000>;
Signature · 1 line
2.10.2
PATCH v2 3/5 ARM: dts: keystone-k2hk: Add PSC reset controller node
In reply to Suman AnnaThe Power Sleep Controller (PSC) module contains specific memory-mapped registers that can be used to perform reset management using specific bits for the DSPs available on the SoC. The PSC is defined using a syscon node, and the reset functionality is defined using a child syscon reset controller node.
Add this syscon reset controller node as well as the reset control data for the resets it supports for the 66AK2H SoCs.
---
v2: change reset node name from psc-reset-controller to reset-controller
arch/arm/boot/dts/keystone-k2hk.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
arch/arm/boot/dts/keystone-k2hk.dtsi +20 -0
@@ -8,6 +8,8 @@ * published by the Free Software Foundation. */ +#include <dt-bindings/reset/ti-syscon.h> + / { compatible = "ti,k2hk", "ti,keystone"; model = "Texas Instruments Keystone 2 Kepler/Hawking SoC";
@@ -58,6 +60,24 @@ }; }; + psc: power-sleep-controller at 02350000 { + pscrst: reset-controller { + compatible = "ti,k2hk-pscrst", "ti,syscon-reset"; + #reset-cells = <1>; + + ti,reset-bits = < + 0xa3c 8 0xa3c 8 0x83c 8 (ASSERT_CLEAR | DEASSERT_SET | STATUS_CLEAR) /* 0: dsp0 */ + 0xa40 8 0xa40 8 0x840 8 (ASSERT_CLEAR | DEASSERT_SET | STATUS_CLEAR) /* 1: dsp1 */ + 0xa44 8 0xa44 8 0x844 8 (ASSERT_CLEAR | DEASSERT_SET | STATUS_CLEAR) /* 2: dsp2 */ + 0xa48 8 0xa48 8 0x848 8 (ASSERT_CLEAR | DEASSERT_SET | STATUS_CLEAR) /* 3: dsp3 */ + 0xa4c 8 0xa4c 8 0x84c 8 (ASSERT_CLEAR | DEASSERT_SET | STATUS_CLEAR) /* 4: dsp4 */ + 0xa50 8 0xa50 8 0x850 8 (ASSERT_CLEAR | DEASSERT_SET | STATUS_CLEAR) /* 5: dsp5 */ + 0xa54 8 0xa54 8 0x854 8 (ASSERT_CLEAR | DEASSERT_SET | STATUS_CLEAR) /* 6: dsp6 */ + 0xa58 8 0xa58 8 0x858 8 (ASSERT_CLEAR | DEASSERT_SET | STATUS_CLEAR) /* 7: dsp7 */ + >; + }; + }; + dspgpio0: keystone_dsp_gpio at 02620240 { compatible = "ti,keystone-dsp-gpio"; gpio-controller;
Signature · 1 line
2.10.2
PATCH v2 4/5 ARM: dts: keystone-k2l: Add PSC reset controller node
In reply to Suman AnnaThe Power Sleep Controller (PSC) module contains specific memory-mapped registers that can be used to perform reset management using specific bits for the DSPs available on the SoC. The PSC is defined using a syscon node, and the reset functionality is defined using a child syscon reset controller node.
Add this syscon reset controller node as well as the reset control data for the resets it supports for the 66AK2L SoCs.
---
v2: change reset node name from psc-reset-controller to reset-controller
arch/arm/boot/dts/keystone-k2l.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
arch/arm/boot/dts/keystone-k2l.dtsi +16 -0
@@ -8,6 +8,8 @@ * published by the Free Software Foundation. */ +#include <dt-bindings/reset/ti-syscon.h> + / { compatible = "ti,k2l", "ti,keystone"; model = "Texas Instruments Keystone 2 Lamarr SoC";
@@ -216,6 +218,20 @@ }; }; + psc: power-sleep-controller at 02350000 { + pscrst: reset-controller { + compatible = "ti,k2l-pscrst", "ti,syscon-reset"; + #reset-cells = <1>; + + ti,reset-bits = < + 0xa3c 8 0xa3c 8 0x83c 8 (ASSERT_CLEAR | DEASSERT_SET | STATUS_CLEAR) /* 0: dsp0 */ + 0xa40 8 0xa40 8 0x840 8 (ASSERT_CLEAR | DEASSERT_SET | STATUS_CLEAR) /* 1: dsp1 */ + 0xa44 8 0xa44 8 0x844 8 (ASSERT_CLEAR | DEASSERT_SET | STATUS_CLEAR) /* 2: dsp2 */ + 0xa48 8 0xa48 8 0x848 8 (ASSERT_CLEAR | DEASSERT_SET | STATUS_CLEAR) /* 3: dsp3 */ + >; + }; + }; + dspgpio0: keystone_dsp_gpio at 02620240 { compatible = "ti,keystone-dsp-gpio"; gpio-controller;
Signature · 1 line
2.10.2
PATCH v2 5/5 ARM: dts: keystone-k2e: Add PSC reset controller node
In reply to Suman AnnaThe Power Sleep Controller (PSC) module contains specific memory-mapped registers that can be used to perform reset management using specific bits for the DSPs available on the SoC. The PSC is defined using a syscon node, and the reset functionality is defined using a child syscon reset controller node.
Add this syscon reset controller node as well as the reset control data for the resets it supports for the 66AK2E SoCs.
---
v2: change reset node name from psc-reset-controller to reset-controller
arch/arm/boot/dts/keystone-k2e.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+)
arch/arm/boot/dts/keystone-k2e.dtsi +13 -0
@@ -8,6 +8,8 @@ * published by the Free Software Foundation. */ +#include <dt-bindings/reset/ti-syscon.h> + / { compatible = "ti,k2e", "ti,keystone"; model = "Texas Instruments Keystone 2 Edison SoC";
@@ -94,6 +96,17 @@ }; }; + psc: power-sleep-controller at 02350000 { + pscrst: reset-controller { + compatible = "ti,k2e-pscrst", "ti,syscon-reset"; + #reset-cells = <1>; + + ti,reset-bits = < + 0xa3c 8 0xa3c 8 0x83c 8 (ASSERT_CLEAR | DEASSERT_SET | STATUS_CLEAR) /* 0: dsp0 */ + >; + }; + }; + dspgpio0: keystone_dsp_gpio at 02620240 { compatible = "ti,keystone-dsp-gpio"; gpio-controller;
Signature · 1 line
2.10.2
Quoted 9 lines · Suman Anna
Hi Santosh,
This is a slightly updated patch series for the reset controller nodes for TI Keystone2 SoCs. The only change is to rename the reset controller nodes from "psc-reset-controller" to just "reset-controller" following Rob Herring's comment on the Documentation update patch [1]. There are no changes to the first 2 patches. I have already posted a v2 for the Documentation update as well. Please pick this up instead of the v1 series [2].
I haven't picked up V1 so no worries. Even V2 I won't apply for another week to give some more time if there are any more comments on the bindings.
Thanks for following up.
Regards,
Santosh
Quoted 15 lines · santosh.shilimkar at oracle.com
Quoted 14 lines · Suman Anna
Hi Santosh,
This is a slightly updated patch series for the reset controller nodes for
TI Keystone2 SoCs. The only change is to rename the reset controller nodes
from "psc-reset-controller" to just "reset-controller" following Rob Herring's
comment on the Documentation update patch [1]. There are no changes to the first
2 patches. I have already posted a v2 for the Documentation update as well.
Please pick this up instead of the v1 series [2].
Quoted 5 lines
I haven't picked up V1 so no worries. Even V2 I won't apply for another week to give some more time if there are any more comments on the bindings.
Thanks for following up.
Series applied !!