Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2154004iof; Tue, 7 Jun 2022 21:33:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0Q/uetkIIA5szuRwcDWwXSMQvwIULAA5I0ylb9qTMiz5DlB4wrXz++Ot6+dGjVX242kRF X-Received: by 2002:a17:90b:1e42:b0:1e8:7669:8a1c with SMTP id pi2-20020a17090b1e4200b001e876698a1cmr17346767pjb.206.1654662810143; Tue, 07 Jun 2022 21:33:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654662810; cv=none; d=google.com; s=arc-20160816; b=hCCyGF0k0A+cQcqfzZFZfKXrr13vESxRR0qRpATNdhFTOoCnCO/1qM3Fkoi7wAzE7q f5gqSR0G47IOIeck44GD7TD+eUh+IAwO085KqHurcI3MyAiDocKVf5pu/NpwnaOOGk3A DgcbLIf8NXalGVq8nKyKjDONr330koL+jNlGmTJVxQAXEDlvNJEliGpxdSzjuRhzjYXT OTmasDQIclp8bM2pon86U/TAlPHOdrMDDQROl7Mf1Hjgt0YkrbYaPjvx0nCrWdvQTaLW l0oVxOyzeYkUMClw8maq+cU8NYp+Vc0YGHDVXKQn3Zt/EZEdIp08pCFXAZhvcaNEyzTG Y53g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=WpSBUwCrOHkuI0vw9NWC0bFhaX0vfYUnegYN+/OJ2jQ=; b=NtP4H6fH26FNAbGAegoXLKzxXMa5BQQdQayTU51kqup8mofhRgB66RK11c973WWpdk 0fplnvwdu/PfIdSL0MyEEr4nWyIMf1HYgUfblbPCq1fO1wkXwtyC+U6AkLk0ZZzBgpM1 ffcH/KnQK/hP1SD/GJlCqDYRiShAeybNFli9O9+emUPuPRv4ID0xAAtihiAhRHOnHK1d EsIPPJZrB2KHoXm1JFgQPyNaEHs5RFlQulX89lkCEbUlbhFMVDca+ByZNd1Df9a4u3PT osg/o0EDnyF64jUJKQwoSf1Ts9nm+aN/psP5o25c1PLCXfeMOyy5mriERJ7s6wSTJ//C 8fDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=xdkvKxNY; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id u11-20020a170902e5cb00b0016646a4d661si22111962plf.377.2022.06.07.21.33.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 21:33:30 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=xdkvKxNY; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A076142B69B; Tue, 7 Jun 2022 21:02:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243139AbiFGLvE (ORCPT + 99 others); Tue, 7 Jun 2022 07:51:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243166AbiFGLuy (ORCPT ); Tue, 7 Jun 2022 07:50:54 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BC8CB2263; Tue, 7 Jun 2022 04:50:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1654602650; x=1686138650; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=WpSBUwCrOHkuI0vw9NWC0bFhaX0vfYUnegYN+/OJ2jQ=; b=xdkvKxNYOS9+bJ9Ig6Pk1D0UMNA2RqlhlBlPt3ZS6FAkuKtykrNkLGae iKKX3/S9UpUniVcrLUsQgnBGl25RY1rHwt4i3APR1cdnxBwQBmAakctDE Vm51bYwYsY2J64WUTP/MFEhqAze+0+GyWSXKGSsU0yUTMMkTB3co0SGzF E=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-01.qualcomm.com with ESMTP; 07 Jun 2022 04:50:50 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2022 04:50:49 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 7 Jun 2022 04:50:49 -0700 Received: from c-skakit-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 7 Jun 2022 04:50:45 -0700 From: Satya Priya To: Bjorn Andersson , Rob Herring CC: Lee Jones , Liam Girdwood , Mark Brown , , , , , , , , Satya Priya Subject: [PATCH V14 2/9] dt-bindings: mfd: pm8008: Change the address cells Date: Tue, 7 Jun 2022 17:20:08 +0530 Message-ID: <1654602615-28849-3-git-send-email-quic_c_skakit@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1654602615-28849-1-git-send-email-quic_c_skakit@quicinc.com> References: <1654602615-28849-1-git-send-email-quic_c_skakit@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Change the address cells as '2' so that the first cell describes the i2c address offset of the clients. This helps us to define the child nodes of all clients under the same parent mfd node, instead of adding separate mfd DT nodes. Change the gpios reg value accordingly. Signed-off-by: Satya Priya Reviewed-by: Stephen Boyd Reviewed-by: Rob Herring --- Changes in V14: - None. Changes in V13: - Fixed nit. Changes in V12: - None. Changes in V11: - New patch added from V11. Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml b/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml index a89649c..a54d1ce0 100644 --- a/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml +++ b/Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml @@ -39,7 +39,7 @@ properties: interrupt-controller: true "#address-cells": - const: 1 + const: 2 "#size-cells": const: 0 @@ -48,7 +48,7 @@ properties: maxItems: 1 patternProperties: - "^gpio@[0-9a-f]+$": + "^gpio@0,[0-9a-f]+$": type: object description: | @@ -61,7 +61,7 @@ patternProperties: - const: qcom,spmi-gpio reg: - description: Peripheral address of one of the two GPIO peripherals. + description: Peripheral offset and address of one of the two GPIO peripherals. maxItems: 1 gpio-controller: true @@ -110,7 +110,7 @@ examples: pm8008i@8 { compatible = "qcom,pm8008"; reg = <0x8>; - #address-cells = <1>; + #address-cells = <2>; #size-cells = <0>; interrupt-controller; #interrupt-cells = <2>; @@ -120,9 +120,9 @@ examples: reset-gpios = <&pm8350c_gpios 4 GPIO_ACTIVE_LOW>; - pm8008_gpios: gpio@c000 { + pm8008_gpios: gpio@0,c000 { compatible = "qcom,pm8008-gpio", "qcom,spmi-gpio"; - reg = <0xc000>; + reg = <0x0 0xc000>; gpio-controller; gpio-ranges = <&pm8008_gpios 0 0 2>; #gpio-cells = <2>; -- 2.7.4