From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752083AbcBEJDp (ORCPT ); Fri, 5 Feb 2016 04:03:45 -0500 Received: from down.free-electrons.com ([37.187.137.238]:50518 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751147AbcBEJDj (ORCPT ); Fri, 5 Feb 2016 04:03:39 -0500 Date: Fri, 5 Feb 2016 10:03:37 +0100 From: Maxime Ripard To: Andre Przywara Cc: Chen-Yu Tsai , linux-sunxi@googlegroups.com, Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Catalin Marinas , Will Deacon , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , devicetree@vger.kernel.org Subject: Re: [PATCH 11/11] arm64: dts: add Pine64 support Message-ID: <20160205090337.GB1139@lukather> References: <1454348370-3816-1-git-send-email-andre.przywara@arm.com> <1454348370-3816-12-git-send-email-andre.przywara@arm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="61jdw2sOBCFtR2d/" Content-Disposition: inline In-Reply-To: <1454348370-3816-12-git-send-email-andre.przywara@arm.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --61jdw2sOBCFtR2d/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Mon, Feb 01, 2016 at 05:39:30PM +0000, Andre Przywara wrote: > The Pine64 is a cost-efficient development board based on the > Allwinner A64 SoC. > There are three models: the basic version with Fast Ethernet and > 512 MB of DRAM (Pine64) and two Pine64+ versions, which both > feature Gigabit Ethernet and additional connectors for touchscreens > and a camera. Or as my son put it: "Those are smaller and these are > missing." ;-) > The two Pine64+ models just differ in the amount of DRAM > (1GB vs. 2GB). Since U-Boot will figure out the right size for us and > patches the DT accordingly we just need to provide one DT for the > Pine64+. >=20 > Signed-off-by: Andre Przywara > --- > .../devicetree/bindings/vendor-prefixes.txt | 1 + > arch/arm64/boot/dts/Makefile | 1 + > arch/arm64/boot/dts/allwinner/Makefile | 5 ++ > arch/arm64/boot/dts/allwinner/pine64.dts | 58 +++++++++++++++++ > arch/arm64/boot/dts/allwinner/pine64_common.dtsi | 76 ++++++++++++++++= ++++++ > arch/arm64/boot/dts/allwinner/pine64_plus.dts | 59 +++++++++++++++++ > 6 files changed, 200 insertions(+) > create mode 100644 arch/arm64/boot/dts/allwinner/Makefile > create mode 100644 arch/arm64/boot/dts/allwinner/pine64.dts > create mode 100644 arch/arm64/boot/dts/allwinner/pine64_common.dtsi > create mode 100644 arch/arm64/boot/dts/allwinner/pine64_plus.dts >=20 > diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Docu= mentation/devicetree/bindings/vendor-prefixes.txt > index 72e2c5a..0c22fa9 100644 > --- a/Documentation/devicetree/bindings/vendor-prefixes.txt > +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt > @@ -175,6 +175,7 @@ parade Parade Technologies Inc. > pericom Pericom Technology Inc. > phytec PHYTEC Messtechnik GmbH > picochip Picochip Ltd > +pine64 Pine64 > plathome Plat'Home Co., Ltd. > plda PLDA > pixcir PIXCIR MICROELECTRONICS Co., Ltd Please make a separate patch for this one. > diff --git a/arch/arm64/boot/dts/Makefile b/arch/arm64/boot/dts/Makefile > index f832b8a..3b7428a 100644 > --- a/arch/arm64/boot/dts/Makefile > +++ b/arch/arm64/boot/dts/Makefile > @@ -1,3 +1,4 @@ > +dts-dirs +=3D allwinner Could you also add a patch to add this path to MAINTAINERS too? > dts-dirs +=3D altera > dts-dirs +=3D amd > dts-dirs +=3D apm > diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts= /allwinner/Makefile > new file mode 100644 > index 0000000..65f4e24 > --- /dev/null > +++ b/arch/arm64/boot/dts/allwinner/Makefile > @@ -0,0 +1,5 @@ > +dtb-$(CONFIG_ARCH_SUNXI) +=3D pine64_plus.dtb pine64.dtb > + > +always :=3D $(dtb-y) > +subdir-y :=3D $(dts-dirs) > +clean-files :=3D *.dtb > diff --git a/arch/arm64/boot/dts/allwinner/pine64.dts b/arch/arm64/boot/d= ts/allwinner/pine64.dts > new file mode 100644 > index 0000000..ebea5dd > --- /dev/null > +++ b/arch/arm64/boot/dts/allwinner/pine64.dts > @@ -0,0 +1,58 @@ > +/* > + * Copyright (c) 2016 ARM Ltd. > + * > + * This file is dual-licensed: you can use it either under the terms > + * of the GPL or the X11 license, at your option. Note that this dual > + * licensing only applies to this file, and not this project as a > + * whole. > + * > + * a) This library is free software; you can redistribute it and/or > + * modify it under the terms of the GNU General Public License as > + * published by the Free Software Foundation; either version 2 of the > + * License, or (at your option) any later version. > + * > + * This library is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * Or, alternatively, > + * > + * b) Permission is hereby granted, free of charge, to any person > + * obtaining a copy of this software and associated documentation > + * files (the "Software"), to deal in the Software without > + * restriction, including without limitation the rights to use, > + * copy, modify, merge, publish, distribute, sublicense, and/or > + * sell copies of the Software, and to permit persons to whom the > + * Software is furnished to do so, subject to the following > + * conditions: > + * > + * The above copyright notice and this permission notice shall be > + * included in all copies or substantial portions of the Software. > + * > + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, > + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES > + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND > + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT > + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, > + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING > + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR > + * OTHER DEALINGS IN THE SOFTWARE. > + */ > + > +/dts-v1/; > + > +#include "pine64_common.dtsi" > + > +/ { > + model =3D "Pine64"; > + compatible =3D "pine64,pine64", "allwinner,a64", "allwinner,sunxi"; > + > + chosen { > + stdout-path =3D "serial0:115200n8"; > + }; > + > + memory { > + reg =3D <0x40000000 0x20000000>; > + }; > +}; > diff --git a/arch/arm64/boot/dts/allwinner/pine64_common.dtsi b/arch/arm6= 4/boot/dts/allwinner/pine64_common.dtsi > new file mode 100644 > index 0000000..d968d76 > --- /dev/null > +++ b/arch/arm64/boot/dts/allwinner/pine64_common.dtsi > @@ -0,0 +1,76 @@ > +/* > + * Copyright (c) 2016 ARM Ltd. > + * > + * This file is dual-licensed: you can use it either under the terms > + * of the GPL or the X11 license, at your option. Note that this dual > + * licensing only applies to this file, and not this project as a > + * whole. > + * > + * a) This library is free software; you can redistribute it and/or > + * modify it under the terms of the GNU General Public License as > + * published by the Free Software Foundation; either version 2 of the > + * License, or (at your option) any later version. > + * > + * This library is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * Or, alternatively, > + * > + * b) Permission is hereby granted, free of charge, to any person > + * obtaining a copy of this software and associated documentation > + * files (the "Software"), to deal in the Software without > + * restriction, including without limitation the rights to use, > + * copy, modify, merge, publish, distribute, sublicense, and/or > + * sell copies of the Software, and to permit persons to whom the > + * Software is furnished to do so, subject to the following > + * conditions: > + * > + * The above copyright notice and this permission notice shall be > + * included in all copies or substantial portions of the Software. > + * > + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, > + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES > + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND > + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT > + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, > + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING > + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR > + * OTHER DEALINGS IN THE SOFTWARE. > + */ > + > +#include "a64.dtsi" > + > +&mmc0 { > + pinctrl-names =3D "default"; > + pinctrl-0 =3D <&mmc0_pins>, <&mmc0_default_cd_pin>; > + vmmc-supply =3D <®_vcc3v3>; > + cd-gpios =3D <&pio 5 6 0>; > + cd-inverted; > + status =3D "okay"; > +}; > + > +&uart0 { > + pinctrl-names =3D "default"; > + pinctrl-0 =3D <&uart0_pins_a>; > + status =3D "okay"; > +}; > + > +&uart2 { > + pinctrl-names =3D "default"; > + pinctrl-0 =3D <&uart2_pins>; > + status =3D "okay"; > +}; > + > +&uart3 { > + pinctrl-names =3D "default"; > + pinctrl-0 =3D <&uart3_pins_a>; > + status =3D "okay"; > +}; > + > +&uart4 { > + pinctrl-names =3D "default"; > + pinctrl-0 =3D <&uart4_pins>; > + status =3D "okay"; > +}; Our policy for boards with "open" pin headers the user can plug anything he wants is that unless the pin is explicitly dedicated to that usage, we simply leave them aside so that we don't enforce anything. =46rom the quick look at the schematics, I guess only the UART0 on the 10-pin expansion header is elligible. > diff --git a/arch/arm64/boot/dts/allwinner/pine64_plus.dts b/arch/arm64/b= oot/dts/allwinner/pine64_plus.dts > new file mode 100644 > index 0000000..344752e > --- /dev/null > +++ b/arch/arm64/boot/dts/allwinner/pine64_plus.dts > @@ -0,0 +1,59 @@ > +/* > + * Copyright (c) 2016 ARM Ltd. > + * > + * This file is dual-licensed: you can use it either under the terms > + * of the GPL or the X11 license, at your option. Note that this dual > + * licensing only applies to this file, and not this project as a > + * whole. > + * > + * a) This library is free software; you can redistribute it and/or > + * modify it under the terms of the GNU General Public License as > + * published by the Free Software Foundation; either version 2 of the > + * License, or (at your option) any later version. > + * > + * This library is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * Or, alternatively, > + * > + * b) Permission is hereby granted, free of charge, to any person > + * obtaining a copy of this software and associated documentation > + * files (the "Software"), to deal in the Software without > + * restriction, including without limitation the rights to use, > + * copy, modify, merge, publish, distribute, sublicense, and/or > + * sell copies of the Software, and to permit persons to whom the > + * Software is furnished to do so, subject to the following > + * conditions: > + * > + * The above copyright notice and this permission notice shall be > + * included in all copies or substantial portions of the Software. > + * > + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, > + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES > + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND > + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT > + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, > + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING > + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR > + * OTHER DEALINGS IN THE SOFTWARE. > + */ > + > +/dts-v1/; > + > +#include "pine64_common.dtsi" > + > +/ { > + model =3D "Pine64+"; > + compatible =3D "pine64,pine64_plus", "allwinner,a64", "allwinner,sunxi"; The usual separator in the compatibles is a dash and not an underscore. Thanks! Maxime --=20 Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com --61jdw2sOBCFtR2d/ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJWtGVpAAoJEBx+YmzsjxAg+cQP/Rj2zLCSVIY1NYAFoT/lbPtF lolk1VDfYfAHV9anEMNWFB5Lz3zfWdSEDigDpz6sXGpYcv2Gn5dbCU8NmYrdTubx d7Nbv26jFQEZNVDbdF1L1XhqB1NZrEp6bGY4pxC7QDvQbyMjB3YGnyiynDbM+JKb eFAOEVe5zX6DrtrVN1xc35Yfg22psWhEFPHYDR5cQEtj6MykzEXGWIbJYyEgth/q MBiFDTfyoIO/4580JtLVqYXZ/bb0r+bakJW49NUVy7KXqa09moIXU9xw5TMwhitL lwr9WXOTGjs/tZkQ8VFrZzph6aqV8kmXAYtMf0cxPq7ZC+njgBAcjhB7ScpmYFSq r8tUatqYtx9NNAIhwfaFPqhANTrSnkhDeXDAj1GlXdEvhSRtZys3IDbd3f0DfKaE XrqNU3cMRHFXpX6T66MG4w7NBknmvzjiIgC0tiBLYftN/RLIV00CV5SCauw8i+FD 3mZ8U8XjZ55e3cBnXPvzY23HurOPYG0wIJJHj/hkIffKzNpd27VmzvWtkCmN3lMX 5lEtv+z94nQJyqnETfXSP9gGAqsuQ4irL7TqZxmnm3Jtd3I2QCEy1S6bF3A9ZazZ rL6pZg24R4W8uAw83Nr6bcsIcQLUHnyzfvHZgcA8ln69TH7I6+ELISHY7zhZbqMc XVD8pIfZyPL7pL7bufz5 =nGu+ -----END PGP SIGNATURE----- --61jdw2sOBCFtR2d/--