Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp1443483imk; Mon, 4 Jul 2022 03:14:44 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sZJun0jbPnl42483MfhZ6WVaOPGUmSAbvOl+1GqpkE6hYszq6I9g2g6ZPcAby0Kicc7frs X-Received: by 2002:a05:6402:42d3:b0:435:2c49:313d with SMTP id i19-20020a05640242d300b004352c49313dmr36422027edc.86.1656929683944; Mon, 04 Jul 2022 03:14:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656929683; cv=none; d=google.com; s=arc-20160816; b=AeTj0rcbDAUKmIYp31gY4A7916l7n4jjMhXQPjs8xsJgGVdOhEwzv5TJW7Yx6barSA 3wjP/xiO/LaFEHXo2sqmvwMCDfCWCGwuFeVzJknEBrWM44emEBBj1o99huyzOvbxdH7+ F95zn+Rdt1FIsy17ADHM6Q1XDTZwMXyCKrtwXDoKJlrtdM1S7IvRbwuLB3hMdoaw06wn I0Hbbo27i+m9kK2sAO0q5Hx3MJVrun0ejfiuaGeO8gLOqjvM0Mu5X8NLiz9kNK30ExLH 7vn2VrE7NPNQ21qNn7XqXMt/A5M4IlORMeC3ADpZWFR9jCPCa/uTHAiu+T1IQIPFRjhe /gwg== 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=5OEPF06YG+R+5ZW0yjo5uKv8/e38xtFyRSfd8rSL5/U=; b=Eg9nwU9MwljXM9z7GBMMKbZXh/x1KhCN8nAZu1mh+9WeiWiVXewFPmMNvL9WgGLBX/ 1vWGIK/wPBxR0zTf8yj2FH/1I0Yj2l0zWGFxzMuOA6f/lGCbjXLeC/VT5j6fqTFzajSD uzPY1I8ZcS5olHtllOXTNSr/Qkb3qIT7nMd1WJ7V0FJLs+td9TzporIjaco85ZJ8DPv/ jQJl90hZueuZeNpZS2QM8KzY9zAi8DB00wHSA57AvyEy9+hJzX+vSoAdUZMKCWrVxc1Y IJvrwPjafvNppspRf2t66d0pxAObQcmM9opy4qm5Vsx4KE7zKsBYR58wkdVOdiWL0y07 Gebg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iWnJOtER; 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 sd26-20020a1709076e1a00b00711da52c6e4si8446799ejc.309.2022.07.04.03.14.19; Mon, 04 Jul 2022 03:14:43 -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=iWnJOtER; 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 S233264AbiGDJyt (ORCPT + 99 others); Mon, 4 Jul 2022 05:54:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233444AbiGDJyq (ORCPT ); Mon, 4 Jul 2022 05:54:46 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05078DEB2 for ; Mon, 4 Jul 2022 02:54:44 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id bi22-20020a05600c3d9600b003a04de22ab6so5321639wmb.1 for ; Mon, 04 Jul 2022 02:54:44 -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=5OEPF06YG+R+5ZW0yjo5uKv8/e38xtFyRSfd8rSL5/U=; b=iWnJOtER2NaaLsbBoB0+Px3zo6/Ay8a1Tx7Tpv0T77HJg7B6MTzuireRG0B9U+fuAJ 9UbuJNDuIh6p/REByNa+ODA5uMyc6Z63A+AwMzxBUb7wQDsfgW4ovI9iOEmEtOgoib2D is4YPKL7me/MkEd38NaByuGbU2cubsRzIWe5So5A4CYnP6FjgSYE2tBg31ZzhvYU5BR1 Ylf1IWBeh40N7No/NiV2hAAYbAu1xe9+unEdAvOAof48LUiH6w/j8YMMxhwUshyabtfI WLzI930mHrjXWi3NaMDxptGBkhSJCZmUUrjxhkbrrFA7thG42Q9wnTTV13m/pXU+O217 ANAg== 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=5OEPF06YG+R+5ZW0yjo5uKv8/e38xtFyRSfd8rSL5/U=; b=nv5rkkjtyOEl8OIENwFXIi1dF1IDp6CopUS/W60AXTB1mJUkEX/pFGt27LKA2gSDUS lacJO/g4GYq3TU9mFiOHt4WL/OwgKxAjhGJG+o3AejtYeqgaYo3zcpyxhdubUxTwJ7J2 4oC1GzSQfoizFoQaFkrPVU70tEPTKNBCJ5/dFcJ8HULFW/CPzngHdaJcOKujyHVmxeQM ikewNFlsTcajtqYeJ45s9uIAMizhITSii3EKGLZmyag2ytU3jmKJ+dK852D5lbLrTr10 lAzWFlCgIkLueJLS4xYwvcX6u0lfhbuY6YDNvq9JkCqjHjyk2q11eEw3PzCil25vVVZm ObSQ== X-Gm-Message-State: AJIora+Le+qUBlC/zLZiTtPzC8RZvTTMNv0MrOeDkMs7itDRnmVIg9CI 1/exOCUMfSh5thDYvpE+oOKbLQ== X-Received: by 2002:a05:600c:2298:b0:3a0:31a9:710b with SMTP id 24-20020a05600c229800b003a031a9710bmr30056672wmf.115.1656928483406; Mon, 04 Jul 2022 02:54:43 -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 n5-20020a1ca405000000b0039c587342d8sm15023400wme.3.2022.07.04.02.54.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 02:54:42 -0700 (PDT) Date: Mon, 4 Jul 2022 10:54:40 +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=unavailable 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 Mon, 04 Jul 2022, ChiYuan Huang wrote: > Hi, Lee: > > ChiYuan Huang 於 2022年7月1日 週五 下午5:56寫道: > > > > Lee Jones 於 2022年7月1日 週五 下午3:38寫道: > > > > > > 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. > > > > > 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 add > rt5033 related..... > > Actually, it's a tough work. If it's genuinely difficult to integrate, you can keep them separate. -- Lee Jones [李琼斯] Principal Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog