From patchwork Sat Jun 5 17:04:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 12301673 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 27612C47082 for ; Sat, 5 Jun 2021 17:06:24 +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 E17BE61416 for ; Sat, 5 Jun 2021 17:06:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E17BE61416 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=eTrur1JiEn9F6Nj0whthwTemppjW7IKOfV5Mp0t6MSA=; b=AZzjCI0pq2aLXJ mbS0WrmlcIwTvTmSI0tzN6lSYvTy6egzK3DdTX9z0qZOxg3QfAOHU/OJOnAEX/NP/0E4oi2msSAuN sW/SxCjnaR9Jvklzorx1j8FZK3vG6O839DwC+bzZVAtlSO36RqeAx4APEpfmEuJi7QGJ01CR+hOEq KjI7zvTtFEIXYQIkkeohm62lhi2vZfzTuSfz/iGQPtckpVFG5E472uuNHcx6om6fypR57RgizYGgT WeaLiDWWPM7/4rnibBf8O+JSgv4jNunNtbgOgMLNmwrp3ciyRnWMQ1C9thbL7HegcfrqhF79yIUqc 9+AfOveVtIlCMBdEcdWQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lpZj9-00Govq-NV; Sat, 05 Jun 2021 17:04:51 +0000 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lpZj5-00GovM-Vb for linux-arm-kernel@lists.infradead.org; Sat, 05 Jun 2021 17:04:49 +0000 Received: by mail-wr1-x429.google.com with SMTP id e11so2242628wrg.3 for ; Sat, 05 Jun 2021 10:04:47 -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=8C6jG6nGggQG+6Slj5dToqq625sbmZefLgTytCBk2Bk=; b=KZ5MStztaijsB0hw63GAR5sXQMzKrhV+a67XWcm7/aTWDcPyoNh63+Yk/1CdJvzOyt 4EYbElhKU40LZ0Fyi3XsRtTfyKR8e5ts3SbMKh9/N/pyvEJzQc2p4cjznIKE6mnqSDea 2jjPMUJUL5XxwXkkNZ4+K+myE4PdZIntPhZDx3Lrg9g9kI7gbdr9eLXyG4kB2JQf8vx9 NxMPkRzLLeLjiN+G5bb1rI0oJGwyepSuVoUgNM8Fp9VZdBd8IxdlC/Rs311WmC8IKJUz 4vInW7mTsQ6VVh9SShJLi0LMugLE6CKYBVttERYZjuzgfB6THPVGzRzRX9SUFYeN2E6r 3yhA== 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=8C6jG6nGggQG+6Slj5dToqq625sbmZefLgTytCBk2Bk=; b=FXiQsR9wqFxaLTFz6vtB2/8gbQpIAy3RxYOXnCX74HBZWs3phYmt/EPn7O/RAMbiZ5 jesPNkOtTmMOKAMm5Mo/dvxfWNdvSXPsggOA90/oO0h4PXM6pQ6QP2o8Eyzw6e8yJizj guRNoXyljQVSPlyMd6v/AwRIek+wr2tRMHJ42Id6bonnqkTHKF4ayX/E9Ra5kcdrDwcl W6MqA/h/8IWai51UkqCiz29dTu3wCHh8oCwEgCO0svryT9mF3/t2ymoKTNLfr8NADg5C udCyS5pCSSIVgeU3wwcc9o5CJ5th0L0ANxyHG7MO+grFhXFDABXrvyox447laIn2vZmN KomA== X-Gm-Message-State: AOAM532yU7mp/OEnJV8sHtlldV72hcb+31PwczowHm0A+M8RAw5vZGp5 E7YKeWGVu1Ce9Iiq7ACgM3o= X-Google-Smtp-Source: ABdhPJw+OJ//psBuKgMQcdNiqdbQ2K12q22AyzVfabVnVqtFzU8y75QZaaJtUh3xU4uMGtQY3pigDA== X-Received: by 2002:adf:f98e:: with SMTP id f14mr9340411wrr.408.1622912686452; Sat, 05 Jun 2021 10:04:46 -0700 (PDT) Received: from debby (176-141-241-253.abo.bbox.fr. [176.141.241.253]) by smtp.gmail.com with ESMTPSA id i2sm8501098wmo.40.2021.06.05.10.04.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Jun 2021 10:04:45 -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 v3 0/3] Add watchdog for Mstar SoCs Date: Sat, 5 Jun 2021 19:04:38 +0200 Message-Id: <20210605170441.33667-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-20210605_100448_056984_2C5EBEC2 X-CRM114-Status: GOOD ( 12.36 ) 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 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