From patchwork Fri Nov 12 22:46:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12692457 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 E8EA3C433EF for ; Fri, 12 Nov 2021 22:50:50 +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 B79C660F4F for ; Fri, 12 Nov 2021 22:50:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B79C660F4F 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=1DZHO4qpFSExsj5pTghHZMTPkiS2eKQVw+7n6U9Y1Zw=; b=WnsOrugC2IvktE 8DAqtG7g5QXMysgEIj7ftPI+/eQkQT9zdY5gsfuNoRM1Sy244/xcxtPIiBRrXOiOKk7qBEmEn3mPd 6izJ+G3JL2GlAPpHI1nWi/0UgYXHc4KH8/b6q/sVuwP8lDn6DHc0rKiJl8WfXkH2joiA/y4h/4kmz S/XVJJOV9UYN/Ysi3b/RZtwBdg5NeNugkTeHz/momwZyYJy46d4mU6VpGhqNGqcapoBRvE0p04m3z eDpDMBlQHtvnyjwULGHdYn3bMPcV8hCMmWOPWoYeNP2pUu0q4Q8tYG4yqVpw0QxI0bh3pQG22gA9g b+gMLn4GRQQiY7E38+fg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mlfMD-00BouB-74; Fri, 12 Nov 2021 22:49:17 +0000 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mlfJg-00Bnzw-LK for linux-arm-kernel@lists.infradead.org; Fri, 12 Nov 2021 22:46:42 +0000 Received: by mail-pf1-x42f.google.com with SMTP id x131so9636206pfc.12 for ; Fri, 12 Nov 2021 14:46:40 -0800 (PST) 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=jp3KiRr2rMJ3YUGceGV4+xrMQDuVuOjeFd+9teN2X8w=; b=bpYsJjP3Rq+4dEb++BhxaMclap2vlIMSw3XRbOg4nxOJkri6IdLEtM5c8hSD/ooXtc +m3N2enFugPUCgMrBY6kL0hml8Xz7vMmzeBADOX3t6/RXUApc/HTRhs5BwrHzJcMgdpq cuMszcVr/ae0yskDgk6DCIN+vy33Mi3XvDGaOJ7FObBK8yDha9/dZ3DoRjir91pOzHh2 71R/BAe9/KXmIMviekJq1PUy0MRmSJ0C23kY0gISFBs2cxvpZodqByPSuZeIkk+Y+vta Jgo6ACtOodWCu77e+0B/wA1UC24rzs4u0x2v8GyWOljYfZlSlHmFarzNVjLm8nQIG0Td //Ng== 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=jp3KiRr2rMJ3YUGceGV4+xrMQDuVuOjeFd+9teN2X8w=; b=z1RoL9kqaAJaT/0pXaZ6a//t3HbVUfwHHjM3sMyHK0un+RtkAeMuz3StD+dnuhVVMD ZKuyCEUDz3SaIWYl0q4JKJvuBuGJ1kSB4ATgr6QlFLEKkVFta4A/oWafRjLvlY3tN7gX zIAexcvl3PigLXQujRwZBkpxfFZsj2dt6nQqcopePt0g6Qc0bmZyTnX8ljYToAFrj/N1 Oe6bxb4TGO/TjRXBeKTXtWxEQtMr0WLtXdyjXG+QptdPigBuTzVzuRgVSisZ/paxCQpf nY2ws8cflnzGWgSa4tslgmoL1SZHjpBgPx/Ui/Rh7vz8Ri0CBTTuEDHV3tMi0DG0mH0U 0xZg== X-Gm-Message-State: AOAM533/GhxoRt+u6SGbcIFsFFPAnqM3osAK5npGr7oeQJt5nq9fMHsW rdbBdcFfF5lUJOno6r4wMto= X-Google-Smtp-Source: ABdhPJxq2StxGms/1eikYZoj9oC+yelr2K+M2kAzjS9qqKocgPVOpvOw68FwGfGbyCydI1zFHB7Btw== X-Received: by 2002:a05:6a00:1584:b0:49f:e5dd:f904 with SMTP id u4-20020a056a00158400b0049fe5ddf904mr16905170pfk.55.1636757199734; Fri, 12 Nov 2021 14:46:39 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id k14sm5647004pga.65.2021.11.12.14.46.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Nov 2021 14:46:39 -0800 (PST) From: Florian Fainelli To: linux-kernel@vger.kernel.org Cc: 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 v5 0/7] Removal of bcm63xx-wdt Date: Fri, 12 Nov 2021 14:46:29 -0800 Message-Id: <20211112224636.395101-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-20211112_144640_759550_DF1FD2DC X-CRM114-Status: GOOD ( 14.01 ) 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 his 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 v5: - removed unnecessary "bcm7038-wdt" platform devtype - added Rob's Reviewed-by tags to the 2 binding patches Changes in v4: - fixed binding patch (Rob, Guenter) - updated Kconfig description title to mention BCM63xx Changes in v3: - added Guenter's and Thomas' tags to patch 6 - added missing initialization of id_table - use Rafal's latest binding patch 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 | 43 +++ arch/mips/bcm63xx/dev-wdt.c | 8 + drivers/watchdog/Kconfig | 17 +- drivers/watchdog/Makefile | 1 - drivers/watchdog/bcm63xx_wdt.c | 317 ------------------ drivers/watchdog/bcm7038_wdt.c | 15 +- include/linux/platform_data/bcm7038_wdt.h | 8 + 8 files changed, 77 insertions(+), 351 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