Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3337972ybz; Mon, 20 Apr 2020 00:20:37 -0700 (PDT) X-Google-Smtp-Source: APiQypJBsQ57Q7A73XPf3h7gSchNhTPuA+2Z0pQOG3hSWLF/Nb70ugrGecerwAi2CWSbleZl8/gD X-Received: by 2002:a50:e3cb:: with SMTP id c11mr4945867edm.105.1587367237611; Mon, 20 Apr 2020 00:20:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587367237; cv=none; d=google.com; s=arc-20160816; b=PghFswViTGNFD8NXRf6HJ9Ar2CgJ4R8hkQ36ihRkae6foy7fp7jk9c8z2k98V5CjEI 3hRAdmIW0H/8RJP5xcIERBNHO2tD+mF6xLUjdGZmObI28HFXhHkOix8LKJ7I6kNaAq1U WpNURgQCfoQLb6TKN4hRzsJkXvg24Y63Ml7Gm+OQWT+n9VH4vSqmS7WHZMxrYCZQe+Ox krHWLIvo53awTbar/advdfc0jE9VuizTOJpdAZ5D5Q2QVJGfhMcI5c0m/LejdvkwACb/ nDXWniuKRfTiObXbBPQp6sPyrkL3S9HTdNW7d9Mzcbp1mx9dY90/ms0qghEcuLIwecY2 dXAA== 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=+a5D/Go3l6kNSMlbJDlUz7E/smrjsN8BEZkxCZCPYyw=; b=qyNNnAUylge1ym+Nh9xjupmcX9jpCV/XXd8W1y9BuzkkQXbZ6akft4GHOg5Tmf2UXP OP6LFLUBN/TR6cGdswThoy+02fcKUui2nUIMfBr0i8MizSMlJ2fmymT+U5svpo+BT7H2 DEAPFVNG7smRWuVtcpAjauRlETtNK3npgspC1aaJG5OhkQIJztPeFENRoKI+1fGs8hn/ 7/gtoG1HzjL5SDAYOhn/GYaNMqYMkoZ0JtpXSAojRl5DMNedYqeuFBXBinCMC05ADDmM CmoimxTUij8HcZGAYmjguSCl6VMuTr+Iv1IVVtYbh+txQGv/E+L7bwgsuuh+VKKphjx9 /Kzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="j2WkOi/B"; 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 u3si40230edp.525.2020.04.20.00.20.13; Mon, 20 Apr 2020 00:20:37 -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="j2WkOi/B"; 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 S1726161AbgDTHTQ (ORCPT + 99 others); Mon, 20 Apr 2020 03:19:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726020AbgDTHTP (ORCPT ); Mon, 20 Apr 2020 03:19:15 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7C16C061A10 for ; Mon, 20 Apr 2020 00:19:13 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id v4so3867537wme.1 for ; Mon, 20 Apr 2020 00:19:13 -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=+a5D/Go3l6kNSMlbJDlUz7E/smrjsN8BEZkxCZCPYyw=; b=j2WkOi/BwuKO0264ycM/t1QGPReas21DiXLzX+1O2wHO69r4NkdP/a+D9TWB7XTU/S h7Ht8uQGNR5z3nBRGDVpcE9JyM6yAL2hh47Xme4rAAuZJ1X4AMknYJNzvgemYgKTK/SQ HDfySjW67EuCUellMv/FB8SxZrNhWqkFZIDlMwsbnN3H45p7+d/xDI22zqaS4wtdS1fH cJsfpC6DEGo8I4nydqC6GKJyR/bzH3JoygU3N2GBwQU4VJetVikJaRlp2+lxOtNZTzw8 8oYM7q0Wttet5w6aDSEO8FcsPFM/A6FTcQjynbFfD31acw8WbBgOCR4yGGLiNjo56rbR PCcQ== 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=+a5D/Go3l6kNSMlbJDlUz7E/smrjsN8BEZkxCZCPYyw=; b=ioYC8FtYP2yv1KrW4tBKAdFMheBLMrxJ9EyfFGb8wa9EstngdRFDnvy1udGvITrbUs 4PIuXTgyf8lMA3lDFdhRAVbXB+ieJVhCED8ug1ejGUnA2erqDDujP/g7p8n98/n5P4Op dMjI7r0ivPxWBw9+x6tnA5ep31RQRV9PLyNoPDEsYO3p0i/26El72bt7ybBvgiXUpJiF Uwv2vSZ5N4B+/pfZeSwgVY9xaiM9mvYQR8tXYofFsuqAwfVnaBH8k6sQu6Q+68vc0OuU etLk9Oh/DFHMPboiKhbrDmcf7X5q0l0zjSDCrTdUk6+Toe7kSCxGsJpWrNgRjg0yuNti icQQ== X-Gm-Message-State: AGi0PuaZcPwsUjCo0Slf+aR0/6GXm/i6wlFIAlh6uwVatA3gHgCGoxYY Pts1c2NwEnuFLwl2u8HUkuTZS80q9Mg= X-Received: by 2002:a1c:4d07:: with SMTP id o7mr17368816wmh.59.1587367152449; Mon, 20 Apr 2020 00:19:12 -0700 (PDT) Received: from dell ([95.149.164.107]) by smtp.gmail.com with ESMTPSA id k133sm196661wma.0.2020.04.20.00.19.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2020 00:19:11 -0700 (PDT) Date: Mon, 20 Apr 2020 08:19:10 +0100 From: Lee Jones To: Jonathan Cameron Cc: saravanan sekar , 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: <20200420071910.GH3737@dell> References: <20200417085003.6124-1-sravanhome@gmail.com> <20200417085003.6124-2-sravanhome@gmail.com> <20200418155308.681df38f@archlinux> <50ffb42e-4080-415e-dd3d-e38f7b0a6071@gmail.com> <20200418170619.155222fa@archlinux> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200418170619.155222fa@archlinux> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 18 Apr 2020, Jonathan Cameron wrote: > On Sat, 18 Apr 2020 17:01:17 +0200 > saravanan sekar wrote: > > > Hi Jonathan, > > > > On 18/04/20 4:53 pm, Jonathan Cameron wrote: > > > 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 > > I agree with you and initial patch was as like above, but Lee was > > somehow unhappy and not satisfied with > > > > my explanations. Please find more info on v4. > > Ah. Curious. Oh well - over to Rob for a definitive answer! I haven't seen this spoken about before. The comments were based solely on my own views of, the example should provide a solid, valid, potentially working block for people to use as a reference. Would an I2C node missing an address be a valid DTS/DTSI entry? -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog