[v7,0/2] introduce TI reset controller for MT8192 SoC

2021-01-15 Thread Crystal Guo
roduce force-update method, which forces the write operation in case the read already happens to return the correct value. 3. add 'generic-reset' to compatible v1 changes: https://patchwork.kernel.org/patch/11690523/ https://patchwork.kernel.org/patch/11690527/ Crystal Guo (2): dt-binding: rese

[v7,1/2] dt-binding: reset-controller: mediatek: add YAML schemas

2021-01-15 Thread Crystal Guo
Add a YAML documentation for Mediatek, which uses ti reset-controller driver directly. The TI reset controller provides a common reset management, and is suitable for Mediatek SoCs. Signed-off-by: Crystal Guo --- .../bindings/reset/mediatek-syscon-reset.yaml | 51 +++ 1 file

[v7,2/2] reset-controller: ti: introduce an integrated reset handler

2021-01-15 Thread Crystal Guo
Socs also need this method to perform reset. Signed-off-by: Crystal Guo --- drivers/reset/reset-ti-syscon.c | 39 + 1 file changed, 39 insertions(+) diff --git a/drivers/reset/reset-ti-syscon.c b/drivers/reset/reset-ti-syscon.c index 218370faf37b..a30cb17362a4

Re: [v6,1/3] dt-binding: reset-controller: mediatek: add YAML schemas

2020-12-26 Thread Crystal Guo
On Thu, 2020-12-03 at 15:41 +0800, Philipp Zabel wrote: > Hi, > > On Wed, 2020-09-30 at 10:21 +0800, Crystal Guo wrote: > > Add a YAML documentation for Mediatek, which uses ti reset-controller > > driver directly. The TI reset controller provides a common reset > >

Re: [v6,2/4] dt-binding: mediatek: mt8192: update mtk-wdt document

2020-12-26 Thread Crystal Guo
On Mon, 2020-12-21 at 08:59 +0800, Nicolas Boichat wrote: > On Mon, Nov 16, 2020 at 8:27 PM Crystal Guo wrote: > > > > Hi Maintainers, > > > > Gentle pin for this patch. > > > > Thanks > > > > On Wed, 2020-10-14 at 21:19 +0800, Crystal Guo wrote

Re: [v6,2/3] reset-controller: ti: introduce a new reset handler

2020-12-03 Thread Crystal Guo
On Mon, 2020-11-30 at 18:35 +0800, Ikjoon Jang wrote: > On Wed, Sep 30, 2020 at 10:21:58AM +0800, Crystal Guo wrote: > > Introduce ti_syscon_reset() to integrate assert and deassert together. > > If some modules need do serialized assert and deassert operations >

Re: [v6, 3/3] reset-controller: ti: force the write operation when assert or deassert

2020-12-02 Thread Crystal Guo
On Mon, 2020-11-30 at 19:13 +0800, Ikjoon Jang wrote: > On Wed, Sep 30, 2020 at 10:21:59AM +0800, Crystal Guo wrote: > > Force the write operation in case the read already happens > > to return the correct value. > > > > Signed-off-by: Crystal Guo > > --- > &g

Re: [v6,2/4] dt-binding: mediatek: mt8192: update mtk-wdt document

2020-11-16 Thread Crystal Guo
Hi Maintainers, Gentle pin for this patch. Thanks On Wed, 2020-10-14 at 21:19 +0800, Crystal Guo wrote: > update mtk-wdt document for MT8192 platform > > Signed-off-by: Crystal Guo > --- > Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 1 + > 1 file ch

Re: [v6,1/3] dt-binding: reset-controller: mediatek: add YAML schemas

2020-10-14 Thread Crystal Guo
Hi Maintainers, Gentle ping for this patch set. Many thanks Crystal On Wed, 2020-09-30 at 10:21 +0800, Crystal Guo wrote: > Add a YAML documentation for Mediatek, which uses ti reset-controller > driver directly. The TI reset controller provides a common reset > management, and is

[v6,4/4] watchdog: mt8192: add wdt support

2020-10-14 Thread Crystal Guo
Add support for watchdog device found in MT8192 SoC Signed-off-by: Crystal Guo Reviewed-by: Matthias Brugger Reviewed-by: Guenter Roeck --- drivers/watchdog/mtk_wdt.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c index

[v6,1/4] dt-binding: mediatek: watchdog: fix the description of compatible

2020-10-14 Thread Crystal Guo
The watchdog driver for MT2712 and MT8183 relies on DT data, so the fallback compatible MT6589 won't work. Signed-off-by: Crystal Guo Reviewed-by: Matthias Brugger Reviewed-by: Guenter Roeck --- Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 4 ++-- 1 file changed, 2 insertions

