Received: by 10.192.165.148 with SMTP id m20csp4626384imm; Tue, 1 May 2018 00:15:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqsvvdnpmCnrJydbxFiz2yU/iWjclWk+0nWtAkkLKJuMZQJi/IXEpuPHgoXziIWJ1slInhD X-Received: by 2002:a65:4d49:: with SMTP id j9-v6mr12420666pgt.210.1525158905314; Tue, 01 May 2018 00:15:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525158905; cv=none; d=google.com; s=arc-20160816; b=o1mZ2b9LeXRs+ovHhodCkCX5ZuNwMRqXa2WIFvEdZsTPTzQJV7Ch5mNsoXgGv2gGrZ pxEUSoxNHM04ZuBcYmkq6Mn4TeHCxPQ5pR25H36o7DgoGnJGuuhm3+fc4UvJogGCFFu7 IVm8Ar2i1JBnpfXgmxPnLZZTMhb/DVhXZQRtjrlDJvAuvHTqlhKt+0CAql4b8F+UlxyN wH8EO6+uAdqaJmljMNl9NpXHYC0o0w9kRYzU5EID2izWfQST/m1BEPHhtIZziUWFqQqW o0GtgdF4V1Vw5eCN4uiz59ti9Ze1ptSVXADVVOGa82zTXu/3t8vS2TG1wMwEl+YOb+Ss 6auw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=erB9J2f7I7iVXcgjYFBmQwn4GjwhrFjJ+LML14ZqJtE=; b=nK/bFmrevbD14E+bvd/1nO6/UvrhuSMeJwLfTfAAOOkzbaVSKMvmNg566T+fQb+DOC mELSwNOpMqE/yBHVUbnHdL1Ag7HlaQuUbU34liXkvdymcifconssRSOmm3uUO7I6SkQd kchWb12ZApdp4PbBqTCt+PaYm8GcdsZpkRgkkL7N19Il/DeB85IJxRGhAQmDx+U6TSwE 4MF3ZaXst+qwHr4y3Z8UG0kL7hf8cn36IybH6MTxsfRPhCtTlkeXV0vKkH1axFwysngG JiZY9gRs/KfXYLv0ZTG8wFqsPybJ6JFHKWxIL4SBiBnUHoh0TyBaL5Hf7dF0DJQYbf2C 43vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lV1oyHzF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ay8-v6si9072289plb.244.2018.05.01.00.14.50; Tue, 01 May 2018 00:15:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lV1oyHzF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752366AbeEAHNc (ORCPT + 99 others); Tue, 1 May 2018 03:13:32 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:53043 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751074AbeEAHNa (ORCPT ); Tue, 1 May 2018 03:13:30 -0400 Received: by mail-wm0-f65.google.com with SMTP id m70so16229690wma.2; Tue, 01 May 2018 00:13:29 -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=erB9J2f7I7iVXcgjYFBmQwn4GjwhrFjJ+LML14ZqJtE=; b=lV1oyHzFn4yR77WJbx8FOYVqpFD/weInEMsENu81YkPA/Kfac1j6reOZD2AOZGcoR1 csgIjrtfT8DepupVarmTye8B7FJzmlmF9B3bb9sEw4ycwYdBJ+TvMhdOrUnjJed02IxE k51sI+ZyzVVt+hLkUB0PhSufrcXekhhvFcHImkFFGVtYIyxhdSzwgTdLsJ5p2iOF+TN5 DPKZdQxUopSLvt5YbsGzITz7dexymxlKaQt5YsOmk4S99Sqj6tDqTkrgurQ/R5G9cikD IHV1MQ/kHgaZTQwtEobPqtoDRDFflUpzDyGX/yafhiVoQZaCKupSwN4OhF7v7iR0hhC2 R3RQ== 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=erB9J2f7I7iVXcgjYFBmQwn4GjwhrFjJ+LML14ZqJtE=; b=pl4afkOabchMsgaVaWh0Bm1nJTR5CLK05XiZiak5mLlWOVIyMxmJCO6SulAsGdPq91 2M03zSjULxIwd7EmU6TdykHJbP+N3e5KGudd8Jnhd5kDzPOdiRWEFZjr8nk+k20IiecV cnreyD7BeUp5wsL0acpRBmp2helN0FFgKR58ksbaZ5/9n8MSaWk2sp9491A5GZY7E06H JCQNCL5FhoGuyElurt6pPkDlut6lk9wmxcwEqu/+iW2Nt+7yy+l/rCw9xEEqDdZgZOKY VcbjDhT+e+yki5IGBGwskJYRyGaoG8Td9ksbi+km9YyVD5+rX/Emyngop+PTlXdW73UE 2Tpw== X-Gm-Message-State: ALQs6tC2zi7f5ynq79/Fk8MPEgdd6AUTB4Y4azYmbY1ASYn+LH/ZUOpc cFuGseedF8EZKE9TEi1EpiE= X-Received: by 10.28.31.71 with SMTP id f68mr8448440wmf.4.1525158808347; Tue, 01 May 2018 00:13:28 -0700 (PDT) Received: from localhost.localdomain ([5.102.253.200]) by smtp.gmail.com with ESMTPSA id 109-v6sm8846542wra.32.2018.05.01.00.13.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 May 2018 00:13:27 -0700 (PDT) From: Eyal Reizer X-Google-Original-From: Eyal Reizer To: bcousson@baylibre.com, tony@atomide.com, robh+dt@kernel.org, mark.rutland@arm.com, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Eyal Reizer Subject: [tiL4.14-CON PATCH v2] ARM: dts: am437x-sk-evm: add wilink8 support Date: Tue, 1 May 2018 10:13:09 +0300 Message-Id: <1525158789-32255-1-git-send-email-eyalr@ti.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org enable mmc3 used for wlan and uart1 used for bluetooth configure the gpios used for wlan and bluetooth controls add fixed voltage regulator used for wlan power control Signed-off-by: Eyal Reizer --- arch/arm/boot/dts/am437x-sk-evm.dts | 115 ++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) diff --git a/arch/arm/boot/dts/am437x-sk-evm.dts b/arch/arm/boot/dts/am437x-sk-evm.dts index 16d9db0..afffdb1 100644 --- a/arch/arm/boot/dts/am437x-sk-evm.dts +++ b/arch/arm/boot/dts/am437x-sk-evm.dts @@ -15,6 +15,7 @@ #include #include #include +#include / { model = "TI AM437x SK EVM"; @@ -158,6 +159,22 @@ }; }; }; + + vmmcwl_fixed: fixedregulator-mmcwl { + /* + * WL_EN is not SDIO standard compliant. It is an out of band + * signal and hard to be dealt with in a standard way by the + * SDIO core driver. + * So modelling the WL_EN line as a regulator was a natural + * choice as the MMC core already deals with MMC supplies. + */ + compatible = "regulator-fixed"; + regulator-name = "vmmcwl_fixed"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + gpio = <&gpio4 8 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; }; &am43xx_pinmux { @@ -424,6 +441,62 @@ AM4372_IOPAD(0xac4, PIN_OUTPUT | MUX_MODE0) /* usb0_drvvbus.usb0_drvvbus */ >; }; + + mmc3_pins_default: pinmux_mmc3_pins_default { + pinctrl-single,pins = < + AM4372_IOPAD(0x9f0, PIN_INPUT_PULLUP | MUX_MODE3) /* (AD21) cam1_data2.mmc2_clk */ + AM4372_IOPAD(0x9f4, PIN_INPUT_PULLUP | MUX_MODE3) /* (AE22) cam1_data3.mmc2_cmd */ + AM4372_IOPAD(0x9f8, PIN_INPUT_PULLUP | MUX_MODE3) /* (AD22) cam1_data4.mmc2_dat0 */ + AM4372_IOPAD(0x9fc, PIN_INPUT_PULLUP | MUX_MODE3) /* (AE23) cam1_data5.mmc2_dat1 */ + AM4372_IOPAD(0xa00, PIN_INPUT_PULLUP | MUX_MODE3) /* (AD23) cam1_data6.mmc2_dat2 */ + AM4372_IOPAD(0xa04, PIN_INPUT_PULLUP | MUX_MODE3) /* (AE24) cam1_data7.mmc2_dat3 */ + >; + }; + + mmc3_pins_sleep: pinmux_mmc3_pins_sleep { + pinctrl-single,pins = < + AM4372_IOPAD(0x9f0, PIN_INPUT_PULLDOWN | MUX_MODE7) /* (AD21) cam1_data2.mmc2_clk */ + AM4372_IOPAD(0x9f4, PIN_INPUT_PULLDOWN | MUX_MODE7) /* (AE22) cam1_data3.mmc2_cmd */ + AM4372_IOPAD(0x9f8, PIN_INPUT_PULLDOWN | MUX_MODE7) /* (AD22) cam1_data4.mmc2_dat0 */ + AM4372_IOPAD(0x9fc, PIN_INPUT_PULLDOWN | MUX_MODE7) /* (AE23) cam1_data5.mmc2_dat1 */ + AM4372_IOPAD(0xa00, PIN_INPUT_PULLDOWN | MUX_MODE7) /* (AD23) cam1_data6.mmc2_dat2 */ + AM4372_IOPAD(0xa04, PIN_INPUT_PULLDOWN | MUX_MODE7) /* (AE24) cam1_data7.mmc2_dat3 */ + >; + }; + + wlan_pins_default: pinmux_wlan_pins_default { + pinctrl-single,pins = < + AM4372_IOPAD(0x9d0, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* cam1_data8.gpio4_8 WL_EN */ + AM4372_IOPAD(0x9e4, PIN_INPUT | WAKEUP_ENABLE | MUX_MODE7) /* cam1_wen.gpio4_13 WL_IRQ */ + >; + }; + + wlan_pins_sleep: pinmux_wlan_pins_sleep { + pinctrl-single,pins = < + AM4372_IOPAD(0x9d0, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* cam1_data8.gpio4_8 WL_EN */ + AM4372_IOPAD(0x9e4, PIN_INPUT | WAKEUP_ENABLE | MUX_MODE7) /* cam1_wen.gpio4_13 WL_IRQ */ + >; + }; + + uart1_bt_pins_default: pinmux_uart1_bt_pins_default { + pinctrl-single,pins = < + AM4372_IOPAD(0x980, PIN_INPUT | MUX_MODE0) /* uart1_rxd.uart1_rxd */ + AM4372_IOPAD(0x984, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_txd.uart1_txd */ + AM4372_IOPAD(0x978, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_ctsn.uart1_ctsn */ + AM4372_IOPAD(0x97c, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_rtsn.uart1_rtsn */ + AM4372_IOPAD(0x9cc, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* cam1_data9.gpio4_7 BT_EN */ + >; + }; + + uart1_bt_pins_sleep: pinmux_uart1_bt_pins_sleep { + pinctrl-single,pins = < + AM4372_IOPAD(0x980, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* uart1_rxd.uart1_rxd */ + AM4372_IOPAD(0x984, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* uart1_txd.uart1_txd */ + AM4372_IOPAD(0x978, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* uart1_ctsn.uart1_ctsn */ + AM4372_IOPAD(0x97c, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* uart1_rtsn.uart1_rtsn */ + AM4372_IOPAD(0x9cc, PIN_OUTPUT_PULLUP | MUX_MODE7) /* cam1_data9.gpio4_7 BT_EN */ + >; + }; }; &i2c0 { @@ -606,6 +679,10 @@ status = "okay"; }; +&gpio4 { + status = "okay"; +}; + &gpio5 { status = "okay"; }; @@ -620,6 +697,44 @@ cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; }; +&uart1 { + status = "okay"; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&uart1_bt_pins_default>; + pinctrl-1 = <&uart1_bt_pins_sleep>; +}; + +&mmc3 { + status = "okay"; + /* + * these are on the crossbar and are outlined in the + * xbar-event-map element + */ + dmas = <&edma_xbar 30 0 1>, + <&edma_xbar 31 0 2>; + dma-names = "tx", "rx"; + vmmc-supply = <&vmmcwl_fixed>; + bus-width = <4>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&mmc3_pins_default>; + pinctrl-1 = <&mmc3_pins_sleep>; + cap-power-off-card; + keep-power-in-suspend; + ti,non-removable; + + #address-cells = <1>; + #size-cells = <0>; + wlcore: wlcore@0 { + compatible = "ti,wl1835"; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&wlan_pins_default>; + pinctrl-1 = <&wlan_pins_sleep>; + reg = <2>; + interrupt-parent = <&gpio4>; + interrupts = <13 IRQ_TYPE_LEVEL_HIGH>; + }; +}; + &usb2_phy1 { status = "okay"; }; -- 2.7.4