From patchwork Mon Dec 12 16:35:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 32440 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2342358wrr; Mon, 12 Dec 2022 08:36:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf6OgOHB9sioAHEwk8y7+4DiuUJYdMUawGtTtBLkRsJDJ7gPqrLyKK+6QIvLtCPVm9BgbQxP X-Received: by 2002:a17:90a:a06:b0:219:9da5:40d3 with SMTP id o6-20020a17090a0a0600b002199da540d3mr17039290pjo.1.1670863009779; Mon, 12 Dec 2022 08:36:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670863009; cv=none; d=google.com; s=arc-20160816; b=xgjovWqO7SgH8ZLcmwORYWYaojVeInsG5oJaSXkpjj6RiiLsoHivFUqgXRzXvjfgQ6 0dPQeVNNxGt4t089TekV39HiRd3EikhNnKCKn5iZQuqZqpFrYhQFjg0dsACeW6R9znsN 7D7njv9stUOkfdg+eNt9NuoBDYvXp2UD72vM9WmNg7PXJjC0km0W0MX8qU88oPfn51wI ttPynVDkN8nn/6vFES69QxEh5ymshMNzhZU8N5GMQCdOHQ/PKW0Qhi/bAsexzg8QqmW8 bJABNoIvqkdWZHPrMMBGLJFcWUbxt/ysjAYdERGAp+iCfs1xzT5yrnNrBNz+UtIfZWGc 3s8A== 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=5MhRmIwqiimhM0hU/ny7BJCiWCN3HyB8MyrfD6CbYtU=; b=aEzl/+79lKyKE2QxSdz0o3PjbWbvP44g/7m91CrnSPIPvft2SGiUhuSOnwBswULa2K iG/yjt5jti4lBqiathhBRRohMDOrLTIyMO3DY99UfDYp6vT0RxTCAywqTlpHw7lhwU64 ZD4rh8Btfu6MkXBw78AOH5oGCBp0qW8u8NTCnYL0cf2U3pMlVErzKzEJ9vebU4If2xGk IRdk+rImMtbzLgDekgKNLfizsdvqLrsSkBdwQU9cuEWGHkJvuxP6oDkAlKITBkli1Jyp QpeeyUJ+FIsXoaExNF80CPHiwj/jY9+4o/YvheVnfsFW+kV7LiC8V35NApW3wnnjokps GkJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uy4HgYN0; 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=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u8-20020a17090a2b8800b0020a71053a85si9382189pjd.143.2022.12.12.08.36.35; Mon, 12 Dec 2022 08:36:49 -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=@linaro.org header.s=google header.b=uy4HgYN0; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232673AbiLLQgI (ORCPT + 99 others); Mon, 12 Dec 2022 11:36:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232492AbiLLQfu (ORCPT ); Mon, 12 Dec 2022 11:35:50 -0500 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AFFBD136 for ; Mon, 12 Dec 2022 08:35:46 -0800 (PST) Received: by mail-lf1-x135.google.com with SMTP id b3so342570lfv.2 for ; Mon, 12 Dec 2022 08:35:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=5MhRmIwqiimhM0hU/ny7BJCiWCN3HyB8MyrfD6CbYtU=; b=uy4HgYN0uRqGM8cMy+QL9myXVpoeWEZwaz+wMUd35PefJkG61oUwRDGQ5dQ1NN0HGN iZihOU2+Udx63EJFwskcjgxYeYc3GYm8St6tuYPwQt4oi3fERQMpyD+DZ+1mKOiZLceu i/FfCOh3gdA2PNG3+NKtB409cv+QK1M0rSoOdI2zLVs1Xfs7OfOUrAuJhkLj0osEPBic 4kytn0LBtPg750TmgeTEsSi5eFrT/r9iFvIMYMF6lH8RG5QJuiyNHTtaGLHBPwH8MOOP n2gibzRWaN+qj0uhfKG4szZ5pQNIWl6/auFMAvXD89+XB/6JRv1AN4lPdTcg4x+obRCd 8vRA== 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=5MhRmIwqiimhM0hU/ny7BJCiWCN3HyB8MyrfD6CbYtU=; b=SX55LTE3RakU38OZhjFUzEiNRUHt/E81IzIWGsz0oToKiCyI2oCdzcxOgQcewNNXaX QKtMq8gk6Ys4XtuBiFAOnDWyRl0I4NM+fX29ePJLb/gD2aIQ//UsE8wStj+zAZlHdryZ wTJn4BH1iwnPcNzUQU/dgq3Q/X2OOq1UUKVbDqsnz/d7xyHLxrF+aWddRfvQCU9l+JXm 8gkXYiYSxPUy/IuYf++5i+AsWuxcurjo8xXoWwoXv8JgOUxwXsbzRw311zKd4LKqx+j3 cIrg77Xa3ayGGp7WAwsyrfkwArLuteJDhcTwDnJXLOVUSyXg4vuriVsIxvfPhNuTHfyI VPag== X-Gm-Message-State: ANoB5pnh95fyIQklobPxshlSIq1opjlYdHn/R4D++fk+FtmZYiF9561H 6DZhbYta4k6mUkQJAgye/ogatA== X-Received: by 2002:a19:5513:0:b0:4b5:5ddc:da32 with SMTP id n19-20020a195513000000b004b55ddcda32mr3873335lfe.56.1670862942224; Mon, 12 Dec 2022 08:35:42 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id v16-20020ac25b10000000b004acff58a951sm29209lfn.133.2022.12.12.08.35.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Dec 2022 08:35:41 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Wim Van Sebroeck , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Prakash Ranjan Cc: Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 05/12] dt-bindings: watchdog: qcom-wdt: allow interrupts Date: Mon, 12 Dec 2022 17:35:25 +0100 Message-Id: <20221212163532.142533-5-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221212163532.142533-1-krzysztof.kozlowski@linaro.org> References: <20221212163532.142533-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752026850823635020?= X-GMAIL-MSGID: =?utf-8?q?1752026850823635020?= Both of type of watchdogs described in the binding (the KPSS watchdog and APSS WDT timer) have interrupts. Allow interrupts and describe them for KPSS watchdog to fix warnings like: watchdog@17c10000: Unevaluated properties are not allowed ('interrupts' was unexpected) Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring Reviewed-by: Guenter Roeck --- .../bindings/watchdog/qcom-wdt.yaml | 24 ++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml b/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml index 1828eaf70b3b..b7fc57f4800e 100644 --- a/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml +++ b/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml @@ -9,9 +9,6 @@ title: Qualcomm Krait Processor Sub-system (KPSS) Watchdog timer maintainers: - Sai Prakash Ranjan -allOf: - - $ref: watchdog.yaml# - properties: compatible: oneOf: @@ -51,11 +48,31 @@ properties: clocks: maxItems: 1 + interrupts: + minItems: 1 + maxItems: 5 + required: - compatible - reg - clocks +allOf: + - $ref: watchdog.yaml# + + - if: + properties: + compatible: + contains: + const: qcom,kpss-wdt + then: + properties: + interrupts: + minItems: 1 + items: + - description: Bark + - description: Bite + unevaluatedProperties: false examples: @@ -66,5 +83,6 @@ examples: compatible = "qcom,apss-wdt-sm8150", "qcom,kpss-wdt"; reg = <0x17c10000 0x1000>; clocks = <&sleep_clk>; + interrupts = ; timeout-sec = <10>; };