From patchwork Sat Jun 7 14:48:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Matwey V. Kornilov" X-Patchwork-Id: 4315641 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 93FEFBEEAA for ; Sat, 7 Jun 2014 15:26:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C569E201C8 for ; Sat, 7 Jun 2014 15:26:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EB4D0200F2 for ; Sat, 7 Jun 2014 15:25:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752987AbaFGPZ7 (ORCPT ); Sat, 7 Jun 2014 11:25:59 -0400 Received: from lnfm1.sai.msu.ru ([93.180.26.255]:47541 "EHLO lnfm1.sai.msu.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752870AbaFGPZ6 (ORCPT ); Sat, 7 Jun 2014 11:25:58 -0400 X-Greylist: delayed 2250 seconds by postgrey-1.27 at vger.kernel.org; Sat, 07 Jun 2014 11:25:57 EDT Received: from localhost (localhost.localdomain [127.0.0.1]) by lnfm1.sai.msu.ru (8.14.1/8.12.8) with ESMTP id s57EmCbn013331; Sat, 7 Jun 2014 18:48:17 +0400 Date: Sat, 7 Jun 2014 18:48:12 +0400 (MSK) From: "Matwey V. Kornilov" To: bcousson@baylibre.com, tony@atomide.com cc: linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dts: Add UARTs to am335x-bone-common.dtsi Message-ID: User-Agent: Alpine 2.00 (LRH 1167 2008-08-23) MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From 739cee0aded1aac80764b3fca4e801464f199f93 Mon Sep 17 00:00:00 2001 From: "Matwey V. Kornilov" Date: Sat, 7 Jun 2014 17:23:57 +0400 Subject: [PATCH] Add UARTs to am335x-bone-common.dtsi Add four UARTs pinouts and ports to beagle bone common dtsi. Signed-off-by: Matwey V. Kornilov --- arch/arm/boot/dts/am335x-bone-common.dtsi | 48 +++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm/boot/dts/am335x-bone-common.dtsi b/arch/arm/boot/dts/am335x-bone-common.dtsi index 2e7d932..da3db9f 100644 --- a/arch/arm/boot/dts/am335x-bone-common.dtsi +++ b/arch/arm/boot/dts/am335x-bone-common.dtsi @@ -90,6 +90,30 @@ 0x174 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */ >; }; + uart1_pins: pinmux_uart1_pins { + pinctrl-single,pins = < + 0x180 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_rxd.uart1_rxd */ + 0x184 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_txd.uart1_txd */ + >; + }; + uart2_pins: pinmux_uart2_pins { + pinctrl-single,pins = < + 0x150 (PIN_INPUT_PULLUP | MUX_MODE1) /* spi0_sclk.uart2_rxd */ + 0x154 (PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* spi0_d0.uart2_txd */ + >; + }; + uart3_pins: pinmux_uart3_pins { + pinctrl-single,pins = < + /* Pin 0x160 spi0_cs1.uart3_rxd is not exported to the expansion header. The port is half-duplex */ + 0x164 (PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* ecap0_in_pwm0_out.uart3_txd */ + >; + }; + uart4_pins: pinmux_uart4_pins { + pinctrl-single,pins = < + 0x070 (PIN_INPUT_PULLUP | MUX_MODE6) /* gpmc_wait0.uart4_rxd */ + 0x074 (PIN_OUTPUT_PULLDOWN | MUX_MODE6) /* gpmc_wpn.uart4_txd */ + >; + }; clkout2_pin: pinmux_clkout2_pin { pinctrl-single,pins = < @@ -179,6 +203,30 @@ status = "okay"; }; +&uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&uart1_pins>; + + status = "okay"; +}; +&uart2 { + pinctrl-names = "default"; + pinctrl-0 = <&uart2_pins>; + + status = "okay"; +}; +&uart3 { + pinctrl-names = "default"; + pinctrl-0 = <&uart3_pins>; + + status = "okay"; +}; +&uart4 { + pinctrl-names = "default"; + pinctrl-0 = <&uart4_pins>; + + status = "okay"; +}; &usb { status = "okay";