Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1620263pxy; Mon, 2 Aug 2021 06:23:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxV31hkxSDsthQ1POWbw9A5eafcz7iwTFEYuMDPl1/VoqCqxodIxl6Nf4njc1wuwxicTbe2 X-Received: by 2002:a05:6602:218c:: with SMTP id b12mr1624046iob.82.1627910614128; Mon, 02 Aug 2021 06:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627910614; cv=none; d=google.com; s=arc-20160816; b=e3h7t2oTg2MrBtsfraWnt47t1S7ctAI6ZRBhg+Liml0Rz0MjgLNxicNAfLOqgGg6Qd iKZnwKL4r+1nAgspcFznVrUQfftLgtJnGmXsM62oyy5q/q6WfQQpq36lgtfIFAGq0Rjz 72cXv/5SbMAp6BPmTKxhaozjKoBQzc1TJVeROF5iVzqL9MvT9S3CdjSqYbvxPv3vgkDc KqTIAWrruZUXoo1P1KKee9yZF7qNdScCGet6uE4dD8rtLxt46yy5kSEeXlw0LLXPBPQx EY5OFgiqgMjt9hJeNEgiqSfIe/3qV84hcug4n0w7hfc9nrDCenlb9wfYgNMUEZRGovsa OUqQ== 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=PgksPwi/w89NCwzt3kRLvOVuy1+w6AXFB7iakYaVM5w=; b=TGjxVH0twncbn0kQsDj8b9uTAhMYqR52+v+ziZylQ/HX/cXe2wCYOEn364qvTtp9ZM Qly5S4zTyIvx5ixRmNR1oHvE9Is/TCjxVv1NKE0I2KcXjWEz1//UYPSQzkx9+0TcXYjW F7XOI6Wiem0Cj8FBBzhKyvxVHwWf70l+6UOROswhr2ViDq5prEZJNmluBbl3fm9j8Olt mJMtsRpS3B0hHghgXydCGjfwQlAbN/fp4P/n4uMF/E5q9R5RfOVkn44zzUPcQW9lSdTp fnGLXr//h8QrHn6DAkXWPKOqAvrH2nbGnC6Zc+o/JsSVVlbXGDS0d22YpXKBLNS0vPx/ HuSw== 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 m10si15125696ilu.53.2021.08.02.06.23.22; Mon, 02 Aug 2021 06:23:34 -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 S233940AbhHBNWX (ORCPT + 99 others); Mon, 2 Aug 2021 09:22:23 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:1522 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233887AbhHBNWR (ORCPT ); Mon, 2 Aug 2021 09:22:17 -0400 Received: from ironmsg08-lv.qualcomm.com ([10.47.202.152]) by alexa-out.qualcomm.com with ESMTP; 02 Aug 2021 06:22:08 -0700 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg08-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 02 Aug 2021 06:22:04 -0700 X-QCInternal: smtphost Received: from c-skakit-linux.ap.qualcomm.com (HELO c-skakit-linux.qualcomm.com) ([10.242.51.242]) by ironmsg01-blr.qualcomm.com with ESMTP; 02 Aug 2021 18:51:25 +0530 Received: by c-skakit-linux.qualcomm.com (Postfix, from userid 2344709) id 4FC705368; Mon, 2 Aug 2021 18:51:24 +0530 (IST) From: satya priya To: Linus Walleij , Rob Herring , Andy Gross , Bjorn Andersson , Lee Jones Cc: bhupesh.sharma@linaro.org, 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: [RESEND PATCH V7 1/3] dt-bindings: mfd: pm8008: Add gpio-ranges and spmi-gpio compatible Date: Mon, 2 Aug 2021 18:51:02 +0530 Message-Id: <1627910464-19363-2-git-send-email-skakit@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1627910464-19363-1-git-send-email-skakit@codeaurora.org> References: <1627910464-19363-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 Reviewed-by: Rob Herring Reviewed-by: Bjorn Andersson Reviewed-by: Guru Das Srinagesh --- 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 Changes in RESEND V7: - Rebased on linux-next. 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