Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934323AbdC3QSO (ORCPT ); Thu, 30 Mar 2017 12:18:14 -0400 Received: from mail.free-electrons.com ([62.4.15.54]:46640 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933356AbdC3QSL (ORCPT ); Thu, 30 Mar 2017 12:18:11 -0400 From: Gregory CLEMENT To: Rob Herring Cc: Linus Walleij , linux-gpio@vger.kernel.org, Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Thomas Petazzoni , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Nadav Haklai , Victor Gu , Marcin Wojtas , Wilson Ding , Hua Jing , Neta Zur Hershkovits Subject: Re: [PATCH v3 1/7] pinctrl: dt-bindings: Add documentation for Armada 37xx pin controllers References: <941d03c9a3bdfd5e789aada29b35184ec9fed9fe.1490282185.git-series.gregory.clement@free-electrons.com> <20170329211105.ype3os6jldsjyrqa@rob-hp-laptop> Date: Thu, 30 Mar 2017 18:18:08 +0200 In-Reply-To: <20170329211105.ype3os6jldsjyrqa@rob-hp-laptop> (Rob Herring's message of "Wed, 29 Mar 2017 16:11:05 -0500") Message-ID: <87d1cy91rz.fsf@free-electrons.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1644 Lines: 60 Hi Rob, On mer., mars 29 2017, Rob Herring wrote: >> +GPIO subnode: >> + >> +Please refer to gpio.txt in this directory for details of gpio-ranges property >> +and the common GPIO bindings used by client devices. >> + >> +Required properties for gpio driver under the gpio subnode: > > Why does this need to be a sub node? You should probably have a > compatible if it is. It is needed to be able to have a phandle associated to the gpio. Then the other node can refer to it. But if we can do without it I would happy to do it. > >> +- interrupts: List of interrupt specifier for the controllers interrupt. >> +- gpio-controller: Marks the device node as a gpio controller. >> +- #gpio-cells: Should be 2. The first cell is the GPIO number and the >> + second cell specifies GPIO flags, as defined in >> + . Only the GPIO_ACTIVE_HIGH and >> + GPIO_ACTIVE_LOW flags are supported. >> +- gpio-ranges: Range of pins managed by the GPIO controller. >> + >> +Xtal Clock bindings for Marvell Armada 37xx SoCs >> +------------------------------------------------ >> + >> +see Documentation/devicetree/bindings/clock/armada3700-xtal-clock.txt >> + >> + >> +Example: >> +pinctrl_sb: pinctrl-sb@18800 { > > pinctrl@ OK > >> + compatible = "marvell,armada3710-sb-pinctrl", "syscon", "simple-mfd"; >> + reg = <0x18800 0x100>, <0x18C00 0x20>; >> + gpiosb: gpiosb { > > gpio@ There is no reg property so we don't use the @ Thanks, Gregory -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com