From patchwork Tue Sep 1 11:30:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mugunthan V N X-Patchwork-Id: 7104961 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B40F5BEEC1 for ; Tue, 1 Sep 2015 11:30:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BF0AF2045E for ; Tue, 1 Sep 2015 11:30:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DC1552041D for ; Tue, 1 Sep 2015 11:30:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753281AbbIALaz (ORCPT ); Tue, 1 Sep 2015 07:30:55 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:50234 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751631AbbIALay (ORCPT ); Tue, 1 Sep 2015 07:30:54 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id t81BUnmt002199; Tue, 1 Sep 2015 06:30:49 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id t81BUn4B031400; Tue, 1 Sep 2015 06:30:49 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.224.2; Tue, 1 Sep 2015 06:30:49 -0500 Received: from mugunthan-pc.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id t81BUkc1024766; Tue, 1 Sep 2015 06:30:47 -0500 From: Mugunthan V N To: CC: "David S . Miller" , Tony Lindgren , Sekhar Nori , , Mugunthan V N Subject: [PATCH] ARM: DTS: dra72-evm: remove cpsw gpio hogging and add select-slave-gpio Date: Tue, 1 Sep 2015 17:00:40 +0530 Message-ID: <1441107040-6105-1-git-send-email-mugunthanvnm@ti.com> X-Mailer: git-send-email 2.5.0.474.g3a9835b 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=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 Since GPIO hogging fails to through error when booting with gpio-pcf857x as module and NFS root filesystem. So by having select-slave-gpio, it throw error to user so that the used can make gpio-pcf857x as inbuilt for NFS. When using mmc/ramdisk as root fs, cpsw will probe defer and re-probes again when gpio-pcf857x module is inserted and ethernet becomes operational. Signed-off-by: Mugunthan V N --- This patch depends on driver changes [1] and tested on DRA72x, logs [2] [1]: http://patchwork.ozlabs.org/patch/512783/ [2]: http://pastebin.ubuntu.com/12244652/ --- arch/arm/boot/dts/dra72-evm.dts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/dra72-evm.dts b/arch/arm/boot/dts/dra72-evm.dts index be9a89b..96d1bd3 100644 --- a/arch/arm/boot/dts/dra72-evm.dts +++ b/arch/arm/boot/dts/dra72-evm.dts @@ -343,12 +343,6 @@ interrupts = <11 IRQ_TYPE_EDGE_FALLING>; interrupt-controller; #interrupt-cells = <2>; - - cpsw_sel_s0 { - gpio-hog; - gpios = <4 GPIO_ACTIVE_HIGH>; - output-low; - }; }; }; @@ -578,6 +572,7 @@ pinctrl-0 = <&cpsw_default>; pinctrl-1 = <&cpsw_sleep>; slaves = <1>; + select-slave-gpio = <&pcf_gpio_21 4 GPIO_ACTIVE_HIGH>; }; &cpsw_emac0 {