From patchwork Fri Aug 5 07:55:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 595884 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 6437CC3F6B0 for ; Fri, 5 Aug 2022 07:55:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240355AbiHEHzY (ORCPT ); Fri, 5 Aug 2022 03:55:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240425AbiHEHzK (ORCPT ); Fri, 5 Aug 2022 03:55:10 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 856A174DD4 for ; Fri, 5 Aug 2022 00:55:09 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id z4so2225121ljn.8 for ; Fri, 05 Aug 2022 00:55:09 -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:mime-version :content-transfer-encoding; bh=fp5QsMZSik6FokJnE0Ar1IWeqs2yo1QrPVgBHPxM4Yg=; b=FWo0U9XpmnM/c3x5b05yMxNxNWw3LqzARt7sBEAGzgZMDf6xyBYCMNld6VBXAitefS u+QeoCCX2Aak5H7CfdOClGQ62oSWKYXvvAaSb2RkPsFTIyPluopN4CRsP6RvrXKPaDmj bQ5LaKtH1SV4fX+zFVYPRjRwCzKO78JJTj7NsiUN9S+niyPOMruQeISr/VKhF+buLMsy 2uBaKYodk8MLo3B5ymvTZJYNjtuAOBdTEMLJOfGkeQzBpsLV3vObNMxzZ6cr3RAmOAyd gkkB6KA7LBb8yoBjWDTcuodXN1zNAj8Om5HEfjAjplSnHNUj9w+SUeIPllKfwpxvl1lw LF6Q== 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:mime-version :content-transfer-encoding; bh=fp5QsMZSik6FokJnE0Ar1IWeqs2yo1QrPVgBHPxM4Yg=; b=pucxtKJEHKRc70M5arCgYceB6CD+9GmQvtjewavP1VrUbdGPj/qm8HKo/PtRcGLIul FLaUUBr7dM64js04Q4x18j/Z4ZuLB5yYV5MNPaZRyhN8KAQrDV0WsIiFPBhzO+Kn5GzM sOuBhlg8NP0A0br7SclTdTBOsOH2lPdkrwQxAY10k1EMcSevQVHv3Fdryeu03oAXjxII 6FHDzJ75ZEWBHQMzAsRFySczQgcKEm8WYcy0DyKn1uK4SqzPnJBqjtlcCBoKUv3eKtMX DtpvqfzUwRpQr2/1RlXXwxTvfAZE95CazRI+LSMXtID9on44T69+G9tEqGrvNJtPiAF7 C66A== X-Gm-Message-State: ACgBeo2fwFGlnNDz9ON7kL9ABQ4a0SLVxMscs/s+r13PgiaNswmM+aPR LBNVdLKpihfALQWl8NQjuHRfCg== X-Google-Smtp-Source: AA6agR5g8P6iwFH2TCVcFcTTf1165g9vkFTe2815uoS6iADkSdjrLz3zVOLOOsZFpj756akHhVpFng== X-Received: by 2002:a2e:b010:0:b0:25e:65b3:b24d with SMTP id y16-20020a2eb010000000b0025e65b3b24dmr1803174ljk.292.1659686107839; Fri, 05 Aug 2022 00:55:07 -0700 (PDT) Received: from krzk-bin.. ([77.222.167.48]) by smtp.gmail.com with ESMTPSA id cf40-20020a056512282800b0048a8f119e7esm378566lfb.233.2022.08.05.00.55.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Aug 2022 00:55:06 -0700 (PDT) From: Krzysztof Kozlowski To: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , "H. Nikolaus Schaller" , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2] dt-bindings: iio: gyroscope: bosch, bmg160: correct number of pins Date: Fri, 5 Aug 2022 09:55:03 +0200 Message-Id: <20220805075503.16983-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org BMG160 has two interrupt pins to which interrupts can be freely mapped. Correct the schema to express such case and fix warnings like: qcom/msm8916-alcatel-idol347.dtb: gyroscope@68: interrupts: [[97, 1], [98, 1]] is too long However the basic issue still persists - the interrupts should come in a defined order. Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. Accept also INT2 as one interrupt (Jonathan). --- .../devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml b/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml index b6bbc312a7cf..1414ba9977c1 100644 --- a/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml +++ b/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml @@ -24,8 +24,10 @@ properties: interrupts: minItems: 1 + maxItems: 2 description: Should be configured with type IRQ_TYPE_EDGE_RISING. + If two interrupts are provided, expected order is INT1 and INT2. required: - compatible