Received: by 2002:ac0:c50a:0:0:0:0:0 with SMTP id y10csp1013826imi; Fri, 1 Jul 2022 00:46:21 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sVBT1H1FvjlCw9FyvpzwSDBt6dzPCgqsIAJAZSP5xw1gIGCkOOcyIlAwvbUGZ08trSClKk X-Received: by 2002:a63:87c6:0:b0:411:75e3:31e0 with SMTP id i189-20020a6387c6000000b0041175e331e0mr11042343pge.408.1656661581645; Fri, 01 Jul 2022 00:46:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656661581; cv=none; d=google.com; s=arc-20160816; b=x2VGK3PLE7a+FeNsIHtWym/ATrlq5htjG3oi039st+t8xmd1ayae33t6PGxzWd+o2X mPdmwP+TAH+R99YaEKA8bPbxzn1G/AZh/wAlwhyg44KAvW52cQ4SZulKM0PMVpZhirRH bhllyG9Qn9EtscrW17GZfgoKWBgfRIgjrSaWwehJdAapXTRt5Np9ZovWEctd5FfRm95o 3kbNtqfV+Mjdkn9hWfX0HnEnoSIV3wljF9mMLg3IReEAhoPqZ4WdYI6sUl9NkTtHAxhS WnXBpPHLLGj59/TsFdnvFIFrQmVD4NZj43IxaitpGhsfRqiaBdg0BFSolNp14+BO0ubw hGyQ== 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=/vcgopOT2upUpDmIm53joh9K47D2C5Zrxpx/Q99r1iw=; b=nxgdy7c/+t2jdjXCxDmWkYHtMr05nqoiCsS7UEc27pnVtQbEWpDa9OgbT2EkICtZIe 4zXYqpPByL8SEQu/1ScLDQYkE1CrN4wZuKeLBDySukB5J11AB1h+LZbEHLwqNRsdT2F1 AiLm1D1dTTrCafJgU/tSOIPIdI3fdAdp5Wqo6O88KPF5fjmC0pjs3y5od+342bOG3bLq p+wv+yCRfNUq2euyOUqvnNNjDoBR6RQL2ORHtBey+O1SLQ/xTSH/kQMSG2nzmK+VD0pS 9zNejvIr9lV6Zk/SNHdef3LATe+aTQL3nR3IEiYswjzyjT7dj70EDDfpzSx6zAdO9mdW 9uRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="xfHF/7sO"; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y7-20020a170902700700b0016a1b60636fsi27714837plk.57.2022.07.01.00.46.07; Fri, 01 Jul 2022 00:46:21 -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=@linaro.org header.s=google header.b="xfHF/7sO"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235366AbiGAHiJ (ORCPT + 99 others); Fri, 1 Jul 2022 03:38:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235363AbiGAHiD (ORCPT ); Fri, 1 Jul 2022 03:38:03 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D086F6D576 for ; Fri, 1 Jul 2022 00:38:02 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id h14-20020a1ccc0e000000b0039eff745c53so1020261wmb.5 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=matrfEjqMqMC9p4L+4HbPre9kupEW05ieEfJxgwjxJnpylXVAoFBb0uUBBDXQ7kska xIzZHPIYGiuWzsUb+pJdgHIZ/8MBPVgmddVLjwnitTiTy+C+1/MBG51R9uDJIGUi+5Ep UMQ0ysGIHRE/Ucfuye8MZFVnBtezJcA1dNdqt7tZ9NXqFcFdnjW8dMChNe713hDoOV03 jCdS7ZXj8SDa4X/GA9D1ibAOJAYt7/NxiOB6zDNOV/xXTKAjPYM4LN6deznc+9CKhpIt 7LSDq8+wLxTIJ5e6WAcEI9G08beMcuxinvbVYhVJjC4WIQcQbDk6f8lT7ueDLWNo7QCP LM2g== X-Gm-Message-State: AJIora9Q6HM2Lu1TH91CSD78+X8e51+B3rM+3TrjnMsKap2OqZ8yYUEL nW8G/RMbVqJbclenXErvuF3EZIBDTqPGZg== 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: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 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