From patchwork Sat Jul 27 06:39:49 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Poddar, Sourav" X-Patchwork-Id: 2834586 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 79AF4C0319 for ; Sat, 27 Jul 2013 06:40:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 813622011B for ; Sat, 27 Jul 2013 06:40:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7BD7F20108 for ; Sat, 27 Jul 2013 06:40:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753552Ab3G0GkT (ORCPT ); Sat, 27 Jul 2013 02:40:19 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:43811 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753204Ab3G0GkS (ORCPT ); Sat, 27 Jul 2013 02:40:18 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id r6R6eFHu023772; Sat, 27 Jul 2013 01:40:15 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id r6R6eFdM016413; Sat, 27 Jul 2013 01:40:15 -0500 Received: from dlelxv22.itg.ti.com (172.17.1.197) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.2.342.3; Sat, 27 Jul 2013 01:40:15 -0500 Received: from a0131647.apr.dhcp.ti.com (a0131647.apr.dhcp.ti.com [172.24.145.168]) by dlelxv22.itg.ti.com (8.13.8/8.13.8) with ESMTP id r6R6eDQ1018819; Sat, 27 Jul 2013 01:40:14 -0500 From: Sourav Poddar To: , CC: , , , Sourav Poddar Subject: [Resend/PATCH] arm: dts: omap5: Add status parameter for i2c/spi/uart. Date: Sat, 27 Jul 2013 12:09:49 +0530 Message-ID: <1374907189-15848-1-git-send-email-sourav.poddar@ti.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 This patch disabled I2C/SPI/UART device initially(status = "disabled"). This devices will only be probed, if the devices are present in the dts file(status = "okay"). Signed-off-by: Sourav Poddar --- arch/arm/boot/dts/omap5-uevm.dts | 10 +++++++++- arch/arm/boot/dts/omap5.dtsi | 15 +++++++++++++++ 2 files changed, 24 insertions(+), 1 deletions(-) diff --git a/arch/arm/boot/dts/omap5-uevm.dts b/arch/arm/boot/dts/omap5-uevm.dts index 08b7267..aef8de1 100644 --- a/arch/arm/boot/dts/omap5-uevm.dts +++ b/arch/arm/boot/dts/omap5-uevm.dts @@ -259,6 +259,7 @@ }; &i2c1 { + status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&i2c1_pins>; @@ -431,6 +432,7 @@ }; &i2c5 { + status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&i2c5_pins>; @@ -451,35 +453,41 @@ }; &mcspi1 { - + status = "okay"; }; &mcspi2 { + status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&mcspi2_pins>; }; &mcspi3 { + status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&mcspi3_pins>; }; &mcspi4 { + status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&mcspi4_pins>; }; &uart1 { + status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&uart1_pins>; }; &uart3 { + status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&uart3_pins>; }; &uart5 { + status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&uart5_pins>; }; diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi index e643620..fcd28c9 100644 --- a/arch/arm/boot/dts/omap5.dtsi +++ b/arch/arm/boot/dts/omap5.dtsi @@ -238,6 +238,7 @@ #address-cells = <1>; #size-cells = <0>; ti,hwmods = "i2c1"; + status = "disabled"; }; i2c2: i2c@48072000 { @@ -247,6 +248,7 @@ #address-cells = <1>; #size-cells = <0>; ti,hwmods = "i2c2"; + status = "disabled"; }; i2c3: i2c@48060000 { @@ -256,6 +258,7 @@ #address-cells = <1>; #size-cells = <0>; ti,hwmods = "i2c3"; + status = "disabled"; }; i2c4: i2c@4807a000 { @@ -265,6 +268,7 @@ #address-cells = <1>; #size-cells = <0>; ti,hwmods = "i2c4"; + status = "disabled"; }; i2c5: i2c@4807c000 { @@ -274,6 +278,7 @@ #address-cells = <1>; #size-cells = <0>; ti,hwmods = "i2c5"; + status = "disabled"; }; mcspi1: spi@48098000 { @@ -294,6 +299,7 @@ <&sdma 42>; dma-names = "tx0", "rx0", "tx1", "rx1", "tx2", "rx2", "tx3", "rx3"; + status = "disabled"; }; mcspi2: spi@4809a000 { @@ -309,6 +315,7 @@ <&sdma 45>, <&sdma 46>; dma-names = "tx0", "rx0", "tx1", "rx1"; + status = "disabled"; }; mcspi3: spi@480b8000 { @@ -321,6 +328,7 @@ ti,spi-num-cs = <2>; dmas = <&sdma 15>, <&sdma 16>; dma-names = "tx0", "rx0"; + status = "disabled"; }; mcspi4: spi@480ba000 { @@ -333,6 +341,7 @@ ti,spi-num-cs = <1>; dmas = <&sdma 70>, <&sdma 71>; dma-names = "tx0", "rx0"; + status = "disabled"; }; uart1: serial@4806a000 { @@ -341,6 +350,7 @@ interrupts = ; ti,hwmods = "uart1"; clock-frequency = <48000000>; + status = "disabled"; }; uart2: serial@4806c000 { @@ -349,6 +359,7 @@ interrupts = ; ti,hwmods = "uart2"; clock-frequency = <48000000>; + status = "disabled"; }; uart3: serial@48020000 { @@ -357,6 +368,7 @@ interrupts = ; ti,hwmods = "uart3"; clock-frequency = <48000000>; + status = "disabled"; }; uart4: serial@4806e000 { @@ -365,6 +377,7 @@ interrupts = ; ti,hwmods = "uart4"; clock-frequency = <48000000>; + status = "disabled"; }; uart5: serial@48066000 { @@ -373,6 +386,7 @@ interrupts = ; ti,hwmods = "uart5"; clock-frequency = <48000000>; + status = "disabled"; }; uart6: serial@48068000 { @@ -381,6 +395,7 @@ interrupts = ; ti,hwmods = "uart6"; clock-frequency = <48000000>; + status = "disabled"; }; mmc1: mmc@4809c000 {