Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4730430iob; Sun, 8 May 2022 23:32:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7viVC6/rEnC2gcaBos5JQ83m9rasXUopa/5491i3zt79thXeEm6BfGi3U9srFLH7Cw0Xn X-Received: by 2002:a63:df18:0:b0:3ab:938b:e6c5 with SMTP id u24-20020a63df18000000b003ab938be6c5mr12320090pgg.165.1652077968133; Sun, 08 May 2022 23:32:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652077968; cv=none; d=google.com; s=arc-20160816; b=RcSV6z0ZlTV9aMlkWnoIFqVb2YMi+dmy3+Rt7tkkBv2aVmI0oNrP3icGPG2JFejgFf ewT7fx/4w9jwuqhBpmjpSjXeXanBI1a2KSgqXLwE73/IjF6ZGFB8uwIjPJokmNzfY1b8 Tmu34x3qMIiK3hDa1ce2t5HBfT0tYIlfV1MJYgr7rZxgx/VfcmyUDfCQd7u91Dbkurnk ir/BVel7jRRmbr65XqKfK39Pd/8LVMIm4sBzqLaZ+X1ta0BtZ0Q3ReudGdV5MM5qddVd J74pnF0traooPkfavAfUslDZsE6sELOtBvdFoUJOhl4i74yZZXU+jsUNDwof5JqHzqwL XZeg== 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=2r3/+OViewNvCFSGSyWGiYb4MwqR/7Pu1pcwt8jXkaw=; b=dBeqItmdoOrUWaWdv9e1K9hXXOs+uzU3ydydnebKHPZaBkdsIhPrAiXPNtbO+RDNBw FiSdZ2qEPoO31JgZGeTS4DU+NB7fyPuhV8JJQyYMFAIyFerAb1PYzgq7qRU8M6qg0gzL /G9wUQ50Yoo3oyUujH7DMVyNQspSir1XSdIRs+vQPCNldGPAtqfCXXLMxOt7GpoeujPJ zTe8NGdFv5V6KvGdrP9G0Hr6jUBPJwi3idCBn1BM65CkefRN5ofR0CriNnsjYSUIiRur ehNeT2SCROH4MDPo7Z9K8/KMhJ7+p6sKCUDwY1uEGCaMzKaHMacQ9c8QzAiebH6tUmlC cF7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=liC83NVX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j17-20020a170903029100b0015d0aa41a88si11434522plr.442.2022.05.08.23.32.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 23:32:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=liC83NVX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 338E51862A0; Sun, 8 May 2022 23:28:35 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353355AbiEEJak (ORCPT + 99 others); Thu, 5 May 2022 05:30:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353071AbiEEJa1 (ORCPT ); Thu, 5 May 2022 05:30:27 -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 3854B4BFFF; Thu, 5 May 2022 02:26:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1651742806; x=1683278806; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=2r3/+OViewNvCFSGSyWGiYb4MwqR/7Pu1pcwt8jXkaw=; b=liC83NVXur49WtVo+0T5DFOd0vZj67G/i/khkO08AvlvF/J3yNqu3s3o Q90r79HbCzEhRidcoA8bgW1xTMr2eGRqIoeP5N+ol4y/lvKOAu4dE73mu /JxhtLv89OtlfMTN+QHPwHiQBWKCS0AUUYv5o+3GvCzngILG+OpSP2a36 Y=; Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-01.qualcomm.com with ESMTP; 05 May 2022 02:26:46 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg05-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2022 02:26:45 -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; Thu, 5 May 2022 02:26:45 -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; Thu, 5 May 2022 02:26:40 -0700 From: Satya Priya To: Bjorn Andersson , Rob Herring CC: Lee Jones , Liam Girdwood , Mark Brown , , , , , , , , Satya Priya Subject: [PATCH V11 2/9] dt-bindings: mfd: pm8008: Change the address cells Date: Thu, 5 May 2022 14:55:32 +0530 Message-ID: <1651742739-12338-3-git-send-email-quic_c_skakit@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1651742739-12338-1-git-send-email-quic_c_skakit@quicinc.com> References: <1651742739-12338-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: nasanex01b.na.qualcomm.com (10.46.141.250) 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 --- 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..a41618e 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