[v3,1/4] dt-bindings: watchdog: mt7621-wdt: add phandle to access system controller registers
Message ID | 20230210173841.705783-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 s9csp1085830wrn; Fri, 10 Feb 2023 09:40:24 -0800 (PST) X-Google-Smtp-Source: AK7set+fFbTtI3mR+uFeZ1s4ZaixO3tgOGoWZ+wgoirJfCmrY6KsMLK2vHCKCqq+t5RVpppnGeP4 X-Received: by 2002:a50:c05b:0:b0:4ab:2033:8c55 with SMTP id u27-20020a50c05b000000b004ab20338c55mr6306181edd.33.1676050824295; Fri, 10 Feb 2023 09:40:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676050824; cv=none; d=google.com; s=arc-20160816; b=iRRDW07czIO/ONNS6K0KKGXr2c0X76/iz73VwymePZLCptdqKyNYBATxA63TtBwOZP MKzg8pfX5nvJQun+Ambol1f78QKHMuTiRqicP0piIykOv7wg6JCtfi4WJ897NHXjTrFr 8JWchXNNPlc2Y2Go2G+Y6eJUb6vsUqRZQdfcS5aAytri5PK49RfwILVXwoX0WQeBYoKU 0KwF+FRmqXvNxGwbLtYiqUneD/pxjBohdk13AMZD8s36WEHiGY+LoNhcv0IUXHwmRpcy c/667WUoFZ5YWEsCGpTtYPH7sP8m+iRz64PCskvi8iaG3fUI9mt39XIR466Bv8/Y2cMj +VZw== 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=BnXrkD6mC1X9wvYtsECorUK6F5CsiEFkvfTGl5Os3Dw=; b=GB+4uU0WoYQqkoPJTgbiM4SwcRFrFkkaLMVtRjHDcEq6BZn6eykxipuIb1Bsyyp8j1 BtgJUSp48CiHBnXPd1KFKiZ/RAAJFUt5VX5iXbX9zBOyeg4E058DOFQEYjugWjNQ9SkS 9G1h/vFyquLZMyHMLzSW2eQl+wN2KRpyo6SpIKu5a4Y7m3xLJdk/hbsAkD3fQadmcQ8i QuqiqOCmDqH9wWopjEoLs6O5YUv7NwOZF4v4dE30/ojiOy6tgQbMy/jZupFEdy2D+0q5 lvsmOC1me9zFbm3fOWwf72inLfZhrvfIeqbdtrtBq8xbj5+ObHIV8gQZuoXV1WORneAU IjPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iPgPTDYO; 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 l24-20020aa7d958000000b004aaabc46b59si6364481eds.628.2023.02.10.09.40.00; Fri, 10 Feb 2023 09:40:24 -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=iPgPTDYO; 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 S232834AbjBJRiw (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Fri, 10 Feb 2023 12:38:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232547AbjBJRit (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 10 Feb 2023 12:38:49 -0500 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22FE434F55; Fri, 10 Feb 2023 09:38:48 -0800 (PST) Received: by mail-wm1-x336.google.com with SMTP id f23-20020a05600c491700b003dff4480a17so5733906wmp.1; Fri, 10 Feb 2023 09:38:48 -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=BnXrkD6mC1X9wvYtsECorUK6F5CsiEFkvfTGl5Os3Dw=; b=iPgPTDYO2Ay92Hea++NHzSXGW3gZOjxG1nkOgA8Awp1gUIfV0gbewJxnduW7lAaLU1 GW03L/PvBFDfA5oF2hFAECaSoPDyL5dYtxI5XHFQd+aKRHByYk4t8SEyvPL4CV0VVwO1 eCy9xOsmcvq2Dgw0VuAc6XJURlo51VuPcznEsFlq5ItkpONAtAPP0gp0g27FtNI6F0fI 3mJlQ98PurpaYcUAxJ1AoR2ZhXDLBBqBGpXIEVVyvxwI5KiWVP0e9McR4w4Sow5ntSG9 o2AgE/QNmtE0b5YHvzop45Sw5meH1AusWMbwADTGnSJ6zsDoJtRcH9AmbOXeCz1B0JpW izMw== 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=BnXrkD6mC1X9wvYtsECorUK6F5CsiEFkvfTGl5Os3Dw=; b=OG2xpWx7BYNxxYK9hTHlGQlAe1FA2UinsDBkbCqLurppvhFZZsG/CFnW7btSWu3Dgr FT07mCiPcRkcVKbuObvHv2U1LDcy8ZXcbAskOVctFRxyYhwk+XZVCGpqW9Z0+SPM3Rjj mbjON97EbX8Fn9hBcYDEIpJKDZELe+ZhaPSZulDK3ruwqB0m2lHYqL/jBfK/aCLZ2Uus DY8MJ5iYgshZekghh+6a4SQvbvmjjnFyRjgywUgl0FGckp4uWtAgcN8iTnbdpenED5mk XDHh90/jvddgB5ksuTb0yGzY6//cum5hECZ3nfQyarPUQm5ZbDiwRP4xT6VjlCI0SoyL mp+Q== X-Gm-Message-State: AO0yUKVZb36/QKUKUll0IGyweZnJkouUk27uySMyW+ybtDsMwsqdrvYi HXh6WAwm0GzwCYSg9mLvGTSJRyxPQTA= X-Received: by 2002:a05:600c:2e88:b0:3da:acb1:2f09 with SMTP id p8-20020a05600c2e8800b003daacb12f09mr13551762wmn.19.1676050726123; Fri, 10 Feb 2023 09:38:46 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Feb 2023 09:38:45 -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 1/4] dt-bindings: watchdog: mt7621-wdt: add phandle to access system controller registers Date: Fri, 10 Feb 2023 18:38:38 +0100 Message-Id: <20230210173841.705783-2-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?1757466669162486595?= X-GMAIL-MSGID: =?utf-8?q?1757466669162486595?= |
Series |
watchdog: mt7621-wdt: avoid globals and arch dependencies
|
|
Commit Message
Sergio Paracuellos
Feb. 10, 2023, 5:38 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(+)
diff --git a/Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml b/Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml index b2b17fdf4..a668d0c2f 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 + mediatek,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>; + mediatek,sysctl = <&sysc>; };