From patchwork Fri Aug 7 14:12:05 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: 6969671 Return-Path: X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E457A9F358 for ; Fri, 7 Aug 2015 14:12:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 047F02053A for ; Fri, 7 Aug 2015 14:12:13 +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 2662E204AE for ; Fri, 7 Aug 2015 14:12:12 +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 1ZNiNV-0001Jo-DT; Fri, 07 Aug 2015 14:12:09 +0000 Received: from mail-wi0-f174.google.com ([209.85.212.174]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZNiNS-0001Gc-US for linux-rockchip@lists.infradead.org; Fri, 07 Aug 2015 14:12:07 +0000 Received: by wibhh20 with SMTP id hh20so67640544wib.0 for ; Fri, 07 Aug 2015 07:11:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=HOWXbZ0cBdINwTEoYtV2VnMYcuqLIT6ozoUGLNyryM4=; b=OOXFBleG0/gap9YnvwI567+alN4UhEdPbbuN+LAivyT6xm/r9rO8MErPOYxPrvZag9 7D14SP4j28ZvmsH/oS8/UXQy9pbz+QCtbG3EyXnr2wVBVDoSoxvyIW/BBHJIMnc7FgT9 r0CqzQUb9UOW99daXV8OGoeYKmxB3Ow2Xlxh3qP1UwZw/RiYEE9Iwhuo0qaY2R2t+CMl Yih+o8lEtEp9UYzslaa2DzYVXgjp9SSfWxogDN7siI8CCaSA3w0g8/6HRHMURrXlGEBJ cSWRXX1MTfs+v9Ox9SXB6l0vU9UwZ34r1KGvMHOosU9HP8JSl3lg0kOJRm5cO2oZKK/S 5WHw== X-Gm-Message-State: ALoCoQnbAFyX78N08FyIxC3jxBvMgFf6sLwKf+WbFychxQgRdFWmZz5CxmeW4XZMtscRpueH329+ X-Received: by 10.194.60.11 with SMTP id d11mr14716472wjr.143.1438956703810; Fri, 07 Aug 2015 07:11:43 -0700 (PDT) Received: from panicking.hitronhub.home (81.202.197.66.dyn.user.ono.com. [81.202.197.66]) by smtp.gmail.com with ESMTPSA id lz10sm14820113wjb.48.2015.08.07.07.11.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Aug 2015 07:11:42 -0700 (PDT) From: Michael Trimarchi To: heiko@sntech.de, michael@amarulasolutions.com Subject: [RFC PATCH] ARM: dts: rockchip: Add wifi support for firefly Date: Fri, 7 Aug 2015 16:12:05 +0200 Message-Id: <1438956725-4188-1-git-send-email-michael@amarulasolutions.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150807_071207_170857_09660098 X-CRM114-Status: UNSURE ( 9.50 ) X-CRM114-Notice: Please train this message. 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: linux-rockchip@lists.infradead.org, romain.perier@gmail.com, linux-mmc@vger.kernel.org, dianders@chromium.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.3 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 This patch enable wifi support for the firefly board. Card answer to me that support from 2.0V but regulator is connected to 1.8V, so voltage capability is wrong. In order to avoid this we just defined a fixed regulator trigger by the wifi enable gpio that report 2.0V. Signed-off-by: Michael Trimarchi --- arch/arm/boot/dts/rk3288-firefly.dtsi | 43 +++++++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/rk3288-firefly.dtsi b/arch/arm/boot/dts/rk3288-firefly.dtsi index 0b42372..fcf234e 100644 --- a/arch/arm/boot/dts/rk3288-firefly.dtsi +++ b/arch/arm/boot/dts/rk3288-firefly.dtsi @@ -116,6 +116,28 @@ vin-supply = <&vcc_io>; }; + io_domains: io-domains { + compatible = "rockchip,rk3288-io-voltage-domain"; + rockchip,grf = <&grf>; + + wifi-supply = <&vcc_18>; + audio-supply = <&vcca_33>; + }; + + 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"; @@ -437,13 +459,30 @@ &sdio0 { broken-cd; bus-width = <4>; + clock-freq-min-max = <400000 50000000>; 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-sdr50; + sd-uhs-sdr104; + sd-uhs-ddr50; + cap-sdio-irq; + + vmmc-supply = <&vcc_wifi>; status = "okay"; + + brcmf: bcrmf@0 { + compatible = "brcm,bcm4329-fmac"; + interrupt-parent = <&gpio4>; + reg = <0>; + interrupts = <30 IRQ_TYPE_EDGE_FALLING>; + interrupt-names = "host-wake"; + status = "okay"; + }; }; &sdmmc {