[v6,3/4] dt-binding: mt8192: add toprgu reset-controller head file

2020-10-14 Thread Crystal Guo
add toprgu reset-controller head file for MT8192 platform Signed-off-by: Crystal Guo Reviewed-by: Matthias Brugger Acked-by: Guenter Roeck --- .../reset-controller/mt8192-resets.h | 30 +++ 1 file changed, 30 insertions(+) create mode 100644 include/dt-bindings/reset

[v6,0/4] watchdog: mt8192: add wdt support

2020-10-14 Thread Crystal Guo
] add support for watchdog device found in MT8192 SoC( Reviewed-by: Matthias) v1 changes: Instead of submit the mt8192-reset.h, get the number of reset bits from dtsi directly. Crystal Guo (4): dt-binding: mediatek: watchdog: fix the description of compatible dt-binding: mediatek: mt8192

[v6,2/4] dt-binding: mediatek: mt8192: update mtk-wdt document

2020-10-14 Thread Crystal Guo
update mtk-wdt document for MT8192 platform Signed-off-by: Crystal Guo --- Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt b/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt

Re: [v5,2/4] dt-binding: mediatek: mt8192: update mtk-wdt document

2020-10-08 Thread Crystal Guo
On Fri, 2020-10-02 at 17:28 +0800, Matthias Brugger wrote: > > On 29/09/2020 05:20, Crystal Guo wrote: > > update mtk-wdt document for MT8192 platform > > > > Signed-off-by: Crystal Guo > > Reviewed-by: Matthias Brugger > > Reviewed-by: Guenter Roeck >

Re: [v5,0/4] watchdog: mt8192: add wdt support

2020-10-08 Thread Crystal Guo
On Fri, 2020-10-02 at 22:41 +0800, Guenter Roeck wrote: > On 10/2/20 2:51 AM, Matthias Brugger wrote: > > > > > > On 01/10/2020 17:16, Guenter Roeck wrote: > >> On Thu, Oct 01, 2020 at 04:23:02PM +0200, Matthias Brugger wrote: > >>> Hi Crystal, > &g

Re: [v5,1/3] dt-binding: reset-controller: mediatek: add YAML schemas

2020-09-29 Thread Crystal Guo
On Tue, 2020-09-29 at 23:48 +0800, Rob Herring wrote: > On Tue, 29 Sep 2020 21:46:40 +0800, Crystal Guo wrote: > > Add a YAML documentation for Mediatek, which uses ti reset-controller > > driver directly. The TI reset controller provides a common reset management, > > and is

[v6,3/3] reset-controller: ti: force the write operation when assert or deassert

2020-09-29 Thread Crystal Guo
Force the write operation in case the read already happens to return the correct value. Signed-off-by: Crystal Guo --- drivers/reset/reset-ti-syscon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/reset/reset-ti-syscon.c b/drivers/reset/reset-ti-syscon.c index

[v6,2/3] reset-controller: ti: introduce a new reset handler

2020-09-29 Thread Crystal Guo
Socs also need this method to perform reset. Signed-off-by: Crystal Guo --- drivers/reset/reset-ti-syscon.c | 40 - 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/drivers/reset/reset-ti-syscon.c b/drivers/reset/reset-ti-syscon.c index a2635c21db7f

[v6,1/3] dt-binding: reset-controller: mediatek: add YAML schemas

2020-09-29 Thread Crystal Guo
Add a YAML documentation for Mediatek, which uses ti reset-controller driver directly. The TI reset controller provides a common reset management, and is suitable for Mediatek SoCs. Signed-off-by: Crystal Guo --- .../bindings/reset/mediatek-syscon-reset.yaml | 51 +++ 1 file

[v6,0/3] introduce TI reset controller for MT8192 SoC

2020-09-29 Thread Crystal Guo
to return the correct value. 3. add 'generic-reset' to compatible v1 changes: https://patchwork.kernel.org/patch/11690523/ https://patchwork.kernel.org/patch/11690527/ Crystal Guo (3): dt-binding: reset-controller: mediatek: add YAML schemas reset-controller: ti: introduce a new reset handler

Re: [v4,3/4] reset-controller: ti: introduce a new reset handler

