Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp488759iob; Wed, 11 May 2022 20:13:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3lNe85Q5v37G70TDr8nZI53AtCsQNxO30dn84KG8OH5X4w+p4vKfQvO0n201vkTPTnRql X-Received: by 2002:a05:6402:2753:b0:423:3895:7031 with SMTP id z19-20020a056402275300b0042338957031mr32841279edd.170.1652325214109; Wed, 11 May 2022 20:13:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652325214; cv=none; d=google.com; s=arc-20160816; b=w0TMypZg6W9pYbZ/4t/uJKvU/IvMOoeVLMFjehJ6dGxZBM3MvnAP0GIuQGqLEOoI5S rIZtiz4sQW9sNWeFzD4qX3Z1+xqU95NWYCEfY09Ida2uDotSQP4u9MMb4B8SlWPf7PhA 3ORQ8o0k56llWmSaRta2dsVBKHU1q+MHN8QzUcHVixAAQWu4oq9hryRj+UsgDC2Cdq8v FrV2ujY4Lr/9cFo3AzDDpW6CHB7C4C5JCKXCW9+1BVGIjaJNt9c67VHxUADzrAXLrvgg 9d3FUjup+IRogdh29S4k/8Z0bKYcsuTPzV2qbDDqTRMYsjiEY69lsn08Ua2GOLpvg/CV YqFw== 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=MLNi7pUoudqMH9W7heubpLK4kQeusR8F/h13s9TEF8k=; b=tAScahGBBes8oSINvpg9mMvg7lygbvir+yXexmhI+FM3iqkay+izYAGz0Irx8BZLhq GqWvinCDO+YcPTztQg6/sX3V4v2LN6k0nOOKE6MMMvrA9d0907hpHxBycmW7tKH11682 GjIl5R3DBhwsWUsMcQLnhvhDAt1o99oZkWwfZglMV/OAhm1FplMa1vhHsCslmAglTcEX 4wfAL1C7aUJzrshecoTAC8/Cm34I4wIpWCt7CtSizoKCrmvARyQs7bTYPS/QNMBRdApW EwGs2FSVV7eVqggJ0WBIo5Yb/DRwif1Gbz5NGpYf10pKA4KV7Z0Gl0k2/wcvDOt93hWM ULEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=nl9TXeD+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k21-20020aa7d2d5000000b00425b8e21a14si4301910edr.383.2022.05.11.20.13.08; Wed, 11 May 2022 20:13:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=nl9TXeD+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243524AbiEKNTS (ORCPT + 99 others); Wed, 11 May 2022 09:19:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243730AbiEKNTB (ORCPT ); Wed, 11 May 2022 09:19:01 -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 615AEC5DB4; Wed, 11 May 2022 06:19:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1652275140; x=1683811140; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=MLNi7pUoudqMH9W7heubpLK4kQeusR8F/h13s9TEF8k=; b=nl9TXeD+FCJZPVWCsBCXrHnbN1ecrxL4es//PUb2cfw2GedWIIfZKvYr n22CyR6wFX3OBRyyEcumKNzMOd4alT7tVKLs1zr1gYigTybIxzTswDHu9 ukvYHuUm5cP4Y0C5UKl/kpO9GKwGxiqTpxk7b3dY//ufIBEhja5jb6U/q w=; Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-01.qualcomm.com with ESMTP; 11 May 2022 06:19:00 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg04-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2022 06:18:59 -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; Wed, 11 May 2022 06:18:59 -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; Wed, 11 May 2022 06:18:54 -0700 From: Satya Priya To: Bjorn Andersson , Rob Herring CC: Lee Jones , Liam Girdwood , Mark Brown , , , , , , , , Satya Priya Subject: [PATCH V12 2/9] dt-bindings: mfd: pm8008: Change the address cells Date: Wed, 11 May 2022 18:48:26 +0530 Message-ID: <1652275113-10277-3-git-send-email-quic_c_skakit@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1652275113-10277-1-git-send-email-quic_c_skakit@quicinc.com> References: <1652275113-10277-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=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 --- 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..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