* [PATCH 0/3] arm64: dts: A64 board MMC support
@ 2017-01-10 1:22 Andre Przywara
2017-01-10 1:22 ` [PATCH 1/3] arm64: dts: Pine64: add " Andre Przywara
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Andre Przywara @ 2017-01-10 1:22 UTC (permalink / raw)
To: linux-arm-kernel
These patches here go on top of Maxime's latest A64 MMC series and
enable the MMC controllers on the boards using the A64 SoC.
As the BananaPi-M64 DT now looks different, lets adds support for
that board as well, with one major difference to the Pine64 being the eMMC
chip.
I could't find commit f9ca9b952ee1 Maxime mentioned in his cover letter,
so I applied his patches on top of sunxi/for-next and cherry-picked
b4b8664d29 to fix the arm64 build.
Cheers,
Andre.
Andre Przywara (3):
arm64: dts: Pine64: add MMC support
arm64: dts: sun50i: add UART1 pin nodes
arm64: dts: add BananaPi-M64 support
arch/arm64/boot/dts/allwinner/Makefile | 1 +
.../boot/dts/allwinner/sun50i-a64-bananapi-m64.dts | 120 +++++++++++++++++++++
.../arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 20 ++++
arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 10 ++
4 files changed, 151 insertions(+)
create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts
--
2.8.2
^ permalink raw reply [flat|nested] 8+ messages in thread* [PATCH 1/3] arm64: dts: Pine64: add MMC support 2017-01-10 1:22 [PATCH 0/3] arm64: dts: A64 board MMC support Andre Przywara @ 2017-01-10 1:22 ` Andre Przywara 2017-01-10 9:24 ` kbuild test robot 2017-01-10 1:22 ` [PATCH 2/3] arm64: dts: sun50i: add UART1 pin nodes Andre Przywara ` (2 subsequent siblings) 3 siblings, 1 reply; 8+ messages in thread From: Andre Przywara @ 2017-01-10 1:22 UTC (permalink / raw) To: linux-arm-kernel All Pine64 boards connect an micro-SD card slot to the first MMC controller. Enable the respective DT node and specify the (always-on) regulator and card-detect pin. As a micro-SD slot does not feature a write-protect switch, we disable this feature. Signed-off-by: Andre Przywara <andre.przywara@arm.com> --- arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts index cf91051..c680ed3 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts @@ -44,6 +44,8 @@ #include "sun50i-a64.dtsi" +#include <dt-bindings/gpio/gpio.h> + / { model = "Pine64"; compatible = "pine64,pine64", "allwinner,sun50i-a64"; @@ -55,6 +57,13 @@ chosen { stdout-path = "serial0:115200n8"; }; + + reg_vcc3v3: vcc3v3 { + compatible = "regulator-fixed"; + regulator-name = "vcc3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; }; &ehci1 { @@ -71,6 +80,17 @@ bias-pull-up; }; +&mmc0 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_pins>; + vmmc-supply = <®_vcc3v3>; + cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; + cd-inverted; + disable-wp; + bus-width = <4>; + status = "okay"; +}; + &ohci1 { status = "okay"; }; -- 2.8.2 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 1/3] arm64: dts: Pine64: add MMC support 2017-01-10 1:22 ` [PATCH 1/3] arm64: dts: Pine64: add " Andre Przywara @ 2017-01-10 9:24 ` kbuild test robot 0 siblings, 0 replies; 8+ messages in thread From: kbuild test robot @ 2017-01-10 9:24 UTC (permalink / raw) To: linux-arm-kernel Hi Andre, [auto build test ERROR on mripard/sunxi/for-next] [also build test ERROR on next-20170110] [cannot apply to robh/for-next v4.10-rc3] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Andre-Przywara/arm64-dts-A64-board-MMC-support/20170110-124554 base: https://git.kernel.org/pub/scm/linux/kernel/git/mripard/linux.git sunxi/for-next config: arm64-defconfig (attached as .config) compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=arm64 All errors (new ones prefixed by >>): >> Error: arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts:83.1-6 Label or path mmc0 not found >> FATAL ERROR: Syntax error parsing input tree --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation -------------- next part -------------- A non-text attachment was scrubbed... Name: .config.gz Type: application/gzip Size: 33694 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170110/b272af74/attachment-0001.gz> ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/3] arm64: dts: sun50i: add UART1 pin nodes 2017-01-10 1:22 [PATCH 0/3] arm64: dts: A64 board MMC support Andre Przywara 2017-01-10 1:22 ` [PATCH 1/3] arm64: dts: Pine64: add " Andre Przywara @ 2017-01-10 1:22 ` Andre Przywara 2017-01-10 1:22 ` [PATCH 3/3] arm64: dts: add BananaPi-M64 support Andre Przywara 2017-01-11 13:51 ` [PATCH 0/3] arm64: dts: A64 board MMC support Maxime Ripard 3 siblings, 0 replies; 8+ messages in thread From: Andre Przywara @ 2017-01-10 1:22 UTC (permalink / raw) To: linux-arm-kernel On many boards UART1 connects to a Bluetooth chip, so add the pinctrl nodes for the only pins providing access to that UART. That includes those pins for hardware flow control (RTS/CTS). Signed-off-by: Andre Przywara <andre.przywara@arm.com> --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index f46ae96..419b0b1 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -234,6 +234,16 @@ pins = "PB8", "PB9"; function = "uart0"; }; + + uart1_pins: uart1_pins { + pins = "PG6", "PG7"; + function = "uart1"; + }; + + uart1_rts_cts_pins: uart1_rts_cts_pins { + pins = "PG8", "PG9"; + function = "uart1"; + }; }; uart0: serial at 1c28000 { -- 2.8.2 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 3/3] arm64: dts: add BananaPi-M64 support 2017-01-10 1:22 [PATCH 0/3] arm64: dts: A64 board MMC support Andre Przywara 2017-01-10 1:22 ` [PATCH 1/3] arm64: dts: Pine64: add " Andre Przywara 2017-01-10 1:22 ` [PATCH 2/3] arm64: dts: sun50i: add UART1 pin nodes Andre Przywara @ 2017-01-10 1:22 ` Andre Przywara 2017-01-10 13:37 ` kbuild test robot 2017-01-11 13:51 ` [PATCH 0/3] arm64: dts: A64 board MMC support Maxime Ripard 3 siblings, 1 reply; 8+ messages in thread From: Andre Przywara @ 2017-01-10 1:22 UTC (permalink / raw) To: linux-arm-kernel The Banana Pi M64 board is a typical single board computer based on the Allwinner A64 SoC. Aside from the usual peripherals it features eMMC storage, which is connected to the 8-bit capable SDHC2 controller. Also it has a soldered WiFi/Bluetooth chip, so we enable UART1 and SDHC1 as those two interfaces are connected to it. Signed-off-by: Andre Przywara <andre.przywara@arm.com> --- arch/arm64/boot/dts/allwinner/Makefile | 1 + .../boot/dts/allwinner/sun50i-a64-bananapi-m64.dts | 120 +++++++++++++++++++++ 2 files changed, 121 insertions(+) create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile index 1e29a5a..bc6f342 100644 --- a/arch/arm64/boot/dts/allwinner/Makefile +++ b/arch/arm64/boot/dts/allwinner/Makefile @@ -1,3 +1,4 @@ +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-bananapi-m64.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pine64-plus.dtb sun50i-a64-pine64.dtb always := $(dtb-y) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts new file mode 100644 index 0000000..6872135 --- /dev/null +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts @@ -0,0 +1,120 @@ +/* + * 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 "sun50i-a64.dtsi" + +#include <dt-bindings/gpio/gpio.h> + +/ { + model = "BananaPi-M64"; + compatible = "sinovoip,bananapi-m64", "allwinner,sun50i-a64"; + + aliases { + serial0 = &uart0; + serial1 = &uart1; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + reg_vcc3v3: vcc3v3 { + compatible = "regulator-fixed"; + regulator-name = "vcc3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; +}; + +&i2c1 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c1_pins>; + status = "okay"; +}; + +&i2c1_pins { + bias-pull-up; +}; + +&mmc0 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_pins>; + vmmc-supply = <®_vcc3v3>; + cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; + cd-inverted; + disable-wp; + bus-width = <4>; + status = "okay"; +}; + +&mmc1 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc1_pins>; + vmmc-supply = <®_vcc3v3>; + bus-width = <4>; + non-removable; + status = "okay"; +}; + +&mmc2 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc2_pins>; + vmmc-supply = <®_vcc3v3>; + bus-width = <8>; + non-removable; + cap-mmc-hw-reset; + status = "okay"; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pins_a>; + status = "okay"; +}; + +&uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; + status = "okay"; +}; -- 2.8.2 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 3/3] arm64: dts: add BananaPi-M64 support 2017-01-10 1:22 ` [PATCH 3/3] arm64: dts: add BananaPi-M64 support Andre Przywara @ 2017-01-10 13:37 ` kbuild test robot 0 siblings, 0 replies; 8+ messages in thread From: kbuild test robot @ 2017-01-10 13:37 UTC (permalink / raw) To: linux-arm-kernel Hi Andre, [auto build test ERROR on mripard/sunxi/for-next] [also build test ERROR on next-20170110] [cannot apply to robh/for-next v4.10-rc3] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Andre-Przywara/arm64-dts-A64-board-MMC-support/20170110-124554 base: https://git.kernel.org/pub/scm/linux/kernel/git/mripard/linux.git sunxi/for-next config: arm64-defconfig (attached as .config) compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=arm64 All errors (new ones prefixed by >>): >> Error: arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts:80.1-6 Label or path mmc0 not found >> Error: arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts:91.1-6 Label or path mmc1 not found >> Error: arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts:100.1-6 Label or path mmc2 not found FATAL ERROR: Syntax error parsing input tree --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation -------------- next part -------------- A non-text attachment was scrubbed... Name: .config.gz Type: application/gzip Size: 33694 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170110/903bf854/attachment-0001.gz> ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 0/3] arm64: dts: A64 board MMC support 2017-01-10 1:22 [PATCH 0/3] arm64: dts: A64 board MMC support Andre Przywara ` (2 preceding siblings ...) 2017-01-10 1:22 ` [PATCH 3/3] arm64: dts: add BananaPi-M64 support Andre Przywara @ 2017-01-11 13:51 ` Maxime Ripard 2017-01-11 14:24 ` Andre Przywara 3 siblings, 1 reply; 8+ messages in thread From: Maxime Ripard @ 2017-01-11 13:51 UTC (permalink / raw) To: linux-arm-kernel Hi, On Tue, Jan 10, 2017 at 01:22:30AM +0000, Andre Przywara wrote: > These patches here go on top of Maxime's latest A64 MMC series and > enable the MMC controllers on the boards using the A64 SoC. > As the BananaPi-M64 DT now looks different, lets adds support for > that board as well, with one major difference to the Pine64 being the eMMC > chip. > > I could't find commit f9ca9b952ee1 Maxime mentioned in his cover letter, > so I applied his patches on top of sunxi/for-next and cherry-picked > b4b8664d29 to fix the arm64 build. I'm fine with all your patches. I've queued them in my MMC series, and will continue pushing them and / or merging them if it's ok for you. Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170111/753e0bee/attachment.sig> ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 0/3] arm64: dts: A64 board MMC support 2017-01-11 13:51 ` [PATCH 0/3] arm64: dts: A64 board MMC support Maxime Ripard @ 2017-01-11 14:24 ` Andre Przywara 0 siblings, 0 replies; 8+ messages in thread From: Andre Przywara @ 2017-01-11 14:24 UTC (permalink / raw) To: linux-arm-kernel Hi, On 11/01/17 13:51, Maxime Ripard wrote: > Hi, > > On Tue, Jan 10, 2017 at 01:22:30AM +0000, Andre Przywara wrote: >> These patches here go on top of Maxime's latest A64 MMC series and >> enable the MMC controllers on the boards using the A64 SoC. >> As the BananaPi-M64 DT now looks different, lets adds support for >> that board as well, with one major difference to the Pine64 being the eMMC >> chip. >> >> I could't find commit f9ca9b952ee1 Maxime mentioned in his cover letter, >> so I applied his patches on top of sunxi/for-next and cherry-picked >> b4b8664d29 to fix the arm64 build. > > I'm fine with all your patches. I've queued them in my MMC series, and > will continue pushing them and / or merging them if it's ok for you. Yes, please do! Many thanks! Cheers, Andre. ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2017-01-11 14:24 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-01-10 1:22 [PATCH 0/3] arm64: dts: A64 board MMC support Andre Przywara 2017-01-10 1:22 ` [PATCH 1/3] arm64: dts: Pine64: add " Andre Przywara 2017-01-10 9:24 ` kbuild test robot 2017-01-10 1:22 ` [PATCH 2/3] arm64: dts: sun50i: add UART1 pin nodes Andre Przywara 2017-01-10 1:22 ` [PATCH 3/3] arm64: dts: add BananaPi-M64 support Andre Przywara 2017-01-10 13:37 ` kbuild test robot 2017-01-11 13:51 ` [PATCH 0/3] arm64: dts: A64 board MMC support Maxime Ripard 2017-01-11 14:24 ` Andre Przywara
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).