From patchwork Fri Jun 11 20:07:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 12316573 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 524BBC48BE0 for ; Fri, 11 Jun 2021 20:55:31 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 13D5C613C6 for ; Fri, 11 Jun 2021 20:55:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 13D5C613C6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=S9pdxw/QbZqlofGCpEvUtUBz6DdbgeQzYfh4ZdTrlXQ=; b=AixO2tTj+5g7nv bgpaV8w94flzKbuyL0Zyw67a6ZjRVuWNcnP1rJjAzxy2QZIBH/37ZaIwQAQx41bMEAEolVCPeyJ7C 9Hs7FeOcrWbStp3x1jzRWSONf5HESex2LtzoNDdixqXbHY413Hj6ln372wpM3xiVTy488GA8S0mWh xrPCDxtYGiHcVFBlOFnG2FsaxUgaimApGFzLyDwQTNUK5ecSLFXIpxiO82hk5tMMwk0hhSy3kYLor Q5FnnU1jLb9yIhGJ1xeEcQvvoZn8xSvMWecjeELO3gITbZkf9riWo7N4gs3yBHDTtcexzw+si8nUE euriMaaFWfPoc3FVF63A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lro9e-00734O-Ib; Fri, 11 Jun 2021 20:53:27 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lrnRs-006pHI-Bm for linux-arm-kernel@lists.infradead.org; Fri, 11 Jun 2021 20:08:13 +0000 Received: by mail-wm1-x333.google.com with SMTP id 3-20020a05600c0243b029019f2f9b2b8aso9277696wmj.2 for ; Fri, 11 Jun 2021 13:08:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pQvBGQPM+4w1LJKirfQgMfUIzZPFlCZTOGktZwuQaYc=; b=jNJBfNd8zZ3ivpE/UxiHzzZYXgzlr6uaLwqoXf2DRIYslOfPlxFmUjSlqFOxk0LhUo fmNV84jBpmxEMT0wO95CO9jJVJuaPeEMcAw916ICzJT/bUoeni8d7QL08vCKYuweZe4W DNySCVSj5y62WlbDF8x2HawYxiBVWlwKSFt/bjsyLu7U+PeQAKQVG6rCfnI3CqUzn3BE Bz5t7Qw395Nvd+kGJlk09VNRt26+ic4fncGcFUA7EndBGyOS0rmbnKnsRvVwI4UxO+d3 KpAAiMNG0RfXStzNwvFL5YELCC52zDtDQxfKRSUI3icDYjcTQIVnPaGAITwW0iQ+OA3Z oYJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pQvBGQPM+4w1LJKirfQgMfUIzZPFlCZTOGktZwuQaYc=; b=ZggVltg6xU0RrvtPWqA0kIwqUfDWmV829cgInxyQle1U1/0iAHCE2REYkLSFIliNQn TRdGghpJV1wsjIRbLcTGXicGL7FcRpuioV7LZapvsFl/2ZNTegNv9wMIxMv5tGL8z+/p ZajNDLNCXH5iSlplDW4fNhKNd5csbcb7rD4szz/+3dC4AG5Lwx6CYumyXdMbKpOl/waj jfRo7ec3np4va+wbuAUw/hEg0WUu74dNeVXdoWIa182H8zGr/24Hd3Dh6lEipw1m4DR6 bBVT7VcnRIdPasvfuTRzzSOIJUS1xKQf7lf9xKKX6gAcSB9j8f9H7gxU5YHXD4rn7fCJ 8nnA== X-Gm-Message-State: AOAM532/cTyEGk2XWQ8uvMDHGlcfTQOQ1hOHfu4d0fcVeSIR01WGRREu ShX3aS65+2vbsSJfy3j2KZA= X-Google-Smtp-Source: ABdhPJzmmt4gAVNToIzO9KFeAllKOw033ujMqZUMWvszjzkU44Fm2edAqQp9/A0HGoQzRhnzlgL8fA== X-Received: by 2002:a05:600c:251:: with SMTP id 17mr21757584wmj.137.1623442089640; Fri, 11 Jun 2021 13:08:09 -0700 (PDT) Received: from debby (176-141-241-253.abo.bbox.fr. [176.141.241.253]) by smtp.gmail.com with ESMTPSA id l16sm14167072wmj.47.2021.06.11.13.08.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jun 2021 13:08:09 -0700 (PDT) From: Romain Perier To: Wim Van Sebroeck , Guenter Roeck , Rob Herring Cc: Daniel Palmer , Mohammed Billoo , linux-watchdog@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 0/3] Add watchdog for Mstar SoCs Date: Fri, 11 Jun 2021 22:07:58 +0200 Message-Id: <20210611200801.52139-1-romain.perier@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210611_130812_465392_A70F4C27 X-CRM114-Status: GOOD ( 12.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patches series adds a new driver for the watchdog found in the Mstar MSC313e SoCs and newer. It adds a basic watchdog driver, the corresponding devicetree bindings and its documentation. This work has been co-developed with Daniel Palmer. Changes since v3: - Rebased onto v5.13-rc5 - Added Reviewed-by tags Changes since v2: - Renamed the dt-bindings documentation to mstar,msc313e-wdt.yaml - Fixed the subject of the first commit - Dropped unused dt labels Changes since v1: - Dropped "depends OF" from Kconfig (not required) - Dropped unneeded include files - Re-ordered include files - Compute timeout_max dynamically from the probe function to avoid an overflow in _start(). Daniel Palmer (1): watchdog: Add Mstar MSC313e WDT driver Romain Perier (2): dt-bindings: watchdog: Add Mstar MSC313e WDT devicetree bindings documentation ARM: dts: mstar: Add watchdog device_node definition .../bindings/watchdog/mstar,msc313e-wdt.yaml | 40 +++++ MAINTAINERS | 1 + arch/arm/boot/dts/mstar-v7.dtsi | 14 ++ drivers/watchdog/Kconfig | 12 ++ drivers/watchdog/Makefile | 1 + drivers/watchdog/msc313e_wdt.c | 166 ++++++++++++++++++ 6 files changed, 234 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/mstar,msc313e-wdt.yaml create mode 100644 drivers/watchdog/msc313e_wdt.c