Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2518753rwb; Thu, 29 Sep 2022 11:11:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5XcprvAEvTn5eWJWP0BsoVxQejJrMBinS/SEiAGZ+Ty3KzAKsxg+mNLyVMNqYl/KoVh1re X-Received: by 2002:a05:6402:1394:b0:456:97cd:e9d4 with SMTP id b20-20020a056402139400b0045697cde9d4mr4594865edv.174.1664475115322; Thu, 29 Sep 2022 11:11:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664475115; cv=none; d=google.com; s=arc-20160816; b=Ft8DvqieE3OyUfohnWuS0pJ+MimyV/dBNpoSaC5rjlfy4Yc89+VxnYnXGqsE/Q2YCE oRKlhi02VHhSVOZKKGgAoiqur/3XiMVIkPds/fSRHy/tHMdr2SO50eAJhImKxiflJiA+ 6ErtjF8AUo2pXpVYF14ZUn5vq6fZqkidukMC+NGfJmpkax1f3OiOHfYYbu5687NqMIy+ NSKioAkQHOFT0H44/DUTnGy3U6VDfDI2yNxFIwhRKlHvmEvPAAyw58KdeNx9nb/zpscF beEOex/jyO8p+sdfB9fZ/9NKJ3mGiTuW4gLwvCS8vrBwLHfFQF/uqmbzpEmGf4eURncl 4KgA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=TASdd4DdcN6jmiM3yEZKfNXvFDZHwqy84lxfQEjLb10=; b=F7WOoYNzemaHS10KR5DGxyKWpOkSnVfUbmEF9i4oJTSi9LWp2RbK9+njj6W7C3iLUO uMA6clmU1Wzon6IkT7UMhxl1IDsMDqhM//CeW13EeMCneTwSV/XuUfOaRxaDbY5fcsLd EdsihxL5SwMv79j72U6ZzeKWcfQsEZgfeOdq2mytxAboPZ0/TBRB0KPwzhSSLo2MTTlF cbFlOef/H3ed9NRy7ALgSH3ji02bI/cR7vjwa1y1Wo7rKezVn2rWQr7p3Lmbzf0OUbzA YRSAcjDzH4MHeHo16LdsQpmRY7J0DzLd7RIcBGY85B+pFAGfkTx4PkrnWj86KGtRsyLq SMrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mOeEtd3y; 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 d16-20020a056402401000b004572a1eeb1bsi147091eda.329.2022.09.29.11.11.30; Thu, 29 Sep 2022 11:11:55 -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=mOeEtd3y; 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 S235025AbiI2SBw (ORCPT + 99 others); Thu, 29 Sep 2022 14:01:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233332AbiI2SBu (ORCPT ); Thu, 29 Sep 2022 14:01:50 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68E32E1712; Thu, 29 Sep 2022 11:01:49 -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 ams.source.kernel.org (Postfix) with ESMTPS id 14957B8261E; Thu, 29 Sep 2022 18:01:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0995CC433D6; Thu, 29 Sep 2022 18:01:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664474506; bh=8kPx1R+nzlwzeGOnOVa6U8w+cN8OtIbZrTk9XJl4ZPo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mOeEtd3yQKKExfmgIbEwcT7E4lywbxhgdir4oc/A2OJQM0mX7hAkb6i/hiezadYe/ KQnkuzSxgz+BodeswtnfcLndYU89vEtGuq83G8eKN7TKfha8YgbgG3HB+avSpGJgJv hJUlWOhsGvjDk9saNxPZhUa9JF6nSgIoHUlu74QY5FxbJ8cYnZEOJcUmVTr3uRZmMT xA2AJLrZRtSi7tYa6GSMNkS+l81Glwn3+7wj79+suwPpJNMK0G7dVvLNealOTQ5eDu UBxamd+Uwgwj5EHOwHycZALVDRIOYtGJUy13+pCZV7eJ12EMOVbpEzj0ye287fjnSI bz2GbQx5xGl4w== Date: Thu, 29 Sep 2022 19:01:41 +0100 From: Lee Jones To: Stephen Boyd Cc: Lee Jones , Satya Priya Kakitapalli , Mark Brown , Bjorn Andersson , Rob Herring , 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 V15 6/9] mfd: pm8008: Use i2c_new_dummy_device() API Message-ID: References: <52039cd1-4390-7abb-d296-0eb7ac0c3b15@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-7.2 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 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 Wed, 28 Sep 2022, Stephen Boyd wrote: > Quoting Lee Jones (2022-09-28 03:20:30) > > Wouldn't it make more sense to simply separate the instantiation of > > the 2 I2C devices? Similar to what you suggested [0] in v9. That way > > they can handle their own resources and we can avoid all of the I2C > > dummy / shared Regmap passing faff. > > > > [0] https://lore.kernel.org/all/CAE-0n53G-atsuwqcgNvi3nvWyiO3P=pSj5zDUMYj0ELVYJE54Q@mail.gmail.com/ > > > > You can continue reading the thread[1]. My understanding is it's one > chip that responds on two i2c addresses, thus we don't describe that as > two i2c device nodes in DT. Instead we describe one node and use the > dummy API to make the second i2c device. > > [1] https://lore.kernel.org/all/Yk3NkNK3e+fgj4eG@sirena.org.uk/ As Mark says, it's probably 2 separate dies that have been encased in the same IC and are otherwise unconnected. Not sure I understand the comment about not requiring another 'struct device'. It will still require that whether it's a platform device or an I2C device, right? -- Lee Jones [李琼斯]