From patchwork Wed Jul 22 05:58:29 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: 6839601 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 8DFF5C05AC for ; Wed, 22 Jul 2015 05:58:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 89FFF2071B for ; Wed, 22 Jul 2015 05:58:57 +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 4E47920706 for ; Wed, 22 Jul 2015 05:58:56 +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 1ZHn3O-0006ki-Tb; Wed, 22 Jul 2015 05:58:54 +0000 Received: from mail-lb0-f170.google.com ([209.85.217.170]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZHn3M-0006iA-U1 for linux-rockchip@lists.infradead.org; Wed, 22 Jul 2015 05:58:53 +0000 Received: by lblf12 with SMTP id f12so129557078lbl.2 for ; Tue, 21 Jul 2015 22:58:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=i9WACikVr1EAZ8e18dsNciS+zGAF4gGCnR0tZSCp4js=; b=Ses8I9bVUz357m8W44fNpFEnqVnfo5YKTqNo3HrX0Xy4VBJuak+BBen8Hm2yOuPjpg V8LLYRBkQz9P5hMxZiEOqVjDzkRmtYuu4bUINRvw9Y6PH8r7YBS1K5T37PAT6/vPghgJ d9gc7oFU9pCLcQE8pBRjZZtbPSQYf7XjbYYMy20eHmptkAbEdOLT0T7xCKy3vW+aSb7e 2GNEmq1dJd4oTAV+Hc81SfRED24FHseZjiYPssYaRue/QNif18HhDgqSe1ed1fkdagkJ sPbhUAJkDkV0XQoTPkNYa0FPza3D81OhPH03vqssbmpZOl7ZfQyzJmTWl9ziIo67A/L9 gXAQ== X-Gm-Message-State: ALoCoQkNbU03VyHq4VaXDFnvB638EQ8kbw2i8ms7XyDysgksUp6YtDBtBwWvJU+d7ya4Gi/HWVzV MIME-Version: 1.0 X-Received: by 10.112.73.33 with SMTP id i1mr679859lbv.31.1437544709686; Tue, 21 Jul 2015 22:58:29 -0700 (PDT) Received: by 10.152.112.137 with HTTP; Tue, 21 Jul 2015 22:58:29 -0700 (PDT) In-Reply-To: <20150721125133.GA4102@panicking> References: <20150721125133.GA4102@panicking> Date: Wed, 22 Jul 2015 07:58:29 +0200 Message-ID: Subject: Re: Firefly wifi mainline patches From: Michael Trimarchi To: linux-rockchip@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150721_225853_159419_C7831B23 X-CRM114-Status: GOOD ( 17.04 ) 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: , 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 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 Michael > Michael From 4d68f996e28aa135a331e67ccd95874632276606 Mon Sep 17 00:00:00 2001 From: Michael Trimarchi Date: Tue, 21 Jul 2015 15:21:48 +0200 Subject: [PATCH] firefly: add a minimal wifi settings Signed-off-by: Michael Trimarchi --- arch/arm/boot/dts/rk3288-firefly.dtsi | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/rk3288-firefly.dtsi b/arch/arm/boot/dts/rk3288-firefly.dtsi index 149b9ed..effce71 100644 --- a/arch/arm/boot/dts/rk3288-firefly.dtsi +++ b/arch/arm/boot/dts/rk3288-firefly.dtsi @@ -116,6 +116,19 @@ vin-supply = <&vcc_io>; }; + vcc_wifi: wifi-regulator { + compatible = "regulator-fixed"; + gpio = <&gpio4 28 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&sdio0_pwr>; + regulator-name = "vcc_wifi"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + startup-delay-us = <100000>; + vin-supply = <&vcc_io>; + }; + + vcc_flash: flash-regulator { compatible = "regulator-fixed"; regulator-name = "vcc_flash"; @@ -460,13 +473,31 @@ &sdio0 { broken-cd; bus-width = <4>; + clock-freq-min-max = <400000 5000000>; disable-wp; non-removable; + cap-sd--highspeed; num-slots = <1>; pinctrl-names = "default"; - pinctrl-0 = <&sdio0_bus4>, <&sdio0_cmd>, <&sdio0_clk>; + pinctrl-0 = <&sdio0_bus4>, <&sdio0_cmd>, <&sdio0_clk>, <&sdio0_int>; + + sd-uhs-sdr104; + sd-uhs-sdr12; + sd-uhs-sdr25; + cap-sdio-irq; + vmmc-supply = <&vcc_18>; +/* mmc-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 { -- 1.9.1