Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2547365imi; Mon, 25 Jul 2022 01:17:28 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ud2xy5NbAALzJ3V9b01IfsjPWKDODG/1sCUWsAvsuT6ahfVJJYVMqFbMaVudVKYgViQ5lI X-Received: by 2002:a17:90b:1c81:b0:1f1:aa6a:82d0 with SMTP id oo1-20020a17090b1c8100b001f1aa6a82d0mr13389577pjb.170.1658737048366; Mon, 25 Jul 2022 01:17:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658737048; cv=none; d=google.com; s=arc-20160816; b=TovgL58HmpYVfeK+6WuNBWWiQzBidChkKDpNllxaxUXK9MTps8wNbBzFrI8KVJ9Lj6 Ce+nTSlacr1Z5eeSsm0oWbOwNkb7GGFEJqySLgBRS2s9m5ansglF4zbLZui37dMAamOf LIibCc4uGYjOgMWASq82Q0/bhSBx2Mj+TdY+kp5Q9EdzLdIfMbWAaOTa7iNhGyVwkJl6 C11LrKrskG9yFa5KKULx5UgnuL5EkmMSgo77tsTzIf/5E4ofNsBPyBovoJHudmJD4zxI kCNzlgygoVCss1ZEwWB6H+I7DJ7YAQFgz0Yp/X6Dn7EZmPM3NjDuCW1qxcfXIaShpND+ cvUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=/cFBmHW3aWYSVzhv+dCF1Vjg7vV6HTDbULFzKNdh7eA=; b=SaQtyQHgYK0ev4xms0PIpNgC0et7Im10ob8Lz6j+fmPvRtmnuRvo4gICc+QiM7yXfn eeBPi45rTxapw7kJ28nOd03a1osUDiSiLbO2dEVEGh3iqzrJsJUiwEMsl45LnktX60Fh oycjm0fU0wzNSt4Te8c6XI+lKTRYR2kOZqQkL6xn4VEZlb9EOV+gUTTJ8aliKqhRk+S7 cvO9Q8nyFCM1Qi9AIQOXyfSpgfRagauLMwBjpRyHEYSdwTaI8SjHauk7Hnwhtk9EZ7ej qSawazUexSY/zik6nYr3xN3dZg1kwIKmifgXhlNzckYTxIJv18mIG39tPSSwFRufCtwP 0c6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=D59brI8n; 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 f21-20020a056a00229500b0052b2013d44esi14674109pfe.164.2022.07.25.01.17.12; Mon, 25 Jul 2022 01:17:28 -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=D59brI8n; 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 S232806AbiGYIAG (ORCPT + 99 others); Mon, 25 Jul 2022 04:00:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232440AbiGYIAC (ORCPT ); Mon, 25 Jul 2022 04:00:02 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61B8A13CE5; Mon, 25 Jul 2022 01:00:01 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id b11so19028327eju.10; Mon, 25 Jul 2022 01:00:01 -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; bh=/cFBmHW3aWYSVzhv+dCF1Vjg7vV6HTDbULFzKNdh7eA=; b=D59brI8ncH+WCdwU0Nfnk9ctLnRDZ3UUdc+xeXG2BjO1rrMZJ0I+JhW0C2WVRsU6I7 ahgas2HVf3s+Q1M1+toqG4BgdFjA14FX2WipfWZqqPlpU/p57MdP2KZYLh9lAwA5I3P2 78VXDrlkxZllvMa8g5WSechgcttVRJFweVlLmJ6o0bSzPej2NwYO4DbX/BcfTjOk0y/T XpvbkQ4bjio6MMumjuisV+WVTBnLQJzUwpW1vfpHFzzVndm/NE5Ss1d3hZjedpOJXc7m LuSKiZVCLZQUmdrfrVkrncRSqXCACm1BmRyqtDh1etSR8scG0DGif8X1+PGv78ob7tYR qx5g== 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; bh=/cFBmHW3aWYSVzhv+dCF1Vjg7vV6HTDbULFzKNdh7eA=; b=Hjh5zul4oRbNWzqIzxAErdO3BqwqTfX34vdWQs3YlOo7b4Q94WDl5e1KsSjPXuCIxB Erlww9mGep7LmlS2hS2VIy2HY7bRsWPTOWJehw9pTO2MJawzhRM4sYQcA98q6vppLqd5 GfWy46N5YErNcnYf300N5/67ayuZzrl510Oxau4x+bFtn2UL1ctUlu5arPBbj2xgcKLY CPPj/RMnk6Cz0/A0nBdAZt6T9yCn3yNttKP2kLg/4pIaIf1OOT40noQjBPf1YgmfGy4h Uun4c7ulHdRUxFbTMw/ppNWJcY5cZblw4UtfPIfptdAbr5D+pch7P+ZQcfV7ZtmSKrSB e/pA== X-Gm-Message-State: AJIora+0LwDGmFynA3TgdUbOyp3bOhBAJV/UfsWCwi8L6PpVpyUYyQDO M8bU7saQSzIyfef2wQrSzpUHuQV7hp24J7qw2RI= X-Received: by 2002:a17:907:75da:b0:72b:3ce0:2524 with SMTP id jl26-20020a17090775da00b0072b3ce02524mr9140700ejc.394.1658735999558; Mon, 25 Jul 2022 00:59:59 -0700 (PDT) MIME-Version: 1.0 References: <20220722102407.2205-1-peterwu.pub@gmail.com> <20220722102407.2205-8-peterwu.pub@gmail.com> In-Reply-To: <20220722102407.2205-8-peterwu.pub@gmail.com> From: Andy Shevchenko Date: Mon, 25 Jul 2022 09:59:23 +0200 Message-ID: Subject: Re: [PATCH v6 07/13] mfd: mt6370: Add MediaTek MT6370 support To: ChiaEn Wu Cc: Lee Jones , Daniel Thompson , Jingoo Han , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Sebastian Reichel , Chunfeng Yun , Greg Kroah-Hartman , Jonathan Cameron , Lars-Peter Clausen , Liam Girdwood , Mark Brown , Guenter Roeck , "Krogerus, Heikki" , Helge Deller , ChiaEn Wu , Alice Chen , cy_huang , dri-devel , Linux LED Subsystem , devicetree , linux-arm Mailing List , "moderated list:ARM/Mediatek SoC support" , Linux Kernel Mailing List , Linux PM , USB , linux-iio , "open list:FRAMEBUFFER LAYER" , szuni chen Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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, Jul 22, 2022 at 12:25 PM ChiaEn Wu wrote: > > From: ChiYuan Huang > > This adds support for the MediaTek MT6370 SubPMIC. MediaTek MT6370 is a > SubPMIC consisting of a single cell battery charger with ADC monitoring, > RGB LEDs, dual channel flashlight, WLED backlight driver, display bias > voltage supply, one general purpose LDO, and the USB Type-C & PD controller > complies with the latest USB Type-C and PD standards. ... > +#define MT6370_REG_DEV_INFO 0x100 > +#define MT6370_REG_CHG_IRQ1 0x1C0 > +#define MT6370_REG_CHG_MASK1 0x1E0 > + > +#define MT6370_VENID_MASK GENMASK(7, 4) > + > +#define MT6370_NUM_IRQREGS 16 > +#define MT6370_USBC_I2CADDR 0x4E > +#define MT6370_REG_ADDRLEN 2 > +#define MT6370_REG_MAXADDR 0x1FF These two more logically to have near to other _REG_* definitions above. -- With Best Regards, Andy Shevchenko