From patchwork Wed Jan 31 07:40:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Lyle X-Patchwork-Id: 10193351 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 B655A60380 for ; Wed, 31 Jan 2018 07:40:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A1DB42236A for ; Wed, 31 Jan 2018 07:40:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 94CB423B24; Wed, 31 Jan 2018 07:40:49 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, 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 762FB2236A for ; Wed, 31 Jan 2018 07:40:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752642AbeAaHkr (ORCPT ); Wed, 31 Jan 2018 02:40:47 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:43804 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752166AbeAaHkq (ORCPT ); Wed, 31 Jan 2018 02:40:46 -0500 Received: by mail-pg0-f65.google.com with SMTP id n17so9381914pgf.10 for ; Tue, 30 Jan 2018 23:40:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lyle-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=8CABJnaOnMCUAT0mWwia3kLZr0InDxXrm6hnN8q8iIA=; b=U98+KhKPVpgZJz+IonyeKaUoztMAQMaDLg6nVdMF8BWak94GO4ZUoKLwaK8gfbPXdv rmRtX+AjpavL013miWpSu+NiOax0Mx54E9lQhtjTceUMZdgsw/A8havTd5yOUtubNvVf 8KcJX+6Eeh2auMKfBOk9UrL68l4qDKfhlsP70tv/BGFmLXb8sBIGkmVIgPMIgfW2/efH ZC35B11LtzI5lRBKcsKE+76WnES4+Ub0wyJTux3J9tL/S3RvuEt9Tt61vKybt0+z5SXe WXha15gIKzva9x6V/6I0Mpggxwufsk8j4WCu3Y7oD2KvY4G2RTKTM9AC29O+bzRYEHml v30Q== 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=8CABJnaOnMCUAT0mWwia3kLZr0InDxXrm6hnN8q8iIA=; b=iUt8Fxzr4aPV+6GtrKLCVO2Hnh0a0Lu5kSVEQZboshKbCgTGRbAcGvFK+SOMZUhfwm ZY8XnoXGYejodrbDb5KKmzEFBT7Ec2jd98nC+1sxgN2fBAYMIKZZhQIyhD7I8gnIPTsK D8zWle0n0M3Mt4wswEUbGQGDZRDoPmCCHnj96oIj7WjPn7XlSDdgUaWZD8zurujFSrDx 5a8pGX0mVwqoN5re67aMOePpV8NYSG4xO6jb7mw7OC2CvtyyxrPPsCXMrFkuVaykVV7Z pG13EWvVIqA+ecOdEHY0hcgYXaKu4plICwOQEtDr+OvD+90CJ+VRMUsHMW/+JqAJdvaz y4bA== X-Gm-Message-State: AKwxytcXQTXomh4MKjtdTkRfvMUHRiNA+DtQvpR/DhmVi8OYV1r5NavX 509EjCXdDxcgQ2SONczJv8A/XA== X-Google-Smtp-Source: AH8x227ETZK+ojJa5D1eiRHw6Kp7PEt8irJOM6x+RVcWVDkNowpXh/2PDAFaiRHbKv6muNx5MGTevw== X-Received: by 10.99.120.8 with SMTP id t8mr17139891pgc.371.1517384446089; Tue, 30 Jan 2018 23:40:46 -0800 (PST) Received: from midnight.lan (2600-6c52-6200-09b7-0000-0000-0000-0d66.dhcp6.chtrptr.net. [2600:6c52:6200:9b7::d66]) by smtp.gmail.com with ESMTPSA id n21sm24909279pfi.9.2018.01.30.23.40.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jan 2018 23:40:45 -0800 (PST) From: Michael Lyle To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: Krzysztof Kozlowski , kgene@kernel.org, CHANHO PARK , Michael Lyle Subject: [PATCH v2] ARM: dts: exynos-artik5: add support for wlan Date: Tue, 30 Jan 2018 23:40:27 -0800 Message-Id: <20180131074027.387-1-mlyle@lyle.org> X-Mailer: git-send-email 2.14.1 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On the Artik520 module, there's a bcm4354 attached to mshc_1. Enable it, and turn on the regulator used for it, so that both wifi & bluetooth work. Verified to work on the Artik 520 evaluation board. Signed-off-by: Michael Lyle --- arch/arm/boot/dts/exynos3250-artik5.dtsi | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/exynos3250-artik5.dtsi b/arch/arm/boot/dts/exynos3250-artik5.dtsi index 0aa577fe9f95..b2d441b1a7e3 100644 --- a/arch/arm/boot/dts/exynos3250-artik5.dtsi +++ b/arch/arm/boot/dts/exynos3250-artik5.dtsi @@ -245,6 +245,7 @@ regulator-name = "VLDO23_1.8V"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; + regulator-always-on; }; ldo24_reg: LDO24 { @@ -316,6 +317,41 @@ status = "okay"; }; +&pinctrl_1 { + wlanen: wlanen { + samsung,pins = "gpx2-3"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + samsung,pin-val = <1>; + }; +}; + +&mshc_1 { + cap-sd-highspeed; + cap-sdio-irq; + disable-wp; + broken-cd; + bypass-smu; + keep-power-in-suspend; + fifo-depth = <0x40>; + vqmmc-supply = <&ldo11_reg>; + /* Voltage negotiation is broken for the SDIO periph so we + * can't actually set the voltage here. + * vmmc-supply = <&ldo23_reg>; + */ + card-detect-delay = <500>; + clock-frequency = <100000000>; + max-frequency = <100000000>; + samsung,dw-mshc-ciu-div = <3>; + samsung,dw-mshc-sdr-timing = <0 1>; + samsung,dw-mshc-ddr-timing = <1 2>; + pinctrl-names = "default"; + pinctrl-0 = <&sd1_cmd &sd1_clk &sd1_bus1 &sd1_bus4 &wlanen>; + bus-width = <4>; + status = "okay"; +}; + &rtc { clocks = <&cmu CLK_RTC>, <&s2mps14_osc S2MPS11_CLK_AP>; clock-names = "rtc", "rtc_src";