Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1270300pxb; Wed, 6 Apr 2022 13:13:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7x7vFeDxEJKdOkQaoIaSL0jPtt2NI+BNOXqIET4prvOuexTMLx6SPRw8t7pjSQwmWq09z X-Received: by 2002:a17:90a:31cf:b0:1c9:f9b8:68c7 with SMTP id j15-20020a17090a31cf00b001c9f9b868c7mr12075600pjf.34.1649276004870; Wed, 06 Apr 2022 13:13:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649276004; cv=none; d=google.com; s=arc-20160816; b=iGSJT3nF2lu7NoZbJw1MS6Vv2WG+9LC4YK9MD8RM108F3czOUsWHdVRE2MNDUHamSp hDbY7RZOfTCQltXFsn80Qka4xUefYXS1FhyFtl9LRaagUPFr9AI8/UsyCdVoE67zbWal wHLPzikoO+WtqBZoYQv3mNA3gqGE/mQGe25z2BUozLt/2KlKnEYHgwCoDC3qUKxeu8vv ShckFyvoJSjZBCNQkzVhMlAUnN8iB/q20QkxJsIny7tI1WXUbkPHe4FS5VqBZCFonZv0 jax48Lh3zTwHL8e4d05wQ8LsowTJdqn1YdFxxDgwuAq/Hay5mqYFHHuExK3yYP7H//dJ jFvA== 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:dkim-signature; bh=6EGAnsI4zSLEoWhY3DLhB9JeqY0D+xnZzxHb/obBxd8=; b=tAyyS3VQ7gBD8IX0PgrYDoRHxQutZWHHg5EY5BYTDB8ts/0/9WnGcipMi+blvo58Ea Z9MnDdgq91vyxXZ4Gt/oPBPQ2lOLEcbGTYeGzj7bg05FJxEEOrn9mJdvRLF1yQwmsHGN VW08/ry2a+RMC0FnnLgfSne4NuakbtqL6v2K2xSY5wIy5+p6xfDTuCp+0FawuAhb216p 4uuD3SIYkNi7NE1V4TkHkPNm7N7b7BsfnfgUesK8TrUnrfAoBMam/SNbDHuac8POUK1F mEXQv6j84XhwVXymgiael33mdGDWAJ7wmghhggTjTVNee5w2AXXkzDzofEtefoYPwISm lPWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="KpOqj/1s"; 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 b9-20020a655789000000b003816043ee67si16909106pgr.92.2022.04.06.13.13.10; Wed, 06 Apr 2022 13:13:24 -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=@kernel.org header.s=k20201202 header.b="KpOqj/1s"; 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 S232549AbiDFTsr (ORCPT + 99 others); Wed, 6 Apr 2022 15:48:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232521AbiDFTsg (ORCPT ); Wed, 6 Apr 2022 15:48:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFC8B2BE95A; Wed, 6 Apr 2022 10:27:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 28E8E619B0; Wed, 6 Apr 2022 17:27:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F3A0C385A3; Wed, 6 Apr 2022 17:27:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649266070; bh=KkbMhLobN1kUPbYF3z6kvOiUl+FffGQ29J+yE6RzbfE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KpOqj/1sc8kVfifET6SQ+laj1UNM5oR9gU7nJO8IZecB3y9chc9k7RSuHPvHf4Oa8 weuLl/40Cer9aqaBip8lU19AfVifuiUbLIMJTke2I86xckNhCqaKY38HoZegEdVcHN 4SI09GeOgWj8ljB5tS1phi+NEuldGIJu+biGg01FJns73NDJ05xtJdS3qz5Sti7SFU r6w1dY/TRs/UXk+1U34lBW9yhdlmy+eIiNf1ZNdbFo+fKZsrZHpA0mLLqagAHo49bQ DnZKdqHQOekVYmq0dDmOnoso3I/iiGS7P4YHgDau1fIPAzNenLwFCLgB4W1i5quJgY M+QsqS3bu429g== Date: Wed, 6 Apr 2022 18:27:44 +0100 From: Mark Brown To: Stephen Boyd Cc: Bjorn Andersson , Rob Herring , Satya Priya , Lee Jones , Liam Girdwood , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_collinsd@quicinc.com, quic_subbaram@quicinc.com, quic_jprakash@quicinc.com Subject: Re: [PATCH V9 4/6] regulator: Add a regulator driver for the PM8008 PMIC Message-ID: References: <1649166633-25872-1-git-send-email-quic_c_skakit@quicinc.com> <1649166633-25872-5-git-send-email-quic_c_skakit@quicinc.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="004SQJl7509giZyq" Content-Disposition: inline In-Reply-To: X-Cookie: Look ere ye leap. X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 --004SQJl7509giZyq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 address= es. > > > The "main" qcom,pm8008 address is 0x8 and that supports things like > > > interrupts. Then there's an address for regulators at 0x9 which contr= ols > > > 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 >=20 > > 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? --004SQJl7509giZyq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmJNzY8ACgkQJNaLcl1U h9BXDQf9HHPmN8O2BxmVgWl0924qhTw/rou4mgZ3GdP/YtQLxAe7A2e6GzabQjKE M/82tK6k4zp0QJtXTHsqRgdpAYintpwbabCQKzku1DHfNTFSivLhouIiFPqO+qlT 3X6zsi8OwWHjJs7CZxJ4SeFNQ1Nwn63W+BMqeGl6K775QQ2JgRc1Qit42PZl/6SA nLAnL5p7F4a0WfKdw/HOWjhmjhwdI1OauB8lYVBgOWrZburTbeR9sWmnrLRYtoyI FHDIxwhCcM1YEj1tqxpoNuaYzWxbBY3afPPNLsGJgM20OPUlD+kDmhunV7LyidxW FW5Yp0vrMvbtBr9VGmtDahPoxpdO8Q== =qZSa -----END PGP SIGNATURE----- --004SQJl7509giZyq--