Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp768880iob; Thu, 12 May 2022 04:23:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaKyXeyYqv6ZtyX+jafQvSES+UGGqenj4mRRTdKKbZsDyklwNkkxF4ZBZiOsuNt9BLytU8 X-Received: by 2002:a62:f20d:0:b0:50d:6961:7b75 with SMTP id m13-20020a62f20d000000b0050d69617b75mr29696063pfh.19.1652354630615; Thu, 12 May 2022 04:23:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652354630; cv=none; d=google.com; s=arc-20160816; b=b28/lHfbTbNdaz40+uYgHuFB83pFVMrXcS5/PLGu9FRgWVzb513Iz+ZCdKk2bXGnj6 N4DNqyVd0gaRUpB4ZvydcySVNI3W8DeMqrEUiVc5BgCUIrBVWG6vhulA3GipXOL4bDqJ 0jnNjQfy0jC7o8MNxXkE9s2RMKQAqziDGLZs8U9uVwmcgNevjuYSHXuplCN3MUOPcmUt n6XWNDZjhYOnH1UPCaiENMXJm1yiAKJBQfB2rwbyXIno0Y/njYocBdSh7KbQ87oK6GuV Mv2K9AlxGwEl5hM5Hj7ECGC8BDspyLirHUgkZNhSZAAF5jPvdCNTI43lp/opchn1An9B 20UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=z06cn7d/G69c0xSOTqxfuLMjJW9goLXOAMM1t5ljbEY=; b=KBy7LSEyfvWuMeyUDzlsyowOtVZqUCmo/qPbo8GYe78ugGX9zL5GujGEDJdXEdT5Yn MeL4N3Mi5ojjqoao+WpmUIH49X+IlaREaA/6cWkEAiBCYTDya642pRkeaaT2MVzHjHK9 3qqEGnBfc3K5zNwcs//8Rj/vBYuwQXS7cYuaiigxv0vZjdVfCIxdIK4NTDINA3Y148LZ ZhPrSovw1pCFq3wL5BajPSO28KIWr7/RR0fa8tKMQfUqGZ1/lRbkPhL7Z3lYz/abU8Ct r1qayrsBYIGqr2hK4qJ+Q67JB9ZvGprkzFvQoNrj0skMI6PP4/BgDoUax6/72mRl6KUo fD8g== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u63-20020a638542000000b003c6af783a2fsi2996115pgd.797.2022.05.12.04.23.37; Thu, 12 May 2022 04:23:50 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240249AbiEKOL2 (ORCPT + 99 others); Wed, 11 May 2022 10:11:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbiEKOL0 (ORCPT ); Wed, 11 May 2022 10:11:26 -0400 Received: from mail-ot1-f49.google.com (mail-ot1-f49.google.com [209.85.210.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A732469B6D; Wed, 11 May 2022 07:11:25 -0700 (PDT) Received: by mail-ot1-f49.google.com with SMTP id l9-20020a056830268900b006054381dd35so534495otu.4; Wed, 11 May 2022 07:11:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=z06cn7d/G69c0xSOTqxfuLMjJW9goLXOAMM1t5ljbEY=; b=sXRFys/Lp75204n8zPJTPjwU5BY1G8PgQE2fXeesgdwZ3WEvbBL1LQlyUuI+48+QiJ F57ICzyhBh7Yp8RuLI9N3ZCVxawCpkAj/yDZPZpw4d+TNf9nXtE6nt3965DyjNeKWyF0 yGaFDljuuWhKSsay73AShl7gEt7h8maNRVlq8oF4twptKGDjtyBGriJELdytIJneZhYj mV1Pki89WS4Xk7SLn2bSQtVkqbe9xa2Tbba6b3K96IyuuxPpem0QQVombwE46oOpoLMs xZP1p8nXGP1bIJHGfeZ0kMlbKO2lpJhb+1QJwKMc0i7ZFPiJuBenOA/kqOKGdJNaFJ9L WO7Q== X-Gm-Message-State: AOAM5302SGASvfUwi1tkydMo1POTgFr62fi8HIYTo5dQrtDTwqZWKfTM 4c2QInM2/33LqxiraGdOXw== X-Received: by 2002:a9d:195:0:b0:605:eb43:5b84 with SMTP id e21-20020a9d0195000000b00605eb435b84mr10001291ote.357.1652278284426; Wed, 11 May 2022 07:11:24 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id c17-20020a056830315100b006060322126esm819796ots.62.2022.05.11.07.11.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 May 2022 07:11:23 -0700 (PDT) Received: (nullmailer pid 234685 invoked by uid 1000); Wed, 11 May 2022 14:11:22 -0000 Date: Wed, 11 May 2022 09:11:22 -0500 From: Rob Herring To: Satya Priya Cc: Bjorn Andersson , Lee Jones , Liam Girdwood , Mark Brown , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, swboyd@chromium.org, quic_collinsd@quicinc.com, quic_subbaram@quicinc.com, quic_jprakash@quicinc.com Subject: Re: [PATCH V11 2/9] dt-bindings: mfd: pm8008: Change the address cells Message-ID: <20220511141122.GA226988-robh@kernel.org> References: <1651742739-12338-1-git-send-email-quic_c_skakit@quicinc.com> <1651742739-12338-3-git-send-email-quic_c_skakit@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1651742739-12338-3-git-send-email-quic_c_skakit@quicinc.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,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 On Thu, May 05, 2022 at 02:55:32PM +0530, Satya Priya wrote: > 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]+$": ^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 > >