From patchwork Thu Oct 28 17:23:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12590643 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 23117C433F5 for ; Thu, 28 Oct 2021 17:24:56 +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 E530E60FC0 for ; Thu, 28 Oct 2021 17:24:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E530E60FC0 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=Mgx14Ze4xWO0gSiTJP7odbpKv+D8dTH7NYl/bdtedGI=; b=Dj5niO1Y1/pfPo CprbzGhRy+MntG+1mNKO35zJ959s+fWeFSpDOG4vRz2rcLfeJS0oS5AO8PsdlKv5gyfDEban1YBh6 /IjrDGW4+w/y8J+eEU6xFlWlJpcOz090l5S4IlJUKBFkFv26hJtoVuxYwmusSSgGOGMheNgSENs1i iCS8Yyp4gExJrMrU3guqJd0nXu64WTapx36U2thwyRWqchfY8GgEVCry2FaqvBXnmM0TDquBfw9Rg jNoEt94CQSbu3dDlWdMr4InKwH2nlY2piLPoCk8Uz7w5sqig6Az97o6zVsuXUUdnrwG13B76NLnfi 0lkWuPP7ydZRSPuhThbw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mg97i-008iqQ-Ep; Thu, 28 Oct 2021 17:23:30 +0000 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mg97e-008ioR-0Y for linux-arm-kernel@lists.infradead.org; Thu, 28 Oct 2021 17:23:27 +0000 Received: by mail-pf1-x42a.google.com with SMTP id x66so6586061pfx.13 for ; Thu, 28 Oct 2021 10:23:25 -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=9e1Xo7aw+M7k34WE27Yf8eDHXFg2naV2DoHTGHxoMYY=; b=LhWVSOB+0vWAj7uobQR5mF6TlnjP8kV3Kkv8Oo4cdHxvXdknr8iPLJ0N5JchZ+nGXd Race4CilUmpnrhDXOcCpLuiraFIGczGXyQ3B65NCXNj01QiX2BieDXibQ9wyQNX+IGCp vOS5r9KxeZsgN5fDmBICsChX3Afj40C48NQ8SViqJKcGXvj4n3rxG2I632Zq1aujwiEv yGJtzbDh4PLAsTVb/BAPdMyYdzKA1JanWM8aRXkr2XXGqzd6hF+q34MPux9iAiqZ99ez AidFeknBaY+IFXKBcPaZvodMdybNvLsJ99RQ5uDQBAizQZ18sQ1k1eVfgl7tPo+gK/Oo GG0A== 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=9e1Xo7aw+M7k34WE27Yf8eDHXFg2naV2DoHTGHxoMYY=; b=UAJgxzp17IEs2CDIlm2OmDMKG4hbnsVVCVEdB2QVOSG/Yw+jnllxJD1GULkAbLqdup 4mxdapWQU7b3r2w1v5JLiwe0M8RFNxIBgLvzNWzKp1h/topaoApdEfuvRWlI4bxi7u6L vbG1zhAMIRUasRbdbZSWxJZ3tHGVQI1Whh2Z4XEmxNi9aHTgevkD7JlpuCtX5dnT9CSH Q4Yexa/Y5eeBPIWGZJFjuMT40OR+qVWsubpEIQoVQpaMmJL7VeemL1DBn2sFyVFIn4/4 Tw0E2EodN8WdSKXogF10ysSBo9D/9eIi295Wvoftuq8cactx8YaBOt3Z5LOls7UfkZIx dZyw== X-Gm-Message-State: AOAM5317OPNPbcyumm5c1R3KXJyXTspmhgkJYznp1R1350O8i1vhx+sp ICMiT4uBo43FQDtRm/CfhgfPMqOGpCg= X-Google-Smtp-Source: ABdhPJxEg9u2nOUqi4OQ2NOzZkBvB//2rB+wFl9vcLgMHNf5ufODpkJl47L6ZBhN8oDkY4USMIP//w== X-Received: by 2002:a63:8541:: with SMTP id u62mr1670158pgd.279.1635441805160; Thu, 28 Oct 2021 10:23:25 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id l20sm3222499pgo.67.2021.10.28.10.23.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Oct 2021 10:23:24 -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 0/7] Removal of bcm63xx-wdt Date: Thu, 28 Oct 2021 10:23:15 -0700 Message-Id: <20211028172322.4021440-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-20211028_102326_104513_F632E48E X-CRM114-Status: GOOD ( 12.66 ) 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. 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 | 40 +++ 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, 73 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