Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751680AbdFJU2p (ORCPT ); Sat, 10 Jun 2017 16:28:45 -0400 Received: from mail.free-electrons.com ([62.4.15.54]:43528 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751573AbdFJU2n (ORCPT ); Sat, 10 Jun 2017 16:28:43 -0400 Date: Sat, 10 Jun 2017 22:28:31 +0200 From: Maxime Ripard To: Andre Przywara Cc: jagan@openedev.com, Jagan Teki , Chen-Yu Tsai , Sean Wang , Icenowy Zheng , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , Michael Trimarchi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Jagan Teki Subject: Re: [linux-sunxi] Re: [PATCH v2] arm64: allwinner: a64: Add initial NanoPi A64 support Message-ID: <20170610202831.usdhtuqc4uqxojmr@flea.home> References: <1497012052-14027-1-git-send-email-jteki@openedev.com> <1497012052-14027-2-git-send-email-jteki@openedev.com> <20170609145141.aknbsis25vmy3rj6@flea.home> <3049841d-36f0-a761-fbed-57971462697c@openedev.com> <3b4dda48-c403-88c4-5c89-63753f508d76@arm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="brhuhlay5acsabzp" Content-Disposition: inline In-Reply-To: <3b4dda48-c403-88c4-5c89-63753f508d76@arm.com> User-Agent: NeoMutt/20170602 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3255 Lines: 95 --brhuhlay5acsabzp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 09, 2017 at 04:36:09PM +0100, Andre Przywara wrote: > Hi, >=20 > On 09/06/17 16:26, Jagan Teki wrote: > > On Friday 09 June 2017 08:21 PM, Maxime Ripard wrote: > >> Hi Jagan, > >> > >> On Fri, Jun 09, 2017 at 12:40:52PM +0000, Jagan Teki wrote: > >>> +&i2c1 { > >>> + pinctrl-names =3D "default"; > >>> + pinctrl-0 =3D <&i2c1_pins>; > >>> + status =3D "okay"; > >>> +}; > >>> + > >>> +&i2c1_pins { > >>> + bias-pull-up; > >>> +}; > >> > >> What is connected on that bus? > >=20 > > i2c1 connected with gpio/i2s >=20 > Those are the I2C pins connected to the headers. We have them in the > other A64 DTs as well (Pine64, BananaPi). We've always had the policy of not enabling anything outside of the board has been there from the very start, arm64 or not. > If that is not the right approach, we should discuss this and keep it > consistent at least across the A64 boards. If some boards slipped through, then that would be on me I guess, but it's (unfortunate) exceptions. If you want to ease that for the users, you can have that node with the pinctrl nodes pre-set, but leave it disabled. We have that on a number of boards already. > >>> +&uart1 { > >>> + pinctrl-names =3D "default"; > >>> + pinctrl-0 =3D <&uart1_pins>, <&uart1_rts_cts_pins>; > >>> + status =3D "okay"; > >>> +}; > >> > >> And on that UART? > >=20 > > uart1 for SDIO (Wifi connector, with RTS/CTS), this along with mmc1 >=20 > To be precise, UART1 (with h/w handshake) is connected to the Bluetooth > part of the WiFi/BT chip, which is soldered on that board. Regardless of > the actual *WiFi* support state BT should work already - at least it did > when I tried this a few months ago on the Pine64 (although this involved > some userland heavy lifting). > Not sure what the approach here is in regard to the power supply and > wake-up GPIOs, shall they be described in this node as well or is that > up for userspace to control? There's probably more to it though. Most BT chips require regulators and clocks to be enabled. Ideally, this would even be a full DT node for the bluetooth chip. Maxime --=20 Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com --brhuhlay5acsabzp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBAgAGBQJZPFZvAAoJEBx+YmzsjxAgvYkP/R9K5PhH/KPFdMiw27MfK8CM WJtBlvOUBUkhHN9wmfuoOqH49FZ2Ws8jdtMyil/G5RxFCMFgxmYd7WzLRv13CxF4 hfMaPHXvXr+syUikEwdVyNJCW51nOlOSqb2a9LLW9rx//cNBQtuV/73LLJwfKhDu IllmREJ57h+9JqVGRaXAnSVzeQq9S3Mzmk6qnh/tyilOCjUGladXa26pBBgiS2xu FnEVUtYMSp/4EJwPs25MRTItXyjMRwnx/6cguJ5WogkvY9dmXWoLf/f5Is/6JuVy BbBxs8DeyQ3smnSUepMNmIoQxWbSOLGFaDulaAqBaP8aSK0Mhps1UketOxBnilF3 Izan4C6rRqxv3TkpLwb8resSeeDqUpgj9qFgCMVTN/ROax2wMELolYNqPJac3RuA CeNvxVRpCYPcE+ulrcVNhRRa4WLvp06LK10TJiykk1muhFU//IyQ3eawZa+En9aG kTLl+NDEmFbsSyLlt94TfLHBnYI3mHnCDUZro5Sf3JRwuQbs0SzQmHtbHI9j578b sicdpsh2ubglUYxLPsa8iUAGgfCNEmNnh7aUEaZiBWXr8N7gNw7P2CgWeN32fRXv u7tQ0cxCxh4NtfwhKsTwlmbe2qXw64CkC3Ht1WJ6RLMdliCbdQc8K/xIE7d9SxTS 9IgQgwP8GndaH92ppnyz =Z2ft -----END PGP SIGNATURE----- --brhuhlay5acsabzp--