Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1760804ybz; Sat, 18 Apr 2020 07:57:31 -0700 (PDT) X-Google-Smtp-Source: APiQypI+UPm3PcLgAa38OQ4gIef+1w3sBMpTfFRRO346yuwXWmwDT/LUrQh0ugO9U946zqIx2IW8 X-Received: by 2002:a50:9f85:: with SMTP id c5mr7445592edf.278.1587221850860; Sat, 18 Apr 2020 07:57:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587221850; cv=none; d=google.com; s=arc-20160816; b=xloB9RERCeaedPzDli/ahxrLba33vV8PoH7Qdosw6rIrM3wHOwVr/gWF4ta1PmOirA z0xHoTnPy/d2sgAZy6rPrxoxM5hBY54EVdV1JRf3TgELzkLxB1EtaTcNdKPw9aKehDBJ 3I3uxwDcNrbSIR35tl7ZKUhGXf24CnLycSClS2SRxT5UVaRx4mchar7BQQjmqdHI2kRN +vVZzmt9YYIDRQFw0QKqZ/x/99mH3DFbFa8o+FcrjebGkBy+cEEGpYq1mTrNUicfmWKD QETPC/VbGHNpUaYaoCis1+8ODRIyzpsHuOQNI+cQjXVvmYOCZIUrGnCW6GTqXBCHKCVY lp2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=XTOuExkcj6lMR0jWdZpDCTvj9An8nMSVCzG9BOMtdnw=; b=EQDuLm+utE2/qct2MJps3BPk5YGVclQyWD1FHyj54d7jbtiYagjqW5LNP6YpQ0jmNT +QyKyViwrSe76pIuJgvR2ngSY7Ay+qC7H9+P6aFZYYkjbaFOKfWbbJ63shDNpk4rfnRN Ua8bbJITnObWBwoGp9FmpiaQbv58lUndFczF3CFREnyp7+zmD7lqEDmyX+Kwviv61Ytg aiHhLA+c04+AInAlLcoivHanDV3f9nR/fMpaQ7CdqDD7JGzkvsaLJCbZ6l1ZbYLVQtRA yRKDY64/ptTZTva13lz1WqbiTvEV79Ws0sxJZjWnjZByH5/bjbO96DxcPi8UUfodT+c4 wDIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jJwBl5f8; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q1si8412607edn.433.2020.04.18.07.57.08; Sat, 18 Apr 2020 07:57:30 -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=@kernel.org header.s=default header.b=jJwBl5f8; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729103AbgDROxR (ORCPT + 99 others); Sat, 18 Apr 2020 10:53:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:36822 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728232AbgDROxO (ORCPT ); Sat, 18 Apr 2020 10:53:14 -0400 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AA7E520753; Sat, 18 Apr 2020 14:53:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587221593; bh=UO9hE+5yzNPSpuvg9uhBYwowJGF7YGQ0bQZtDXJyLHk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=jJwBl5f8kZb+Vjb6gaXMx+rrc2lwQBFHn4Wp6+3JFe7HyvjEiFD8RVV83+7AX5MKg QjTRUl0wdylXFGYyR3ES9F2crDjZUAluMZOYBVRqeNItFdkUZpzA9dMD6jkzpgcuMC QCHNJDlz+0gYBX+jJAK1ayPCJDQ5RjKdfmJSRxZc= Date: Sat, 18 Apr 2020 15:53:08 +0100 From: Jonathan Cameron To: Saravanan Sekar Cc: lee.jones@linaro.org, andy.shevchenko@gmail.com, robh+dt@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, sre@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH v10 1/6] dt-bindings: mfd: add document bindings for mp2629 Message-ID: <20200418155308.681df38f@archlinux> In-Reply-To: <20200417085003.6124-2-sravanhome@gmail.com> References: <20200417085003.6124-1-sravanhome@gmail.com> <20200417085003.6124-2-sravanhome@gmail.com> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 17 Apr 2020 10:49:58 +0200 Saravanan Sekar wrote: > Add device tree binding information for mp2629 mfd driver. > > Signed-off-by: Saravanan Sekar > Reviewed-by: Andy Shevchenko > --- > .../devicetree/bindings/mfd/mps,mp2629.yaml | 61 +++++++++++++++++++ > 1 file changed, 61 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mfd/mps,mp2629.yaml > > diff --git a/Documentation/devicetree/bindings/mfd/mps,mp2629.yaml b/Documentation/devicetree/bindings/mfd/mps,mp2629.yaml > new file mode 100644 > index 000000000000..b25b29259d67 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mfd/mps,mp2629.yaml > @@ -0,0 +1,61 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/mfd/mps,mp2629.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MP2629 Battery Charger PMIC from Monolithic Power System. > + > +maintainers: > + - Saravanan Sekar > + > +description: | > + MP2629 is a PMIC providing battery charging and power supply for smartphones, > + wireless camera and portable devices. Chip is controlled over I2C. > + > + The battery charge management device handles battery charger controller and > + ADC IIO device for battery, system voltage > + > +properties: > + compatible: > + const: mps,mp2629 > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + interrupt-controller: true > + > + "#interrupt-cells": > + const: 2 > + description: > + The first cell is the IRQ number, the second cell is the trigger type. > + > +required: > + - compatible > + - reg > + - interrupts > + - interrupt-controller > + - "#interrupt-cells" > + > +examples: > + - | > + #include > + #include > + i2c@7e205000 { I thought the general trend for i2c devices was to leave the i2c part 'vague'. i2c { #address-cells = <1>; #size-cells = <0>; pmic@4b.. etc Guess it doesn't matter if example contains too much information. Rob? Otherwise looks good to me. Thanks, Jonathan > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <0x7e205000 0x200>; > + > + pmic@4b { > + compatible = "mps,mp2629"; > + reg = <0x4b>; > + > + interrupt-controller; > + interrupt-parent = <&gpio2>; > + #interrupt-cells = <2>; > + interrupts = <3 IRQ_TYPE_LEVEL_HIGH>; > + }; > + };