From patchwork Tue May 23 13:00:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 9742451 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 73CCD601C2 for ; Tue, 23 May 2017 13:01:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 60BD126D05 for ; Tue, 23 May 2017 13:01:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 551BD287D1; Tue, 23 May 2017 13:01:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 53CCB26D05 for ; Tue, 23 May 2017 13:01:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=hfqGZNiE3jXLM++/SDgyjLasaKoZ63U+ZcvaWJs5ZOk=; b=uID iHJlCK1rzNYqZvCZF3Bsbky2sbjps3bSmHNBJgrbiGRHvukbdWnPR8jqKH7uelYVfVrefsqTu2NSF 5lgpuWbyhUjqkLfLL9eiusmyWNrjKr5Pip/kNmEBXWeM1Lt3KyxLgk0lUosU9SiJWm48oDqjGOxyr sSd0xGeKIlE65BY60ym0X3Tp090VS5SwAqBMfELiU0HdFv6IwsdqMvc4omCIi+esorc2wZx8RYEa4 YnWFWLvQCrU3vpkPOsrmW2/oiDXpaGdFY17NlSUXix69ieZKDSAl/6rRrjPSxgCJoG2u2aqzJEzcp Q1MJIo2S/bqetnsP+k6SsFuGR+pTbhQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dD9RR-0001s5-Bi; Tue, 23 May 2017 13:01:37 +0000 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dD9RN-0001oe-Dc for linux-arm-kernel@lists.infradead.org; Tue, 23 May 2017 13:01:35 +0000 Received: by mail-pf0-x242.google.com with SMTP id n23so27478083pfb.3 for ; Tue, 23 May 2017 06:01:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=3EKiKTDVapMFwwN/XnM58zL757I3U35REQEtuQ1iHuU=; b=BSPsTM/B29SgF+3+04niWp114ZZ1+MIWRwoohyvCzXvzdFCI+2biGKLtxYa9zacTE4 hkky7dS9rr/87bwjkJ/jba2DVFiEWx/96031Rn/npKeNK0yVWgo7pBRs1VmA0u5+l4/e qJvk+5UZMk4BGU+aC2svqcDEgk2Dv23UK8ia08NliuXVVNbbGkiVPXuJ8Ne03/J5c1zU fGBRi8KNB08ffthulhVlUlvw0ZvSHmmOreNHDTqf/NvBwFNvHEqVifV/zWy0jFE6zivI 1jFHwMvAxtZ/vcjuwO63xSxFZujyMjd4p04xMFXQxQQNC62uZjexY15ldL9iGC5ItuA0 P+ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=3EKiKTDVapMFwwN/XnM58zL757I3U35REQEtuQ1iHuU=; b=YC9rpA8PrS6JGaq7AUFkpU3NICKw715a3OU06QHsWCiQHPL71mRsZXsxJ1VZKCBRmV 6dh2FP2PsKKQzTcQzjZ1/n6ZRwpKun9UAW48Y6S540aL1NnRwh4It7/bhwKitzFEzwLL ExiZQCwnKwcFEO6/bAeenzR5vUcwl24Ybj7Y2Cjszlfd81Do1Z8eV6h3vVhQpT8xoaSM 5mS1se3FOJJ2HwyyI8HR8xIKoJPeOmui1dqNxSGrfkGjYcklAOgRfWZlEqoESDx1TFvG OI42LBds+N3SM/f7sf0SJSFlUYdJyplutsI7Iz1pVX/nbNiHtZ0ACUgFbFLuSoBvQB3Y UPow== X-Gm-Message-State: AODbwcA53Os6ASyXgDcXvPL8ZbGJJ+7uCLL9jNhfity34IuggP9gaqsT AjW0CUrm/vmxjQ== X-Received: by 10.99.103.4 with SMTP id b4mr31087988pgc.84.1495544471802; Tue, 23 May 2017 06:01:11 -0700 (PDT) Received: from localhost.localdomain ([59.95.77.114]) by smtp.gmail.com with ESMTPSA id a24sm1436681pfl.70.2017.05.23.06.01.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 23 May 2017 06:01:10 -0700 (PDT) From: Jagan Teki X-Google-Original-From: Jagan Teki To: Maxime Ripard Subject: [PATCH] ARM: dts: sun5i: a13: Add Olimex SOM board dts support Date: Tue, 23 May 2017 18:30:37 +0530 Message-Id: <1495544437-32463-1-git-send-email-jteki@openedev.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170523_060133_503697_AEE0BD85 X-CRM114-Status: GOOD ( 18.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Chen-Yu Tsai , Rob Herring , Jagan Teki , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jagan Teki Add support for Olimex A13-512-SOM board, and this particular design is like A13-SOM-WIFI can mount on-top of A13-SOM. https://www.olimex.com/Products/SOM/A13/A13-SOM-512/ https://www.olimex.com/Products/SOM/A13/A13-SOM-WIFI/open-source-hardware Features: - A13 Cortex A8 processor at 1GHz, 3D Mali400 GPU - 512MB DDR3 memory - MicroSD card connector - UART console connector - Status LEDs - BL-8188-8M WiFi wireless module with Realtek RTL8188CUS chip - USB-OTG with mini USB connector Cc: Maxime Ripard Signed-off-by: Jagan Teki --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/sun5i-a13-olinuxino-som.dts | 174 ++++++++++++++++++++++++++ 2 files changed, 175 insertions(+) create mode 100644 arch/arm/boot/dts/sun5i-a13-olinuxino-som.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 9c5e1d9..45c6e65 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -830,6 +830,7 @@ dtb-$(CONFIG_MACH_SUN5I) += \ sun5i-a13-licheepi-one.dtb \ sun5i-a13-olinuxino.dtb \ sun5i-a13-olinuxino-micro.dtb \ + sun5i-a13-olinuxino-som.dtb \ sun5i-a13-q8-tablet.dtb \ sun5i-a13-utoo-p66.dtb \ sun5i-gr8-chip-pro.dtb \ diff --git a/arch/arm/boot/dts/sun5i-a13-olinuxino-som.dts b/arch/arm/boot/dts/sun5i-a13-olinuxino-som.dts new file mode 100644 index 0000000..3bb3b7d --- /dev/null +++ b/arch/arm/boot/dts/sun5i-a13-olinuxino-som.dts @@ -0,0 +1,174 @@ +/* + * Copyright 2012 Maxime Ripard + * Copyright 2013 Hans de Goede + * Copyright 2017 Jagan Teki + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your option. Note that this dual + * licensing only applies to this file, and not this project as a + * whole. + * + * a) This file is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * Or, alternatively, + * + * b) Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +/dts-v1/; +#include "sun5i-a13.dtsi" +#include "sunxi-common-regulators.dtsi" + +#include +#include + +/ { + model = "Olimex A13-Olinuxino SOM"; + compatible = "olimex,a13-olinuxino-som", "allwinner,sun5i-a13"; + + aliases { + serial0 = &uart1; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&led_pins_olinuxinom>; + + power { + label = "a13-olinuxino-micro:green:power"; + gpios = <&pio 6 9 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + }; +}; + +&ehci0 { + status = "okay"; +}; + +&mmc0 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_olinuxinom>; + vmmc-supply = <®_vcc3v3>; + bus-width = <4>; + cd-gpios = <&pio 6 0 GPIO_ACTIVE_HIGH>; /* PG0 */ + cd-inverted; + status = "okay"; +}; + +&ohci0 { + status = "okay"; +}; + +&otg_sram { + status = "okay"; +}; + +&pio { + mmc0_cd_pin_olinuxinom: mmc0_cd_pin@0 { + allwinner,pins = "PG0"; + allwinner,function = "gpio_in"; + allwinner,drive = ; + allwinner,pull = ; + }; + + led_pins_olinuxinom: led_pins@0 { + allwinner,pins = "PG9"; + allwinner,function = "gpio_out"; + allwinner,drive = ; + allwinner,pull = ; + }; + + usb0_id_detect_pin: usb0_id_detect_pin@0 { + allwinner,pins = "PG2"; + allwinner,function = "gpio_in"; + allwinner,drive = ; + allwinner,pull = ; + }; + + usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 { + allwinner,pins = "PG1"; + allwinner,function = "gpio_in"; + allwinner,drive = ; + allwinner,pull = ; + }; + + usb0_vbus_pin_olinuxinom: usb0_vbus_pin@0 { + allwinner,pins = "PG12"; + allwinner,function = "gpio_out"; + allwinner,drive = ; + allwinner,pull = ; + }; + + usb1_vbus_pin_olinuxinom: usb1_vbus_pin@0 { + allwinner,pins = "PG11"; + allwinner,function = "gpio_out"; + allwinner,drive = ; + allwinner,pull = ; + }; +}; + +®_usb0_vbus { + pinctrl-0 = <&usb0_vbus_pin_olinuxinom>; + gpio = <&pio 6 12 GPIO_ACTIVE_HIGH>; + status = "okay"; +}; + +®_usb1_vbus { + pinctrl-0 = <&usb1_vbus_pin_olinuxinom>; + gpio = <&pio 6 11 GPIO_ACTIVE_HIGH>; + status = "okay"; +}; + +&uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&uart1_pins_b>; + status = "okay"; +}; + +&usb_otg { + dr_mode = "otg"; + status = "okay"; +}; + +&usbphy { + pinctrl-names = "default"; + pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>; + usb0_id_det-gpio = <&pio 6 2 GPIO_ACTIVE_HIGH>; /* PG2 */ + usb0_vbus_det-gpio = <&pio 6 1 GPIO_ACTIVE_HIGH>; /* PG1 */ + usb0_vbus-supply = <®_usb0_vbus>; + usb1_vbus-supply = <®_usb1_vbus>; + status = "okay"; +};