Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2048342ybp; Sat, 12 Oct 2019 03:08:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqz8Hi0sBBgYTaAnHuhQg/VCBvDtfLKgwVcCayXHwW+6otBriFhOQI4Wuze0e1mQ/OzN8cT0 X-Received: by 2002:a05:6402:3046:: with SMTP id bu6mr18079215edb.276.1570874915237; Sat, 12 Oct 2019 03:08:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570874915; cv=none; d=google.com; s=arc-20160816; b=F54fcUaDTao1s5xncqw90IgiqqLi0IkImz/rmUF2Vv5euxSNkik/fkw5lAlx9K4khE 9QsPZLw+iOaug8B5MbzYgmemsHIZQD7KY2Zt0uqmc+bcFSqWLab5T4o3tTvS/i5Pe3AM z5HhfE95Gcn29JZbDc6HSaNFnVIjcY40uhBkK93bahQII6P+WpQ0JvZ7CaPycvss6vxv nLi+Q+oBHZIFSTfusNgC0Vw1oIp+LMz+ntUqwVvHTEKSOW1j96L/vHAxck08LJtXrRnK OQa/tyGs/1aISW3y8KXG/uPrVUlyPX+3y4xYkDqKzF/x/JHKOQWNymM0/RdnA2GnSlzI u34g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=0YANDnsOMB62cLj1MvjlAErQbm/Rd4TTAoSCepOlLr4=; b=qsJNM3jWUpFllN+CWIoDHGZPt1JbtcLs5g9g+3hNkz7BtjFfNnr1qq+apHsADp+Uod igUjmTvHx4rl7zTyoZeOG/t3Rxi1XolubZhv4SJRU4MP7c+XUywqdqbUkrf4wt5J6QQr BS2czfRm3lfPY9ZcAVO8UdXGbQd5SHC654QCMoHny9vvKMMEmyZ+zQMoYcVuzggpdzj6 VmgjGCzXlGYDqqLKdHE81B/1b5+ZaFh5iUkw6LWoT8od3wzEx0KQK6AMEyuyd1MV+2y1 CIw1nicu69TY0g6GSBMgFswUmzsM3ymwgYmIeMed/3yahk9XKSxXLC48yZu/5fSDJAAv 6UsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ck7si7128528ejb.250.2019.10.12.03.08.11; Sat, 12 Oct 2019 03:08:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728855AbfJLKF0 (ORCPT + 99 others); Sat, 12 Oct 2019 06:05:26 -0400 Received: from mail-sz.amlogic.com ([211.162.65.117]:39661 "EHLO mail-sz.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727083AbfJLKF0 (ORCPT ); Sat, 12 Oct 2019 06:05:26 -0400 Received: from droid12-sz.software.amlogic (10.28.8.22) by mail-sz.amlogic.com (10.28.11.5) with Microsoft SMTP Server id 15.1.1591.10; Sat, 12 Oct 2019 18:05:30 +0800 From: Xingyu Chen To: Wim Van Sebroeck , Guenter Roeck , Kevin Hilman , Neil Armstrong CC: Xingyu Chen , Rob Herring , Jerome Brunet , Qianggui Song , Jianxin Pan , Jian Hu , , , , Subject: [PATCH 0/4] add meson secure watchdog driver Date: Sat, 12 Oct 2019 18:05:17 +0800 Message-ID: <1570874721-36077-1-git-send-email-xingyu.chen@amlogic.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.28.8.22] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The watchdog controller on the Meson-A/C series SoCs is moved to secure world, We have to call SMC instruction to trap the ATF for watchdog operation. These operations are different from previous SoCs, so we introduce a new watchdog driver to support this kind of SoCs. Xingyu Chen (4): firmware: meson_sm: add new SMC ID support for accessing secure watchdog dt-bindings: watchdog: add new binding for meson secure watchdog watchdog: add meson secure watchdog driver arm64: dts: a1: add secure watchdog controller .../bindings/watchdog/amlogic,meson-sec-wdt.yaml | 34 ++++ arch/arm64/boot/dts/amlogic/meson-a1.dtsi | 6 + drivers/firmware/meson/meson_sm.c | 1 + drivers/watchdog/Kconfig | 16 ++ drivers/watchdog/Makefile | 1 + drivers/watchdog/meson_sec_wdt.c | 205 +++++++++++++++++++++ include/linux/firmware/meson/meson_sm.h | 1 + 7 files changed, 264 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/amlogic,meson-sec-wdt.yaml create mode 100644 drivers/watchdog/meson_sec_wdt.c -- 2.7.4