From patchwork Wed Nov 3 23:13:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12601959 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 8B48CC433F5 for ; Wed, 3 Nov 2021 23:26: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 524396103C for ; Wed, 3 Nov 2021 23:26:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 524396103C 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=fBz4HvuPPw0G0AGQApbPkg2vxdeBjFnBrUcF5ZPXMwk=; b=nD/UtXQZbufqzh twJ7gAYw6zAKFzut/kTKW//vWAu/DbUu5PJ/+Y+66qN/BlMi4ql+iwUTNDcJtKaTXQxzpOPXzIQa6 Kj27btTINKocoBng2J1zQVsSiX2G3NiuXKsT7ZWWw1cQdRaZCqXbXoM/esu/fXU6FAp+t6E2WKuvA 5ykw8HQwLAqFy4IfDOYF40XovJv1liC54D2a8kbUHNIrzgA4Vz2zKxazJJrqwz5ldRy/1KSTZo37Q DQGw8jcOQxGNV2nvYzBi8Qq2nJA+kA/7IzRgyEt8M0FGW7doceL971ZRBZJ0GUkUusDq9lpzs/F5b gfvJWDJHh5kx89oXD0lg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1miPcN-00702d-0G; Wed, 03 Nov 2021 23:24:32 +0000 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1miPSS-006wWd-S2 for linux-arm-kernel@lists.infradead.org; Wed, 03 Nov 2021 23:14:18 +0000 Received: by mail-pl1-x62e.google.com with SMTP id t21so4112118plr.6 for ; Wed, 03 Nov 2021 16:14:16 -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=QgdneeDr90CN8wmrFjpBUWohcdLao8N/cmueq0TcKH0=; b=kYgrCw/itYf1DyUHmC85XVmOgfikR5g1oKY8qljKcZg+DNujGKoOoqOEMYkwB3yALd 6vKftH1RvbZX+XCh4UhuORXmforka7VaKCUTSDRirVLC811z9ZbJE9FfP/LwBV3r5bAz cpVrMwA872imTP+l98f8qKYhFeeG+zzy41+i1B0tM1tzElo3gWUCsi9QgH+Bxxz30BpT Qa6/kif0zMFt4spczV3X/CGogMXUaJrp3F8tZmFqNb7VjPUxHNhdCCZnYqUX6SFzAdPb iRS5qZ/yjh5oZCSEUNp5a2YhYLBrRJkbGC7LjJ7wQm8j+AGZ/q7H3utfdLQRTk5I3G9Z l7Ug== 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=QgdneeDr90CN8wmrFjpBUWohcdLao8N/cmueq0TcKH0=; b=2JnFsbPDbo6lwE0JjDLgJfatlgca1NJCNOU3Vxf0OLNF1sKJrQQMrtzGooVsOTaDQc UHvQwmxFZ6y0nfpQ7UfN01UDGkH/3u3sHByPQLUQ87dnNEpx4pFWbh8/pdnqYOKocvpl OdvrPK6/u0V4nSVXqr3Z/8T48vCTb2fz17y6fk/xO13L8gFERfjiEo5yHUvOf2NMPc5T 0TaQ03JoP/PKu12vysZHWdroYG/yJMWvi/a7U8+EJnHoVvkmXo+e9mawbNM29UkG2uAr ECF782MiUPvB611c4GMzYqxLoTqtvJYpPbkVHZpNbZI8V7CRemDIDyzsDjiqxExg3/iY /lsw== X-Gm-Message-State: AOAM533Tz/7+afsXa0zhIzyfoh4xlZAVY9LG5kT2yptZG+AggySoRSGm pi2OaO0rAG68bZP43Vqu6JM= X-Google-Smtp-Source: ABdhPJwHYnoS/yIRBvYliCSglghkyY+zI/18DkpHnv2zHJPi2vbKb3hpL1gC83a8dgifTucALiNuNw== X-Received: by 2002:a17:90b:128f:: with SMTP id fw15mr17938891pjb.183.1635981256045; Wed, 03 Nov 2021 16:14:16 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id p7sm2613549pgn.52.2021.11.03.16.14.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Nov 2021 16:14:15 -0700 (PDT) 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 v3 0/7] Removal of bcm63xx-wdt Date: Wed, 3 Nov 2021 16:13:20 -0700 Message-Id: <20211103231327.385186-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-20211103_161416_967658_B94009D0 X-CRM114-Status: GOOD ( 14.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 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 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 | 42 +++ 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 | 16 +- include/linux/platform_data/bcm7038_wdt.h | 8 + 8 files changed, 76 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