Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2490273iob; Fri, 20 May 2022 10:27:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIJLKrlVqdqyvC7kEhmso9rozFf3f2g9Rht7Bqr1hisDMJeFn1FLmwCQjd0YmvDj+FuYek X-Received: by 2002:a05:6402:2789:b0:427:bc78:85c9 with SMTP id b9-20020a056402278900b00427bc7885c9mr12205237ede.50.1653067662329; Fri, 20 May 2022 10:27:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653067662; cv=none; d=google.com; s=arc-20160816; b=W5GdPh/2tcW+dhw7d8pqYEfbixr1wSuN9YU9mq9ZicpNVLsmt8bEGwWZFNcFesz0zL kyd1FhYKPfWuvTCRLXi9V1CmlMBsQbX9xOXouFn9MIq9dxUmsST6h5D98rbVbymRn/qp PAfkP8iu5sw1CAnaNaeQPHCFBRXCypHjSalGWkuCQqPbriB8fjU5jMOalq9ie0DLUxEZ uV7Qr1KphkZB7NJGVlVgM02mg1Qq/YLFvfq+8mBTlQdHvBHKz6g8nRG7BRYxHUN/SLce zYhxgpUq6LK0uexf2GgKy6TASg+CL6cEoHmve5m9+VKXfzjymXxeUmqOFTYiIDDEQlFe IxPQ== 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=BPFRsGv1WK2OfC8kP/xV4o59JTCojF9KD4Ec7qjHFHI=; b=VvZKs+VEL5O6xei4t1I6GF3lY9hQqcAazsNJDiu2H6nGVIKvyA0yr8o55NfT2Om4QD O2gFAM7INNrFxulwInEbGO3IYreAf079b/pJppoWwoaixg98ptOWasn09U8WyCOBdehE po1Lb8NYOqDuzTzfpUnVl+UKG9qpxaUWCbvfyvmTtHas0rIWPBOEr1y1JdE9SM2NIaoC WnxzZzimN7Ij9uubqfGyjAe6wZO/UWVjYSfM8Mttz3Uy/6B6CJfuHhDS5/MkL/mpXZ2D lX4vIgdsFkIXPMeE30NqNwMVgx/6Busi3VCyyEh980GLOU6JVcV3G1plY67EJvDVtE0p 6tiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=MD0Mk7qu; 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 c7-20020a05640227c700b00426024720bdsi5958725ede.577.2022.05.20.10.27.15; Fri, 20 May 2022 10:27:42 -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=MD0Mk7qu; 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 S1348299AbiETKuO (ORCPT + 99 others); Fri, 20 May 2022 06:50:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241277AbiETKuI (ORCPT ); Fri, 20 May 2022 06:50:08 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FD7C62A23; Fri, 20 May 2022 03:50:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1653043806; x=1684579806; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=BPFRsGv1WK2OfC8kP/xV4o59JTCojF9KD4Ec7qjHFHI=; b=MD0Mk7qu7AZBik/kGAZ6Th4eilJgknfpOUNrivkpQPYWEkrLYTsnQyN9 QUDg+4GprkF/KAKhoFsmdDx+YDdUg6RPs4HmEGzBajUZhBGrfIacMOSJX 0ZeLqRZDPgxZ0pKtZ8HoZuK5MBTd90le/SEOdJU0RHg60U0dHsM4e6IpK A=; Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 20 May 2022 03:50:06 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2022 03:50:06 -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; Fri, 20 May 2022 03:50:06 -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; Fri, 20 May 2022 03:50:01 -0700 From: Satya Priya To: Bjorn Andersson , Rob Herring CC: Lee Jones , Liam Girdwood , Mark Brown , , , , , , , , Satya Priya Subject: [PATCH V13 2/9] dt-bindings: mfd: pm8008: Change the address cells Date: Fri, 20 May 2022 16:19:30 +0530 Message-ID: <1653043777-24003-3-git-send-email-quic_c_skakit@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1653043777-24003-1-git-send-email-quic_c_skakit@quicinc.com> References: <1653043777-24003-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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Reviewed-by: Rob Herring --- 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