From patchwork Fri Oct 29 18:34:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12593577 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 05419C433EF for ; Fri, 29 Oct 2021 19:50:42 +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 B687760FE3 for ; Fri, 29 Oct 2021 19:50:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B687760FE3 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:References:In-Reply-To: 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: List-Owner; bh=WsoPq7LXaoGhTntZm4QoAaU/DZ02/d4B+mwI/UDRT6s=; b=UMGS2KfBHwGAKq 6VY1YBWx5/KP+IenvvyleYEIBPTzYCLAGAxLuTFNM185U8JLPG1BoyMEdPYgVw1LMNYuSKY4SU5EF jsLgvH3YGu/+3kIhcY66N7LYL3ufRJVy4f6CRn/Y4ZKKIAeMDosr6fMjzlRtzNrzn3SaEWZudSsDS XaFfrsdqlDCSIlSAS39+poTAcBZRIgC3gXLXT6+NaDT/l9NNv025+bcClMva/neXlCL3bqdC2XZYY NJgWHj5NQOhloVef7o/fZOxk3UFaQisXxMJxZWmHdypktCApwSQc+pc8xEShRyFe8hSt4Iv7qRs4+ Lt/+lpSBAQhCpZoTum8w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mgXrd-00C4L4-0u; Fri, 29 Oct 2021 19:48:34 +0000 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mgWiB-00BnwW-7q for linux-arm-kernel@lists.infradead.org; Fri, 29 Oct 2021 18:34:44 +0000 Received: by mail-pj1-x1029.google.com with SMTP id n11-20020a17090a2bcb00b001a1e7a0a6a6so11294919pje.0 for ; Fri, 29 Oct 2021 11:34:42 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=bxPuQkzCjr4bMQ3izqSZWCgKaBxIVRYi/TUmbbXS7uE=; b=ULqODS4st2cEkpjbN+VcS9QFpsj8FVYc302T/VbSyig8qndFTSLDg3B1NIjOLlw7bk BLs6jx2+0GTQoRY9qO6UFzxjCuFfHsb0lxv1CYb0Ytx7Hu4c2HD/Sp1Ml1NGwZCIw5BZ Nsja389kYKaMZ55pr+wacdKmoEFMsKBEKbqhOf8ehuv4Evgg3pDBH8Z7lkRc+jFF3xf0 NT7kQH71vBNnuhrKYtVmUfpA+3gj5Eh2T9GFUCc9GORYnjXyMO2u47fd3mbAgyY4KsUd MynObiB/WIR4yNjsJQiNj7zEW5BLOGDVPhR7f2prQ3jPAOvRFz7ewpVPPb79Fy02KIRV 5Wzw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=bxPuQkzCjr4bMQ3izqSZWCgKaBxIVRYi/TUmbbXS7uE=; b=ZC3SZDCrX0LPSNFTJZjYclbm4gh2R/eX/13J5NS9gkqR8pWTLi3UJGtxwytPH2mIg0 ORcXRbpJiczROvsFg11EPB0hxfKvWd2g/RZ4ZodLU9iXDu7neYAL6Pwas8u1u5JqLmn8 0uO1eeKRtxFrBXZGcZK1LzQhyBU4dq9TOGrbtdFJ85mryanTbS6Wg0ewCWzRpflClgUK b3EblFGmTCJpu4B0Nmp54zeOAH2INQkRCdYxN2rXc3ZD+JGFh3jvovWGr1JL5OpWm521 xetiVz8xAp6Gmn11xparIxdvavxWhOQIS2ictLsxs/tB76mf5/ZET5nY3DVmeF52M51E dYsQ== X-Gm-Message-State: AOAM533TyPqzTJCfmvH7hb09w8QTvZbho2X2vF81O+6g3v7FekKkDTU+ BZ8BcCUvD/VIcO0prv9EPE8= X-Google-Smtp-Source: ABdhPJyhQph7vUTcpErM+npJza8ndayuNekge5Uz2UBOw056O1Ux9P8dVfpW4exJJisGD1X1ZcVP1Q== X-Received: by 2002:a17:903:124a:b0:13f:cb85:1a3a with SMTP id u10-20020a170903124a00b0013fcb851a3amr11140944plh.32.1635532482188; Fri, 29 Oct 2021 11:34:42 -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.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Oct 2021 11:34:41 -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 6/7] MIPS: BCM63XX: Provide platform data to watchdog device Date: Fri, 29 Oct 2021 11:34:29 -0700 Message-Id: <20211029183430.4086765-7-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211029183430.4086765-1-f.fainelli@gmail.com> References: <20211029183430.4086765-1-f.fainelli@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211029_113443_342034_B22FAA46 X-CRM114-Status: GOOD ( 14.46 ) 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 In order to utilize the bcm7038_wdt.c driver which needs to know the clock name to obtain, pass it via platform data using the bcm7038_wdt_platform_data structure. Signed-off-by: Florian Fainelli Reviewed-by: Guenter Roeck --- arch/mips/bcm63xx/dev-wdt.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/mips/bcm63xx/dev-wdt.c b/arch/mips/bcm63xx/dev-wdt.c index 2a2346a99bcb..42130914a3c2 100644 --- a/arch/mips/bcm63xx/dev-wdt.c +++ b/arch/mips/bcm63xx/dev-wdt.c @@ -9,6 +9,7 @@ #include #include #include +#include #include static struct resource wdt_resources[] = { @@ -19,11 +20,18 @@ static struct resource wdt_resources[] = { }, }; +static struct bcm7038_wdt_platform_data bcm63xx_wdt_pdata = { + .clk_name = "periph", +}; + static struct platform_device bcm63xx_wdt_device = { .name = "bcm63xx-wdt", .id = -1, .num_resources = ARRAY_SIZE(wdt_resources), .resource = wdt_resources, + .dev = { + .platform_data = &bcm63xx_wdt_pdata, + }, }; int __init bcm63xx_wdt_register(void)