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 X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5061BC433B4 for ; Wed, 12 May 2021 06:24:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 189B26192B for ; Wed, 12 May 2021 06:24:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229996AbhELGZs (ORCPT ); Wed, 12 May 2021 02:25:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230115AbhELGZo (ORCPT ); Wed, 12 May 2021 02:25:44 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B515C061761 for ; Tue, 11 May 2021 23:24:35 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id q5so2913047wrs.4 for ; Tue, 11 May 2021 23:24:35 -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=t7gDJaqgoZsHb6DiIXvZKpSg+LB+FrrnWDOpfg5m9L8=; b=WO34k/7Bk2+xQd/jUD6S9ebWfCkyB6ieU4Ksl96o0Jdyk/ZifZVp+9xmgXEFZAvFDL DRyFrzDiZliI6/m1dDyzahGZxG/N1wOPkEEm7p6OXE2u6lJRGWKQxhlGNQFFTb9s7tjO hu2jvDjE93nyvARnR+BTfs6ROwqkhuCsu+SwEBiH1TaUvvibri4tk0deYUVsP8w8Vuyq 8yWmrSq3uBnW5DOA7CE2BGExecvSagvWHNpKvjE+980YXT3zPKQqNgtjsGXhNjsENAHb uC2VECmmSHdTnO9fdeeU3znOI/8PmOZ6sUUvOhox4smOi9sqfKRtSOZJcGOOIEN0OrIT j++A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=t7gDJaqgoZsHb6DiIXvZKpSg+LB+FrrnWDOpfg5m9L8=; b=GCjH90gBoQYFy0m9BNcUfD1nByWHwxRl4D8lTHCLMjSS/b0TGluUwJsTUQqY2uuxjG THri4D2hSJLza3+npZAOxl7OQxwTThKPVCEjfR1rEoyJxvZdFabhBmUoKHdxCJnlAYEY t+hDeg4z1DdVOK+xQde2OyJA+cnNJvrJAnVw5BrRanzNCwEGzteEkNTff4BWIiiqJYUk I/R0zymrjHN3QOrNATh/6OXKKngyF7HrKyZ/pc68tM4/GFxawBpLSthIpMmJYS39sd/B L/3I2SPEY6hsA6jOWwk5A1G4Q3FnQy1JJMEhiS17JnRRFlXSDhY5s/4VkUGmOQPoEjws np0w== X-Gm-Message-State: AOAM531sicIk0UiWppXK5fcjSEd/5v6UnzjJ8C9RvyIpOa3Dhcfk9w9y UOOWI3eyFbvlUbyy+OO0JJ1x/Q== X-Google-Smtp-Source: ABdhPJyXUCtio5iJ3s1PQFdvFz5rXvEBSNTrEg78ueKFXw5VVxcuzOCeqYEf2Kds9CfywK/Zy3FcBw== X-Received: by 2002:adf:facf:: with SMTP id a15mr43701962wrs.53.1620800674099; Tue, 11 May 2021 23:24:34 -0700 (PDT) Received: from dell ([91.110.221.215]) by smtp.gmail.com with ESMTPSA id z5sm324183wrn.69.2021.05.11.23.24.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 23:24:33 -0700 (PDT) Date: Wed, 12 May 2021 07:24:31 +0100 From: Lee Jones To: Gene Chen 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 Subject: Re: [PATCH v7 04/11] mfd: mt6360: Combine mt6360 pmic/ldo resources into mt6360 regulator resources Message-ID: <20210512062431.GB805368@dell> 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> 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: devicetree@vger.kernel.org On Tue, 11 May 2021, Gene Chen wrote: > Lee Jones 於 2021年3月23日 週二 下午5:38寫道: > > > > On Tue, 02 Mar 2021, Gene Chen wrote: > > > > > Lee Jones 於 2021年1月15日 週五 下午3:32寫道: > > > > > > > > On Fri, 15 Jan 2021, Gene Chen wrote: > > > > > > > > > Matthias Brugger 於 2021年1月12日 週二 下午8:32寫道: > > > > > > > > > > > > > > > > > > > > > > > > On 12/11/2020 11:39, Gene Chen wrote: > > > > > > > From: Gene Chen > > > > > > > > > > > > > > Combine mt6360 pmic/ldo resources into mt6360 regulator resources > > > > > > > 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-core.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_resources[] = { > > > > > > > DEFINE_RES_IRQ_NAMED(MT6360_FLED1_STRB_TO_EVT, "fled1_strb_to_evt"), > > > > > > > }; > > > > > > > > > > > > > > -static const struct resource mt6360_pmic_resources[] = { > > > > > > > +static const struct resource mt6360_regulator_resources[] = { > > > > > > > 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_resources[] = { > > > > > > > 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[] = { > > > > > > > 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[] = { > > > > > > > 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_resources, > > > > > > > + NULL, 0, 0, "mediatek,mt6360-regulator"), > > > > > > > > > > > > As discussed with the MFD maintainer [1], the regulator (and probably 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 do > > > > 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? Don't worry about me. Do what's best for you. I look forward to receiving the new set soon. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog