Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3329712ybb; Mon, 6 Apr 2020 06:54:57 -0700 (PDT) X-Google-Smtp-Source: APiQypLKatSmSXAiXkrwKXjzaY/8I0Le3a7E0GaxGr1WcEqzoX12EH4xGDUOhXQAO6mbeza1lmg5 X-Received: by 2002:aca:fd48:: with SMTP id b69mr12604613oii.126.1586181296944; Mon, 06 Apr 2020 06:54:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586181296; cv=none; d=google.com; s=arc-20160816; b=xUhNezDERQGRzYPWw8YN3dLv9Q9UlGgsklTV19hb2FfolzWARsEWVIbggxJEZELH1F xaU7UG0AzHE328rY3PLFriX4PlrqNZqv1lK9kPUk3Je7MQZ1AWykfkYnKaAVbdCG0c1l SC8rxL5poSV+fjeLi0UVE+KL2/Cv+t/gLzBizQDdUvDF/fdxDLZr+hpiPD+BzUjHF3Ar zAEsyM1YpSmybjJ7Kvi7mj+egaDwyQnvcZleiomGm8Lrawh2dblfryc0eTzq+n21KYMz VZPSiuvfryYS+xra1awsN95oE+B8M+GCjCzbsS7eYQ+S3oEdgr/RUkdlSIIKsX7mPG8e N9Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=hx7uIbE5mEmNMkv6h1MotVfVuLbSxNooAxHsKtgd+uI=; b=NlE84hmoRgjaD+gIzdhPVANG++6F20/7oGD+Uu8s/HoJAC+9T+I2+uFFjh7Yp+d14U JfgOGMM5uC1l96HyhxA4VhFvp4fw786ErZnx/e7FJGlumImPVaqzYvfNmLC/vy05+5C/ 3YHzKWhILoOA2Kk/Fse6uS/5ilP79oW0cD7nHMB/XlfzQNApX5Hp/pNZcXru3eVgJT4V JubcBF56kTt8eez0Otf3v0NO0QniJts9GnJHA8jixfDpBo8izOhDWIS4Z4WxKyrJjp1+ r5b2U3QSbzzvDh5heOQyhbs7+7D+RABuELZHrps1MYzQtElx6FChiYStJfZk8LgsmPN+ tB7g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z3si8036056oth.163.2020.04.06.06.54.44; Mon, 06 Apr 2020 06:54:56 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728437AbgDFNyW (ORCPT + 99 others); Mon, 6 Apr 2020 09:54:22 -0400 Received: from outgoing2.flk.host-h.net ([188.40.0.84]:47695 "EHLO outgoing2.flk.host-h.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726910AbgDFNyW (ORCPT ); Mon, 6 Apr 2020 09:54:22 -0400 Received: from www31.flk1.host-h.net ([188.40.1.173]) by antispam3-flk1.host-h.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1jLSCe-0004L7-T9; Mon, 06 Apr 2020 15:54:19 +0200 Received: from [130.255.73.16] (helo=v01.28459.vpscontrol.net) by www31.flk1.host-h.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1jLSCc-0003gd-6G; Mon, 06 Apr 2020 15:54:14 +0200 From: Justin Swartz To: Heiko Stuebner , Rob Herring , Mark Rutland Cc: Justin Swartz , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] ARM: dts: enable WLAN for Mecer Xtreme Mini S6 Date: Mon, 6 Apr 2020 13:50:04 +0000 Message-Id: <20200406135006.23759-1-justin.swartz@risingedge.co.za> In-Reply-To: References: X-Authenticated-Sender: justin.swartz@risingedge.co.za X-Virus-Scanned: Clear X-Originating-IP: 188.40.1.173 X-SpamExperts-Domain: risingedge.co.za X-SpamExperts-Username: Authentication-Results: host-h.net; auth=pass (login) smtp.auth=@risingedge.co.za X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.01) X-Recommended-Action: accept X-Filter-ID: Mvzo4OR0dZXEDF/gcnlw0VxB0mWeGZk2wSOLROvd+japSDasLI4SayDByyq9LIhVKSjl/T5Wjq3C cHUN07/U5ETNWdUk1Ol2OGx3IfrIJKyP9eGNFz9TW9u+Jt8z2T3K7uDjV/sFUXQr+CDrNQuIHgQg mAX8Bxy/iUu0ThNZg0jxJtcVJProrT987X1VDPOqN+OoDzRTdku7DidYUZdNf38Sp7Of4wP429AA f49baR+f3He7jw4SoVhmTJ/3eP9ORQWVx8ds1M4qmk3/bYr2p8zbg4Paoa3pNVQ0zl7t/+UfQLYB qEPnp1U88kqVD8AM2G81dFO0E3gi+MOI1foZYzDggRXhpvoPtF3cVkniFXU3qJSqpdJudO6+rkiw E5i8Wl78Q18OeOfsy4h7jF1Uv9lnibl3vcBqVmvQB4A18af/JarpiQ+6hR7HOCnjVN6YAVXirbLu Jjy3NtnGWLbnBGfrUBEXB2fYGLNieGQuoHtJvp0r29Rf3ZjFwL+MhHEWw/0qBlNDp8uABz3dkWV+ ttWGem52QLIiDo2hv5/Q58JTycYLFeAN4+MGwnsp7SkU6CLbyF0Zq4b1/7rjUzETJrWks4pbbQJq 6gWopI3ep45X19ZysgQ+31LcAX8eoFXAhohfegXGH2GIVQVglJFbK771YV8YbC29CtmpcTqTfSIf CWq9oj7OiT8GwpAriB+3/81I3rvR8KJ2fK9jiDYgijyqqY0rATpzHKGfmtNsYTr4SmDZ/bGW8xZC RRs6ZD24UhFcZZEpLhnBCwImTQNvxaLyCc35VA7RvW/HGiGqxL09Cymermt8NAa/gGopT3kKfO4C gvcKmV0o9jYzsFpuc43pp/LzIs3ornuRuAAdgrkq+6l7ZLNYJcf7Z6PCydDzoYZgInuDxgFOs7AZ TwbwMaed1BaNkB2/QnXFItfl/CUlUJcr3N9JpeObY3YyPF5A38NrFoXSENXH6UXfnav35JPA4YfM 6tBkXsqvKY6zoLLTPpuFqUUQz+mM8JAD4ECWNo09vb0YLIRnK477e9Xake5PIWKjIXX7qe2zOXoS foy7Z4L9ynga1OLlo1iENjSur2RbacxP0wHegoAoacXze2bjO41FyBEqIaDudcVplPE6wCr6GXU1 lCw88ijyus1sGnWknJqS8gGhNQxpB5P3qu7c1xMljx2PG/R+pKBSKy8hXOgvE1zSS7XUhkYEQYeb 3jR5NeVaJQBh0uawl0Cg8j+knAzOA9mmoJvkuhKHiekUuskYaI6ERCKp8gXWqnT9kLHhStr5fiGK 7KncpWELuTEvuGslKTrRIXcXpFg5ivY= X-Report-Abuse-To: spam@antispammaster.host-h.net Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Mecer Xtreme Mini S6 features a wireless module, based on a Realtek 8723BS, which provides WLAN and Bluetooth connectivity via SDIO and UART interfaces respectively. Define a simple MMC power sequence that declares the GPIO pins connected to the module's WLAN Disable and Bluetooth Disable pins as active low reset signals, because both signals must be deasserted for WLAN radio operation. Configure the host's SDIO interface for High Speed mode with 1.8v I/O signalling and IRQ detection over a 4-bit wide bus. Signed-off-by: Justin Swartz --- Changes in v2: - Remove unused disable-wp and deprecated num-slots attributes from &sdio, as suggested by Johan Jonker. arch/arm/boot/dts/rk3229-xms6.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/rk3229-xms6.dts b/arch/arm/boot/dts/rk3229-xms6.dts index 679fc2b00..6890af0b7 100644 --- a/arch/arm/boot/dts/rk3229-xms6.dts +++ b/arch/arm/boot/dts/rk3229-xms6.dts @@ -39,6 +39,12 @@ }; }; + sdio_pwrseq: sdio-pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&gpio2 26 GPIO_ACTIVE_LOW>, + <&gpio2 29 GPIO_ACTIVE_LOW>; + }; + vcc_host: vcc-host-regulator { compatible = "regulator-fixed"; enable-active-high; @@ -202,6 +208,16 @@ status = "okay"; }; +&sdio { + bus-width = <4>; + cap-sd-highspeed; + cap-sdio-irq; + mmc-pwrseq = <&sdio_pwrseq>; + non-removable; + vqmmc-supply = <&vccio_1v8>; + status = "okay"; +}; + &sdmmc { cap-mmc-highspeed; disable-wp; -- 2.11.0