Received: by 10.223.185.116 with SMTP id b49csp3141599wrg; Sun, 18 Feb 2018 15:20:44 -0800 (PST) X-Google-Smtp-Source: AH8x224ZxbyjGoLElYagWxRb1cb27kE8LxzoW+PYaMzyFKOkTVZwCe9WvDbtmLx0rljyShYxhqow X-Received: by 2002:a17:902:7445:: with SMTP id e5-v6mr12377353plt.204.1518996044115; Sun, 18 Feb 2018 15:20:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518996044; cv=none; d=google.com; s=arc-20160816; b=Xt3xRH/h/Q1P9IDyKDJryxJI74I5lQJOua+QbrkgJdofBSdSGRiuqndfuTj5Rasn/H 2E9pM2zX+RHwkqBsJAHAFN4DvK9tCsg3tNRgkQedY68JmcDoOXy4nRBaJmqfbJpz7HRK kPLCchJXEB6VgTcHus0SI182wT2+lMmvYAjnWlEH1fbprawxe4r2i2DlYwNJbaTVhXwK 1EJG9uSI30iMAUTZ4BJx7OpIdGm8z5wiLRiXszR6Q90YOgokm1EENARjw/JrE//He5in PtB82HNnouSdQLVDhkAv4bW9KR4gZR6vNh6ycHF7wfaBGDBshdrezTBcEULbcucUmarX 91gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=fGsPVt8eEVCCQZqXIpTP3a6FCbGNFsl0fbEX4C/HMyw=; b=N+n6jGM5AIsWXI0wQhOxCXbtzOGrL1/zKG3OT3u3HpHYBNN3UxxJarpRQPeQAIyekn edoesUUBF1ktU9LIen2Bw19gefLiXRevb7uGReoUD+UzpJcZsjbrIRN382sq2sb5n5iQ q7oXTIWwsNKscDW8HyR3+vVjv9ICPm0MJwxNS/SLdfQXNLUPTsuynaL06a18g13ij/Wk ww/+GffNNVZdIXYBKLWvHatL3nadFVAlCJHOlMoh7Elj/UZONm8E56NHB6+8ZlsSfYhb 8lYoBg+zGqr8/w2FAHhc2pgLEKE8Ta0ZehZ+sd2K7SKSedEFEVWT9rNnF5aecOCHWsli vMCA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l5-v6si2143900pls.98.2018.02.18.15.20.29; Sun, 18 Feb 2018 15:20:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751899AbeBRXTn (ORCPT + 99 others); Sun, 18 Feb 2018 18:19:43 -0500 Received: from mail-ot0-f193.google.com ([74.125.82.193]:37811 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751670AbeBRXTk (ORCPT ); Sun, 18 Feb 2018 18:19:40 -0500 Received: by mail-ot0-f193.google.com with SMTP id e64so7104301ote.4; Sun, 18 Feb 2018 15:19:40 -0800 (PST) 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:in-reply-to:user-agent; bh=fGsPVt8eEVCCQZqXIpTP3a6FCbGNFsl0fbEX4C/HMyw=; b=Fmvzayno/3/0Js4Lh/hgT9967cgBXoNYqeQxf1+9Ln8b+e3m7iH6lRLLXnJ+TeBka6 Oxi/wCAqwRRGOD+89grqz88OKg2D2gn8FBlqXfErIDLfSLw7N8+zdyduTRLsL6u8mHRP hP0damt4AvAFzFTXxNyehqrMc6Sg6cJWliC+85mFKzBCE/ODGUpyCy8tfG/66XrPnE8P /LM4qcgZ2hn0sbaEXArYROCmnB0TuMRHgE3DNKmehQHOVPTOrLUnrU1oKTXzBfcM/nno XhkjwTwctCHaKa0pMtkhyAirCgxCcy8z5alIvggfQatudM89lCl/H4KXdQx0l3/FJ+t7 +7qQ== X-Gm-Message-State: APf1xPD4h9ST3/FB/SESaqvqY1eENRNfTWtfygIZ24bpg+b+TZ5voF95 Z2rVvF23RBA33VsGjqeZaA== X-Received: by 10.157.71.146 with SMTP id b18mr1651028otf.130.1518995979736; Sun, 18 Feb 2018 15:19:39 -0800 (PST) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id p57sm1206734otd.7.2018.02.18.15.19.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Feb 2018 15:19:39 -0800 (PST) Date: Sun, 18 Feb 2018 17:19:38 -0600 From: Rob Herring To: Amelie Delaunay Cc: Lee Jones , Linus Walleij , Mark Rutland , Russell King , Alexandre Torgue , Maxime Coquelin , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/6] dt-bindings: mfd: Add ST Multi-Function eXpander driver Message-ID: <20180218231938.goeht7tomfkab6uu@rob-hp-laptop> References: <1518100057-23234-1-git-send-email-amelie.delaunay@st.com> <1518100057-23234-2-git-send-email-amelie.delaunay@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1518100057-23234-2-git-send-email-amelie.delaunay@st.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 08, 2018 at 03:27:32PM +0100, Amelie Delaunay wrote: > This patch adds documentation of device tree bindings for the > STMicroelectronics Multi-Function eXpander (MFX). > > Signed-off-by: Amelie Delaunay > --- > Documentation/devicetree/bindings/mfd/st-mfx.txt | 51 ++++++++++++++++++++++++ > 1 file changed, 51 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mfd/st-mfx.txt > > diff --git a/Documentation/devicetree/bindings/mfd/st-mfx.txt b/Documentation/devicetree/bindings/mfd/st-mfx.txt > new file mode 100644 > index 0000000..423d800 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mfd/st-mfx.txt > @@ -0,0 +1,51 @@ > +STMicroelectronics Multi-Function eXpander > + > +ST Multi-Function eXpander (MFX) is a slave controller using I2C for > +communication with the main MCU. Its main features are gpio expansion, main > +MCU IDD measurement (IDD is the amount of current that flows through VDD) > +and resistive touchscreen controller. You don't have to implement all the drivers now, but please completely describe the device. As is, there is no reason to have a child GPIO node. > + > +Required properties: > +- compatible: must be "st,mfx" Kind of generic. Only 1 single version ever? > +- reg: I2C address of the device > +- interrupts: interrupt triggered by MFX_IRQ_OUT signal > +- interrupt-parent: interrupt controller MFX is connected to > +- interrupt-controller: marks the device as an interrupt controller > +- #interrupt-cells: should be <1>, index of the interrupt within the > + controller, in accordance with the "one cell" variant of > + > + > +Optional nodes: > + > +* GPIO eXpander > +MFX provides 16 programmable GPIOs, and it is also possible to recover 8 > +alternate GPIOs if the main functions are not used (touchscreen controller and > +IDD measurement not enabled). > + > +Required properties: > +- compatible : must be "st,mfx-gpio" > +- interrupt-parent : must be <&mfx> Not necessary. A parent node with 'interrupt-controller' property is the interrupt's parent. > +- interrupts = must be <0> > +- gpio-controller: marks the device node as a GPIO controller > +- #gpio-cells: should be <2>, the first cell is the GPIO offset on this GPIO > + controller, the second cell is the gpio flags in accordance with > + . Custom flags? Use standard flags. DT binding headers should be part of this patch. > + > +Example: > + > + mfx: mfx@42 { > + compatible = "st,mfx"; > + reg = <0x42>; > + interrupts = <8 IRQ_TYPE_EDGE_RISING>; > + interrupt-parent = <&gpioi>; > + interrupt-controller; > + #interrupt-cells = <1>; > + > + mfxgpio: mfx_gpio { gpio { > + compatible = "st,mfx-gpio"; > + interrupt-parent = <&mfx>; > + interrupts = <0>; > + gpio-controller; > + #gpio-cells = <2>; > + }; > + }; > -- > 2.7.4 >