2020-09-29 Thread Crystal Guo
On Mon, 2020-09-14 at 22:00 +0800, Crystal Guo wrote: > On Fri, 2020-09-11 at 22:44 +0800, Suman Anna wrote: > > On 9/11/20 9:26 AM, Philipp Zabel wrote: > > > Hi Crystal, > > > > > > On Fri, 2020-09-11 at 14:07 +0800, Crystal Guo wrote: > > > [.

[v5,0/3] introduce TI reset controller for MT8192 SoC

2020-09-29 Thread Crystal Guo
' to compatible v1 changes: https://patchwork.kernel.org/patch/11690523/ https://patchwork.kernel.org/patch/11690527/ Crystal Guo (3): dt-binding: reset-controller: mediatek: add YAML schemas reset-controller: ti: introduce a new reset handler reset-controller: ti: force the write operation when assert

[v5,1/3] dt-binding: reset-controller: mediatek: add YAML schemas

2020-09-29 Thread Crystal Guo
Add a YAML documentation for Mediatek, which uses ti reset-controller driver directly. The TI reset controller provides a common reset management, and is suitable for Mediatek SoCs. Signed-off-by: Crystal Guo --- .../bindings/reset/mediatek-syscon-reset.yaml | 51 +++ 1 file

[v5,3/3] reset-controller: ti: force the write operation when assert or deassert

2020-09-29 Thread Crystal Guo
Force the write operation in case the read already happens to return the correct value. Signed-off-by: Crystal Guo --- drivers/reset/reset-ti-syscon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/reset/reset-ti-syscon.c b/drivers/reset/reset-ti-syscon.c index

[v5,2/3] reset-controller: ti: introduce a new reset handler

2020-09-29 Thread Crystal Guo
Socs also need this method to perform reset. Signed-off-by: Crystal Guo --- drivers/reset/reset-ti-syscon.c | 40 - 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/drivers/reset/reset-ti-syscon.c b/drivers/reset/reset-ti-syscon.c index a2635c21db7f

[v5,2/4] dt-binding: mediatek: mt8192: update mtk-wdt document

2020-09-28 Thread Crystal Guo
update mtk-wdt document for MT8192 platform Signed-off-by: Crystal Guo Reviewed-by: Matthias Brugger Reviewed-by: Guenter Roeck --- Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt

[v5,4/4] watchdog: mt8192: add wdt support

2020-09-28 Thread Crystal Guo
Add support for watchdog device found in MT8192 SoC Signed-off-by: Crystal Guo Reviewed-by: Matthias Brugger Reviewed-by: Guenter Roeck --- drivers/watchdog/mtk_wdt.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c index

[v5,1/4] dt-binding: mediatek: watchdog: fix the description of compatible

2020-09-28 Thread Crystal Guo
The watchdog driver for MT2712 and MT8183 relies on DT data, so the fallback compatible MT6589 won't work. Signed-off-by: Crystal Guo Reviewed-by: Matthias Brugger Reviewed-by: Guenter Roeck --- Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 4 ++-- 1 file changed, 2 insertions

[v5,0/4] watchdog: mt8192: add wdt support

2020-09-28 Thread Crystal Guo
/11692771/ https://patchwork.kernel.org/patch/11692733/ Crystal Guo (4): dt-binding: mediatek: watchdog: fix the description of compatible dt-binding: mediatek: mt8192: update mtk-wdt document dt-binding: mt8192: add toprgu reset-controller head file watchdog: mt8192: add wdt support

[v5,3/4] dt-binding: mt8192: add toprgu reset-controller head file

2020-09-28 Thread Crystal Guo
add toprgu reset-controller head file for MT8192 platform Signed-off-by: Crystal Guo Reviewed-by: Matthias Brugger Acked-by: Guenter Roeck --- .../reset-controller/mt8192-resets.h | 30 +++ 1 file changed, 30 insertions(+) create mode 100644 include/dt-bindings/reset

Re: [v4,3/4] reset-controller: ti: introduce a new reset handler

2020-09-14 Thread Crystal Guo
On Fri, 2020-09-11 at 22:44 +0800, Suman Anna wrote: > On 9/11/20 9:26 AM, Philipp Zabel wrote: > > Hi Crystal, > > > > On Fri, 2020-09-11 at 14:07 +0800, Crystal Guo wrote: > > [...] > >> Should I add the SoC-specific data as follows? > >> This m

Re: [v4,3/4] reset-controller: ti: introduce a new reset handler

2020-09-11 Thread Crystal Guo
On Fri, 2020-09-11 at 10:52 +0800, Suman Anna wrote: > On 9/10/20 9:42 PM, Crystal Guo wrote: > > On Wed, 2020-09-09 at 23:39 +0800, Suman Anna wrote: > >> On 9/8/20 9:57 PM, Crystal Guo wrote: > >>> On Thu, 2020-09-03 at 07:40 +0800, Suman Anna wrote: > >>

Re: [v4,3/4] reset-controller: ti: introduce a new reset handler

2020-09-10 Thread Crystal Guo
On Wed, 2020-09-09 at 23:39 +0800, Suman Anna wrote: > On 9/8/20 9:57 PM, Crystal Guo wrote: > > On Thu, 2020-09-03 at 07:40 +0800, Suman Anna wrote: > >> Hi Crystal, > >> > >> On 8/16/20 10:03 PM, Crystal Guo wrote: > >>> Introduce ti_syscon_r

Re: [v4,3/4] reset-controller: ti: introduce a new reset handler

2020-09-08 Thread Crystal Guo
On Thu, 2020-09-03 at 07:40 +0800, Suman Anna wrote: > Hi Crystal, > > On 8/16/20 10:03 PM, Crystal Guo wrote: > > Introduce ti_syscon_reset() to integrate assert and deassert together. > > If some modules need do serialized assert and deassert operations > > to reset

Re: [v4,4/4] arm64: dts: mt8192: add infracfg_rst node

2020-09-08 Thread Crystal Guo
On Thu, 2020-09-03 at 07:29 +0800, Suman Anna wrote: > Hi Crystal, > > On 8/16/20 10:03 PM, Crystal Guo wrote: > > add infracfg_rst node which is for MT8192 platform > > > > Signed-off-by: Crystal Guo > > I understand you are posting these together f

Re: [v4,0/4] introduce TI reset controller for MT8192 SoC

2020-09-01 Thread Crystal Guo
Hi Rob, Philipp, Matthias and all Gentle ping for this patch set. Thanks Crystal > > -Original Message- > From: Crystal Guo [mailto:crystal@mediatek.com] > Sent: Monday, August 17, 2020 11:03 AM > To: p.za...@pengutronix.de; robh...@kernel.org; matthias

Re: [v4,2/4] dt-binding: reset-controller: ti: add 'mediatek,infra-reset' to compatible

2020-08-26 Thread Crystal Guo
On Wed, 2020-08-26 at 03:02 +0800, Rob Herring wrote: > On Mon, Aug 17, 2020 at 11:03:22AM +0800, Crystal Guo wrote: > > The TI syscon reset controller provides a common reset management, > > and is suitable for MTK SoCs. Add compatible 'mediatek,infra-reset', > > which de

Re: [v4,1/4] dt-binding: reset-controller: ti: add reset-duration-us property

2020-08-26 Thread Crystal Guo
On Wed, 2020-08-26 at 01:42 +0800, Rob Herring wrote: > On Mon, Aug 17, 2020 at 11:03:21AM +0800, Crystal Guo wrote: > > introduce 'reset' method to allow device do serialized assert and > > deassert operations in a single step, which needs a minimum delay > > to be

[v4,1/4] dt-binding: reset-controller: ti: add reset-duration-us property

2020-08-16 Thread Crystal Guo
introduce 'reset' method to allow device do serialized assert and deassert operations in a single step, which needs a minimum delay to be waited between assert and deassert. Signed-off-by: Crystal Guo --- Documentation/devicetree/bindings/reset/ti-syscon-reset.txt | 5 + 1 file changed, 5

[v4,2/4] dt-binding: reset-controller: ti: add 'mediatek,infra-reset' to compatible

2020-08-16 Thread Crystal Guo
The TI syscon reset controller provides a common reset management, and is suitable for MTK SoCs. Add compatible 'mediatek,infra-reset', which denotes to use ti reset-controller driver directly. Signed-off-by: Crystal Guo --- Documentation/devicetree/bindings/reset/ti-syscon-reset.txt | 1 + 1

[v4,0/4] introduce TI reset controller for MT8192 SoC

2020-08-16 Thread Crystal Guo
to return the correct value. 3. add 'generic-reset' to compatible v1 changes: https://patchwork.kernel.org/patch/11690523/ https://patchwork.kernel.org/patch/11690527/ Crystal Guo (4): dt-binding: reset-controller: ti: add reset-duration-us property dt-binding: reset-controller: ti: add

[v4,3/4] reset-controller: ti: introduce a new reset handler

2020-08-16 Thread Crystal Guo
Socs also need this method to perform reset. Signed-off-by: Crystal Guo --- drivers/reset/reset-ti-syscon.c | 26 -- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/drivers/reset/reset-ti-syscon.c b/drivers/reset/reset-ti-syscon.c index a2635c21db7f

[v4,4/4] arm64: dts: mt8192: add infracfg_rst node

2020-08-16 Thread Crystal Guo
add infracfg_rst node which is for MT8192 platform Signed-off-by: Crystal Guo --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index

[v3,1/4] dt-binding: reset-controller: ti: add reset-duration-us property

2020-08-16 Thread Crystal Guo
introduce 'reset' method to allow device do serialized assert and deassert operations in a single step, which needs a minimum delay to be waited between assert and deassert. Signed-off-by: Crystal Guo --- Documentation/devicetree/bindings/reset/ti-syscon-reset.txt | 5 + 1 file changed, 5

[v3,3/4] reset-controller: ti: introduce a new reset handler

2020-08-16 Thread Crystal Guo
Socs also need this method to perform reset. Signed-off-by: Crystal Guo --- drivers/reset/reset-ti-syscon.c | 26 -- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/drivers/reset/reset-ti-syscon.c b/drivers/reset/reset-ti-syscon.c index a2635c21db7f

[v4,4/4] arm64: dts: mt8192: add infracfg_rst node

2020-08-16 Thread Crystal Guo
add infracfg_rst node which is for MT8192 platform Signed-off-by: Crystal Guo --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index

[v3,2/4] dt-binding: reset-controller: ti: add 'mediatek,infra-reset' to compatible

2020-08-16 Thread Crystal Guo
The TI syscon reset controller provides a common reset management, and is suitable for MTK SoCs. Add compatible 'mediatek,infra-reset', which denotes to use ti reset-controller driver directly. Signed-off-by: Crystal Guo --- Documentation/devicetree/bindings/reset/ti-syscon-reset.txt | 1 + 1

[v3,0/6] introduce TI reset controller for MT8192 SoC

2020-08-16 Thread Crystal Guo
'generic-reset' to compatible v1 changes: https://patchwork.kernel.org/patch/11690523/ https://patchwork.kernel.org/patch/11690527/ Crystal Guo (4): dt-binding: reset-controller: ti: add reset-duration-us property dt-binding: reset-controller: ti: add 'mediatek,infra-reset' to compatible

Re: [v2,5/6] reset-controller: ti: Introduce force-update method

2020-08-10 Thread Crystal Guo
On Tue, 2020-08-04 at 15:03 +0800, Philipp Zabel wrote: > Hi Crystal, > > On Mon, 2020-08-03 at 14:15 +0800, Crystal Guo wrote: > > Introduce force-update method for assert and deassert interface, > > which force the write operation in case the read already happens > >

[v4,2/5] arm64: dts: mt8183: update watchdog device node

2020-08-03 Thread Crystal Guo
The watchdog driver for MT8183 relies on DT data, so the fallback compatible MT6589 won't work, need to update watchdog device node to sync with watchdog dt-binding document. Signed-off-by: Crystal Guo --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2

[v4,4/5] dt-binding: mt8192: add toprgu reset-controller head file

2020-08-03 Thread Crystal Guo
add toprgu reset-controller head file for MT8192 platform Signed-off-by: Crystal Guo Reviewed-by: Matthias Brugger --- .../reset-controller/mt8192-resets.h | 30 +++ 1 file changed, 30 insertions(+) create mode 100644 include/dt-bindings/reset-controller/mt8192

[v4,1/5] dt-binding: mediatek: watchdog: fix the description of compatible

2020-08-03 Thread Crystal Guo
The watchdog driver for MT2712 and MT8183 relies on DT data, so the fallback compatible MT6589 won't work. Signed-off-by: Crystal Guo Reviewed-by: Matthias Brugger --- Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[v4,3/5] dt-binding: mediatek: mt8192: update mtk-wdt document

2020-08-03 Thread Crystal Guo
update mtk-wdt document for MT8192 platform Signed-off-by: Crystal Guo Reviewed-by: Matthias Brugger Reviewed-by: Guenter Roeck --- Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt

[v4,0/5] watchdog: mt8192: add wdt support

2020-08-03 Thread Crystal Guo
v4 changes: revise commit messages. v3 changes: https://patchwork.kernel.org/patch/11692731/ https://patchwork.kernel.org/patch/11692767/ https://patchwork.kernel.org/patch/11692729/ https://patchwork.kernel.org/patch/11692771/ https://patchwork.kernel.org/patch/11692733/ Crystal Guo (5): dt

[v4,5/5] watchdog: mt8192: add wdt support

2020-08-03 Thread Crystal Guo
Add support for watchdog device found in MT8192 SoC Signed-off-by: Crystal Guo Reviewed-by: Matthias Brugger --- drivers/watchdog/mtk_wdt.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c index d6a6393f609d..aef0c2db6a11 100644

[v2,4/6] reset-controller: ti: introduce a new reset handler

2020-08-03 Thread Crystal Guo
Add ti_syscon_reset() to integrate assert and deassert together. If some modules need do serialized assert and deassert operations to reset itself, reset_control_reset can be called for convenience. Change-Id: I9046992b115a46f3594de57fa89c6a2de9957d49 --- drivers/reset/reset-ti-syscon.c | 20

[v2,3/6] dt-binding: reset-controller: ti: add generic-reset to compatible

2020-08-03 Thread Crystal Guo
The TI syscon reset controller provides a common reset management, and should be suitable for other SOCs. Add compatible "generic-reset", which denotes to use a common reset-controller driver. Signed-off-by: Crystal Guo --- Documentation/devicetree/bindings/reset/ti-syscon-reset.tx

[v2,5/6] reset-controller: ti: Introduce force-update method

2020-08-03 Thread Crystal Guo
Introduce force-update method for assert and deassert interface, which force the write operation in case the read already happens to return the correct value. Signed-off-by: Crystal Guo --- drivers/reset/reset-ti-syscon.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions

[v2,0/6] introduce TI reset controller for MT8192 SoC

2020-08-03 Thread Crystal Guo
v1 changes: https://patchwork.kernel.org/patch/11690523/ https://patchwork.kernel.org/patch/11690527/ Crystal Guo (6): dt-binding: reset-controller: ti: add assert-deassert-together property dt-binding: reset-controller: ti: add update-force property dt-binding: reset-controller: ti

[v2,6/6] arm64: dts: mt8192: add infracfg_rst node

2020-08-03 Thread Crystal Guo
add infracfg_rst node which is for MT8192 platform Signed-off-by: Crystal Guo --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index

[v2,2/6] dt-binding: reset-controller: ti: add update-force property

2020-08-03 Thread Crystal Guo
add update-force property to force the write operation in case the read already happens to return the correct value. Signed-off-by: Crystal Guo --- Documentation/devicetree/bindings/reset/ti-syscon-reset.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings

[v2,1/6] dt-binding: reset-controller: ti: add assert-deassert-together property

2020-08-03 Thread Crystal Guo
add assert-deassert-together property to allow device to do serialized assert and deassert operations in a single step by 'reset' method. Signed-off-by: Crystal Guo --- Documentation/devicetree/bindings/reset/ti-syscon-reset.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git

[v3,3/5] dt-binding: mediatek: mt8192: update mtk-wdt document

2020-07-30 Thread Crystal Guo
update mtk-wdt document for MT8192 platform Signed-off-by: Crystal Guo --- Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt b/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt

add watchdog support for mt8192

2020-07-30 Thread Crystal Guo
/patch/11690731/ https://patchwork.kernel.org/patch/11690719/ v1 changes: https://patchwork.kernel.org/patch/11680495/ https://patchwork.kernel.org/patch/11680497/ Crystal Guo (5): dt-binding: mediatek: watchdog: fix the description of compatible arm64: dts: mt8183: update watchdog device

[v3,5/5] watchdog: mt8192: add wdt support

2020-07-30 Thread Crystal Guo
Add support for watchdog device found in MT8192 SoC Signed-off-by: Crystal Guo Reviewed-by: Matthias Brugger --- drivers/watchdog/mtk_wdt.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c index d6a6393..aef0c2d 100644

[v3,2/5] arm64: dts: mt8183: update watchdog device node

2020-07-30 Thread Crystal Guo
update watchdog device node for MT8183 Signed-off-by: Crystal Guo --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index 1e03c84..f8d8357 100644

[v3,4/5] dt-binding: mt8192: add toprgu reset-controller head file

2020-07-30 Thread Crystal Guo
add toprgu reset-controller head file for MT8192 platform Signed-off-by: Crystal Guo Reviewed-by: Matthias Brugger --- .../dt-bindings/reset-controller/mt8192-resets.h | 30 ++ 1 file changed, 30 insertions(+) create mode 100644 include/dt-bindings/reset-controller

[v3,1/5] dt-binding: mediatek: watchdog: fix the description of compatible

2020-07-30 Thread Crystal Guo
Besides watchdog, mt2712 and nt8183 also provide sub-system software reset features. But mt6589 not support this feature Signed-off-by: Crystal Guo --- Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation

Re: [PATCH 1/2] reset-controller: ti: adjust the reset assert and deassert interface

2020-07-30 Thread Crystal Guo
On Wed, 2020-07-29 at 16:02 +0800, Philipp Zabel wrote: > Hi Crystal, Matthias, > > On Wed, 2020-07-29 at 09:48 +0200, Matthias Brugger wrote: > > > > On 29/07/2020 09:39, Crystal Guo wrote: > > > Add ti_syscon_reset() to integrate assert and deassert together,

Re: [v2,1/3] dt-binding: mediatek: mt8192: update mtk-wdt document

2020-07-29 Thread Crystal Guo
On Wed, 2020-07-29 at 18:18 +0800, Matthias Brugger wrote: > > On 29/07/2020 12:02, Crystal Guo wrote: > > update mtk-wdt document for MT8192 platform > > > should be two patches. one fixing the compatibles and second adding new board. > > >

[v2,1/3] dt-binding: mediatek: mt8192: update mtk-wdt document

2020-07-29 Thread Crystal Guo
update mtk-wdt document for MT8192 platform Signed-off-by: Crystal Guo --- Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt b/Documentation/devicetree/bindings

[v2,3/3] watchdog: mt8192: add wdt support

2020-07-29 Thread Crystal Guo
add driver setting to support mt8192 wdt Signed-off-by: Crystal Guo --- drivers/watchdog/mtk_wdt.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c index d6a6393..aef0c2d 100644 --- a/drivers/watchdog/mtk_wdt.c +++ b/drivers

[v2,0/3] add watchdog support for mt8192

2020-07-29 Thread Crystal Guo
v1 changes: https://patchwork.kernel.org/patch/11680495/ https://patchwork.kernel.org/patch/11680497/ Crystal Guo (3): dt-binding: mediatek: mt8192: update mtk-wdt document dt-binding: mt8192: add toprgu reset-controller head file watchdog: mt8192: add wdt support .../devicetree/bindings

[v2,2/3] dt-binding: mt8192: add toprgu reset-controller head file

2020-07-29 Thread Crystal Guo
add toprgu reset-controller head file for MT8192 platform Signed-off-by: Crystal Guo --- .../dt-bindings/reset-controller/mt8192-resets.h | 30 ++ 1 file changed, 30 insertions(+) create mode 100644 include/dt-bindings/reset-controller/mt8192-resets.h diff --git

Re: [v2,2/3] dt-bindings: watchdog: add a new head file for toprgu reset-controllers

2020-07-29 Thread Crystal Guo
On Wed, 2020-07-29 at 16:15 +0800, Matthias Brugger wrote: > > On 29/07/2020 10:11, Crystal Guo wrote: > > On Wed, 2020-07-29 at 15:42 +0800, Matthias Brugger wrote: > >> Hi Crystal, > >> > >> On 29/07/2020 08:30, Crystal Guo wrote: > >&g

Re: [PATCH 2/2] arm64: dts: mt8192: add infracfg_rst node

2020-07-29 Thread Crystal Guo
On Wed, 2020-07-29 at 15:45 +0800, Matthias Brugger wrote: > > On 29/07/2020 09:39, Crystal Guo wrote: > > add infracfg_rst node which is for MT8192 platform > > > > Signed-off-by: Crystal Guo > > --- > > arch/arm64/boot/dts/mediatek/mt8192.dtsi | 1

Re: [v2,2/3] dt-bindings: watchdog: add a new head file for toprgu reset-controllers

2020-07-29 Thread Crystal Guo
On Wed, 2020-07-29 at 15:42 +0800, Matthias Brugger wrote: > Hi Crystal, > > On 29/07/2020 08:30, Crystal Guo wrote: > > merge all the reset numbers in one head file. > > > > Signed-off-by: Crystal Guo > > --- > > include/dt-bindings/reset-controller/

[PATCH 0/2] adjust the reset assert and deassert interface

2020-07-29 Thread Crystal Guo
1. adjust the reset assert and deassert interface to make it more compatible. 2. add infracfg_rst device node. Crystal Guo (2): reset-controller: ti: adjust the reset assert and deassert interface arm64: dts: mt8192: add infracfg_rst node arch/arm64/boot/dts/mediatek/mt8192.dtsi | 10

[PATCH 1/2] reset-controller: ti: adjust the reset assert and deassert interface

2020-07-29 Thread Crystal Guo
is 1, the clear bit change to 1 together. It will truly clear bit to 0 by write 1 to the clear bit Signed-off-by: Crystal Guo --- drivers/reset/reset-ti-syscon.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/reset/reset-ti-syscon.c b/drivers/reset

[PATCH 2/2] arm64: dts: mt8192: add infracfg_rst node

2020-07-29 Thread Crystal Guo
add infracfg_rst node which is for MT8192 platform Signed-off-by: Crystal Guo --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index

[v2,2/3] dt-bindings: watchdog: add a new head file for toprgu reset-controllers

2020-07-29 Thread Crystal Guo
merge all the reset numbers in one head file. Signed-off-by: Crystal Guo --- include/dt-bindings/reset-controller/mtk-resets.h | 13 + 1 file changed, 13 insertions(+) create mode 100644 include/dt-bindings/reset-controller/mtk-resets.h diff --git a/include/dt-bindings/reset

[v2,1/3] dt-bindings: watchdog: modify description for mt2712 and mt8183

2020-07-29 Thread Crystal Guo
Besides watchdog, mt2712 and mt8183 also provide sub-system software reset features. But mt6589 not support this feature. Signed-off-by: Crystal Guo --- Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation

[v3,3/3] watchdog: mtk_wdt: merge all the reset numbers in one head file

2020-07-29 Thread Crystal Guo
mt8xxx-resets.h actually just used to define TOPRGU_SW_RST_NUM. Instead of resubmit a new mt8xxx-reset.h for a new IC, merge all the reset numbers in one head file. Signed-off-by: Crystal Guo --- drivers/watchdog/mtk_wdt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[v2,0/3] mtk_wdt: merge all the reset numbers in one head file

2020-07-29 Thread Crystal Guo
://patchwork.kernel.org/patch/11688923/ Crystal Guo (3): dt-bindings: watchdog: modify description for mt2712 and mt8183 dt-bindings: watchdog: add a new head file for toprgu reset-controllers watchdog: mtk_wdt: merge all the reset numbers in one head file Documentation/devicetree/bindings/watchdog/mtk

[PATCH 1/3] watchdog: mtk_wdt: remove mt8xxx-resets.h

2020-07-28 Thread Crystal Guo
mt8xxx-resets.h actually just used to define TOPRGU_SW_RST_NUM. Instead of resubmit the mt8xxx-reset.h for a new IC, get the number of reset bits from dtsi is more easier to maintain. Signed-off-by: Crystal Guo --- drivers/watchdog/mtk_wdt.c | 26 +- 1 file changed, 5

[PATCH 2/3] dt-bindings: watchdog: Add rst-num property

2020-07-28 Thread Crystal Guo
Add rst-num property and update example Signed-off-by: Crystal Guo --- Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt b/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt

[PATCH 3/3] arm64: dts: mt8183: Add rst-num property

2020-07-28 Thread Crystal Guo
Add rst-num property in watchdog node Signed-off-by: Crystal Guo --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index 7b781eb..decf156 100644 --- a/arch/arm64

Re: [PATCH 3/4] watchdog: mt8192: add wdt support

2020-07-24 Thread Crystal Guo
On Fri, 2020-07-24 at 06:00 +0800, Matthias Brugger wrote: > > On 23/07/2020 11:07, Seiya Wang wrote: > > From: Crystal Guo > > > > add driver setting to support mt8192 wdt > > > > Signed-off-by: Crystal Guo > > --- > > drivers/watchdog/mtk_wd

Re: [PATCH 4/4] dt-binding: mediatek: mt8192: update mtk-wdt document

2020-07-24 Thread Crystal Guo
On Fri, 2020-07-24 at 06:02 +0800, Matthias Brugger wrote: > > On 23/07/2020 23:29, Rob Herring wrote: > > On Thu, Jul 23, 2020 at 05:07:31PM +0800, Seiya Wang wrote: > >> From: Crystal Guo > >> > >> update mtk-wdt document for MT8192 platfo

GOOD NEWS FOR YOU MY FRIEND AFTER EVERYTHING GOD ANSWERED ME!

2018-11-14 Thread crystal
Hello my long time friend, how are you? I understand you may not Know me again, but I contacted you previously about a business transaction, don't know if you will remember. Actually you agreed to help me then but later opted out. Well I was able to successfully transfer the money to another

GOOD NEWS FOR YOU MY FRIEND AFTER EVERYTHING GOD ANSWERED ME!

2018-11-14 Thread crystal
Hello my long time friend, how are you? I understand you may not Know me again, but I contacted you previously about a business transaction, don't know if you will remember. Actually you agreed to help me then but later opted out. Well I was able to successfully transfer the money to another