linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add a watchdog driver that uses ARM Secure Monitor Calls.
@ 2020-04-21 11:05 Evan Benn
  2020-04-21 11:05 ` [PATCH v2 1/2] dt-bindings: watchdog: Add ARM smc wdt for mt8173 watchdog Evan Benn
                   ` (2 more replies)
  0 siblings, 3 replies; 24+ messages in thread
From: Evan Benn @ 2020-04-21 11:05 UTC (permalink / raw)
  To: LKML
  Cc: xingyu.chen, jwerner, Evan Benn, Anson Huang, Bjorn Andersson,
	Catalin Marinas, David S. Miller, Geert Uytterhoeven,
	Greg Kroah-Hartman, Guenter Roeck, Leonard Crestez, Li Yang,
	Marcin Juszkiewicz, Matthias Brugger, Mauro Carvalho Chehab,
	Olof Johansson, Rob Herring, Rob Herring, Shawn Guo,
	Valentin Schneider, Will Deacon, Wim Van Sebroeck, devicetree,
	linux-arm-kernel, linux-mediatek, linux-watchdog

This is currently supported in firmware deployed on oak, hana and elm mt8173
chromebook devices. The kernel driver is written to be a generic SMC
watchdog driver.

Arm Trusted Firmware upstreaming review:
    https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/3405

Patch to add oak, hana, elm device tree:
    https://lore.kernel.org/linux-arm-kernel/20200110073730.213789-1-hsinyi@chromium.org/
I would like to add the device tree support after the above patch is
accepted.

Changes in v4:
- Add arm,smc-id property
- Get smc-id from of property
- Return a1 instead of a0 in timeleft

Changes in v3:
- Change name back to arm
- Add optional get_timeleft op
- change name to arm_smc_wdt

Changes in v2:
- Change name arm > mt8173
- use watchdog_stop_on_reboot
- use watchdog_stop_on_unregister
- use devm_watchdog_register_device
- remove smcwd_shutdown, smcwd_remove
- change error codes

Evan Benn (1):
  dt-bindings: watchdog: Add ARM smc wdt for mt8173 watchdog

Julius Werner (1):
  watchdog: Add new arm_smc_wdt watchdog driver

 .../bindings/watchdog/arm-smc-wdt.yaml        |  36 ++++
 MAINTAINERS                                   |   7 +
 arch/arm64/configs/defconfig                  |   1 +
 drivers/watchdog/Kconfig                      |  13 ++
 drivers/watchdog/Makefile                     |   1 +
 drivers/watchdog/arm_smc_wdt.c                | 194 ++++++++++++++++++
 6 files changed, 252 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/watchdog/arm-smc-wdt.yaml
 create mode 100644 drivers/watchdog/arm_smc_wdt.c

-- 
2.26.1.301.g55bc3eb7cb9-goog


^ permalink raw reply	[flat|nested] 24+ messages in thread
* [PATCH v2 0/2] Add a watchdog driver that uses ARM Secure Monitor Calls.
@ 2020-04-03  5:28 Evan Benn
  2020-04-03  6:08 ` Evan Benn
       [not found] ` <CAKz_xw0gV+w_gMkLfB4qUBdULLfFoiv1TBWp9_PHy33wP_XWyA@mail.gmail.com>
  0 siblings, 2 replies; 24+ messages in thread
From: Evan Benn @ 2020-04-03  5:28 UTC (permalink / raw)
  To: LKML
  Cc: xingyu.chen, jwerner, Evan Benn, Andy Shevchenko, Anson Huang,
	Bjorn Andersson, Catalin Marinas, David S. Miller,
	Greg Kroah-Hartman, Guenter Roeck, Jonathan Cameron,
	Leonard Crestez, Manivannan Sadhasivam, Marcin Juszkiewicz,
	Mark Rutland, Matthias Brugger, Mauro Carvalho Chehab,
	Olof Johansson, Rob Herring, Rob Herring, Shawn Guo,
	Valentin Schneider, Vinod Koul, Will Deacon, Wim Van Sebroeck,
	devicetree, linux-arm-kernel, linux-mediatek, linux-watchdog

This is currently supported in firmware deployed on oak, hana and elm mt8173
chromebook devices. The kernel driver is written to be a generic SMC
watchdog driver.

Arm Trusted Firmware upstreaming review:
    https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/3405

Patch to add oak, hana, elm device tree:
    https://lore.kernel.org/linux-arm-kernel/20200110073730.213789-1-hsinyi@chromium.org/
I would like to add the device tree support after the above patch is
accepted.

Changes in v3:
- Change name back to arm
- Add optional get_timeleft op
- change name to arm_smc_wdt

Changes in v2:
- Change name arm > mt8173
- use watchdog_stop_on_reboot
- use watchdog_stop_on_unregister
- use devm_watchdog_register_device
- remove smcwd_shutdown, smcwd_remove
- change error codes

Evan Benn (1):
  dt-bindings: watchdog: Add ARM smc wdt for mt8173 watchdog

