Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2443071ybt; Tue, 16 Jun 2020 06:21:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBfICWwyqgCFhRnYd3Xase3HADyHux4C+Rq7jEakk5xRZNp845fD53yDf7lxSn0aaNA12J X-Received: by 2002:a05:6402:144c:: with SMTP id d12mr2622040edx.386.1592313686770; Tue, 16 Jun 2020 06:21:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592313686; cv=none; d=google.com; s=arc-20160816; b=w1OfhLBtZR7T3lklxWneXldpwHNJ5a5JTEN7QjxgDWpJpafQnuTAsALtLyX7yZTR7x +mPIn1iB1Nu2uv6cleJs+PSXldhEGjmBEOrS3FTPWx6BrxEWdx4sz9DFvjGk44aG62ik olceRtUnOkw5RRh9gWmHq7ZiYQEEivfS94h7dMIgQLdkhq+BWx5kKwTl7uxPP/cXouZ6 qdeRGwrWScC16gPQvO54QfHAUKmNXAUNq4Z+iVCOJasKSIiYle6cYSwC2OCCJoT8mNVt MKxnkh0VpDKJQPS1M3kpLIQ2njPIYYEXzZA6hdgKjbAkXEBXL5AFwUd8L7FkA/uzlCr6 LQNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=9NeQqiMAuFvxtrOzPp09+0hkReargQ3L4b3prwQqFWs=; b=uc7qvCEZMWeAbL7W8MaInN3sqi1wDryD/1O6Nt60itAH7NBruCY18kU2ox5POjRcNi gDwWGeiqOwrUUIPx2OFbcbaFM4FahFnwWQXwQIu1ygxIrkkyoG+N0YbcD56sL8QDf4qX qzdN10os4eVdkbtlHjkNaM6X3G3zAdr9BdCNc0a6D4f/cDCjeqvq+I0FssLms0wUFPz6 5vixzQNybTEMeVdaTS67BxN4Bwe/CYE0jow/FdkjUtU4OHcch5iq4jqGX72wq6FPjD9f mTCM0teEbSFDFjdL0idVTs2fRuf9WUr3L4f1yn4zwkv3t0LztLhKaJojQHGziiYWKRyF H70A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lMyV++gP; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y3si10292849edq.381.2020.06.16.06.21.03; Tue, 16 Jun 2020 06:21:26 -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=@linaro.org header.s=google header.b=lMyV++gP; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728694AbgFPNQL (ORCPT + 99 others); Tue, 16 Jun 2020 09:16:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727804AbgFPNQL (ORCPT ); Tue, 16 Jun 2020 09:16:11 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F5BCC061573 for ; Tue, 16 Jun 2020 06:16:11 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id r15so3016840wmh.5 for ; Tue, 16 Jun 2020 06:16:10 -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=9NeQqiMAuFvxtrOzPp09+0hkReargQ3L4b3prwQqFWs=; b=lMyV++gPByIjhuuvn2wsK/E6klL79fbVx4ACxXxrHnu5At/8lS+6vpLTCO+WumvCb1 Btd4DCv1THnwBCG4id7qSDcH0KTr8RGBM5STEozGGKPTVPzbXhsaJf5fGrSIgHEBynR6 osWj5fyj4mQ1L5xGJVdkwJbuY4v1377rcu5Jq4sLk6859fcrU2fks+W6cDGJWjiN+naa qPVu58rW8dbILiK6yl0uJWaPVKLFH5WStAXktelK95uejdkKJQce6ZH8lDI9q1TvmM+g MmMS8mqTXaWgdtojc8ytx09R4ArfAHysepVCuNQwQfD/38aR+4SbqhONnPt16lRyzEFp 8SJg== 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=9NeQqiMAuFvxtrOzPp09+0hkReargQ3L4b3prwQqFWs=; b=IiV8y9o/4RYLkrfXL6qQ+qguCLPMt9R8j2WqmVpdNpi84Ty7KLtexR6Z5JJPGjMR54 OGd6jM/7QMzzEtPHbvkhC3h5imFE+nw7dS9WmLYDU8lZNkh/A+YTjejkxpbGJ40F5hci sSshctet7C7ZU5BgOzC4MIR/qpKfaJtNlmRUR45efH0BLWzB0FXw15WTf/wBtH3P6Fah OsUzp6cjdQ9DnpZlRE3lmf/1h5Jy+4nQ/u9eXNwS33iqO6ubwBe8dIceWy/BVyDxP7T8 VlHJ4ECoHlYyq89pMxNHsMdyAmIrO3CrfrsrOug0CK58bVRV8gvMZevhcLRiXuYMoC16 QStg== X-Gm-Message-State: AOAM530mt5SxKY2t5AWbecBiTqoK6Ys1knEbx3FOUPkSdiiu1JDkb5yg Gud2ScoDL0pscjvTCTgxEtUqiQ== X-Received: by 2002:a1c:541d:: with SMTP id i29mr3214543wmb.73.1592313369700; Tue, 16 Jun 2020 06:16:09 -0700 (PDT) Received: from dell ([109.180.115.156]) by smtp.gmail.com with ESMTPSA id d2sm29670942wrs.95.2020.06.16.06.16.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2020 06:16:08 -0700 (PDT) Date: Tue, 16 Jun 2020 14:16:07 +0100 From: Lee Jones To: Gene Chen Cc: robh+dt@kernel.org, matthias.bgg@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, gene_chen@richtek.com, Wilma.Wu@mediatek.com, shufan_lee@richtek.com, cy_huang@richtek.com Subject: Re: [PATCH] dt-bindings: mfd: Add bindings for the Mediatek MT6360 PMIC Message-ID: <20200616131607.GQ2608702@dell> References: <1592306876-3504-1-git-send-email-gene.chen.richtek@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1592306876-3504-1-git-send-email-gene.chen.richtek@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 16 Jun 2020, Gene Chen wrote: > From: Gene Chen > > Add devicetree binding document support Mediatek MT6360 PMIC This should have been submitted with the driver. > Signed-off-by: Gene Chen > --- > Documentation/devicetree/bindings/mfd/mt6360.txt | 53 ++++++++++++++++++++++++ > 1 file changed, 53 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mfd/mt6360.txt > > diff --git a/Documentation/devicetree/bindings/mfd/mt6360.txt b/Documentation/devicetree/bindings/mfd/mt6360.txt > new file mode 100644 > index 0000000..e25b5c6 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mfd/mt6360.txt > @@ -0,0 +1,53 @@ > +MediaTek MT6360 Multifunction Device Driver No such thing as an MFD (we made it up!). Please describe the device. > +MT6360 is a multifunction device with the following sub modules: As above. MFD is a Linuxisum which is not allowed in DT. > +- ADC > +- Battery Charger/OTG boost > +- Flash LED/RGB LED/moonlight LED > +- 2-channel Buck > +- 6-channel LDO > +- USB_PD > + > +It is interfaced to host controller using I2C interface. > +This document describes the binding for MFD device and its sub module. As above. This sentence should be at the top in any case. > +Required properties: > +- compatible: Must be "mediatek,mt6360_pmu" No '_'s in DT. > +- reg: Specifies the I2C slave address of PMIC block, Must be <0x34> > +- interrupts: I2C device IRQ line connected to the main SoC. > + > +Optional subnodes: > +- ADC > + Required properties: > + - compatible: "mediatek,mt6360_adc" > +- battery charger/OTG boost > + Required properties: > + - compatible: "mediatek,mt6360_chg" > +- Flash LED/RGB LED/moonlight LED > + Required properties: > + - compatible: "mediatek,mt6360_led" > +- 2-channel Buck > + Required properties: > + - compatible: "mediatek,mt6360_pmic" > +- 6-channel LDO > + Required properties: > + - compatible: "mediatek,mt6360_ldo" > +- USB_PD > + Required properties: > + - compatible: "mediatek,mt6360_tcpc" No '_'s. Must be '-'. > +Example: > + > + #include > + > + pmu: mt6360_pmu@34 { > + status = "ok"; "okay" is more common I think. Should be at the bottom if not omitted altogether. > + compatible = "mediatek,mt6360_pmu"; > + reg = <0x34>; > + wakeup-source; > + interrupts-extended = <&gpio26 0 IRQ_TYPE_LEVEL_LOW>; > + interrupt-names = "IRQB"; > + interrupt-controller; > + #interrupt-cells = <2>; > + }; > + -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog