Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3466644pxj; Tue, 11 May 2021 05:17:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVV3+9mXx8fUYyG7SfazrUVLwZxY4Sy6LC7SyDrPpsVO/SL2ZuSg/MrlLiq10lJl7eRhGk X-Received: by 2002:a50:f9cc:: with SMTP id a12mr36336800edq.24.1620735438002; Tue, 11 May 2021 05:17:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620735437; cv=none; d=google.com; s=arc-20160816; b=YIF3+ArsLQWmH0bUVuysewcgGY01FK30MSksrzd1Eop1jzJM9xo6tbDhYYk80h/57H ljxeTbbiuACi3a0JM6aJDb7KDpGmHvx2wVEkifc4CKgkI87M6l9bqj0c/rPrhImgFmSL SChC/PCEJ37HTbzbiK9V1Zfab0frUJdnr5s3FXpxq+O9+g5fxKahgttzVbZW5bRzoCDF ZBkVqx7xfaJqnGVkXWAugHkd0Ua12BLQRgeq19xtYOyZaivR8DC+u20kdfeW4UrbJdPE Tk/0z1+klnfWbsQXDwgSNF93p0vUzMcYFVcEzMiPBpSCUTBOiEG/LVq23jslqvbcBTGg 8XFA== 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=Wa5zxC12LevybTjgPskMwjNjFrqR4wunX6KrAZQ3xWM=; b=WA5qXw1PKX9a/PgKpAd8rfbYAjXozkIPiATQPtec4SYf1dzQpj0lCxpx6XAH4pBACB L4wedQLLfaIsGXAHcpeskpRBx5ft8lr8Hf6UW1wanz21gCIAJiFBRzr5FUAhiCz2rBBy OybVYi2/KY8+fyS6vODLw9enJ1rZAYQxhbBt3Yw9mTIawG9jMqbDZOf9rhYNj0FT40Lu YDq0VDAoIrNiUAUGL+fJkMxT8HZzPllI12rNqKxcEGwQMgl4RomvrOHyQaFipgUsX7Mc FtBgnwJVkUpg6Sl6LLWyOw31HHh8WrOGlR5LURN/kea/N2A9PoymEzg5eVaLBjE0iM4K akBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rngm6j0B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g20si19602936ejz.520.2021.05.11.05.16.54; Tue, 11 May 2021 05:17:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rngm6j0B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231509AbhEKMPt (ORCPT + 99 others); Tue, 11 May 2021 08:15:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230225AbhEKMPs (ORCPT ); Tue, 11 May 2021 08:15:48 -0400 Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01F2FC061574; Tue, 11 May 2021 05:14:42 -0700 (PDT) Received: by mail-oi1-x22e.google.com with SMTP id v22so13935535oic.2; Tue, 11 May 2021 05:14:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Wa5zxC12LevybTjgPskMwjNjFrqR4wunX6KrAZQ3xWM=; b=rngm6j0BTRFq+wHKWTfYYo1vpeqCpapMNcPXRp8InTyDMTP4gD5OY4QMvESFvlyh4P XAWi2uGvOM+OBdu+Td9l4Q7DGwI4mjiNq1mVc7PCLdQ+tnrKUDyw7I28oF/F4Ie1Bslp g5aERFMEZQy/Y4imeO58JcMqmCn1RhpB5ZMEQUgZvTLSrBPlJSzVeabndA8EJmeE8HQD 8wLhVBdxP2afAq1Q2+yELu8fB7WKFRrNYWDGVzF1OCtj8a20itfpEKF1AqOtsKl2cK7S tV7/QyXuRjF8HTYaFp5LAIaJlCJtTUxXe/pA/ihVT9iNkNKbh0hr/COcab75eWjAncvs IfrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Wa5zxC12LevybTjgPskMwjNjFrqR4wunX6KrAZQ3xWM=; b=aeO4MGpwPjUJu/aLGpSPnFYA9ajjOSknJgaY4gwqyMLKdnSASF6KUfj34N/RDCn4jY TjhxvLei2yrKIu/iIvVzHMsmikbJVvG9EuuSE2oLLwc8dkwVeQxsAQVOW9faFkltKCDh KeH2iZc29gLEOODgTQbNIhzJRGYa5Bw9TRn3KBlr6g7w8aiH6vdNDLtsQPGRMtmOGfGy E3kdnZBOrP+09I/LgiLmIl8WxRltduzVUcaWsuYxxVVLCql0fYPihHWOgR9kPP1gBDuU oK46mA7j7YQhDD9UjKuhzZ2YTEvqeNN4jDxciclXbxyh1FXEMYcrZaGNDRPBbKCnEVFx 4S7g== X-Gm-Message-State: AOAM533lvPf+YTGq7NZyCAzW6GfFvkiLEyXfLTmMOcT+Tbw0yPANMvoF OlCL6FcTKjRgWw7YW3eI13Oh9zRmzls5ZImnxTs= X-Received: by 2002:a05:6808:14c8:: with SMTP id f8mr3344139oiw.55.1620735281302; Tue, 11 May 2021 05:14:41 -0700 (PDT) MIME-Version: 1.0 References: <1605177598-23501-1-git-send-email-gene.chen.richtek@gmail.com> <1605177598-23501-5-git-send-email-gene.chen.richtek@gmail.com> <74b127eb-9a3c-20c9-5692-b00b982f4da3@gmail.com> <20210115073241.GC3975472@dell> <20210323093806.GR2916463@dell> In-Reply-To: <20210323093806.GR2916463@dell> From: Gene Chen Date: Tue, 11 May 2021 20:14:30 +0800 Message-ID: Subject: Re: [PATCH v7 04/11] mfd: mt6360: Combine mt6360 pmic/ldo resources into mt6360 regulator resources To: Lee Jones Cc: Matthias Brugger , sre@kernel.org, Rob Herring , linux-pm@vger.kernel.org, devicetree , linux-arm Mailing List , "moderated list:ARM/Mediatek SoC support" , Linux Kernel Mailing List , Gene Chen , Wilma.Wu@mediatek.com, shufan_lee@richtek.com, ChiYuan Huang , benjamin.chao@mediatek.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Lee Jones =E6=96=BC 2021=E5=B9=B43=E6=9C=8823=E6=97= =A5 =E9=80=B1=E4=BA=8C =E4=B8=8B=E5=8D=885:38=E5=AF=AB=E9=81=93=EF=BC=9A > > On Tue, 02 Mar 2021, Gene Chen wrote: > > > Lee Jones =E6=96=BC 2021=E5=B9=B41=E6=9C=8815=E6= =97=A5 =E9=80=B1=E4=BA=94 =E4=B8=8B=E5=8D=883:32=E5=AF=AB=E9=81=93=EF=BC=9A > > > > > > On Fri, 15 Jan 2021, Gene Chen wrote: > > > > > > > Matthias Brugger =E6=96=BC 2021=E5=B9=B41= =E6=9C=8812=E6=97=A5 =E9=80=B1=E4=BA=8C =E4=B8=8B=E5=8D=888:32=E5=AF=AB=E9= =81=93=EF=BC=9A > > > > > > > > > > > > > > > > > > > > On 12/11/2020 11:39, Gene Chen wrote: > > > > > > From: Gene Chen > > > > > > > > > > > > Combine mt6360 pmic/ldo resources into mt6360 regulator resourc= es > > > > > > to simplify the similar resources object. > > > > > > > > > > > > Signed-off-by: Gene Chen > > > > > > Acked-for-MFD-by: Lee Jones > > > > > > --- > > > > > > drivers/mfd/mt6360-core.c | 11 +++-------- > > > > > > 1 file changed, 3 insertions(+), 8 deletions(-) > > > > > > > > > > > > diff --git a/drivers/mfd/mt6360-core.c b/drivers/mfd/mt6360-cor= e.c > > > > > > index 692e47b..5119e51 100644 > > > > > > --- a/drivers/mfd/mt6360-core.c > > > > > > +++ b/drivers/mfd/mt6360-core.c > > > > > > @@ -265,7 +265,7 @@ static const struct resource mt6360_led_res= ources[] =3D { > > > > > > DEFINE_RES_IRQ_NAMED(MT6360_FLED1_STRB_TO_EVT, "fled1_str= b_to_evt"), > > > > > > }; > > > > > > > > > > > > -static const struct resource mt6360_pmic_resources[] =3D { > > > > > > +static const struct resource mt6360_regulator_resources[] =3D = { > > > > > > DEFINE_RES_IRQ_NAMED(MT6360_BUCK1_PGB_EVT, "buck1_pgb_evt= "), > > > > > > DEFINE_RES_IRQ_NAMED(MT6360_BUCK1_OC_EVT, "buck1_oc_evt")= , > > > > > > DEFINE_RES_IRQ_NAMED(MT6360_BUCK1_OV_EVT, "buck1_ov_evt")= , > > > > > > @@ -278,9 +278,6 @@ static const struct resource mt6360_pmic_re= sources[] =3D { > > > > > > DEFINE_RES_IRQ_NAMED(MT6360_LDO7_OC_EVT, "ldo7_oc_evt"), > > > > > > DEFINE_RES_IRQ_NAMED(MT6360_LDO6_PGB_EVT, "ldo6_pgb_evt")= , > > > > > > DEFINE_RES_IRQ_NAMED(MT6360_LDO7_PGB_EVT, "ldo7_pgb_evt")= , > > > > > > -}; > > > > > > - > > > > > > -static const struct resource mt6360_ldo_resources[] =3D { > > > > > > DEFINE_RES_IRQ_NAMED(MT6360_LDO1_OC_EVT, "ldo1_oc_evt"), > > > > > > DEFINE_RES_IRQ_NAMED(MT6360_LDO2_OC_EVT, "ldo2_oc_evt"), > > > > > > DEFINE_RES_IRQ_NAMED(MT6360_LDO3_OC_EVT, "ldo3_oc_evt"), > > > > > > @@ -298,10 +295,8 @@ static const struct mfd_cell mt6360_devs[]= =3D { > > > > > > NULL, 0, 0, "mediatek,mt6360-chg"), > > > > > > OF_MFD_CELL("mt6360-led", mt6360_led_resources, > > > > > > NULL, 0, 0, "mediatek,mt6360-led"), > > > > > > - OF_MFD_CELL("mt6360-pmic", mt6360_pmic_resources, > > > > > > - NULL, 0, 0, "mediatek,mt6360-pmic"), > > > > > > - OF_MFD_CELL("mt6360-ldo", mt6360_ldo_resources, > > > > > > - NULL, 0, 0, "mediatek,mt6360-ldo"), > > > > > > + OF_MFD_CELL("mt6360-regulator", mt6360_regulator_resource= s, > > > > > > + NULL, 0, 0, "mediatek,mt6360-regulator"), > > > > > > > > > > As discussed with the MFD maintainer [1], the regulator (and prob= ably all cells) > > > > > shouldn't have a DT binding. > > > > > > > > > > So please send a new version which fixes that. > > > > > > > > > > Regards, > > > > > Matthias > > > > > > > > > > [1] https://lore.kernel.org/linux-mediatek/20210111164118.GE4728@= sirena.org.uk/ > > > > > > I don't think Mark is correct here. > > > > > > We usually do implement compatible strings for sub-devices and they d= o > > > tend to have their own device nodes. > > > > > > It's a very long time ago since I coded this up myself, but from > > > memory, you can't have 2 devices share a compatible string. > > > > > > > Either Mark or Lee suggestion is work. > > Is there a conclusion that we can apply it? > > If MFD is already supported of_compatible, we prefer use of_compatible = mapping. > > I would resubmit the set. We can start afresh from there. > Dear Jones, Should I send fixed patch about adding regulator node directly can make easier for you to re-submit new patch? > -- > Lee Jones [=E6=9D=8E=E7=90=BC=E6=96=AF] > Senior Technical Lead - Developer Services > Linaro.org =E2=94=82 Open source software for Arm SoCs > Follow Linaro: Facebook | Twitter | Blog