From patchwork Sun Oct 31 12:22:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 12595039 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77AA3C433F5 for ; Sun, 31 Oct 2021 12:22:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5D1ED60F4A for ; Sun, 31 Oct 2021 12:22:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231145AbhJaMYx (ORCPT ); Sun, 31 Oct 2021 08:24:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231587AbhJaMYw (ORCPT ); Sun, 31 Oct 2021 08:24:52 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7987C061570 for ; Sun, 31 Oct 2021 05:22:20 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id z20so55284737edc.13 for ; Sun, 31 Oct 2021 05:22:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wCmuBtdBHEOsF4gMc9HIeyrI+8g66ej5vxCdfA3fO7I=; b=SP5RJKf+OMQg4uGJtSXphTfNDMepoNwYUOG3r/bEF0u5atygscCLUNs+J70VsxspkH Q/o0ubkY4r4f8SuThvU0MnyXpFkT0FR1A/AKdoH+/8ptu+8xRRr+Fyrj5l3oO/9N7Y9x JoY8Y+1XZ9rC6S+vnn331MAKi8nDjwFHmviLPtmM+oGQN1ZCEm/2uwlPHeMzcufS7Typ Ldveds0RMPisAtFqyqTX+G71F8dJewuYqhLddiLFZ3wPjkZnm8YH79D89vhksdtalcuR 0PB381toCzWxK9wUtdWLbizlX64TW3u5vdGLBmrS86rQ1Ri0TjZ9FJnGOwPtNP8WVCG4 AX3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wCmuBtdBHEOsF4gMc9HIeyrI+8g66ej5vxCdfA3fO7I=; b=yJ81tQeSiFaxykf5BcH8kIWeFwcsJpRnjkSRAH6EgbRaaxwBsXd/ON3jewYwLhepSn vEv5HQZW6ck82rQr6uXTJenCh1mHs7Fh3UArIB1enbXj2vD8MQ87Iim2apd0voDc4zuS mSP+l/nAbTodhxOb20xKs55bi33OZcMAbPFv0E7Y+xTY+VHakkIQFVYo3QZ5AuhiOWix +ACZPpBj5mX+13wlqhQp4mj6iZzNQBK4ucMi3CssVnz/awEdapfVkJSoyozpBpMV0mtO CF29PTybmoUeE8JtfmgmgTa4RXN9WRjkuQoHqsv0q1UTPTwVL8qR4K/A3yZaWYiBgc4k DnZQ== X-Gm-Message-State: AOAM532ib3HbVd5PPioPByPoRG+eNYPIcCZcknhALXox9Yk3j8eZzoLc yFS0P7suXfHmyHyLTb1++20fig== X-Google-Smtp-Source: ABdhPJxIJ7qWwwsgZnePYZJnYXfAxwtfW8yYNdwxodBhtQlyhoR+3Lacghw3eTs3YnHc09xF1yOVmg== X-Received: by 2002:a05:6402:485:: with SMTP id k5mr11320794edv.218.1635682938095; Sun, 31 Oct 2021 05:22:18 -0700 (PDT) Received: from localhost ([31.134.121.151]) by smtp.gmail.com with ESMTPSA id cr18sm5596186ejc.25.2021.10.31.05.22.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Oct 2021 05:22:17 -0700 (PDT) From: Sam Protsenko To: Wim Van Sebroeck , Guenter Roeck , Rob Herring , Krzysztof Kozlowski Cc: linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH v2 00/12] watchdog: s3c2410: Add Exynos850 support Date: Sun, 31 Oct 2021 14:22:04 +0200 Message-Id: <20211031122216.30212-1-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org Exynos850 WDT IP-core differs a bit from existing platforms: - Another set of PMU registers - Separate WDT instance for each CPU cluster, having different PMU registers/bits - Source clock is different from PCLK Implement all missing features above and enable Exynos850 WDT support. While at it, do a bit of cleaning up. Changes in v2: - Added patch to fail probe if no valid timeout was found, as suggested by Guenter Roeck (03/12) - Extracted code for separating disable/mask functions into separate patch (06/12) - Added patch for inverting mask register value (07/12) - Extracted PMU cleanup code to separate patch, to ease the review and porting (09/12) - Added patch for removing not needed 'err' label in probe function (11/12) - Addressed all outstanding review comments on mailing list Sam Protsenko (12): dt-bindings: watchdog: Require samsung,syscon-phandle for Exynos7 dt-bindings: watchdog: Document Exynos850 watchdog bindings watchdog: s3c2410: Fail probe if can't find valid timeout watchdog: s3c2410: Let kernel kick watchdog watchdog: s3c2410: Make reset disable register optional watchdog: s3c2410: Extract disable and mask code into separate functions watchdog: s3c2410: Implement a way to invert mask reg value watchdog: s3c2410: Add support for WDT counter enable register watchdog: s3c2410: Cleanup PMU related code watchdog: s3c2410: Support separate source clock watchdog: s3c2410: Remove superfluous err label watchdog: s3c2410: Add Exynos850 support .../bindings/watchdog/samsung-wdt.yaml | 47 ++- drivers/watchdog/s3c2410_wdt.c | 289 +++++++++++++----- 2 files changed, 254 insertions(+), 82 deletions(-)