From patchwork Fri Nov 15 13:09:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Ling X-Patchwork-Id: 3188181 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 F381C9F3AE for ; Fri, 15 Nov 2013 13:10:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B08BA2087B for ; Fri, 15 Nov 2013 13:10:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 47B4A20879 for ; Fri, 15 Nov 2013 13:10:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751416Ab3KONKX (ORCPT ); Fri, 15 Nov 2013 08:10:23 -0500 Received: from mail-pd0-f177.google.com ([209.85.192.177]:46553 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751046Ab3KONKW (ORCPT ); Fri, 15 Nov 2013 08:10:22 -0500 Received: by mail-pd0-f177.google.com with SMTP id v10so3416490pde.8 for ; Fri, 15 Nov 2013 05:10:22 -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=YgJEU+oq1LTs5am5NSSUQIWpyKR3ouWcWvIe2AQVOK5bInAnIv5C3vgfJvKFMy/cCd iqLA7xNrSeVu80s/3sWLs30Sw3NdMFcAh1Cv+uydXLrEQuvKW7UwCkwnvFC++MMQEsOM BifiubuMNe230MzeszW0cwXVnuYahVZ04Mzd82KsgvpwNDPYQL5LKcrJR7qbRfmmWOOL 5RyEDd6nkZRTe48xTeqlDfu/gsKlujGjnGy8+kstzP0fUvlxy9/K3DhxPid5xmUDGRqu hPicXkehHKS+vqNTya4Ue/WWNXEPkbsPpAK58zY4EYpYVB9sRBDRuExRkGeJBysa75Qh cqxg== X-Received: by 10.68.225.197 with SMTP id rm5mr6838365pbc.166.1384521022073; Fri, 15 Nov 2013 05:10:22 -0800 (PST) Received: from localhost.localdomain ([101.80.94.34]) by mx.google.com with ESMTPSA id qz9sm3182014pbc.3.2013.11.15.05.10.13 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 15 Nov 2013 05:10:21 -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: [PATCH] ARM: dts: add board dts file for EXYNOS4412 based TINY4412 board Date: Fri, 15 Nov 2013 21:09:29 +0800 Message-Id: <1384520969-2450-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=ham 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>; + }; + }; +};