Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1176993pxv; Fri, 23 Jul 2021 01:35:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrDsG6i5maplhjm7HCphAfyzyarE4591V2Bhpn3Z7jGcbDQy72U8d5Hm3iRBetuQNRdKtg X-Received: by 2002:a05:6402:2023:: with SMTP id ay3mr4105220edb.383.1627029302731; Fri, 23 Jul 2021 01:35:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627029302; cv=none; d=google.com; s=arc-20160816; b=yHurOSJdnQ0Ip7EnlBWg3pDnfBaTCfMpX4TI4jJoIvz75jjSQwwUWnGgULgDq+V5of o88SZSw1OqTEeWH4mkHSoTHt2QFOHeyWnZ0iebY4N6HH2dFpCnEtTQNbMP9sOfHXW9dr HDcQ3hSRu+Vp908Ufej3o+a6z/R0yq/dWJUsorcYt+PIWfWO6vgodOrhaeYbrzpRd5+T JtPvfd5v/iMmo61ojW/BQzkXHbnsGk1aC/zAZWgujiy/OzPAV/mmtgXx6FZ2EvPq8Ioc dxrZccRzV77TPmzXBxbMLtP8lwfb42/C02ivN3Pf9LEdA12iPiqOocIzXOuOgUicQux3 o9VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=68ewTzPgNM97mj9Lf2dPJn56uAdD6wpVPigZXxJgYKw=; b=lHAStgIDjEOFWpK4OlZ6+phYHz86EUn6G5ZzfX1z5qB2BEbq6Z7m3Km1UVZbUG/atI uXZRNZcIo22lkCgYpOo8ojcYlTLqvkmh+EpyjIluybh1psepbmKp9mbzAugCryYEEMpV pMCVmQpbzR/rAptUvNGdp/CKSsnOU73N54+4/nqPVZ4aRLo8U1lvqzjAbP97fEvgyBPL 83YYoMEO84ibpJj3oSFWZk7xzhM6eat7JWEcqQ6mHPPNf24XnZPcFmXrRquvkZZJa2yy sYXB25eMNp0SWhNtxJ8x0iBjkpexYE3OyTl4w5xiRvLMSLCLDzvdiuo38OIlQNdxv6UY kPQw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p31si41876837edb.554.2021.07.23.01.34.39; Fri, 23 Jul 2021 01:35:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234622AbhGWHvw (ORCPT + 99 others); Fri, 23 Jul 2021 03:51:52 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:24164 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234317AbhGWHvj (ORCPT ); Fri, 23 Jul 2021 03:51:39 -0400 Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 23 Jul 2021 01:32:12 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/AES256-SHA; 23 Jul 2021 01:32:10 -0700 X-QCInternal: smtphost Received: from c-skakit-linux.ap.qualcomm.com (HELO c-skakit-linux.qualcomm.com) ([10.242.51.242]) by ironmsg02-blr.qualcomm.com with ESMTP; 23 Jul 2021 14:01:33 +0530 Received: by c-skakit-linux.qualcomm.com (Postfix, from userid 2344709) id 4D3312CED; Fri, 23 Jul 2021 14:01:32 +0530 (IST) From: satya priya To: Linus Walleij , Rob Herring , Andy Gross , Bjorn Andersson , Lee Jones Cc: Das Srinagesh , kgunda@codeaurora.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, satya priya Subject: [PATCH V7 1/3] dt-bindings: mfd: pm8008: Add gpio-ranges and spmi-gpio compatible Date: Fri, 23 Jul 2021 14:01:12 +0530 Message-Id: <1627029074-23449-2-git-send-email-skakit@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1627029074-23449-1-git-send-email-skakit@codeaurora.org> References: <1627029074-23449-1-git-send-email-skakit@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add gpio-ranges and "qcom,spmi-gpio" compatible to match with the parent qcom,pmic-gpio.yaml binding. Signed-off-by: satya priya --- Changes in V7: - This is newly added in V7 to resolve below error. dtschema/dtc warnings/errors: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/mfd/qcom,pm8008.example.dt.yaml: gpio@c000: compatible: ['qcom,pm8008-gpio'] is too short From schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/mfd/qcom,pm8008.example.dt.yaml: gpio@c000: 'gpio-ranges' is a required property From schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml b/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml index 7799368..ec3138c 100644 --- a/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml +++ b/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml @@ -53,7 +53,9 @@ patternProperties: properties: compatible: - const: qcom,pm8008-gpio + items: + - const: qcom,pm8008-gpio + - const: qcom,spmi-gpio reg: description: Peripheral address of one of the two GPIO peripherals. @@ -61,6 +63,9 @@ patternProperties: gpio-controller: true + gpio-ranges: + maxItems: 1 + interrupt-controller: true "#interrupt-cells": @@ -75,6 +80,7 @@ patternProperties: - gpio-controller - interrupt-controller - "#gpio-cells" + - gpio-ranges - "#interrupt-cells" additionalProperties: false @@ -107,10 +113,11 @@ examples: interrupt-parent = <&tlmm>; interrupts = <32 IRQ_TYPE_EDGE_RISING>; - gpio@c000 { - compatible = "qcom,pm8008-gpio"; + pm8008_gpios: gpio@c000 { + compatible = "qcom,pm8008-gpio", "qcom,spmi-gpio"; reg = <0xc000>; gpio-controller; + gpio-ranges = <&pm8008_gpios 0 0 2>; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation