From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B46A5C433EF for ; Fri, 1 Jul 2022 07:38:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235393AbiGAHiI (ORCPT ); Fri, 1 Jul 2022 03:38:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235366AbiGAHiD (ORCPT ); Fri, 1 Jul 2022 03:38:03 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2CD56D57B for ; Fri, 1 Jul 2022 00:38:02 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id j7so758183wmp.2 for ; Fri, 01 Jul 2022 00:38:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=/vcgopOT2upUpDmIm53joh9K47D2C5Zrxpx/Q99r1iw=; b=xfHF/7sOVLQbcrw/u3cF6Y/rTHyKvSuiPGBZUlQlW0fyz927MfEa67jigZSFeshdEL yMFSBaIcRtVUERLtB/GAYRjMhdzLnJzIcHF8pnaRINLo9ckajo59vti4plXq10oog7pZ EeDyAoqjphNoN5236krqhyHl3y0h+UWKpHsiR/PDg/ND3svkTPKOhe4ovChPuaaLfjMS j1+kQgPn+mvEcP7wcb2nE6Rl+ojqrJgN26I9/eKlf38Bn7EFV9Stywa3xRYiT5cmLc0H vJ7C0Y1m6n1PEyz8gkUYAXd8YKIBMOjpMM/+nm3XEEWVSejX9AcnqAR6iAABNbcc5m6y dbrA== 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:content-transfer-encoding :in-reply-to; bh=/vcgopOT2upUpDmIm53joh9K47D2C5Zrxpx/Q99r1iw=; b=7A4DIXXGbD57nAffLi4svpM6a/gjHiQ2CB5G2B6JAJLw1LS3pBV5YkvD/m3I8k9vUl DtPHGiNmQGIQ/1izK2KKPVA+oBw37d9ucFLcyCPvUlw1+cKuDaEpSE0T07gCZ+Z/L5NP kHEmTiUi35tAayOXvaSnLPE+qZ54ci2BkxGfYiF0VCmtnw+98j/JbaioeCh209E9VYpd zziagwHTSgeO1svGx8CEG85LtA2mZlidcni3AjP72BcL1OVO/61ih92LosxTf4ERCVaz mis8Lsbv3mkIKFaXpW7OMJP97hm5wHhPWwzsboul1Goad7le89hcvzE3g1I+S3UhB/3i yT7g== X-Gm-Message-State: AJIora/+DHj7izJ3W3LSV9dFPaxXh+D1D+g2UaiSliGq1MtTEvOZl6Yw j3wZXE//dN6fxlsO8YN+3hxWzQ== X-Google-Smtp-Source: AGRyM1vhl++y9Dmpa+muBRGRxUCfXmkkzS/X7bXlmXQMyI/GPJ2xIFIFzE2c8uw8U5HACanB9o7Y3g== X-Received: by 2002:a7b:c310:0:b0:38c:f07a:e10d with SMTP id k16-20020a7bc310000000b0038cf07ae10dmr14732650wmj.110.1656661081441; Fri, 01 Jul 2022 00:38:01 -0700 (PDT) Received: from google.com (cpc155339-bagu17-2-0-cust87.1-3.cable.virginm.net. [86.27.177.88]) by smtp.gmail.com with ESMTPSA id v17-20020a5d43d1000000b0021b95bcaf7fsm21253318wrr.59.2022.07.01.00.37.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Jul 2022 00:38:00 -0700 (PDT) Date: Fri, 1 Jul 2022 08:37:58 +0100 From: Lee Jones To: ChiYuan Huang Cc: Rob Herring , Krzysztof Kozlowski , Mark Brown , dmitry.torokhov@gmail.com, Liam Girdwood , cy_huang , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , lkml , linux-input@vger.kernel.org Subject: Re: [PATCH v2 2/4] mfd: rt5120: Add Richtek PMIC support Message-ID: References: <1655892104-10874-1-git-send-email-u0084500@gmail.com> <1655892104-10874-3-git-send-email-u0084500@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org On Fri, 01 Jul 2022, ChiYuan Huang wrote: > HI, Lee: > > ChiYuan Huang 於 2022年6月27日 週一 晚上10:56寫道: > > > > Lee Jones 於 2022年6月27日 週一 晚上10:22寫道: > > > > > > On Wed, 22 Jun 2022, cy_huang wrote: > > > > > > > From: ChiYuan Huang > > > > > > > > Add Richtek RT5120 PMIC I2C driver. > > > > > > Why a whole new driver? > > > > > > How different is this to rt5033? > > > > > > Looks like this could easily be woven into this existing support? > > > > > It's different with the function domain. > > RT5033 is most like as the SubPMIC that includes PMU (battery > > charger/gauge/led/few buck and ldo) > > RT5120 is a main PMIC with default-on power that follows the boot on sequence. > > RT5120 only integrates regulator and power key report module. > > > Since I have explained the chip difference, do you still think it's > better to merge this code into rt5033 mfd? I think it's okay to group devices which are similar but not exactly the same, if they can be. The integration of this device into the other looks trivial to my naive eyes. A PMIC is a PMIC, main or sub. > > > > Signed-off-by: ChiYuan Huang > > > > --- > > > > drivers/mfd/Kconfig | 12 +++++ > > > > drivers/mfd/Makefile | 1 + > > > > drivers/mfd/rt5120.c | 125 +++++++++++++++++++++++++++++++++++++++++++++++++++ > > > > 3 files changed, 138 insertions(+) > > > > create mode 100644 drivers/mfd/rt5120.c -- Lee Jones [李琼斯] Principal Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog