Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp129189pxb; Thu, 7 Apr 2022 00:50:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYKnLQC5pw1s1VUFO85Omn3Gtf5zodOWBZFoJJ4NwZlhXQvGOYb7CaZtL2S5BBqLnYqKbf X-Received: by 2002:a17:90a:9416:b0:1ca:9cff:7877 with SMTP id r22-20020a17090a941600b001ca9cff7877mr14575587pjo.141.1649317833634; Thu, 07 Apr 2022 00:50:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649317833; cv=none; d=google.com; s=arc-20160816; b=MxOtK0QGjYO+RZjxj24JP2CSwJ1bSX1QbDwV7S4GxuH+5rEhN37OWNu0MWrn8E1TZB OWW502A+ef6bmsej1JzFLa0oMKVK5PXOGat6JaBXFKg4Bpwe0I20IPRd3o5Lo0GT698n vzfEM1KauR6sjIw4m26c4Ari6l4Z/VIcmzn6L2gmKEMvg5Xv/LKVTp0A/MeRpkeYl44j TNf3+HYBpFlVh5KZUPR24H2tTc9N6w6fVVu4dEStLm1l5SGKf7XjVzUIFXoUAYfecCiF UrXS9uAgBy5TacwN8rmLkBXu7qwmynSnW9XlCl+Qid9HGWC16y1Z4RWP+KTKoHbr85Q7 h9sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=WRHcwAZsrJSbQqVeku+LCjPc+dm4mQsYd2guFxSdvzM=; b=brtbEpO1rD7YdqUuzmXbL4zXTcD7VF39JB0gApMEgYU8osIs1V0052i7yvUu9Vew6r m75rindJC7q2XwCTdwXN+A/pF1vf3ODJfQ1Ghn5EzHDWYqEoPn77YoS91KEcY3UI0l4h BjMz0TmEJInxCTGOMKENpeaxrwvc1G+6JAemJfXJLvseH9NCERm0YHfmDvQ0/vUg1BcM YSbRxls1int330/ustjm0VVEQLOKQaFNWEhqUov0rDEPVuIQpjBFRmFcTdV5MzeKAZKM LOh+w4npeEy7g6V4VBdAUpKhooebgQxsku1As7t7rBVKuvX27ETUMgcrIaW/zufeoYG9 haOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=YlgnlEVN; 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 h10-20020a170902704a00b00153bfa012bdsi16677997plt.378.2022.04.07.00.50.19; Thu, 07 Apr 2022 00:50:33 -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=YlgnlEVN; 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 S231185AbiDGFOz (ORCPT + 99 others); Thu, 7 Apr 2022 01:14:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234584AbiDGFOt (ORCPT ); Thu, 7 Apr 2022 01:14:49 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 087C295A04; Wed, 6 Apr 2022 22:12:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1649308369; x=1680844369; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=WRHcwAZsrJSbQqVeku+LCjPc+dm4mQsYd2guFxSdvzM=; b=YlgnlEVN0s3P75zZTRifc2VE/O+DuHooQrXElTrgPNw/83M+6DrYZh6s 5DmwdpY44NCub6kQbaoTW0ooP7usgQHFFr4ds69k4JUjF7VRri62/+zon MUiZdmxSvK1z11ErhFuOlbX70WpP87fywwcRtbM3xoISnpbD4cIjYGtVy w=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-02.qualcomm.com with ESMTP; 06 Apr 2022 22:12:48 -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; 06 Apr 2022 22:12:48 -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, 6 Apr 2022 22:12:48 -0700 Received: from [10.216.2.192] (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, 6 Apr 2022 22:12:43 -0700 Subject: Re: [PATCH V9 4/6] regulator: Add a regulator driver for the PM8008 PMIC To: Stephen Boyd , Mark Brown CC: Bjorn Andersson , Rob Herring , Lee Jones , Liam Girdwood , , , , , , References: <1649166633-25872-1-git-send-email-quic_c_skakit@quicinc.com> <1649166633-25872-5-git-send-email-quic_c_skakit@quicinc.com> From: "Satya Priya Kakitapalli (Temp)" Message-ID: Date: Thu, 7 Apr 2022 10:42:39 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US 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=-7.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 On 4/6/2022 11:46 PM, Stephen Boyd wrote: > Quoting Mark Brown (2022-04-06 10:27:44) >> On Wed, Apr 06, 2022 at 10:21:01AM -0700, Stephen Boyd wrote: >>> Quoting Mark Brown (2022-04-06 09:36:14) >>>> On Wed, Apr 06, 2022 at 08:51:48AM -0700, Stephen Boyd wrote: >>>>> My guess is that this is one IC that responds to multiple i2c addresses. >>>>> The "main" qcom,pm8008 address is 0x8 and that supports things like >>>>> interrupts. Then there's an address for regulators at 0x9 which controls >>>>> the handful of LDOs on the PMIC. >>>> So it's like the TI TWL4030 and Palmas - in which case it should >>>> probably be handled similarly? >>> How did those work out? I wasn't involved and I don't know what you >>> mean. Do they have multiple i2c addresses they respond to? >> Yes, exactly. The main device uses i2c_new_dummy_device() to >> instantiate the extras when it probes. See twl-core.c > Cool. That approach sounds good to me. Then the regulators can be child > nodes of the qcom,pm8008 node at i2c address 0x8? It still feels like > making a struct driver for each regulator node is overkill and will > waste memory. > >>>> Note that the original sumbission was >>>> *also* a MFD subfunction, but using a DT compatible to match the >>>> platform device - this is the first I've heard of this being a separate >>>> I2C function. >>> I'm mainly looking at the dts file now. It clearly has two i2c devices >>> at 0x8 and 0x9. Maybe the regulator driver followed the mfd design >>> because the first driver for this device is an mfd. >> I'm guessing from the naming that they're also externally described as >> the same device - presumably it's two dies shoved together in the same >> package for some reason without being otherwise joined up. Is the >> second device geniunely regulators only or does it have anything else >> bundled in there? > I think it's regulators only. Pretty sure I asked qcom this a round or > two ago on this patch series and they said that. Let's wait for Satya to > respond. Yes, it contains regulators only.