Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp1409116imk; Mon, 4 Jul 2022 02:27:48 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v4LlYQme6f7Q9MK6PEBFnoGJExDpUHbgjldUnHK160KRUCDnOrfdCE5RyKVhQ4i9PmyvUA X-Received: by 2002:a17:902:a505:b0:16b:7c53:9f02 with SMTP id s5-20020a170902a50500b0016b7c539f02mr35363590plq.19.1656926867967; Mon, 04 Jul 2022 02:27:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656926867; cv=none; d=google.com; s=arc-20160816; b=rk1GqbbvHoLuaAa1pBYVvlk8ibfvMfx1P3c/zII38jptOU6heIlPxANQwVhs0F9pXR Eq5RZXMbJrmpzH6py1boAmvgNGcI+blOjO9p0l+/gS5tW3zgC7FqrEa+BM7gL58GqYpt rU5fGda3hbky8ftVvpV2rFBO59zjNG7dH2QuCXM0B6nsC/dn8h3OqSX8oSpyShKyYHd1 xxq/29FeGMnIE6qm7KsRiFJLiECE1C1/s3cUJZhEWC3K3fcYUrG5Bb+HfTljSvFAPKpE SPdlGvgOh6hXcbESA8Qa2IUXbWqpvOrCHfEhISm4xEWUZsoAthVJ++XTHYhlux6G7yZx ICnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Yc4lYWwzEOzXTvm8qWxOUdmsNeEUzr98rKILhdcSP3c=; b=zjmLoZJOUup7yKgYcIZrrEOpqueR8zo2sWLTSIrO4ZHVT7NkXtzHS/JQuPAIzpW9pG G28ncU3m1+O7H1F+Wr5+Bcv8M3n6kHl+6Msmv7imILdHUcxIMjMrlPG6BVlns7cQYqxF 0K/NeBikh0ez8oGM6bYJUDUOtakY5ghkD73n5f+KnYgnFCdXcZZeSxqeHFgTHpY1rwOa grESdGtBCGttb1PECDjtzfHy2AJhpo4UvHamXTF3IjtAyb90evYRMXcA0XnLU75eiVru /XXqg+CTFqtoDF4irN6EpuUbRZ6gRJJHtbeuproY1alL66x3w9rzKQxR2dYdy/YdNeBQ wMvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dADAT3F3; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r17-20020a634411000000b00408d94d8198si4414623pga.119.2022.07.04.02.27.35; Mon, 04 Jul 2022 02:27:47 -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=@gmail.com header.s=20210112 header.b=dADAT3F3; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231186AbiGDJPB (ORCPT + 99 others); Mon, 4 Jul 2022 05:15:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233281AbiGDJO6 (ORCPT ); Mon, 4 Jul 2022 05:14:58 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03770BC3E; Mon, 4 Jul 2022 02:14:55 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id s1so12501804wra.9; Mon, 04 Jul 2022 02:14:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Yc4lYWwzEOzXTvm8qWxOUdmsNeEUzr98rKILhdcSP3c=; b=dADAT3F3oDXchB4cPDwVEhVt7H1zHQeWzAfcL5bsqsLXd3HMdhmFnAEoEuazs3GIel puP2n4cAPXgfL2o0tRZKrrOl4sCUKYCcaD9P/ZYlCPg3hjgl1LUpy9YvB/LAnJjOfa7O R5gVtbMFH4a0o1hdDmi4oGD+zlHrXz5tuQFaAcpzNp70PBXhrbv/QxjOAvk+a49tZxzC 8R1XI9ZqcfsFAn45/oNvC7mt+FiPrKkzulEyPIixkYX+Dx73udeAV1aARwYyuATbDjp0 POBaxrFiMzf+Llzy6/qayqbe5cj5ZeyiEiGzCzp8kxVUylAnG2IB7pQhy2p3iziec3YZ +1Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Yc4lYWwzEOzXTvm8qWxOUdmsNeEUzr98rKILhdcSP3c=; b=zzXkDRZj9HHfpDbEsjvtBw2oguiqlXsrOC/5Aq7yYfxizClbqIDUiB7S/mxO1Ar1wj HOZ8nhFC/44NsgXnrbVOwQB3LM0k0JrsXhckpG2DGnsjw/ywHMWno/ki0OpJ333K2GJd I4MR9AAxljIjiv+iY8MmvU0oIhJThKxsueckN4o3esifc3a2yCI9yS+skDyMU9RmigW4 ZRLQR5ed4TIpDO6KZWwtGyA1lPphGXIrRejJ8vHpEtqGFnpze3pxi+C3/4TVIZ4NEJDT rl2qm8fCRUo24snqncbRMskWKIqq+RnJ2gyxbxSBdhfPQjQtLsKw9OFTw9pfHyZh7ru/ r9/Q== X-Gm-Message-State: AJIora9796VwwxjONgcyREo7UJmZh08WACHUf+CF64xPn646+BM21sOW CkOrkrIb+2ceXcrkvuoXsmhDPb/YuvLNGrVB6hk= X-Received: by 2002:adf:f043:0:b0:21d:6a90:f3e6 with SMTP id t3-20020adff043000000b0021d6a90f3e6mr3711342wro.277.1656926093427; Mon, 04 Jul 2022 02:14:53 -0700 (PDT) MIME-Version: 1.0 References: <1655892104-10874-1-git-send-email-u0084500@gmail.com> <1655892104-10874-3-git-send-email-u0084500@gmail.com> In-Reply-To: From: ChiYuan Huang Date: Mon, 4 Jul 2022 17:14:41 +0800 Message-ID: Subject: Re: [PATCH v2 2/4] mfd: rt5120: Add Richtek PMIC support To: Lee Jones 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,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 Hi, Lee: ChiYuan Huang =E6=96=BC 2022=E5=B9=B47=E6=9C=881=E6=97= =A5 =E9=80=B1=E4=BA=94 =E4=B8=8B=E5=8D=885:56=E5=AF=AB=E9=81=93=EF=BC=9A > > Lee Jones =E6=96=BC 2022=E5=B9=B47=E6=9C=881=E6=97= =A5 =E9=80=B1=E4=BA=94 =E4=B8=8B=E5=8D=883:38=E5=AF=AB=E9=81=93=EF=BC=9A > > > > On Fri, 01 Jul 2022, ChiYuan Huang wrote: > > > > > HI, Lee: > > > > > > ChiYuan Huang =E6=96=BC 2022=E5=B9=B46=E6=9C=882= 7=E6=97=A5 =E9=80=B1=E4=B8=80 =E6=99=9A=E4=B8=8A10:56=E5=AF=AB=E9=81=93=EF= =BC=9A > > > > > > > > Lee Jones =E6=96=BC 2022=E5=B9=B46=E6=9C=882= 7=E6=97=A5 =E9=80=B1=E4=B8=80 =E6=99=9A=E4=B8=8A10:22=E5=AF=AB=E9=81=93=EF= =BC=9A > > > > > > > > > > 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 o= n 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. > > > M.. ok. I will try to group all chip changes like as devices > list/regmap_irq/regmap_config ..., etc. > Treat it as one set of chip config and use 'of_device_get_match_data' > to get the chip config data. > There's a question. As I know, it's not the same chip series. The rt5033 is submitted from Samsung at 2015. The driver data is also defined in header file. Do you still suggest to do the merge? Even in our internal, it's difficult to find a rt5033 EVB for testing. And one more question is the binding. If yes, for the binding, I need to ad= d rt5033 related..... Actually, it's a tough work. > > > > > > 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 [=E6=9D=8E=E7=90=BC=E6=96=AF] > > Principal Technical Lead - Developer Services > > Linaro.org =E2=94=82 Open source software for Arm SoCs > > Follow Linaro: Facebook | Twitter | Blog