From patchwork Thu Jul 23 19:50:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Nazzareno Trimarchi X-Patchwork-Id: 6855871 Return-Path: X-Original-To: patchwork-linux-rockchip@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 3E7D2C05AC for ; Thu, 23 Jul 2015 19:50:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 39CBD20686 for ; Thu, 23 Jul 2015 19:50:34 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D442F20532 for ; Thu, 23 Jul 2015 19:50:32 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZIMVk-00043o-2t; Thu, 23 Jul 2015 19:50:32 +0000 Received: from mail-wi0-f173.google.com ([209.85.212.173]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZIMVi-0003xk-AO for linux-rockchip@lists.infradead.org; Thu, 23 Jul 2015 19:50:31 +0000 Received: by wibud3 with SMTP id ud3so38771016wib.1 for ; Thu, 23 Jul 2015 12:50:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=SMW2GkJgGvYrGTGu1q9JcjFCWuuMJqrCh38HiK4QFNY=; b=jvhQ2GSFW7g+dbJ9m3af2k9Wc50ncqPvBFut7zWaoC1vvQFSJj2mvX9veBTzwaHetG muy1U3I8SzCVYaw/J0/utKOYgRSjpn8MQxniYpbqSI+I5jDSTLxuRkllS+Nnj54elyaa ypw8d5ueEzpwrFyeiaLDquDB6Kcmfh502nxyk5M8gZWC3wsrNYgOEWivmUZZ9rgKU0xe m3eruoBVlb29ol/nwXG7bt/yPImCZ1jgbAd5VhwmN4pivpv/6qaC3h8c6I8CxGUGAZCR 26hPri0QSm3baZEMk74SmaWlJ2cCrUobrDMNjuoii3xhK1fgplmH4QWLvWOrPeiiozJ0 J5Yg== X-Gm-Message-State: ALoCoQnh7ToZJBcAt70SJ0WcvUzXFfdBvN1EX+mycshR1snbwxqD4YqmtqXYcX1IS5eNARm5cNyJ X-Received: by 10.180.83.101 with SMTP id p5mr19758602wiy.52.1437681005390; Thu, 23 Jul 2015 12:50:05 -0700 (PDT) Received: from panicking ([91.253.46.53]) by smtp.gmail.com with ESMTPSA id q4sm9029681wja.24.2015.07.23.12.50.03 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 23 Jul 2015 12:50:04 -0700 (PDT) Date: Thu, 23 Jul 2015 21:50:11 +0200 From: Michael Trimarchi To: Doug Anderson Subject: Re: Firefly wifi mainline patches Message-ID: <20150723195011.GA5620@panicking> References: <20150721125133.GA4102@panicking> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150723_125030_519578_E48AF437 X-CRM114-Status: GOOD ( 23.66 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "open list:ARM/Rockchip SoC..." , Alexandru Stan Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 Hi On Wed, Jul 22, 2015 at 06:36:39AM -0700, Doug Anderson wrote: > Hi, > > On Tue, Jul 21, 2015 at 10:58 PM, Michael Trimarchi > wrote: > > Hi > > > > > > On Tue, Jul 21, 2015 at 2:51 PM, Michael Trimarchi > > wrote: > >> Hi > >> > >> I have managed to let my wifi working using mainline but I have > >> problem on clocking. Right now I can not rise the clock more the 5Mhz > >> even it's suppose to work up to 50Mhz. Anyone is working on it right > >> now? > >> > > > > I put in attach two patches that I need on my version. Another problem > > is that execute_tuning is not defined in the dw_mmc-rockchip so > > ENOSYS is returned. I think that we have two way: > > > > 1) put a stub > > 2) define 0 as default error > > I don't think you should be trying to tune until the tuning patches > are landed. Alexandru sent them up a while ago but they need to be > respun. I seem to remember Alexandru saying that it decided your > controller was UHS capable if you didn't specify any capabilities, so > maybe that's it. > > Try adding this to your SDIO port in the dts: > > cap-sd-highspeed; I have rebase on https://github.com/mmind/linux-rockchip mainline/devel/upstream. Need to do some more test here and not yet ready for mainline From f076b38f6056404cea11b1c5f4595dfe5b7e5aef Mon Sep 17 00:00:00 2001 From: Michael Trimarchi Date: Thu, 23 Jul 2015 21:39:44 +0200 Subject: [PATCH] ARM: dts: rockchip: add wifi support to firefly board This patch add the wifi support to firefly. In order to use the user need the ap6535 specific wifi firmware. vcc_wifi regulator is set to 2V in order to workaround the fact that the card answer to not support 1.8V power. Signed-off-by: Michael Trimarchi --- arch/arm/boot/dts/rk3288-firefly.dtsi | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/rk3288-firefly.dtsi b/arch/arm/boot/dts/rk3288-firefly.dtsi index 20fa0ef..2958cd2 100644 --- a/arch/arm/boot/dts/rk3288-firefly.dtsi +++ b/arch/arm/boot/dts/rk3288-firefly.dtsi @@ -117,6 +117,21 @@ vin-supply = <&vcc_io>; }; + vcc_wifi: wifi-regulator { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&gpio4 28 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&sdio0_pwr>; + regulator-name = "vcc_wifi"; + regulator-min-microvolt = <2000000>; + regulator-max-microvolt = <2000000>; + startup-delay-us = <100000>; + regulator-always-on; + vin-supply = <&vcc_io>; + }; + + vcc_flash: flash-regulator { compatible = "regulator-fixed"; regulator-name = "vcc_flash"; @@ -440,13 +455,29 @@ &sdio0 { broken-cd; bus-width = <4>; + clock-freq-min-max = <400000 20000000>; disable-wp; non-removable; + cap-sd-highspeed; num-slots = <1>; pinctrl-names = "default"; - pinctrl-0 = <&sdio0_bus4>, <&sdio0_cmd>, <&sdio0_clk>; - vmmc-supply = <&vcc_18>; + pinctrl-0 = <&sdio0_bus4>, <&sdio0_cmd>, <&sdio0_clk>, <&sdio0_int>; + + sd-uhs-sdr12; + sd-uhs-sdr25; + cap-sdio-irq; + + vmmc-supply = <&vcc_wifi>; status = "okay"; + + brcmf: bcrmf@1 { + compatible = "brcm,bcm4329-fmac"; + interrupt-parent = <&gpio4>; + reg = <0>; + interrupts = <30 IRQ_TYPE_EDGE_FALLING>; + interrupt-names = "host-wake"; + status = "okay"; + }; }; &sdmmc {