Julius Werner (1):
  watchdog: Add new arm_smd_wdt watchdog driver

 .../bindings/watchdog/arm-smc-wdt.yaml        |  30 +++
 MAINTAINERS                                   |   7 +
 arch/arm64/configs/defconfig                  |   1 +
 drivers/watchdog/Kconfig                      |  13 ++
 drivers/watchdog/Makefile                     |   1 +
 drivers/watchdog/arm_smc_wdt.c                | 181 ++++++++++++++++++
 6 files changed, 233 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/watchdog/arm-smc-wdt.yaml
 create mode 100644 drivers/watchdog/arm_smc_wdt.c

-- 
2.26.0.292.g33ef6b2f38-goog


^ permalink raw reply	[flat|nested] 24+ messages in thread
* [PATCH v2 0/2] Add a watchdog driver that uses ARM Secure Monitor Calls.
@ 2020-02-21  5:38 Evan Benn
  0 siblings, 0 replies; 24+ messages in thread
From: Evan Benn @ 2020-02-21  5:38 UTC (permalink / raw)
  To: LKML
  Cc: jwerner, Evan Benn, Anson Huang, Catalin Marinas,
	Clément Péron, David S. Miller, Dinh Nguyen,
	Greg Kroah-Hartman, Guenter Roeck, Jonathan Cameron,
	Leonard Crestez, Marcin Juszkiewicz, Mark Rutland,
	Matthias Brugger, Mauro Carvalho Chehab, Olof Johansson,
	Rob Herring, Rob Herring, Shawn Guo, Will Deacon,
	Wim Van Sebroeck, devicetree, linux-arm-kernel, linux-mediatek,
	linux-watchdog

This is currently supported in firmware deployed on oak, hana and elm mt8173
chromebook devices. The kernel driver is written to be a generic SMC
watchdog driver.

Arm Trusted Firmware upstreaming review:
    https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/3405

Patch to add oak, hana, elm device tree:
    https://lore.kernel.org/linux-arm-kernel/20200110073730.213789-1-hsinyi@chromium.org/
I would like to add the device tree support after the above patch is
accepted.

Changes in v2:
- Change name arm > mt8173
- use watchdog_stop_on_reboot
- use watchdog_stop_on_unregister
- use devm_watchdog_register_device
- remove smcwd_shutdown, smcwd_remove
- change error codes

Evan Benn (1):
  dt-bindings: watchdog: Add mt8173,smc-wdt watchdog

Julius Werner (1):
  watchdog: Add new mt8173_smc_wdt watchdog driver

 .../bindings/watchdog/mt8173,smc-wdt.yaml     |  30 ++++
 MAINTAINERS                                   |   7 +
 arch/arm64/configs/defconfig                  |   1 +
 drivers/watchdog/Kconfig                      |  13 ++
 drivers/watchdog/Makefile                     |   1 +
 drivers/watchdog/mt8173_smc_wdt.c             | 160 ++++++++++++++++++
 6 files changed, 212 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/watchdog/mt8173,smc-wdt.yaml
 create mode 100644 drivers/watchdog/mt8173_smc_wdt.c

-- 
2.25.0.265.gbab2e86ba0-goog


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2020-04-22 22:22 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-21 11:05 [PATCH v2 0/2] Add a watchdog driver that uses ARM Secure Monitor Calls Evan Benn
2020-04-21 11:05 ` [PATCH v2 1/2] dt-bindings: watchdog: Add ARM smc wdt for mt8173 watchdog Evan Benn
2020-04-21 11:05 ` [PATCH v2 2/2] watchdog: Add new arm_smc_wdt watchdog driver Evan Benn
2020-04-21 14:34   ` Guenter Roeck
2020-04-21 20:31   ` Julius Werner
2020-04-22  1:39     ` Evan Benn
2020-04-22  6:02       ` Xingyu Chen
2020-04-22 22:22         ` Julius Werner
2020-04-22  3:23     ` Guenter Roeck
2020-04-22  4:02   ` Xingyu Chen
2020-04-21 14:32 ` [PATCH v2 0/2] Add a watchdog driver that uses ARM Secure Monitor Calls Guenter Roeck
2020-04-22  0:40   ` Evan Benn
  -- strict thread matches above, loose matches on Subject: below --
2020-04-03  5:28 Evan Benn
2020-04-03  6:08 ` Evan Benn
     [not found] ` <CAKz_xw0gV+w_gMkLfB4qUBdULLfFoiv1TBWp9_PHy33wP_XWyA@mail.gmail.com>
     [not found]   ` <890948ef-7276-fdae-d270-eb30eff3eab2@amlogic.com>
2020-04-15 11:54     ` Xingyu Chen
2020-04-15 22:29       ` Julius Werner
2020-04-15 23:12         ` Guenter Roeck
2020-04-16  0:46           ` Evan Benn
2020-04-16  0:56             ` Julius Werner
2020-04-16  3:48               ` Florian Fainelli
2020-04-21  1:08                 ` Evan Benn
2020-04-21  2:36                   ` Florian Fainelli
2020-04-16  3:23         ` Xingyu Chen
2020-02-21  5:38 Evan Benn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).