From patchwork Mon Mar 9 20:19:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Baker X-Patchwork-Id: 45562 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 655D0214BF for ; Mon, 9 Mar 2015 20:20:30 +0000 (UTC) Received: by lbvn10 with SMTP id n10sf15018806lbv.1 for ; Mon, 09 Mar 2015 13:20:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=Su22U5rMAwrxicVjBN5mcH/tKKhcWfApGW53G0i7/QE=; b=jgKlv+BkqmQsEUs0iEQyikVkQwzoof/7yd5o03j3pcIHZy9b1V1aQAMF7QyY3GCxpI NqbK8TL+muFA5B0E+bwAGuGCZe5rwzOjdA4HBtsj6/IYc+UxtLA8aVdx1ymaGstG3Ouy f0baaUEedpeQfcNH/oFns35b3PrHYTNTwAC0KoR/j50LHt13GDh8uCt6Tk33EOyDF39W eOmvapSmSyklsxCzMHfHZz8/svdVOWcUdRi9mgjL1H2EugLuu7kdsynak4JpkLVcfo82 rloxsXkRE7X9eakePiIRluQN3kKIiJ1t/jdIi5NcTWhFJ2mgoBzYsd48Igwrn3y1mPQf oz+g== X-Gm-Message-State: ALoCoQke1WEGInEbfLNWSsofJgI4j0DiYe3jdQnei8+PLn/mYLbtheinsBHN7W9/kSx5vFezjtSK X-Received: by 10.152.6.41 with SMTP id x9mr4204312lax.10.1425932429288; Mon, 09 Mar 2015 13:20:29 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.6.33 with SMTP id cr1ls295099lad.47.gmail; Mon, 09 Mar 2015 13:20:29 -0700 (PDT) X-Received: by 10.112.223.7 with SMTP id qq7mr27484078lbc.81.1425932429122; Mon, 09 Mar 2015 13:20:29 -0700 (PDT) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPS id bc18si13236841lab.107.2015.03.09.13.20.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Mar 2015 13:20:29 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by lbvn10 with SMTP id n10so19921142lbv.11 for ; Mon, 09 Mar 2015 13:20:29 -0700 (PDT) X-Received: by 10.112.130.195 with SMTP id og3mr27059137lbb.112.1425932428758; Mon, 09 Mar 2015 13:20:28 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp1707801lbj; Mon, 9 Mar 2015 13:20:27 -0700 (PDT) X-Received: by 10.66.141.165 with SMTP id rp5mr16826532pab.93.1425932426582; Mon, 09 Mar 2015 13:20:26 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id mi4si6727958pab.142.2015.03.09.13.20.25; Mon, 09 Mar 2015 13:20:26 -0700 (PDT) Received-SPF: none (google.com: devicetree-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753796AbbCIUUX (ORCPT + 5 others); Mon, 9 Mar 2015 16:20:23 -0400 Received: from mail-pd0-f176.google.com ([209.85.192.176]:42221 "EHLO mail-pd0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753911AbbCIUUK (ORCPT ); Mon, 9 Mar 2015 16:20:10 -0400 Received: by pdbfl12 with SMTP id fl12so66156539pdb.9 for ; Mon, 09 Mar 2015 13:20:09 -0700 (PDT) X-Received: by 10.70.96.36 with SMTP id dp4mr57040753pdb.98.1425932408957; Mon, 09 Mar 2015 13:20:08 -0700 (PDT) Received: from localhost.localdomain ([173.14.250.228]) by mx.google.com with ESMTPSA id ux7sm20699004pab.19.2015.03.09.13.20.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 09 Mar 2015 13:20:07 -0700 (PDT) From: tyler.baker@linaro.org To: linux-arm-kernel@lists.infradead.org, maxime.ripard@free-electrons.com Cc: wens@csie.org, devicetree@vger.kernel.org, Tyler Baker Subject: [PATCH v2 1/2] ARM: dts: add cubietech cubieboard4 Date: Mon, 9 Mar 2015 13:19:57 -0700 Message-Id: <1425932398-7194-2-git-send-email-tyler.baker@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1425932398-7194-1-git-send-email-tyler.baker@linaro.org> References: <1425932398-7194-1-git-send-email-tyler.baker@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: tyler.baker@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Tyler Baker Add a Cubietech Cubieboard4 device tree and instruct make to build it. This device tree has been derived from the sun9i-a80-optimus.dts as they are very similar in design[1]. Notably, I2C3 is not used on Cubieboard4 and the LED/PWM definitions will need to be updated in the future. [1] http://dl.cubieboard.org/model/cc-a80/Hardware/CC-A80-HW-V1.1.pdf Signed-off-by: Tyler Baker --- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/sun9i-a80-cubieboard4.dts | 99 +++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/sun9i-a80-cubieboard4.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 4837044..0f67dab 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -553,7 +553,8 @@ dtb-$(CONFIG_MACH_SUN8I) += \ sun8i-a23-ippo-q8h-v5.dtb \ sun8i-a23-ippo-q8h-v1.2.dtb dtb-$(CONFIG_MACH_SUN9I) += \ - sun9i-a80-optimus.dtb + sun9i-a80-optimus.dtb \ + sun9i-a80-cubieboard4.dtb dtb-$(CONFIG_ARCH_TEGRA_2x_SOC) += \ tegra20-harmony.dtb \ tegra20-iris-512.dtb \ diff --git a/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts b/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts new file mode 100644 index 0000000..6484dcf --- /dev/null +++ b/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts @@ -0,0 +1,99 @@ +/* + * Copyright 2015 Tyler Baker + * + * Tyler Baker + * Chen-Yu Tsai + * + * 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 "sun9i-a80.dtsi" +#include "sunxi-common-regulators.dtsi" + +#include +#include + +/ { + model = "Cubietech Cubieboard4"; + compatible = "cubietech,a80-cubieboard4", "allwinner,sun9i-a80"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + +}; + +&pio { + mmc0_cd_pin_cubieboard4: mmc0_cd_pin@0 { + allwinner,pins = "PH18"; + allwinner,function = "gpio_in"; + allwinner,drive = ; + allwinner,pull = ; + }; +}; + +&mmc0 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_pins>, <&mmc0_cd_pin_cubieboard4>; + vmmc-supply = <®_vcc3v0>; + bus-width = <4>; + cd-gpios = <&pio 7 18 GPIO_ACTIVE_HIGH>; /* PH18 */ + cd-inverted; + status = "okay"; +}; + +&mmc2 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc2_8bit_pins>; + vmmc-supply = <®_vcc3v0>; + bus-width = <8>; + non-removable; + status = "okay"; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pins_a>; + status = "okay"; +};