[v3,2/4] mips: dts: ralink: mt7621: add phandle to system controller node for watchdog
Message ID | 20230210173841.705783-3-sergio.paracuellos@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1085886wrn; Fri, 10 Feb 2023 09:40:32 -0800 (PST) X-Google-Smtp-Source: AK7set+VEAW/eQw7H5zpR3y90KhIw54EVqQENAGcV1IQmTwWxEFI68z6MY0Dn3tHGX+/MpjG1KYg X-Received: by 2002:a17:907:c29a:b0:8aa:c155:9233 with SMTP id tk26-20020a170907c29a00b008aac1559233mr12072033ejc.26.1676050832598; Fri, 10 Feb 2023 09:40:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676050832; cv=none; d=google.com; s=arc-20160816; b=j4ANlMcI36yHzC8uJvpx69BKViZHmH7hHE9aT+71w57FXu0O/WMHIaxNwFh8Xg4G5y qw6psxu/ZHgbXewyMyXpVESzF9QWIedDJzc196hlOva2Ot6FxcNMpbH/4hsOQE8s8t/k GPScGGSHWhHDgFmwLbjFUBVRwQhOLlLadlDbAOCAWkvMTnvo6kIBWhdjDpdBSfYX8PWM USspRJRNtXz7U2p3nIt+UfUt98o5DpbexQrpN/Pbl8ONnqMAaj0LJtzxB7uNi1ZrXgwX XFCyVpI1aGeTbKOLt9AxYDk7/toMHL2zmRR4mpHjGwVUAtmA9gAlQ5pk9DD2eKrF3uXJ BaEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=u2xLyJ53huQXvmhIZNGemIcemfb0LptCrFwxhBre8f0=; b=LWm4lEvpQbagYxoZ7nerzoSpg1zAJxa6yuoBwhWbdnTtOOgIwcLvWQonIXti3Cw/E6 QxTbNlm51cHNcSplCgGFCcJEguY8KU5Cf6Qo5rOy/+5ZVXBUUqtYNYaMrkumjqEWsWlw Rg5c/JY+LcP03w6tFJiIpan2qCqRpORAKQryZJEKFpBAWC1v6sKGElgrgbp+0E4CK7Bw /UAGmiKR8Cms1VtUx+Tthd28pskjUmFVZLCNp8EHAYV6syjuqePuDtwEjswVWMJCyaF2 T+b3UIxWlVvxkohp7dbcM2hhzhhW9+9fHIXnex34vHfIHzfz9zfsucOSYFWPk+I5v2zB OLCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QeXug14Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id um17-20020a170907cb1100b0088c3a87213esi6159338ejc.130.2023.02.10.09.40.09; Fri, 10 Feb 2023 09:40:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QeXug14Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232862AbjBJRiz (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Fri, 10 Feb 2023 12:38:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232040AbjBJRiu (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 10 Feb 2023 12:38:50 -0500 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5380078D69; Fri, 10 Feb 2023 09:38:49 -0800 (PST) Received: by mail-wr1-x429.google.com with SMTP id o18so5808576wrj.3; Fri, 10 Feb 2023 09:38:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=u2xLyJ53huQXvmhIZNGemIcemfb0LptCrFwxhBre8f0=; b=QeXug14ZYhPwh1A1nviyUmCNZR+UPZMEuJoTlsG1KDTelZQOtYWRk4jM0MwlyUyccr i8y7Sc8uDWxsU4I2grHQAoA7l2UEXUwMS6xa4l8hIHl0wshPvoP9vaZaNwOXQYuoQqFa eJAl5PubnAp+T0+lrfSfLRAaWBBjeKR0x2R3h/I+lkVL9SqbHHJex9NhU1z9vICs2ZrQ Gi64XUMraReUY5y7j5k92Fln6HNw0eqDFGMSnVOxRL9UJ+J53h7jOVklgrDpFkoeGRDi H5rkDljfXIHz9CPxIvxVEkTP50Qx3xUAW+Nl4iKv1AARdEMmLVztqdiK4Hm/1gbg0+jo I8Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=u2xLyJ53huQXvmhIZNGemIcemfb0LptCrFwxhBre8f0=; b=w3wR2O7mQ6xvJcD+I8vAdntKB0wI75gSvrR4ld4k22BnwKlxIH6oSafSvE2Z23kUEg p92lYE/t/x9rSZAnESki9ZUXajbDXDCk68jJSi3dCaYBcQPDiCWW2YRoUNGN85j0XSYt /glVpcIVjSQHPI4y1syweXkyVx6olZ0lAvsHiSefaDIyc3Uh4WNqC/fSEcC2QzX+oW+X oE2yHz44XGpUq7BD0GPGmhLTtqQEv14V/gIZC1aGKwdsNN4RqgTuumEyW6qM3ptsGgzw sWzmznNJIYFTYUeJbQHMW0wX+sz2UhpcC+viViXyllMVvPkO2JJ22ZWUn6riSVOMGeoV f4bw== X-Gm-Message-State: AO0yUKUgvTRbi8r8fWjDwzVcCobSuePqDhM2c8Z38u7AxRoNPookRFCh AMcTl4LXkumwio6Q593KzoathbAiAaM= X-Received: by 2002:adf:dc04:0:b0:2c3:ea92:3494 with SMTP id t4-20020adfdc04000000b002c3ea923494mr13961199wri.55.1676050727559; Fri, 10 Feb 2023 09:38:47 -0800 (PST) Received: from localhost.localdomain (23.red-88-10-60.dynamicip.rima-tde.net. [88.10.60.23]) by smtp.gmail.com with ESMTPSA id t2-20020a0560001a4200b002c3ef7e74bdsm4024184wry.73.2023.02.10.09.38.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Feb 2023 09:38:47 -0800 (PST) From: Sergio Paracuellos <sergio.paracuellos@gmail.com> To: linux-watchdog@vger.kernel.org Cc: wim@linux-watchdog.org, linux@roeck-us.net, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, arinc.unal@arinc9.com, tsbogend@alpha.franken.de, p.zabel@pengutronix.de, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org Subject: [PATCH v3 2/4] mips: dts: ralink: mt7621: add phandle to system controller node for watchdog Date: Fri, 10 Feb 2023 18:38:39 +0100 Message-Id: <20230210173841.705783-3-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230210173841.705783-1-sergio.paracuellos@gmail.com> References: <20230210173841.705783-1-sergio.paracuellos@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757466678009899075?= X-GMAIL-MSGID: =?utf-8?q?1757466678009899075?= |
Series |
watchdog: mt7621-wdt: avoid globals and arch dependencies
|
|
Commit Message
Sergio Paracuellos
Feb. 10, 2023, 5:38 p.m. UTC
To allow to access system controller registers from watchdog driver code
add a phandle in the watchdog 'wdt' node. This avoid using arch dependent
operations in driver code.
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
arch/mips/boot/dts/ralink/mt7621.dtsi | 1 +
1 file changed, 1 insertion(+)
Comments
Could you also change the node name to watchdog@100? make dtbs_check points it out: wdt@100: $nodename:0: 'wdt@100' does not match '^watchdog(@.*|-[0-9a-f])?$' Thanks. Arınç On 10.02.2023 20:38, Sergio Paracuellos wrote: > To allow to access system controller registers from watchdog driver code > add a phandle in the watchdog 'wdt' node. This avoid using arch dependent > operations in driver code. > > Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> > --- > arch/mips/boot/dts/ralink/mt7621.dtsi | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/mips/boot/dts/ralink/mt7621.dtsi b/arch/mips/boot/dts/ralink/mt7621.dtsi > index 5ca40fd21..764916eaf 100644 > --- a/arch/mips/boot/dts/ralink/mt7621.dtsi > +++ b/arch/mips/boot/dts/ralink/mt7621.dtsi > @@ -73,6 +73,7 @@ sysc: syscon@0 { > wdt: wdt@100 { > compatible = "mediatek,mt7621-wdt"; > reg = <0x100 0x100>; > + mediatek,sysctl = <&sysc>; > }; > > gpio: gpio@600 {
Hi Arınç, On Fri, Feb 10, 2023 at 6:47 PM Arınç ÜNAL <arinc.unal@arinc9.com> wrote: > > Could you also change the node name to watchdog@100? make dtbs_check > points it out: > > wdt@100: $nodename:0: 'wdt@100' does not match '^watchdog(@.*|-[0-9a-f])?$' Sure, let me add a small patch fixing this warning in the series. > > Thanks. > Arınç Best regards, Sergio Paracuellos > > On 10.02.2023 20:38, Sergio Paracuellos wrote: > > To allow to access system controller registers from watchdog driver code > > add a phandle in the watchdog 'wdt' node. This avoid using arch dependent > > operations in driver code. > > > > Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> > > --- > > arch/mips/boot/dts/ralink/mt7621.dtsi | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/arch/mips/boot/dts/ralink/mt7621.dtsi b/arch/mips/boot/dts/ralink/mt7621.dtsi > > index 5ca40fd21..764916eaf 100644 > > --- a/arch/mips/boot/dts/ralink/mt7621.dtsi > > +++ b/arch/mips/boot/dts/ralink/mt7621.dtsi > > @@ -73,6 +73,7 @@ sysc: syscon@0 { > > wdt: wdt@100 { > > compatible = "mediatek,mt7621-wdt"; > > reg = <0x100 0x100>; > > + mediatek,sysctl = <&sysc>; > > }; > > > > gpio: gpio@600 {
diff --git a/arch/mips/boot/dts/ralink/mt7621.dtsi b/arch/mips/boot/dts/ralink/mt7621.dtsi index 5ca40fd21..764916eaf 100644 --- a/arch/mips/boot/dts/ralink/mt7621.dtsi +++ b/arch/mips/boot/dts/ralink/mt7621.dtsi @@ -73,6 +73,7 @@ sysc: syscon@0 { wdt: wdt@100 { compatible = "mediatek,mt7621-wdt"; reg = <0x100 0x100>; + mediatek,sysctl = <&sysc>; }; gpio: gpio@600 {