Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp6469266imm; Mon, 23 Jul 2018 19:28:15 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf/dUUGX3OZLvL6H3G+JeyULN11Ji0RpEWIF+nRXYSdwvA8abwwSPQuH2m6lvRQUtm62hJu X-Received: by 2002:a63:f18:: with SMTP id e24-v6mr14634557pgl.320.1532399294955; Mon, 23 Jul 2018 19:28:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532399294; cv=none; d=google.com; s=arc-20160816; b=TaQAGMuftLbxtHad0tsZW38Evo/d88zOnL2eYA/ZZuWxLUMs4GX3/3jaWjSYNnlksr ZcGJ8ZA/05w04k7GdCoEYCCkXY9sP3zuUkMMQ63sAmwSOKmCMJ5qpttH0EaQ8Q3GOzX6 kOFH47gGZ/NPfDaRn1GSYq9cbvMqQYA83UMI3aeNigUWT6R3wWt9bPtdUBS+o1o8Lu9t 6oO9VFBB/tc/Z1SUKOPnfWlpdDWxkNi6kE7P08K9kxFdDCFOOtMJ6gyg5ZHdQQX0I1hG pEcFB6Zn6eJSSJRvaNTQjMnERcbqOpsixClX6nDIDyLqsglt+VWWyW6VcS0Ge7BScqtg BJhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :arc-authentication-results; bh=JStd/eFxNy3YyAUNyRIv11Qpyv2yiikoD/DFZCmTaJI=; b=kKAUg0lmSMkTuYyIdUUfapSLoqHpdLlpatSiN/MFZQkhgEa7MtbX6aTGqTj5JPTCki BSNEcDA5KO01MzDaEAGPb3u86fU8UjUeHtmoDoOushMozqHwT8UEwl+FuP1wjrlNX5AP P4dN48TrKp4mvohY9iy1Un9V3cCQCzrHMHqcqCguEyBI6og5RRUfE2eDzL+iNhWH2k0p vOGoOXUyvwMYQONE3tmFvaQeIBkr5A2XyTTc2KOglMPFAm7s71DkpSUtWdDoj8fU5f++ h9WKuyrzDu3uZc7roO115AqoY6iCWf2AAJDsVulR+t5xyP2RxtG7iTuTvqLcaEOY78I4 +uLg== 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 bf10-v6si9789089plb.69.2018.07.23.19.28.00; Mon, 23 Jul 2018 19:28:14 -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 S2388366AbeGXDac convert rfc822-to-8bit (ORCPT + 99 others); Mon, 23 Jul 2018 23:30:32 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:42990 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388194AbeGXDac (ORCPT ); Mon, 23 Jul 2018 23:30:32 -0400 Received: by mail-ed1-f67.google.com with SMTP id r4-v6so2695415edp.9; Mon, 23 Jul 2018 19:26:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=UUIaN1+rU6qQ7z9xSn/8A98VTxb9aqGaqda9tKmW6Dk=; b=tE6RKZo0oIU0tv9Eeu0+gpXQPMSnjSM4XvNOUVguOGL/RLngWsGbnDQItlLRS/cosk XnzK6EReOShk8i7g8wAQOtsuY5JiiDJHPw/8TQRW72FllaZcf2O5FMkLqijlQzom1REL 9UWWpjytqPt9VHtw5nyiRSF4LAD2kR5J/o457QA8WINArUjxSLzvlUEEJifuAo0J/KzB yS6zfn7dCMv0dfQiSOlczfq6dlAxzo4cbLCvvNqwnM2GxOM7BuPZLqc4/xCZDlrxCo83 cK1EUFHKuO2m7EMODucQv/9aON+orbqNLajjbbnQ9/SYI6IkzqeV5oPWecgwHawf7fY6 Q3uQ== X-Gm-Message-State: AOUpUlFY1S2U8wdOxI2Oud2og1YTtEk02iymlUcZvwzObtfcUJH5yxfy oXE/+w3FFLfvGVtsxfYAQiwiSQZSP5g= X-Received: by 2002:a50:8e09:: with SMTP id 9-v6mr15905882edw.101.1532399183676; Mon, 23 Jul 2018 19:26:23 -0700 (PDT) Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com. [74.125.82.52]) by smtp.gmail.com with ESMTPSA id a9-v6sm4858152edi.26.2018.07.23.19.26.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Jul 2018 19:26:23 -0700 (PDT) Received: by mail-wm0-f52.google.com with SMTP id y2-v6so297926wma.1; Mon, 23 Jul 2018 19:26:23 -0700 (PDT) X-Received: by 2002:a1c:8c12:: with SMTP id o18-v6mr671116wmd.120.1532399183211; Mon, 23 Jul 2018 19:26:23 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:adf:a15a:0:0:0:0:0 with HTTP; Mon, 23 Jul 2018 19:26:02 -0700 (PDT) In-Reply-To: References: <20180724011551.49603-1-icenowy@aosc.io> <20180724011551.49603-4-icenowy@aosc.io> From: Chen-Yu Tsai Date: Tue, 24 Jul 2018 10:26:02 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [linux-sunxi] Re: [PATCH 3/3] arm64: allwinner: dts: h6: add Wi-Fi support for Pine H64 model A/B To: Icenowy Zheng Cc: Maxime Ripard , linux-arm-kernel , devicetree , linux-kernel , linux-sunxi Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 24, 2018 at 10:23 AM, Icenowy Zheng wrote: > > > 于 2018年7月24日 GMT+08:00 上午10:21:59, Chen-Yu Tsai 写到: >>On Tue, Jul 24, 2018 at 9:15 AM, Icenowy Zheng wrote: >>> The Pine H64 model A has a Wi-Fi module connector and the model B has >>an >>> on-board RTL8723BS Wi-Fi module. >>> >>> Add support for them. For model A, as it's not defaultly present, >>keep >>> it disabled now. >> >>Nope. Pine64 actually has two WiFi/BT modules. And they require >>different >>device tree snippets for both the WiFi and BT side. This is better >>resolved >>with device tree overlays. >> >>I have both, though I've yet found time to work on them. > > I have also both. > > The skeleton here can get the Wi-Fi of both to work. Cool. Then I can put away my RTL module for now. :) ChenYu > >> >>ChenYu >> >>> Signed-off-by: Icenowy Zheng >>> --- >>> .../allwinner/sun50i-h6-pine-h64-model-b.dts | 8 +++++ >>> .../boot/dts/allwinner/sun50i-h6-pine-h64.dts | 29 >>+++++++++++++++++++ >>> 2 files changed, 37 insertions(+) >>> >>> diff --git >>a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64-model-b.dts >>b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64-model-b.dts >>> index d0fcc25efb00..d0f775613c9b 100644 >>> --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64-model-b.dts >>> +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64-model-b.dts >>> @@ -18,3 +18,11 @@ >>> }; >>> }; >>> }; >>> + >>> +&mmc1 { >>> + status = "okay"; >>> +}; >>> + >>> +&wifi_pwrseq { >>> + status = "okay"; >>> +}; >>> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts >>b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts >>> index a85867f8b684..75db6d4139bf 100644 >>> --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts >>> +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts >>> @@ -40,6 +40,12 @@ >>> gpios = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 >>*/ >>> }; >>> }; >>> + >>> + wifi_pwrseq: wifi_pwrseq { >>> + compatible = "mmc-pwrseq-simple"; >>> + reset-gpios = <&r_pio 1 3 GPIO_ACTIVE_LOW>; /* PL2 */ >>> + status = "disabled"; >>> + }; >>> }; >>> >>> &mmc0 { >>> @@ -50,6 +56,17 @@ >>> status = "okay"; >>> }; >>> >>> +&mmc1 { >>> + pinctrl-names = "default"; >>> + pinctrl-0 = <&mmc1_pins>; >>> + vmmc-supply = <®_cldo2>; >>> + vqmmc-supply = <®_bldo2>; >>> + mmc-pwrseq = <&wifi_pwrseq>; >>> + bus-width = <4>; >>> + non-removable; >>> + status = "disabled"; >>> +}; >>> + >>> &mmc2 { >>> pinctrl-names = "default"; >>> pinctrl-0 = <&mmc2_pins>; >>> @@ -128,12 +145,24 @@ >>> }; >>> >>> reg_cldo2: cldo2 { >>> + /* >>> + * This regulator is connected with >>CLDO3. >>> + * Before the kernel can support >>synchronized >>> + * enable of coupled regulators, keep >>them >>> + * both always on as a ugly hack. >>> + */ >>> + regulator-always-on; >>> regulator-min-microvolt = <3300000>; >>> regulator-max-microvolt = <3300000>; >>> regulator-name = "vcc-wifi-1"; >>> }; >>> >>> reg_cldo3: cldo3 { >>> + /* >>> + * This regulator is connected with >>CLDO2. >>> + * See the comments for CLDO2. >>> + */ >>> + regulator-always-on; >>> regulator-min-microvolt = <3300000>; >>> regulator-max-microvolt = <3300000>; >>> regulator-name = "vcc-wifi-2"; >>> -- >>> 2.18.0 >>> > > -- > You received this message because you are subscribed to the Google Groups "linux-sunxi" group. > To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/d/optout.