Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3097646pxa; Tue, 18 Aug 2020 06:37:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylxOMy4bLdXme1KfUSFCotaDU/JsmxbvD6GYegEX0WP9+p0SAbib0yr3Y7oBFegQskQBHs X-Received: by 2002:a17:906:817:: with SMTP id e23mr19730147ejd.203.1597757838551; Tue, 18 Aug 2020 06:37:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597757838; cv=none; d=google.com; s=arc-20160816; b=hVxMy8ThQptz03TXyjYRFWXIT3+noN4XRvntwP+NftdKBPoWSzkgwhxMUGARnQCRFI IPaVwo31qTWIOkGbqOXWlZK9twY4DQoFlgtGe2eeF1A4oywq85QVZkqQvGu+QMxWGHIZ iDQct3Cj/ecveEX0ThuMHUZhtbZASdm7B0jFGi38OKZqh4CmADIrz30DTR/aL6T8kbmF ZNM/6RxZQAk7peNieS4HgH7zJsZmMQVnBBup0loF2BOBRpxcX/IiqUsaiZAhzrG8DHBY zbnUF1CeyujqHmzZHa/GANtt4Ko6kgS+K2YLhZXa8CGqxUbQflNl2KOclFxOFQ4u4GEW Jhtg== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=lbRY2tdUt5mBEuquC0UllYq+gSaJeN/2MHJne5R/EaQ=; b=YrXoNkLRdPozUOOCl77dR7FGa/e6vbOxb1vE+iAMinjp4OdjLO77RIcrGa4txx+l0t AtTd2XlDPOBd8z9XFO05kblK32ehysVf7aFNx/ZlnlIcCf8CqIC2i3fC3VdGl8VvGK2w phH0IoOSDK8Zmsvka/z6DEXmzLbZwltmIhN6TcDLrzP8m3l/W1F6Gt20t3wdLy/+LyIX B1QnRBuY/Bk94JeldvL+14Sb3J2RaxyPBF+I/pfqosGPLz722iz9fwjIarI4fxf9nezL XD5bJeguwC2982VRl/FC7gXriAmh8b8n47OmGI/GsxfvNRwSb59mt+2dI2epc341qLlq zJPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="eXF6QD/I"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i2si14932206ejp.500.2020.08.18.06.36.55; Tue, 18 Aug 2020 06:37:18 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b="eXF6QD/I"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726766AbgHRNgM (ORCPT + 99 others); Tue, 18 Aug 2020 09:36:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726690AbgHRNgC (ORCPT ); Tue, 18 Aug 2020 09:36:02 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CD11C061389 for ; Tue, 18 Aug 2020 06:36:01 -0700 (PDT) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 36B86279; Tue, 18 Aug 2020 15:35:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1597757743; bh=PE6ummxb+hamM8+bi+bKnqcJjCcRQ55ndIBb6WJVDe0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eXF6QD/I4wFQshRUYEEJFUmpRbzxK9tKt/kP5H++8E/0X1azTbLx3fZyYKBTv2ngj uQjxj2dz2DCL2Yh6M9RdfvRRgIaldqwA4Qqlal9PbYi7GxsWwbGaPxgqRt9EPXsIEa vnVQeh9xHJV8aD7IY0dNv9gxFOsxCCvqMwR1DU4w= Date: Tue, 18 Aug 2020 16:35:25 +0300 From: Laurent Pinchart To: Vaishnav M A Cc: greybus-dev@lists.linaro.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, arnd@arndb.de, johan@kernel.org, elder@kernel.org, rajkovic@mikroe.com, robh@kernel.org, mchehab+huawei@kernel.org, robertcnelson@beagleboard.org, drew@beagleboard.org, davem@davemloft.net, zoran.stojsavljevic@gmail.com Subject: Re: [greybus-dev] [RFC PATCH v2 3/3] Add Device Tree Bindings for mikroBUS port Message-ID: <20200818133525.GA9947@pendragon.ideasonboard.com> References: <20200818124815.11029-1-vaishnav@beagleboard.org> <20200818124815.11029-4-vaishnav@beagleboard.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200818124815.11029-4-vaishnav@beagleboard.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Vaishnav, Thank you for the patch. On Tue, Aug 18, 2020 at 06:18:15PM +0530, Vaishnav M A wrote: > This patch adds device tree bindings for the mikroBUS port, > device tree overlays for the mikrobus Port on the BeagleBoard.org > PocketBeagle is available here : > github.com/beagleboard/bb.org-overlays/blob/master/src/arm/PB-MIKROBUS-0.dts > > Signed-off-by: Vaishnav M A > --- > .../bindings/misc/linux,mikrobus.txt | 81 +++++++++++++++++++ Would you mind converting this binding document to YAML ? For new bindings we're trying to enforce usage of YAML, to avoid increasing the conversion backlog. > 1 file changed, 81 insertions(+) > create mode 100644 Documentation/devicetree/bindings/misc/linux,mikrobus.txt > > diff --git a/Documentation/devicetree/bindings/misc/linux,mikrobus.txt b/Documentation/devicetree/bindings/misc/linux,mikrobus.txt > new file mode 100644 > index 000000000000..99f75caf5f35 > --- /dev/null > +++ b/Documentation/devicetree/bindings/misc/linux,mikrobus.txt > @@ -0,0 +1,81 @@ > +mikroBUS add-on board socket > + > +Required properties: > +- compatible: Must be "linux,mikrobus" > +- i2c-adapter: phandle to the i2c adapter attached to the mikrobus socket. > +- spi-master: spi bus number of the spi-master attached to the mikrobus socket. > +- spi-cs: spi chip-select numbers corresponding to the chip-selects > + on the mikrobus socket(0 -> chip select corresponding to CS pin > + 1 -> chip select corresponding to RST pin). > +- serdev-controller: phandle to the uart port attached to the mikrobus socket. > +- pwms: phandle to the pwm-controller corresponding to the mikroBUS PWM pin. > +- mikrobus-gpios: gpios array corresponding to GPIOs on the mikroBUS port, > + for targets not supporting the AN pin on the mikroBUS port as > + GPIO, the length of the gpios array can be 11, otherwise it > + should be 12. > +- pinctrl-names: pinctrl state names to support additional pin usage/deviations > + from mikroBUS socket standard usage, must be "default", > + "pwm_default", "pwm_gpio", "uart_default", "uart_gpio", > + "i2c_default", "i2c_gpio", "spi_default", "spi_gpio", these > + pinctrl names should have corresponding pinctrl-N entries which > + corresponds to the pinmux state for the pingroup, for example, > + i2c_default corresponds to the state where the I2C pin group > + (SCL,SDA) are configured in I2C mode and i2c_gpio mode corresponds > + to the pinmux state where these pins are configured as GPIO. > +- pinctrl-N : pinctrl-(0-8) corresponds to the pinctrl states for the states described > + above. > + > +Example: > + mikrobus-0 { > + compatible = "linux,mikrobus"; > + status = "okay"; > + pinctrl-names = "default", "pwm_default", "pwm_gpio", > + "uart_default", "uart_gpio", "i2c_default", > + "i2c_gpio", "spi_default", "spi_gpio"; > + pinctrl-0 = < > + &P2_03_gpio_input_pin > + &P1_04_gpio_pin > + &P1_02_gpio_pin > + >; > + pinctrl-1 = <&P2_01_pwm_pin>; > + pinctrl-2 = <&P2_01_gpio_pin>; > + pinctrl-3 = < > + &P2_05_uart_pin > + &P2_07_uart_pin > + >; > + pinctrl-4 = < > + &P2_05_gpio_pin > + &P2_07_gpio_pin > + >; > + pinctrl-5 = < > + &P2_09_i2c_pin > + &P2_11_i2c_pin > + >; > + pinctrl-6 = < > + &P2_09_gpio_pin > + &P2_11_gpio_pin > + >; > + pinctrl-7 = < > + &P1_12_spi_pin > + &P1_10_spi_pin > + &P1_08_spi_sclk_pin > + &P1_06_spi_cs_pin > + >; > + pinctrl-8 = < > + &P1_12_gpio_pin > + &P1_10_gpio_pin > + &P1_08_gpio_pin > + &P1_06_gpio_pin > + >; > + i2c-adapter = <&i2c1>; > + spi-master = <0>; > + spi-cs = <0 1>; > + serdev-controller = <&uart4>; > + pwms = <&ehrpwm1 0 500000 0>; > + mikrobus-gpios = <&gpio1 18 0> , <&gpio0 23 0>, > + <&gpio0 30 0> , <&gpio0 31 0>, > + <&gpio0 15 0> , <&gpio0 14 0>, > + <&gpio0 4 0> , <&gpio0 3 0>, > + <&gpio0 2 0> , <&gpio0 5 0>, > + <&gpio2 25 0> , <&gpio2 3 0>; > + }; > \ No newline at end of file -- Regards, Laurent Pinchart