Message ID | 20230130134328.178591-1-brgl@bgdev.pl |
---|---|
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 s9csp2189412wrn; Mon, 30 Jan 2023 05:54:50 -0800 (PST) X-Google-Smtp-Source: AK7set8PI4MwSU+xvuLWR5RSh5TAHlNA6xQI/ROHKzFR1d/OGtWhnCYh6uAOcpINzZqEnzU6IMeX X-Received: by 2002:a17:906:478f:b0:889:729b:5a9d with SMTP id cw15-20020a170906478f00b00889729b5a9dmr3567462ejc.38.1675086890187; Mon, 30 Jan 2023 05:54:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675086890; cv=none; d=google.com; s=arc-20160816; b=ujLoK6c41SCFzLUMu/rvSdjvvpjwGRen9zwwplhC+dIeKFKiRhduKgGgGT/vYQvRJ3 U1e9nVrUk3TKFE5qobtB4poRhPDrdw4Od64F49amA+ozpetJgHyDAiaydaCiUSjWufyr W8lg8l0LmtAjH5rjhiLIfc279epfRe7yMhcI0j2mW0zx0FwNqS2EI9a7s17sFk03t22w XzRKmPOpBedaHYK2EIZ1m2UR3yc6po5b1cNTu4uIXhcukjhic33zcUvUUu+kVH87BDVJ Zwr5p26S4vC7zFqnLqMtmZUdtZwiy1xvy8kw+Uam4j33NcNSJfoxKDg/XPiVADHzMIsA fPeg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=0dzAvNhqbLHD8Qqr5U4HkMhu9d4Ko8KZtdb+p3yzQqo=; b=00MqT+dsuunDcaxlGujjWZL6ja4hnnDAgxrJuFv1bDw3eqpbhymxh9FOg5FvQpepNE lYUASKvmoQ5k63YbqLzRaZw8CgJZBGC3f2QxFehVjc0Nu5xT9Qbz/sVtxyVD/Yp2T0Fg XYRt1bHFvL0FQ8wWpHopZijU6Rc5A6/viO2Qsr2k7ckOIFRzxJOSNYH5IpiGg2aumcQM GThZ+mdHdCvnHf8Nhtid2EPgjciqQT2SxYf4aZpKtO00AKHPMZ2vgH4iMkd1RewUV81m 3YG6lKiP0hn5XzQ0AfbummZ6EUUNgjTd1JT7DenPIrgryKDPWffUeIHN0N2C/j5LQ9lc +ZLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=r3+O9ok5; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h5-20020a17090791c500b0087876646d4esi12475095ejz.471.2023.01.30.05.54.26; Mon, 30 Jan 2023 05:54:50 -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=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=r3+O9ok5; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235731AbjA3Nnf (ORCPT <rfc822;n2h9z4@gmail.com> + 99 others); Mon, 30 Jan 2023 08:43:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235703AbjA3Nnd (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 30 Jan 2023 08:43:33 -0500 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4386214E8C for <linux-kernel@vger.kernel.org>; Mon, 30 Jan 2023 05:43:32 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id m16-20020a05600c3b1000b003dc4050c94aso5358307wms.4 for <linux-kernel@vger.kernel.org>; Mon, 30 Jan 2023 05:43:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0dzAvNhqbLHD8Qqr5U4HkMhu9d4Ko8KZtdb+p3yzQqo=; b=r3+O9ok547RbwEpeaTLhkg2nhQik6ojXy+fTq+Mnx7azfKGPocnjWfqHgTANTMmRRi Ga7BrBfT6JMqxyyLMGSRQGNZWeS/0obKNdiOuurdTQfR+4PLPos4/1ZQ7Lrt6uEn6siU mXpsUovrCJCA6CmoF6tql2U5NHvmyJxWbUQtFpIa1/YnhFNS9efyClfxEwebL08zPvOw SExuyJGXGdar9XV2X8crhizmga9Wi/Mh0H1rRXTsBeOkK2Qsnk+qHb0V1vVsQYGpWtLx vAwsDI3vaM0mJSi6vBtY+oyJKFvojk84NRYYDuVRU4DAqvyl5WGPE3dT9ddYNJc4hv2j d0og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0dzAvNhqbLHD8Qqr5U4HkMhu9d4Ko8KZtdb+p3yzQqo=; b=qcNmWKYA1XHFegderd+7Qg3Mh3jQTlKraWUgY2PvvIegHi/O/ZPS5l8esIb/pbbw37 CLHd4UB99WhQ12kDLrND+AeT1qkrwU7jdBRHgig/n2M9SjFGyzJsP8trl6U+9S4vQqON IDgkHoRhCs8Z4MXU7E87BqkOsdjpcw3XthtpSbqHi8VZzvtEd9CzpYUWsyxmzw11GMBw unPXkDS0SoO3THoPnoOFzgtchH4NZWXhblx0mcE343aD+BKZy9n2AsTpbpnDC7l3km3p RxqM+Tnj/mWxeLVcfi14hx5PQ+0VpKL2FqNZg0v1zqa06PIxivxq9Uo7iVBxNYzVPuc2 WYTQ== X-Gm-Message-State: AO0yUKUIUKsnx0RIoTxP/FFWOP/n9yaG01wSfXyb/ekjehIi7I7Fd+bw rn9yTEYeM5CFllQZRTC2jvHuew== X-Received: by 2002:a05:600c:3545:b0:3dd:1ac2:989 with SMTP id i5-20020a05600c354500b003dd1ac20989mr256851wmq.39.1675086210825; Mon, 30 Jan 2023 05:43:30 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:b9a5:a1fe:d3ab:6b40]) by smtp.gmail.com with ESMTPSA id g12-20020a05600c310c00b003db012d49b7sm27403410wmo.2.2023.01.30.05.43.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jan 2023 05:43:30 -0800 (PST) From: Bartosz Golaszewski <brgl@bgdev.pl> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Georgi Djakov <djakov@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Subject: [PATCH] dt-bindings: watchdog: qcom-wdt: add the interrupts property Date: Mon, 30 Jan 2023 14:43:28 +0100 Message-Id: <20230130134328.178591-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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?1756455910948949462?= X-GMAIL-MSGID: =?utf-8?q?1756455910948949462?= |
Series |
dt-bindings: watchdog: qcom-wdt: add the interrupts property
|
|
Commit Message
Bartosz Golaszewski
Jan. 30, 2023, 1:43 p.m. UTC
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> The interrupts property is used in all nodes using this binding but not defined in the document itself - hence dtbs_check fails for them. Add the property and update the example. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> --- .../devicetree/bindings/watchdog/qcom-wdt.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+)
Comments
On Mon, Jan 30, 2023 at 02:43:28PM +0100, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > The interrupts property is used in all nodes using this binding but not > defined in the document itself - hence dtbs_check fails for them. Add > the property and update the example. > > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > --- > .../devicetree/bindings/watchdog/qcom-wdt.yaml | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml b/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml > index 27fb484d5f8d..45940d643b92 100644 > --- a/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml > +++ b/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml > @@ -46,6 +46,10 @@ properties: > clocks: > maxItems: 1 > > + interrupts: > + minItems: 1 > + maxItems: 5 What is each interrupt? > + > required: > - compatible > - reg > @@ -55,9 +59,16 @@ unevaluatedProperties: false > > examples: > - | > + #include <dt-bindings/interrupt-controller/arm-gic.h> > + > watchdog@208a038 { > compatible = "qcom,kpss-wdt-ipq8064"; > reg = <0x0208a038 0x40>; > clocks = <&sleep_clk>; > timeout-sec = <10>; > + interrupts = <GIC_PPI 1 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>, > + <GIC_PPI 2 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>, > + <GIC_PPI 3 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>, > + <GIC_PPI 4 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>, > + <GIC_PPI 5 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>; > }; > -- > 2.37.2 >
On 30/01/2023 14:43, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > The interrupts property is used in all nodes using this binding but not > defined in the document itself - hence dtbs_check fails for them. Add > the property and update the example. > > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > --- > .../devicetree/bindings/watchdog/qcom-wdt.yaml | 11 +++++++++++ > 1 file changed, 11 insertions(+) dfn in lore would save you some effort (or my pending branch which I shared on IRC): https://lore.kernel.org/all/20230113103346.29381-6-krzysztof.kozlowski@linaro.org/ Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml b/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml index 27fb484d5f8d..45940d643b92 100644 --- a/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml +++ b/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml @@ -46,6 +46,10 @@ properties: clocks: maxItems: 1 + interrupts: + minItems: 1 + maxItems: 5 + required: - compatible - reg @@ -55,9 +59,16 @@ unevaluatedProperties: false examples: - | + #include <dt-bindings/interrupt-controller/arm-gic.h> + watchdog@208a038 { compatible = "qcom,kpss-wdt-ipq8064"; reg = <0x0208a038 0x40>; clocks = <&sleep_clk>; timeout-sec = <10>; + interrupts = <GIC_PPI 1 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>, + <GIC_PPI 2 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>, + <GIC_PPI 3 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>, + <GIC_PPI 4 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>, + <GIC_PPI 5 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>; };