Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6797747yba; Tue, 14 May 2019 13:57:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYbk7H3WsiiDcz8Iy7ED4rMy2+UvB3kDMWNRfORnoU5YpQt8NNPIrTlOsLzuq6CuCS0bq8 X-Received: by 2002:a17:902:868e:: with SMTP id g14mr40681526plo.183.1557867467760; Tue, 14 May 2019 13:57:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557867467; cv=none; d=google.com; s=arc-20160816; b=wx7FcyGHZX6huMiSjb7O65eKlXy12Sa1jDrW8zTFDSza7Nz0a+JLagsQ0TkqIVJLNo pBw7mTZoglwcEbn3VBi72f68IgGLO6bA8qxuy+hj1ilesiDOxdC67l2wk4OSRDNArBD2 RSRRE5NfjgOySdXKCkL7WonSKWRuE6Evx/zI5TyVy3zZwDd8ILxFnPrXt567fDqHK3YQ hdj8wlcjnyERIBsp5meJvqlAME/HWgWzIwuMktN9ZlIIUDYkcp8glAHXPV8FwpWtF2jF TtRjGGwtr049JC+50cHkokBJ55qIn/KZ/9zEXWxma2lQeUAi3sz0U3eFWZQnRK6hECWA YVpQ== 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:mime-version :message-id:date:subject:cc:to:from; bh=eQv+Funn5rUFMKcvSyvM8kUR+1vq1ivr3oGQHJJpssI=; b=a4/s6uSGNdHF9+6/8/fq8Cz7/mT1GFcZf4wPcTjUlxpC1PIUfkKA3aqdRMT4xV9ay5 0IGYbAy03n8teGD0QNQ5iKofuaVaK/iINfSexXJhykqYu41HZiQT66yiIWAOc50ApLn0 udM+lfLF2/hh1yC51guvouI+forOAUfu9LGl/hRSiTulmmOln4+v8U7PR5ktO1DFZ4d/ quR1WgV/7G9bxnt8914dd9F9JajTm3R5u1RDRJWVBAoQRAPJgLLSxBIPkLSP8/96R35a a221EZZqL1s1VMyNt8aYXtczw6heaKNI+O4oy7r/QsaVy/caZ4IXgwQf1Eqao9kuR9l/ f5xA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siol.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x34si20796655pgl.179.2019.05.14.13.57.32; Tue, 14 May 2019 13:57:47 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siol.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726533AbfENUyx (ORCPT + 99 others); Tue, 14 May 2019 16:54:53 -0400 Received: from mailoutvs12.siol.net ([185.57.226.203]:33943 "EHLO mail.siol.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726362AbfENUyx (ORCPT ); Tue, 14 May 2019 16:54:53 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTP id 72127521E15; Tue, 14 May 2019 22:54:51 +0200 (CEST) X-Virus-Scanned: amavisd-new at psrvmta09.zcs-production.pri Received: from mail.siol.net ([127.0.0.1]) by localhost (psrvmta09.zcs-production.pri [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id pn1ki_A1-MXA; Tue, 14 May 2019 22:54:51 +0200 (CEST) Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTPS id 11E89521E6F; Tue, 14 May 2019 22:54:51 +0200 (CEST) Received: from localhost.localdomain (cpe-86-58-52-202.static.triera.net [86.58.52.202]) (Authenticated sender: 031275009) by mail.siol.net (Postfix) with ESMTPSA id A83ED521E15; Tue, 14 May 2019 22:54:50 +0200 (CEST) From: Jernej Skrabec To: maxime.ripard@bootlin.com, wens@csie.org Cc: robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH v2] arm64: dts: allwinner: a64: orangepi-win: Add wifi and bluetooth nodes Date: Tue, 14 May 2019 22:54:45 +0200 Message-Id: <20190514205445.11591-1-jernej.skrabec@siol.net> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The AP6212 is based on the Broadcom BCM43430 or BCM43438. The WiFi side identifies as BCM43430, while the Bluetooth side identifies as BCM43438. WiFi is connected to mmc1 and the Bluetooth side is connected to UART1 in a 4 wire configuration. Same as the WiFi side, due to being the same chip and package, DLDO2 provides overall power via VBAT, and DLDO4 provides I/O power via VDDIO. The RTC clock output provides the LPO low power clock at 32.768 kHz. This patch enables WiFi and Bluetooth on OrangePi Win boards and adds missing LPO clock on the WiFi side. PCM connection also exists for Bluetooth audio, but it's not used here. Bluetooth UART speed is set to 1.5 MBaud in order to be able transmit audio. While module supports even higher speeds, currently sunxi clock driver doesn't support higher speed. Signed-off-by: Jernej Skrabec --- Changes from v1: - fix commit log by stating that current clock driver doesn't support higher speeds instead of UART driver .../dts/allwinner/sun50i-a64-orangepi-win.dts | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts b/= arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts index 510f661229dc..5ef3c62c765e 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts @@ -109,6 +109,8 @@ wifi_pwrseq: wifi_pwrseq { compatible =3D "mmc-pwrseq-simple"; reset-gpios =3D <&r_pio 0 8 GPIO_ACTIVE_LOW>; /* PL8 */ + clocks =3D <&rtc 1>; + clock-names =3D "ext_clock"; }; }; =20 @@ -170,6 +172,14 @@ bus-width =3D <4>; non-removable; status =3D "okay"; + + brcmf: wifi@1 { + reg =3D <1>; + compatible =3D "brcm,bcm4329-fmac"; + interrupt-parent =3D <&r_pio>; + interrupts =3D <0 7 IRQ_TYPE_LEVEL_LOW>; /* PL7 */ + interrupt-names =3D "host-wake"; + }; }; =20 &ohci0 { @@ -342,7 +352,20 @@ &uart1 { pinctrl-names =3D "default"; pinctrl-0 =3D <&uart1_pins>, <&uart1_rts_cts_pins>; + uart-has-rtscts; status =3D "okay"; + + bluetooth { + compatible =3D "brcm,bcm43438-bt"; + max-speed =3D <1500000>; + clocks =3D <&rtc 1>; + clock-names =3D "lpo"; + vbat-supply =3D <®_dldo2>; + vddio-supply =3D <®_dldo4>; + device-wakeup-gpios =3D <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */ + host-wakeup-gpios =3D <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */ + shutdown-gpios =3D <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */ + }; }; =20 /* On Pi-2 connector, RTS/CTS optional */ --=20 2.21.0