From patchwork Sun May 6 01:26:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 10382525 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id ADED960353 for ; Sun, 6 May 2018 01:26:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 920B428C20 for ; Sun, 6 May 2018 01:26:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8680928C29; Sun, 6 May 2018 01:26:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 29BF228C0F for ; Sun, 6 May 2018 01:26:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751791AbeEFB0W (ORCPT ); Sat, 5 May 2018 21:26:22 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:39606 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751775AbeEFB0V (ORCPT ); Sat, 5 May 2018 21:26:21 -0400 Received: by mail-io0-f194.google.com with SMTP id r9-v6so29800223iod.6 for ; Sat, 05 May 2018 18:26:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=XgSIKvgFX//P0U6JuUrCvl8omOztaYqyKqDpa5xwVsY=; b=Tq5x5GZoLwXRkTO+SqmNXK8tg+AaPduFxbdhXam4LgHU3/eIQsIDULjQ780foDP/7m pBehxKxQeg3qpaGPRUMUhqwAp+48ShtM+5UPj7QMEEtIw+6Sb7pF3l7nLUbJNsbUfDa4 PwrPtGN880ecEPblrXwU5bUudi8H266KcIOCibwNeu+DUPSlHuMQwi932zPWUhC8dDli CIesMHFYZo40HudLTKQ7inlkdI8mAiTNi/YdWsJwtohmQoG+ceiOMcw07OW17sXQCeVh vXqKMS4L2IpEboOHzj141jCpTw5TDwe9Ya+Eryw1Fr1xzVLQgDFFsHdA63kPgriqkEh2 vX0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=XgSIKvgFX//P0U6JuUrCvl8omOztaYqyKqDpa5xwVsY=; b=q+0STbwxk9yBLKRCZS1AvRmxoxinOKjEVgNimpkH1i5gD51DkbixwfdGOLZWD1nZjv 2biPh1sY89NoV809G/NAnlo+BK7E6bJYUQ1NrxC7BXepMYwGlgcQFoqnbU1GYmAgtaWh mqbnBy1cIPWgIa664aybNz84F2DL1y29uf2P9d3kNP23kfXrL6GwNTIWS1DPecmB/e73 iYQz4J1oicsNK8m7Z8LGRub3X4s5N/dmIIS0Z4OhXEzcWVyyir8OO1udDIrJ1Mw1LWX8 8z0K0hndZUkD3Fbn37bzRuBZCwMHnEJKOd9TmQ5CqZWMr9CXGRgLjEMbD7K+k4i5S3kc 3kFg== X-Gm-Message-State: ALQs6tB2a8pvAsbZsLlJO/xvqXkhI6qBy424y7acLQYOJifZvvZDy0sr M28nPHfwsXkJpXnvXbTyShNVkg== X-Google-Smtp-Source: AB8JxZryK6K6Aly5evCWxQvBu4rmO45LH0d3C+09JYOqOulqACgOtdVWyyNEGH2KUZvVRJRBQrZW+A== X-Received: by 2002:a6b:b2c7:: with SMTP id b190-v6mr36589740iof.153.1525569980794; Sat, 05 May 2018 18:26:20 -0700 (PDT) Received: from localhost.localdomain (c-73-65-120-235.hsd1.mn.comcast.net. [73.65.120.235]) by smtp.gmail.com with ESMTPSA id m89-v6sm10338349iod.1.2018.05.05.18.26.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 May 2018 18:26:20 -0700 (PDT) From: Adam Ford To: linux-omap@vger.kernel.org Cc: woods.technical@gmail.com, adam.ford@logicpd.com, Adam Ford Subject: [PATCH 1/5] ARM: dts: am3517: Add pinmuxing, CD and WP for MMC1 Date: Sat, 5 May 2018 20:26:07 -0500 Message-Id: <20180506012611.6949-1-aford173@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The boardboard supports card detect and write protect, so let's enable those pins. Signed-off-by: Derald D. Woods Signed-off-by: Adam Ford diff --git a/arch/arm/boot/dts/am3517-evm.dts b/arch/arm/boot/dts/am3517-evm.dts index 0e4a125f78e3..98122bf4144e 100644 --- a/arch/arm/boot/dts/am3517-evm.dts +++ b/arch/arm/boot/dts/am3517-evm.dts @@ -47,8 +47,13 @@ }; &mmc1 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&mmc1_pins>; vmmc-supply = <&vmmc_fixed>; bus-width = <4>; + wp-gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>; /* gpio_126 */ + cd-gpios = <&gpio4 31 GPIO_ACTIVE_HIGH>; /* gpio_127 */ }; &mmc2 { @@ -59,3 +64,19 @@ status = "disabled"; }; +&omap3_pmx_core { + + mmc1_pins: pinmux_mmc1_pins { + pinctrl-single,pins = < + OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */ + OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */ + OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */ + OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */ + OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */ + OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */ + OMAP3_CORE1_IOPAD(0x2150, PIN_INPUT_PULLUP | MUX_MODE4) /* sdmmc1_dat4.gpio_126 */ + OMAP3_CORE1_IOPAD(0x2152, PIN_INPUT_PULLUP | MUX_MODE4) /* sdmmc1_dat5.gpio_127 */ + >; + }; +}; +