Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp846577imm; Thu, 31 May 2018 10:22:28 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLj+4VtViLoWuPyHpIdcTG0l84md3Apgn8RI69vKyBtmEomFZegzwsuwTk2WeSAy1rckSpO X-Received: by 2002:a17:902:2927:: with SMTP id g36-v6mr7705060plb.303.1527787348607; Thu, 31 May 2018 10:22:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527787348; cv=none; d=google.com; s=arc-20160816; b=SRNuYAeQchnzEGQciiIOT4wfD26KqIjlZbnzdVOv40wfMzutHBq3a4XCpaLZwBbzLx yUgwhkLCxw6gbQcb/cANBZF56/CDY5bRcBJK1IH5X7nTTRNPHU1fGnaF80G8b4SdT7U3 gLVTjojs0rBRbIRIuM/eT1Phf94sIY5xsy2TMIP7aSZgTMq8cpZng4yluNoKTBLoKrla 9n9tV6htPUH5nL04aywCnfE9Ke59qTEJe1+yFDnv8svqi+JWrYVcGOEcp0Z7D57QK1dd RILiRtFeDu0pBSQrpppWXB6CiSDtWwJXu4M0pmKQbXTdfq0MgKrfwK6/D7Xt07UdBfOD 4Uvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:arc-authentication-results; bh=cjaMoF5cTI1LO7u7vOB1c/ULd/PJk8t5UI5pfgRIzj0=; b=A0PQ9V85POI2zP1wE8j8llaDWTVzYyceWagfVOf6yiMQqYOKpliYhQoEyNpPIwplpe oUG4c2TFwYLNQg8S0KFhsbvYQNkCh2X2zO/ney4ctPoB/69e64J1bObfP6C5oT7Mb7ox WvZMqRveRbrSscldU8uVdtus184sq3OirQROC8pwKgYeJ4lM2yp1SLF8QQVJD22X7r9L 4wpg/1ZR4w0xH6Pszc8b/J99/2Y0bwboCaphMIHFcGn0Gad7prGgdMXkYyfhqmoobIZB AujxF0PPHM/riuDS6KjyKzssK6BtjeExCPcCaslOfy3+wShw784dFoH1EcYiQsJCqqHx 2msg== 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 h12-v6si15691109plk.535.2018.05.31.10.22.13; Thu, 31 May 2018 10:22:28 -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 S1755797AbeEaRVs (ORCPT + 99 others); Thu, 31 May 2018 13:21:48 -0400 Received: from web2.default.djames.uk0.bigv.io ([213.138.101.246]:60168 "EHLO web2.default.djames.uk0.bigv.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755708AbeEaRVq (ORCPT ); Thu, 31 May 2018 13:21:46 -0400 X-Greylist: delayed 1572 seconds by postgrey-1.27 at vger.kernel.org; Thu, 31 May 2018 13:21:46 EDT Received: from mail-lf0-f43.google.com ([209.85.215.43]) by web2.default.djames.uk0.bigv.io with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1fOQrM-0001Jf-Ts; Thu, 31 May 2018 17:55:32 +0100 Received: by mail-lf0-f43.google.com with SMTP id o9-v6so10749888lfk.1; Thu, 31 May 2018 09:55:32 -0700 (PDT) X-Gm-Message-State: APt69E1jh2Vs6cNNzc4GW91pq159tYNd2+egQi4aZafvdUl36jy5viQQ Dd+O5jaLDH7UYQSyDTIjfkzCZtWRPy67qyBRn9k= X-Received: by 2002:a2e:6a07:: with SMTP id f7-v6mr1939378ljc.109.1527785731927; Thu, 31 May 2018 09:55:31 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:18d5:0:0:0:0:0 with HTTP; Thu, 31 May 2018 09:55:31 -0700 (PDT) In-Reply-To: <20180531165109.8476-1-jagan@amarulasolutions.com> References: <20180531165109.8476-1-jagan@amarulasolutions.com> From: Christopher Obbard Date: Thu, 31 May 2018 17:55:31 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [linux-sunxi] [PATCH v2] arm64: allwinner: a64-amarula-relic: Enable AP6330 WiFi support To: jagan@amarulasolutions.com Cc: Maxime Ripard , Chen-Yu Tsai , Michael Trimarchi , Icenowy Zheng , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux ARM , linux-kernel@vger.kernel.org, linux-sunxi Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jagan, I cannot find any information on this board online, so I am guessing it has not been released yet and you are developing software support now. Do you have any datasheet/overview document of the board? Rather than making a lot of noise on the various MLs, why not wait until all hardware has a driver written for it & bugs have been been smashed, then patch in one series? Christopher Obbard 64 Studio Ltd. On 31 May 2018 at 17:51, Jagan Teki wrote: > Enable AP6330 WiFi/BT combo chip on Amarula A64-Relic board: > - WiFi SDIO interface is connected to MMC1 > - WiFi WL-PMU-EN pin connected to gpio PL2: attach to mmc-pwrseq > - WiFi WL-WAKE-AP pin connected to gpio PL3 > - 32kHz external oscillator gate clock from RTC > > Signed-off-by: Jagan Teki > --- > Changes for v2: > - Move external rtc clock nodes into main rtc node definition > of sun50i-a64.dtsi > > .../dts/allwinner/sun50i-a64-amarula-relic.dts | 31 ++++++++++++++++++++++ > arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 3 +++ > 2 files changed, 34 insertions(+) > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts > index ce4a256ff086..eac4793c8502 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts > @@ -21,12 +21,43 @@ > chosen { > stdout-path = "serial0:115200n8"; > }; > + > + wifi_pwrseq: wifi-pwrseq { > + compatible = "mmc-pwrseq-simple"; > + clocks = <&rtc 1>; > + clock-names = "ext_clock"; > + reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* WL-PMU-EN: PL2 */ > + }; > }; > > &ehci0 { > status = "okay"; > }; > > +&mmc1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&mmc1_pins>; > + vmmc-supply = <®_dcdc1>; > + /* > + * Schematic shows both dldo4 and eldo1 connected for vcc-io-wifi, but > + * dldo4 connection shows DNP(Do Not Populate) and eldo1 connected with > + * 0Ohm register to vcc-io-wifi so eldo1 is used. > + */ > + vqmmc-supply = <®_eldo1>; > + mmc-pwrseq = <&wifi_pwrseq>; > + bus-width = <4>; > + non-removable; > + status = "okay"; > + > + brcmf: wifi@1 { > + reg = <1>; > + compatible = "brcm,bcm4329-fmac"; > + interrupt-parent = <&r_pio>; > + interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* WL-WAKE-AP: PL3 */ > + interrupt-names = "host-wake"; > + }; > +}; > + > &mmc2 { > pinctrl-names = "default"; > pinctrl-0 = <&mmc2_pins>; > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi > index 1b2ef28c42bd..82516aec4153 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi > @@ -634,6 +634,9 @@ > reg = <0x01f00000 0x54>; > interrupts = , > ; > + clock-output-names = "rtc-osc32k", "rtc-osc32k-out"; > + clocks = <&osc32k>; > + #clock-cells = <1>; > }; > > r_intc: interrupt-controller@1f00c00 { > -- > 2.14.3 > > -- > 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.