From patchwork Tue May 17 07:01:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 573953 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 85977C433FE for ; Tue, 17 May 2022 07:02:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240594AbiEQHCL (ORCPT ); Tue, 17 May 2022 03:02:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240558AbiEQHB3 (ORCPT ); Tue, 17 May 2022 03:01:29 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8548A3CFEA for ; Tue, 17 May 2022 00:01:24 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id ch13so32733406ejb.12 for ; Tue, 17 May 2022 00:01:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=E5YORnDcbWOJgrpTz/qSCG6/YYMuC3Z8T9fT4bh9Wds=; b=RYlKaedw8XHDuSPIsAKH6WOjvMjDHWHUoi4CQtC+m/fNR53cM3SDI76mkQpItCoVY1 CYzO9Ts1Qn/CfANZIYuarG2+pJ595hoigvvmvPKXlOl60ynbZmgx8UfonJLu9I3/gMlf pglWRR4sOVASjLDDylbx9YnHd7vNP8uOPa3zQa8ruxz9nKwnf97+Snh2aJdSC0a/vvLM TuP0m3Hn4OEbEQRJ0dxPsQ4/5lWgH/DI00PmuFY5BQ159Q5FJubWq/SKjQO7ENqXh8FA 2xjBfDRFoABd/YWD7eNX+e0+KqPKaM1A8DHXzjYDuiHHfksoy8+MlJsBDyp9tZvEX5+4 811Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=E5YORnDcbWOJgrpTz/qSCG6/YYMuC3Z8T9fT4bh9Wds=; b=FF314qGzaqPU41q6s9ekTb5k5gZKlJsnG5lm3Oje5WiVr/UsRfO6LXJ2egRA8n7Dpl zleAbsLUilat+6loxmAte/UtrtAds17For32hBkL1uSpUooMSPqDiBwdxer3ccL9muk3 2x0J1YEvWJXVhAtwZyMni/JmU5sE591Hk1PeBCDp6xrhOhXPu6kohqVRzbHAbAc3Vbxk 4oD1rSb41hRUKhFm+rl+nSWOCLJxeT8Qx7ZsE/EKnAvulenr7RwCc4Fcilyp9E04tJhn jYRc2YFkBnSxOXbKdCK5F8oW6mqKY09w7E79fhVwFllxNVkIj0TZYQamUhmJRXmhpP8w aDHw== X-Gm-Message-State: AOAM533xII4t8wxODirSmqpTWPkiHWmO62mo4sNgprJmxj0abrhW09pa JKilG468nDNcTOxzsb+Xtl5HYg== X-Google-Smtp-Source: ABdhPJxPFRNvEnpD/ErxMu/AzfcJ14qdJNWTxdny8unKsWuGXSxICUMN5cKLkMAJZaswSxnz6rW1Pw== X-Received: by 2002:a17:906:5d11:b0:6f5:942e:bc60 with SMTP id g17-20020a1709065d1100b006f5942ebc60mr18109093ejt.254.1652770882573; Tue, 17 May 2022 00:01:22 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id b5-20020a056402138500b0042617ba637esm6487016edv.8.2022.05.17.00.01.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 00:01:22 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2 04/12] dt-bindings: remoteproc: qcom,adsp: simplify interrupts Date: Tue, 17 May 2022 09:01:05 +0200 Message-Id: <20220517070113.18023-5-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220517070113.18023-1-krzysztof.kozlowski@linaro.org> References: <20220517070113.18023-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Interrupts between variants differ only with presence of last optional interrupt, so the constraints can be simplified. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- .../bindings/remoteproc/qcom,adsp.yaml | 46 ++++++++----------- 1 file changed, 18 insertions(+), 28 deletions(-) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml index 6e1fdfe91043..0b2db36e5d14 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml @@ -72,11 +72,23 @@ properties: interrupts: minItems: 5 - maxItems: 6 + items: + - description: Watchdog interrupt + - description: Fatal interrupt + - description: Ready interrupt + - description: Handover interrupt + - description: Stop acknowledge interrupt + - description: Shutdown acknowledge interrupt interrupt-names: minItems: 5 - maxItems: 6 + items: + - const: wdog + - const: fatal + - const: ready + - const: handover + - const: stop-ack + - const: shutdown-ack resets: minItems: 1 @@ -317,19 +329,9 @@ allOf: then: properties: interrupts: - items: - - description: Watchdog interrupt - - description: Fatal interrupt - - description: Ready interrupt - - description: Handover interrupt - - description: Stop acknowledge interrupt + maxItems: 5 interrupt-names: - items: - - const: wdog - - const: fatal - - const: ready - - const: handover - - const: stop-ack + maxItems: 5 - if: properties: @@ -347,21 +349,9 @@ allOf: then: properties: interrupts: - items: - - description: Watchdog interrupt - - description: Fatal interrupt - - description: Ready interrupt - - description: Handover interrupt - - description: Stop acknowledge interrupt - - description: Shutdown acknowledge interrupt + minItems: 6 interrupt-names: - items: - - const: wdog - - const: fatal - - const: ready - - const: handover - - const: stop-ack - - const: shutdown-ack + minItems: 6 - if: properties: