From patchwork Fri Oct 29 18:34:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12593523 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 73708C433F5 for ; Fri, 29 Oct 2021 19:42: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 3322060F58 for ; Fri, 29 Oct 2021 19:42:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3322060F58 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=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=iFOTLgAq6F0k6KasrJc9Izy9QTjE7zAKjHMApv4RhVI=; b=FcafyYlVaqcKQo kISjJuERdURcVjJl8q/a65wgwIJBFEwMbwrjB5SYLwVLSSv4dO8neO2IqwCCYBmNFNq1JQiu/sxJn LqfybhegL/G9KYnJWZGV9dFZjVFczIxE6Fu26YQKT8N9qpBBipH//K0/Nd1z5udNNDvHhHatCY9Tv 23w/Ueb8LiaSsVPMVW6vfx6wy7kXscVG7Y+4Ui81m2LSoVHUIz8WuUUUKhLL8ooFik2FxLPIiTB2B L45qbs9PUYKUPVGRD6WK+qXl+BKlVxiDSc5RCRgrZ1BRJvJjjW1f6RBrBKUYpFvjTNLB8SHwXA9mc 2lgGMr/qcK757Y/QuY3g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mgXjq-00C2Lv-Rg; Fri, 29 Oct 2021 19:40:32 +0000 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mgWi2-00BntI-Nk for linux-arm-kernel@lists.infradead.org; Fri, 29 Oct 2021 18:34:36 +0000 Received: by mail-pg1-x531.google.com with SMTP id t7so10665243pgl.9 for ; Fri, 29 Oct 2021 11:34:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tJtWsMfTuWNkqI2KGHKeq26M8Pj/p0fEp+4EA8AivqU=; b=PmtXvXUrkviPErP11aIP33MQVCpqkhT+eCHReaUp9R0QxL6WNqOIs435gjjQu2JNbb AcVgykGbDC1ctyVi86WEbyDrNlSPzhlX5b5Ah7DAEUQOJQyrIhDBKQl4CQdHV52PmLZs MsJuPJteWYM9Vkoo+Rt0NzBx1h7Oafavs8WbedW8FulUJ/WDfe8RBq/ZqYU7v37dY7w6 YOg9kG4lB4WEO3+x4HBf6oRYrmxPsMmecQodhNXdBCJF+NVWuEnDK7bBOwxrXCXq2pAX 7o9gPYwNZdLGIuozFLohZSIWJCBEloTioJIONJ+hgY4e11RjlbIi5uyOZ4YN3K4Z1MhU Dv3A== 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=tJtWsMfTuWNkqI2KGHKeq26M8Pj/p0fEp+4EA8AivqU=; b=U0r8wU038XT87DYyy2sAzPKi+GgAi/NeCKfmALZhNJpsHDTy9dDmmY65CzOJzI76Vd H0jYXUFt9Lx73UakZmf0e73AXx3uGxfp7bQsf1yvp3VUyCMAzvjwkTiIdK3hVAt56MIQ +hBtRoa+TFGQ7oGl0t8/0vL29IZDc4gQKh9S+CdMc5tOFx1acBlH+2sHOL//7dDmN6Mc MVGOM/sL5hgHWf8lDIeFfjttRLvBR7+egtVXiZwRuxWGwTYnZoWpxcfzGZHHEeRRq64x urGSpTUCes2AgZzTUNFV9srP0KH4BVpzw2X5hx5dFr9shaaVZ9BK9jzClasIatBVJOSK kxUg== X-Gm-Message-State: AOAM530H8yuE5dAwceH11u2nQQnchcGtESr6U7kY9gaD8s7OVPbwoa6C oeWKLPVKpWjTaqGzkUOVAO0= X-Google-Smtp-Source: ABdhPJyA63CGQ+6Rq6cYF2fAjjzecxO/kapg7cC6XQXLjssTWVAfisDBgUfC9gbficAi34Z1a7NfhQ== X-Received: by 2002:a63:2aca:: with SMTP id q193mr9467525pgq.211.1635532473912; Fri, 29 Oct 2021 11:34:33 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id j15sm7730868pfh.35.2021.10.29.11.34.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Oct 2021 11:34:33 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Cc: rafal@milecki.pl, Florian Fainelli , Wim Van Sebroeck , Guenter Roeck , Rob Herring , Thomas Bogendoerfer , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM BCM63XX ARM ARCHITECTURE), Justin Chen , linux-watchdog@vger.kernel.org (open list:WATCHDOG DEVICE DRIVERS), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-mips@vger.kernel.org (open list:MIPS), linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM BCM63XX ARM ARCHITECTURE) Subject: [PATCH v2 0/7] Removal of bcm63xx-wdt Date: Fri, 29 Oct 2021 11:34:23 -0700 Message-Id: <20211029183430.4086765-1-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211029_113434_820826_6AF7DE69 X-CRM114-Status: GOOD ( 13.12 ) 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 patch series prepares the bcm7038_wdt driver to support its bcm63xx counter part, updates the MIPS BCM63xx platform code to provide the necessary information about the "periph" clock, and finally proceeds with removing the bcm63xx_wdt altogether. This was only compiled tested as I did not have a readily available BCM63xx system to test with. This should also help with adding support for BCM4908 which Rafal is working on. Changes in v2: - added Guenter's Reviewed-by where given - update binding patch to pass make dt_bindings_check (Rob) Florian Fainelli (6): dt-bindings: watchdog: Add BCM6345 compatible to BCM7038 binding watchdog: bcm7038_wdt: Support platform data configuration watchdog: Allow building BCM7038_WDT for BCM63XX watchdog: bcm7038_wdt: Add platform device id for bcm63xx-wdt MIPS: BCM63XX: Provide platform data to watchdog device watchdog: Remove BCM63XX_WDT Rafał Miłecki (1): dt-bindings: watchdog: convert Broadcom's WDT to the json-schema .../bindings/watchdog/brcm,bcm7038-wdt.txt | 19 -- .../bindings/watchdog/brcm,bcm7038-wdt.yaml | 41 +++ arch/mips/bcm63xx/dev-wdt.c | 8 + drivers/watchdog/Kconfig | 15 +- drivers/watchdog/Makefile | 1 - drivers/watchdog/bcm63xx_wdt.c | 315 ------------------ drivers/watchdog/bcm7038_wdt.c | 15 +- include/linux/platform_data/bcm7038_wdt.h | 8 + 8 files changed, 74 insertions(+), 348 deletions(-) delete mode 100644 Documentation/devicetree/bindings/watchdog/brcm,bcm7038-wdt.txt create mode 100644 Documentation/devicetree/bindings/watchdog/brcm,bcm7038-wdt.yaml delete mode 100644 drivers/watchdog/bcm63xx_wdt.c create mode 100644 include/linux/platform_data/bcm7038_wdt.h