[v2,1/4] dt-bindings: watchdog: mt7621-wdt: add phandle to access system controller registers
Message ID | 20230210121735.639089-2-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 s9csp920569wrn; Fri, 10 Feb 2023 04:23:23 -0800 (PST) X-Google-Smtp-Source: AK7set8YYy7pBeL607pVM47SKc+/By6+cAMbHPtfTZ3P/K0Ekc32t0vmy3xh5jXV1deYmCuVBNFT X-Received: by 2002:a17:902:e38a:b0:198:e3ee:2c95 with SMTP id g10-20020a170902e38a00b00198e3ee2c95mr11255019ple.7.1676031802863; Fri, 10 Feb 2023 04:23:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676031802; cv=none; d=google.com; s=arc-20160816; b=oVZ6svpZHwIlRMToKTZmNBeHxBhAO5vNyp8LaGO4/Fy5E8OxkHCwMn0l4zzopUzuJO ZO+SlfT5NQ+uReixMIbigaxpujjCAZ4P7GkGFN4JFvk4BZ47Cp+of1xrB3fjUMP0i30Z QhXjaVBXtVuRJwJX3P7MVdIuhZFqrv8zNrEea4OBpaCcEJDuKUbiKDfcnKPzI9QgbGta HKIQ4OAQJkjgQ38CozGQLCCMtdNB9q1Z4xRM7KO5KTKsf7Le0yrLrr2srNAY8TcdVZiZ kmGvp1wHKeDvOCm51w7Ed3JB7tFIAh5W/pZaors+/V/4pJzOWCHP4Z3pSQDoYBr89unJ ZNoA== 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=7iAq1Y15dNDe23a7+ggQXaAwsjH6+BmLH7b26udO+js=; b=0DnKnRSJjTyp2C+K1TETWxEBjrXUmXJ+Sx3zin3lmgomM5KgCP3P4Y3XBbkj6gnVxV Csft354BiqUEtdTTt3BFR6HsPHVkoSrh9VUZGkI/cmwLgij2emRCByxscmUz7TZGlfi7 lBPiMet/Kp2jVvvYWBY48w6uS/9yuXHhXiWuSV/OXNsfsO9tmQrPxgTvLS3xODzsWhwA YNq1itwFN4wR0XmgTfW9nd23gxxycUenbAnghOBW4giVL9EfaG57oe2zb1S3mtYaNs+M YhjmS5zJTPvz5xuEZIHbISDdxxN/5QCLxVszlhoeC0KAiiR67xmW3rhhiavl9RfOAOcU IJrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XLZLhg9M; 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 u5-20020a17090341c500b001993610cb43si4605381ple.343.2023.02.10.04.23.10; Fri, 10 Feb 2023 04:23:22 -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=XLZLhg9M; 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 S232289AbjBJMRo (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Fri, 10 Feb 2023 07:17:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231978AbjBJMRl (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 10 Feb 2023 07:17:41 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 831DC6E578; Fri, 10 Feb 2023 04:17:40 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id f23-20020a05600c491700b003dff4480a17so5346805wmp.1; Fri, 10 Feb 2023 04:17:40 -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=7iAq1Y15dNDe23a7+ggQXaAwsjH6+BmLH7b26udO+js=; b=XLZLhg9MahUcvhUYp+OMOVmOx3yquF29MiBO1HJJdg39QTDimNxnNh4+T35D5yXwHr Lc2g+XDBEZ05+pzHujhA3QYe4MDzrvtbeZNWA+ReMhYmaFk3z7oiijNE1kNajA9NNt+h Zj/2xRq0qGQCguRRlV2UpTQFffp5ALDy8FRDn5lDJQzr279mm0PuS02k1JlYvsHWcO/3 YcIdSFJTzZDhzA5rVlkaHX8mCARDMFZB2ZWlSSprWUz7PI8KnU8qLNPHJ0M1+tKyZwp+ YKQBAAACZ12TQrWlUvLUMNRhOSIGAbcJRI5DUR4nbNAfVLeRAxcljlU55oZTKMtwuXHD QYIA== 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=7iAq1Y15dNDe23a7+ggQXaAwsjH6+BmLH7b26udO+js=; b=1zBTVJE/1dg2kHzI2aTkjTCom729PO9m6ZOjsDcj9CjKhmzVfVFJmj1rsAquwYyTpX s00zdHRT+B9GQZe8gY59QUFQ06hfot5/xN6mnk97E67pwzuZSxGwe6sMf+57mhab05vQ 6DKSbZZPrgt4jhwB/eiI+5vKxJrcHe1OXLWlD3HrSIJkhJvjIrRy8/ceM1ugton4kMti VSzAlxy8WWF7ZcF2mIA++99EqhMAAtwTeTqzdsn/BEgjfdVPIMDWjmdRPtnCifIh/2qE iMjVUT7lpqRnn365KL72Y0irYbUopK+G51pmq2k3mON6E/lrRv1IuZeLSCQfZZV+vrDO gf+w== X-Gm-Message-State: AO0yUKUKNnl5JWLZxb6txQgFG+esvL6HZ7cks0VGIDq6QNjdQfpPazzI +rSxd3HvpeeVwJ4e1Pz4AccnBDHEtoA= X-Received: by 2002:a05:600c:1708:b0:3de:e8c5:d826 with SMTP id c8-20020a05600c170800b003dee8c5d826mr12737533wmn.28.1676031458715; Fri, 10 Feb 2023 04:17:38 -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 p13-20020a05600c468d00b003e001afa274sm5359820wmo.2.2023.02.10.04.17.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Feb 2023 04:17:38 -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 v2 1/4] dt-bindings: watchdog: mt7621-wdt: add phandle to access system controller registers Date: Fri, 10 Feb 2023 13:17:32 +0100 Message-Id: <20230210121735.639089-2-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230210121735.639089-1-sergio.paracuellos@gmail.com> References: <20230210121735.639089-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?1757446723380786252?= X-GMAIL-MSGID: =?utf-8?q?1757446723380786252?= |
Series |
watchdog: mt7621-wdt: avoid globals and arch dependencies
|
|
Commit Message
Sergio Paracuellos
Feb. 10, 2023, 12:17 p.m. UTC
MT7621 SoC provides a system controller node for accessing to some registers.
Add a phandle in this node to avoid using MIPS related arch operations and
includes in watchdog driver code.
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
.../devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml | 7 +++++++
1 file changed, 7 insertions(+)
Comments
On 10/02/2023 13:17, Sergio Paracuellos wrote: > MT7621 SoC provides a system controller node for accessing to some registers. > Add a phandle in this node to avoid using MIPS related arch operations and > includes in watchdog driver code. > > Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> > --- > .../devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml b/Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml > index b2b17fdf4..cc701e920 100644 > --- a/Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml > +++ b/Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml > @@ -19,6 +19,12 @@ properties: > reg: > maxItems: 1 > > + ralink,sysctl: Thanks for the changes. I did not notice it before - isn't Ralink part of Mediatek now? Also compatible is mediatek, not "ralink"? Best regards, Krzysztof
On Fri, Feb 10, 2023 at 2:03 PM Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > > On 10/02/2023 13:17, Sergio Paracuellos wrote: > > MT7621 SoC provides a system controller node for accessing to some registers. > > Add a phandle in this node to avoid using MIPS related arch operations and > > includes in watchdog driver code. > > > > Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> > > --- > > .../devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml | 7 +++++++ > > 1 file changed, 7 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml b/Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml > > index b2b17fdf4..cc701e920 100644 > > --- a/Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml > > +++ b/Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml > > @@ -19,6 +19,12 @@ properties: > > reg: > > maxItems: 1 > > > > + ralink,sysctl: > > Thanks for the changes. I did not notice it before - isn't Ralink part > of Mediatek now? Also compatible is mediatek, not "ralink"? Yes, it is. I was using the same prefix as for the memory controller syscon phandler inside the 'sysc' node [0]. I have no problems at all in changing this to 'mediatek' if preferred. Thanks, Sergio Paracuellos [0]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/mips/boot/dts/ralink/mt7621.dtsi#n67 > > > > Best regards, > Krzysztof >
On 10/02/2023 14:14, Sergio Paracuellos wrote: > On Fri, Feb 10, 2023 at 2:03 PM Krzysztof Kozlowski > <krzysztof.kozlowski@linaro.org> wrote: >> >> On 10/02/2023 13:17, Sergio Paracuellos wrote: >>> MT7621 SoC provides a system controller node for accessing to some registers. >>> Add a phandle in this node to avoid using MIPS related arch operations and >>> includes in watchdog driver code. >>> >>> Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> >>> --- >>> .../devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml | 7 +++++++ >>> 1 file changed, 7 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml b/Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml >>> index b2b17fdf4..cc701e920 100644 >>> --- a/Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml >>> +++ b/Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml >>> @@ -19,6 +19,12 @@ properties: >>> reg: >>> maxItems: 1 >>> >>> + ralink,sysctl: >> >> Thanks for the changes. I did not notice it before - isn't Ralink part >> of Mediatek now? Also compatible is mediatek, not "ralink"? > > Yes, it is. I was using the same prefix as for the memory controller > syscon phandler inside the 'sysc' node [0]. > > I have no problems at all in changing this to 'mediatek' if preferred. > Yes, mediatek as already used in this binding is preferred. Best regards, Krzysztof
On Fri, Feb 10, 2023 at 2:35 PM Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > > On 10/02/2023 14:14, Sergio Paracuellos wrote: > > On Fri, Feb 10, 2023 at 2:03 PM Krzysztof Kozlowski > > <krzysztof.kozlowski@linaro.org> wrote: > >> > >> On 10/02/2023 13:17, Sergio Paracuellos wrote: > >>> MT7621 SoC provides a system controller node for accessing to some registers. > >>> Add a phandle in this node to avoid using MIPS related arch operations and > >>> includes in watchdog driver code. > >>> > >>> Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> > >>> --- > >>> .../devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml | 7 +++++++ > >>> 1 file changed, 7 insertions(+) > >>> > >>> diff --git a/Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml b/Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml > >>> index b2b17fdf4..cc701e920 100644 > >>> --- a/Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml > >>> +++ b/Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml > >>> @@ -19,6 +19,12 @@ properties: > >>> reg: > >>> maxItems: 1 > >>> > >>> + ralink,sysctl: > >> > >> Thanks for the changes. I did not notice it before - isn't Ralink part > >> of Mediatek now? Also compatible is mediatek, not "ralink"? > > > > Yes, it is. I was using the same prefix as for the memory controller > > syscon phandler inside the 'sysc' node [0]. > > > > I have no problems at all in changing this to 'mediatek' if preferred. > > > > Yes, mediatek as already used in this binding is preferred. Sure, I will do it and send v3. Let's wait for some other review comments in the rest of the patches and will send all them together. > > Best regards, > Krzysztof > Thanks, Sergio Paracuellos
diff --git a/Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml b/Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml index b2b17fdf4..cc701e920 100644 --- a/Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml +++ b/Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml @@ -19,6 +19,12 @@ properties: reg: maxItems: 1 + ralink,sysctl: + $ref: /schemas/types.yaml#/definitions/phandle + description: + phandle to system controller 'sysc' syscon node which + controls system registers + required: - compatible - reg @@ -30,4 +36,5 @@ examples: watchdog@100 { compatible = "mediatek,mt7621-wdt"; reg = <0x100 0x100>; + ralink,sysctl = <&sysc>; };