From patchwork Tue Nov 12 15:02:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Ling X-Patchwork-Id: 3173451 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 696129F3A0 for ; Tue, 12 Nov 2013 15:03:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 822C6201ED for ; Tue, 12 Nov 2013 15:03:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 40D2920164 for ; Tue, 12 Nov 2013 15:03:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755347Ab3KLPDi (ORCPT ); Tue, 12 Nov 2013 10:03:38 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:35815 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753566Ab3KLPDh (ORCPT ); Tue, 12 Nov 2013 10:03:37 -0500 Received: by mail-pa0-f41.google.com with SMTP id rd3so1115406pab.0 for ; Tue, 12 Nov 2013 07:03:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=/kQP9JS+A3WtqoK4nHQIBxXEi2TktIJf/mDz7jEEHSk=; b=dKmLPWJP0gZSv22gpezni+nWElnbOiQrRH6XSJ3auOD3NLMQo8RaGJNJCKiYLsyHg2 W5h+tLIYMF6ardYFUUvJ2WljGnBLFnC7yiQJieI/HgDc0vHKIfE1JQxJawivB5Ncnrt6 v2ZGLkrnOpn5ews69UGvmxLGU94S8wRTFl+1oVnjGwh8Zh2PTx9re49Yk2TVQzLchW2h PnLmVxaQ9lCPoK739oV3w1To/BGy/r5lZX9GRbZQQFSIMSehM6iCeQJVN6rRPeGMwqAq l3yw9lgkKszb+vD0KPSoqveKtdUSQJkDPRG2QrEeAWy0aMj56g0ybgbe0I7TvlHb14I9 RtEw== X-Received: by 10.68.129.99 with SMTP id nv3mr36700058pbb.40.1384268616296; Tue, 12 Nov 2013 07:03:36 -0800 (PST) Received: from localhost.localdomain ([101.80.91.165]) by mx.google.com with ESMTPSA id xe9sm44556571pab.0.2013.11.12.07.03.24 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 Nov 2013 07:03:35 -0800 (PST) From: Alex Ling To: rob.herring@calxeda.com, mark.rutland@arm.com, linux@arm.linux.org.uk, swarren@wwwdotorg.org, ijc+devicetree@hellion.org.uk, kgene.kim@samsung.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Alex Ling Subject: ARM: dts: add board dts file for EXYNOS4412 based TINY4412 board Date: Tue, 12 Nov 2013 23:02:52 +0800 Message-Id: <1384268572-27055-1-git-send-email-kasimling@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 Add a minimal board dts file for EXYNOS4412 based FriendlyARM's TINY4412 board. This patch including adds the node to support peripherals like UART, SD card on SDMMC2 port, and this patch adds GPIO connected LEDS and configure its properties like following: LED1: use 'heartbeat' trigger, blinking while the board is running. LED4: use 'mmc0' trigger, on when mmc0 is accessing. LED2 and LED3 can be controlled from userspace. Signed-off-by: Alex Ling --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/exynos4412-tiny4412.dts | 89 +++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 arch/arm/boot/dts/exynos4412-tiny4412.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 802720e..91671a2 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -59,6 +59,7 @@ dtb-$(CONFIG_ARCH_EXYNOS) += exynos4210-origen.dtb \ exynos4412-odroidx.dtb \ exynos4412-origen.dtb \ exynos4412-smdk4412.dtb \ + exynos4412-tiny4412.dtb \ exynos4412-trats2.dtb \ exynos5250-arndale.dtb \ exynos5250-smdk5250.dtb \ diff --git a/arch/arm/boot/dts/exynos4412-tiny4412.dts b/arch/arm/boot/dts/exynos4412-tiny4412.dts new file mode 100644 index 0000000..78ace14 --- /dev/null +++ b/arch/arm/boot/dts/exynos4412-tiny4412.dts @@ -0,0 +1,89 @@ +/* + * FriendlyARM's Exynos4412 based TINY4412 board device tree source + * + * Copyright (c) 2013 Alex Ling + * + * Device tree source file for FriendlyARM's TINY4412 board which is based on + * Samsung's Exynos4412 SoC. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. +*/ + +/dts-v1/; +#include "exynos4412.dtsi" + +/ { + model = "FriendlyARM TINY4412 board based on Exynos4412"; + compatible = "friendlyarm,tiny4412", "samsung,exynos4412"; + + memory { + reg = <0x40000000 0x40000000>; + }; + + leds { + compatible = "gpio-leds"; + led1 { + label = "led1:heart"; + gpios = <&gpm4 0 1>; + default-state = "off"; + linux,default-trigger = "heartbeat"; + }; + led2 { + label = "led2"; + gpios = <&gpm4 1 1>; + default-state = "off"; + }; + led3 { + label = "led3"; + gpios = <&gpm4 2 1>; + default-state = "off"; + }; + led4 { + label = "led4:mmc0"; + gpios = <&gpm4 3 1>; + default-state = "off"; + linux,default-trigger = "mmc0"; + }; + }; + + rtc@10070000 { + status = "okay"; + }; + + sdhci@12530000 { + bus-width = <4>; + pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>; + pinctrl-names = "default"; + status = "okay"; + }; + + serial@13800000 { + status = "okay"; + }; + + serial@13810000 { + status = "okay"; + }; + + serial@13820000 { + status = "okay"; + }; + + serial@13830000 { + status = "okay"; + }; + + fixed-rate-clocks { + xxti { + compatible = "samsung,clock-xxti"; + clock-frequency = <0>; + }; + + xusbxti { + compatible = "samsung,clock-xusbxti"; + clock-frequency = <24000000>; + }; + }; +};