From patchwork Mon Mar 9 16:27:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Baker X-Patchwork-Id: 45551 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2BAC0214BF for ; Mon, 9 Mar 2015 16:27:23 +0000 (UTC) Received: by lamq1 with SMTP id q1sf6174804lam.3 for ; Mon, 09 Mar 2015 09:27:22 -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=19+VEKULTH5GTKJl8R68+tGpdje36U2s8k8Vq1ll84w=; b=m/bOx/q83prc+K6zTdVkDaOA6/10aEqPicJjmITs1esGhYNaaRYXoeyiviaWV4T5KA G6kqjgQs0RXG6cJiAI4yztH+bipmQd38Kdd4v/azzMAKG3PNSX0+tbh7L64azz628bfk F9/py0Z0K0ZjXa5Vq6hUrvl7XV9RVG5HT8luE6uai5zdckNCCA1vQINFHhbCcL5NUYKG KIlR+HEumYEM5y6w5/EFkIPkDOvgp4F6VkJX4Ky58ZuOIktoJFTg4Ldz+lWSLz7/M/AP VonNiZTCwRs3BtWKdyiDtGwEFDOqCsftNvBT49/fnn2ZCfa7DVjsvp32z08O6StBvI1c wNAw== X-Gm-Message-State: ALoCoQmrusCS2nHFSO+JUXjB6SOgjCNjddBayHV+g9mjsR+j4TFA1VM+9xlyvS7KO9r5ScLWuZH5 X-Received: by 10.112.224.12 with SMTP id qy12mr4008700lbc.10.1425918442116; Mon, 09 Mar 2015 09:27:22 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.170.164 with SMTP id an4ls104181lac.19.gmail; Mon, 09 Mar 2015 09:27:21 -0700 (PDT) X-Received: by 10.112.139.136 with SMTP id qy8mr26694638lbb.38.1425918441967; Mon, 09 Mar 2015 09:27:21 -0700 (PDT) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com. [209.85.217.179]) by mx.google.com with ESMTPS id ep10si14722572lac.22.2015.03.09.09.27.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Mar 2015 09:27:21 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) client-ip=209.85.217.179; Received: by lbiw7 with SMTP id w7so32961051lbi.7 for ; Mon, 09 Mar 2015 09:27:21 -0700 (PDT) X-Received: by 10.112.204.197 with SMTP id la5mr26363428lbc.29.1425918441650; Mon, 09 Mar 2015 09:27:21 -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 h5csp1588009lbj; Mon, 9 Mar 2015 09:27:20 -0700 (PDT) X-Received: by 10.70.125.129 with SMTP id mq1mr55344584pdb.70.1425918439394; Mon, 09 Mar 2015 09:27:19 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fa9si11141888pdb.76.2015.03.09.09.27.18; Mon, 09 Mar 2015 09:27:19 -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 S1753878AbbCIQ1R (ORCPT + 5 others); Mon, 9 Mar 2015 12:27:17 -0400 Received: from mail-pd0-f182.google.com ([209.85.192.182]:46574 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754409AbbCIQ1Q (ORCPT ); Mon, 9 Mar 2015 12:27:16 -0400 Received: by pdev10 with SMTP id v10so35586974pde.13 for ; Mon, 09 Mar 2015 09:27:16 -0700 (PDT) X-Received: by 10.66.189.105 with SMTP id gh9mr54726930pac.41.1425918436052; Mon, 09 Mar 2015 09:27:16 -0700 (PDT) Received: from localhost.localdomain ([173.14.250.228]) by mx.google.com with ESMTPSA id y7sm19904281pdp.92.2015.03.09.09.27.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 09 Mar 2015 09:27:13 -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 v1 1/2] ARM: dts: add cubietech cubieboard4 Date: Mon, 9 Mar 2015 09:27:00 -0700 Message-Id: <1425918421-22876-2-git-send-email-tyler.baker@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1425918421-22876-1-git-send-email-tyler.baker@linaro.org> References: <1425918421-22876-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.179 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..5cdc165 --- /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 { + linux,stdout-path = &uart0; + }; + +}; + +&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"; +};