From patchwork Tue Apr 16 08:58:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: girishks2000@gmail.com X-Patchwork-Id: 2448361 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 9897DDF230 for ; Tue, 16 Apr 2013 08:59:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755381Ab3DPI7K (ORCPT ); Tue, 16 Apr 2013 04:59:10 -0400 Received: from mail-pb0-f54.google.com ([209.85.160.54]:44912 "EHLO mail-pb0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755123Ab3DPI7H (ORCPT ); Tue, 16 Apr 2013 04:59:07 -0400 Received: by mail-pb0-f54.google.com with SMTP id xa7so183644pbc.13 for ; Tue, 16 Apr 2013 01:59:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=30SwFi6PSVWxrnOvp1KGceZF60LvPPm9jW4nhSWM9r8=; b=laflLtiDNjREHfeCwzVbFVlKCMk+iM9AfFbxEw68whE2iGvXoZG0e6+ph3UHyvqQr5 inlfit94Hq9BQaq83cabmaJHPivGV+BRWwzqR3BC5YS6x/0PuC1sH7lft9kHSJEPYxsV hGY4iKmWsR1f+7xeXc9zdtaLn6LkHdxaC9wz0iJ7YhdMucXthCXuLjedg9isNasFYDEP buL50yDp9cRjqRiFJ+6AUZyvr/OSZge8AjM/nNuT/AAMByUJ082aEqXCJw4mUozhGOFv XK8RcCVrIsjPMZJN+byhnBNitDjuXstDCxmkErPUKL21Q8Mn8mbc+ERVo/5dx/tSgP1F DFyA== X-Received: by 10.66.72.3 with SMTP id z3mr2411100pau.125.1366102746179; Tue, 16 Apr 2013 01:59:06 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id ce16sm1883900pac.5.2013.04.16.01.59.02 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 16 Apr 2013 01:59:05 -0700 (PDT) From: Girish K S To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: kgene.kim@samsung.com Subject: [PATCH 1/2] ARM: dts: enable spi for EXYNOS5440 SOC Date: Tue, 16 Apr 2013 14:28:52 +0530 Message-Id: <1366102733-3570-1-git-send-email-ks.giri@samsung.com> X-Mailer: git-send-email 1.7.5.4 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org This patch enables the SPI in EXYNOS5440 SoC. The NOR Flash can be accessed by enabling the spi interface Signed-off-by: Girish K S --- arch/arm/boot/dts/exynos5440-ssdk5440.dts | 39 +++++++++++++++++++++++++++- arch/arm/boot/dts/exynos5440.dtsi | 16 +++++++---- 2 files changed, 47 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/exynos5440-ssdk5440.dts b/arch/arm/boot/dts/exynos5440-ssdk5440.dts index d55042b..a85ac0e 100644 --- a/arch/arm/boot/dts/exynos5440-ssdk5440.dts +++ b/arch/arm/boot/dts/exynos5440-ssdk5440.dts @@ -20,8 +20,43 @@ bootargs = "root=/dev/sda2 rw rootwait ignore_loglevel early_printk no_console_suspend mem=2048M@0x80000000 console=ttySAC0,115200"; }; - spi { - status = "disabled"; + spi_0: spi@D0000 { + + flash: w25q128@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "winbond,w25q128"; + spi-max-frequency = <15625000>; + reg = <0>; + controller-data { + samsung,spi-feedback-delay = <0>; + }; + + partition@00000 { + label = "BootLoader"; + reg = <0x60000 0x80000>; + read-only; + }; + + partition@e0000 { + label = "Recovery-Kernel"; + reg = <0xe0000 0x300000>; + read-only; + }; + + partition@3e0000 { + label = "CRAM-FS"; + reg = <0x3e0000 0x700000>; + read-only; + }; + + partition@ae0000 { + label = "User-Data"; + reg = <0xae0000 0x520000>; + }; + + }; + }; fixed-rate-clocks { diff --git a/arch/arm/boot/dts/exynos5440.dtsi b/arch/arm/boot/dts/exynos5440.dtsi index f6b1c89..7c5dc38 100644 --- a/arch/arm/boot/dts/exynos5440.dtsi +++ b/arch/arm/boot/dts/exynos5440.dtsi @@ -16,6 +16,10 @@ interrupt-parent = <&gic>; + aliases { + spi0 = &spi_0; + }; + clock: clock-controller@0x160000 { compatible = "samsung,exynos5440-clock"; reg = <0x160000 0x1000>; @@ -101,15 +105,15 @@ clock-names = "uart", "clk_uart_baud0"; }; - spi { - compatible = "samsung,exynos4210-spi"; - reg = <0xD0000 0x1000>; + spi_0: spi@D0000 { + compatible = "samsung,exynos5440-spi"; + reg = <0xD0000 0x100>; interrupts = <0 4 0>; - tx-dma-channel = <&pdma0 5>; /* preliminary */ - rx-dma-channel = <&pdma0 4>; /* preliminary */ #address-cells = <1>; #size-cells = <0>; - clocks = <&clock 21>, <&clock 16>; + samsung,spi-src-clk = <0>; + num-cs = <1>; + clocks = <&clock 8>, <&clock 3>; clock-names = "spi", "spi_busclk0"; };