From patchwork Fri Nov 5 15:42:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12604927 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 9C536C433EF for ; Fri, 5 Nov 2021 15:43:55 +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 6FB3861108 for ; Fri, 5 Nov 2021 15:43:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 6FB3861108 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=aFSPL01Fjpp6Lof+PkatxM7YbDsphl8OzFzb7QYjfeg=; b=FGoKzsxf0kYZov EWjCrJAQLLB7984OVhbWGnVAle/GtCj0P5O8nd+b7cjSP2k9bAD1sbMCmhEbDq2m7GtIWBZ7HOVYr IsTXlqpjCCbLNlQCEAebdIwZ1hakUARb82g3lsDLjRYmVGI1b/HXn8J4YlayUn4JR3W0YDaLnu3PN ekRWfFCD82IqOST6txwQqFmvz6heYxUo52H01WYoqIaUBbgi80IaDsqPtJU82jvBai403REUyxNhc DgxwPAHB5H3zgUHEDncqYYFfL2hevyJT96aEN9Qwp/IQLX4Jm+P+07c31mWPX8vwwn+oqlIy6RZJy vo5vWYXoFAzeTlHz+GXA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mj1M9-00BlAE-Ej; Fri, 05 Nov 2021 15:42:17 +0000 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mj1M5-00Bl9K-ON for linux-arm-kernel@lists.infradead.org; Fri, 05 Nov 2021 15:42:15 +0000 Received: by mail-pg1-x52f.google.com with SMTP id q126so4757777pgq.13 for ; Fri, 05 Nov 2021 08:42:13 -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=lXIaObu/Py4YZyLKzOZro9KF/nVIU+g+Q8GM5ida1Og=; b=XNVoRkmMDXWP2ANhka/BFf4FjRXl1SRhdPt1FFrrPKTpXiaCQ1wdOf2LQSf8OQMeSk 90DTYRAfXMYcIJ+RVyFpNoY6IPfN55z9JnXRFU2v/FoOx8SvIH/5EcgzTWnWgDdsaJaG +5XBkdlA1z9EWDR6iJBQfd3i24hGRhxWk2R3kG3VkuSAlH4zWIaEhaE2LL+xvL1VvxA+ lElWvnJpDmw73fGVhwMKeX3TEtSl68zbnM7FKDeGP4TivBDwS5i0+fOmjAW2jimoU0lZ vwSNcnwot6I3N5uiWTtBX4BOqoPpAp8NO0y099/LKcXWwbi6LdOzEVBkMmrUya/0eqLq /7rw== 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=lXIaObu/Py4YZyLKzOZro9KF/nVIU+g+Q8GM5ida1Og=; b=Lnwv4rQDM75mhqjo/xwXfdDAdJtstp25GG7OJRALhT8t4ZW7tRx30mQZ9Vv3u6SyAA Kz9HNraw2xiudIlAZ1EtvD3Zp93IN+KMPjZyONrh5rqfARiu/710sIvs0i0YjLNbJ1h4 mNhJ5QG28GZ7sD3R7Um7ge2/cP7ip0rqg6qZZZDp16iUdwYCeTSqrrcr5k6oULHatvQy sPJA1CJ4OkHZraF8Uxp+GrFojB/AtlXDZlGh6A2U/tWa7H+245JtMSxlAUtf5hhl5noO zO4k+VxHuS4vOYXPTE1MrbsgNUQ/vTJOs80BqcNBejOwRhlmz+QBEXR4VJeDnEf55q35 XuRQ== X-Gm-Message-State: AOAM532IQsxp3BP+ulMPui40tP5lozaERyxs6biZzqXQpadFbtuEyDOX HJ4s6Ht7Q3+1QVxPPW6L2Ho= X-Google-Smtp-Source: ABdhPJykX0UAphaHVjTEhNy4GJmQz5vOgJ6x+INBsZhC+3Q1qOF4lXnHzRifX5Xli1w3v4tUbt6ZGQ== X-Received: by 2002:a05:6a00:150d:b0:47c:1d28:4ef5 with SMTP id q13-20020a056a00150d00b0047c1d284ef5mr59893304pfu.6.1636126932868; Fri, 05 Nov 2021 08:42:12 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id b8sm7547097pfi.103.2021.11.05.08.42.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Nov 2021 08:42:12 -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 v4 0/7] Removal of bcm63xx-wdt Date: Fri, 5 Nov 2021 08:42:01 -0700 Message-Id: <20211105154208.614260-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-20211105_084213_831532_6C21412C X-CRM114-Status: GOOD ( 14.51 ) 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 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 | 42 +++ arch/mips/bcm63xx/dev-wdt.c | 8 + drivers/watchdog/Kconfig | 17 +- 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, 77 insertions(+), 349 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