Re: [PATCH] ARM: sun7i: Add Cubietech Einstein A20 board device-tree
Am Freitag, 3. November 2017, 09:44:27 CET schrieb Maxime Ripard: > Hi Frank, > > On Thu, Nov 02, 2017 at 07:59:04PM +0100, Frank Kunz wrote: > > > > + { > > > > + pinctrl-names = "default"; > > > > + pinctrl-0 = <_pins_a>; > > > > + vmmc-supply = <_vcc3v3>; > > > > > > What regulator is this connected to on the PMIC? > > > > Fixed, On the schematic it is finally connected to 3v0. > > Sorry, it wasn't really what I meant. Surely there's a PMIC regulator > providing that 3.0V, you should put that regulator here. > It is not connected to any of the PMIC (AXP209) regulators. There is a dedicated DCDC converter on that board which is driven by IPSOUT. This one generates the 3.0V IO supply. Br, Frank
Re: [PATCH] ARM: sun7i: Add Cubietech Einstein A20 board device-tree
Am Freitag, 3. November 2017, 09:44:27 CET schrieb Maxime Ripard: > Hi Frank, > > On Thu, Nov 02, 2017 at 07:59:04PM +0100, Frank Kunz wrote: > > > > + { > > > > + pinctrl-names = "default"; > > > > + pinctrl-0 = <_pins_a>; > > > > + vmmc-supply = <_vcc3v3>; > > > > > > What regulator is this connected to on the PMIC? > > > > Fixed, On the schematic it is finally connected to 3v0. > > Sorry, it wasn't really what I meant. Surely there's a PMIC regulator > providing that 3.0V, you should put that regulator here. > It is not connected to any of the PMIC (AXP209) regulators. There is a dedicated DCDC converter on that board which is driven by IPSOUT. This one generates the 3.0V IO supply. Br, Frank
[PATCH v2] ARM: sun7i: Add Cubietech Einstein A20 board device-tree
From: Frank Kunz <xmi...@googlemail.com> The Einstein A20 board is a Allwinner A20 based board with a credit card form factor. Features: - Allwinner A20 SoC - DDR3 1GB RAM - 8GiB eMMC - AP6210 wifi/Bluetooth - RTC - Micro USB-OTG connector - UART0 debugging port - 200 pins stamp hole package Signed-off-by: Frank Kunz <xmi...@googlemail.com> --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/sun7i-a20-cubietech-einstein.dts | 198 + 2 files changed, 199 insertions(+) diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index faf46abaa4a2..7bf08aa4e8cb 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -878,6 +878,7 @@ dtb-$(CONFIG_MACH_SUN7I) += \ sun7i-a20-bananapro.dtb \ sun7i-a20-cubieboard2.dtb \ sun7i-a20-cubietruck.dtb \ + sun7i-a20-cubietech-einstein.dtb \ sun7i-a20-hummingbird.dtb \ sun7i-a20-itead-ibox.dtb \ sun7i-a20-i12-tvbox.dtb \ diff --git a/arch/arm/boot/dts/sun7i-a20-cubietech-einstein.dts b/arch/arm/boot/dts/sun7i-a20-cubietech-einstein.dts new file mode 100644 index ..04422c6f03b8 --- /dev/null +++ b/arch/arm/boot/dts/sun7i-a20-cubietech-einstein.dts @@ -0,0 +1,198 @@ +/* + * Copyright 2017 Frank Kunz + * + * Frank Kunz <xmi...@googlemail.com> + * + * 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 file 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 file 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 "sun7i-a20.dtsi" +#include "sunxi-common-regulators.dtsi" + +#include +#include + +/ { + model = "Cubietech Einstein A20"; + compatible = "cubietech,einstein-a20", "allwinner,sun7i-a20"; + + aliases { + serial0 = + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + mmc3_pwrseq: mmc3_pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = < 7 9 GPIO_ACTIVE_LOW>; /* PH9 WIFI-SHDN */ + }; +}; + + { + cpu-supply = <_dcdc2>; +}; + + { + status = "okay"; +}; + + { + pinctrl-names = "default"; + pinctrl-0 = <_pins_a>; + status = "okay"; + + axp209: pmic@34 { + reg = <0x34>; + interrupt-parent = <_intc>; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + }; +}; + + { + pinctrl-names = "default"; + pinctrl-0 = <_pins_a>; + vmmc-supply = <_vcc3v0>; + bus-width = <4>; + non-removable; + status = "okay"; +}; + + { + #address-cells = <1>; + #size-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <_pins_a>; + vmmc-supply = <_vcc3v0>; + mmc-pwrseq = <_pwrseq>; + bus-width = <4>; + non-removable; + wakeup-source; + status = "okay"; + + brcmf: wifi@1 { +
[PATCH v2] ARM: sun7i: Add Cubietech Einstein A20 board device-tree
From: Frank Kunz The Einstein A20 board is a Allwinner A20 based board with a credit card form factor. Features: - Allwinner A20 SoC - DDR3 1GB RAM - 8GiB eMMC - AP6210 wifi/Bluetooth - RTC - Micro USB-OTG connector - UART0 debugging port - 200 pins stamp hole package Signed-off-by: Frank Kunz --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/sun7i-a20-cubietech-einstein.dts | 198 + 2 files changed, 199 insertions(+) diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index faf46abaa4a2..7bf08aa4e8cb 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -878,6 +878,7 @@ dtb-$(CONFIG_MACH_SUN7I) += \ sun7i-a20-bananapro.dtb \ sun7i-a20-cubieboard2.dtb \ sun7i-a20-cubietruck.dtb \ + sun7i-a20-cubietech-einstein.dtb \ sun7i-a20-hummingbird.dtb \ sun7i-a20-itead-ibox.dtb \ sun7i-a20-i12-tvbox.dtb \ diff --git a/arch/arm/boot/dts/sun7i-a20-cubietech-einstein.dts b/arch/arm/boot/dts/sun7i-a20-cubietech-einstein.dts new file mode 100644 index ..04422c6f03b8 --- /dev/null +++ b/arch/arm/boot/dts/sun7i-a20-cubietech-einstein.dts @@ -0,0 +1,198 @@ +/* + * Copyright 2017 Frank Kunz + * + * Frank Kunz + * + * 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 file 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 file 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 "sun7i-a20.dtsi" +#include "sunxi-common-regulators.dtsi" + +#include +#include + +/ { + model = "Cubietech Einstein A20"; + compatible = "cubietech,einstein-a20", "allwinner,sun7i-a20"; + + aliases { + serial0 = + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + mmc3_pwrseq: mmc3_pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = < 7 9 GPIO_ACTIVE_LOW>; /* PH9 WIFI-SHDN */ + }; +}; + + { + cpu-supply = <_dcdc2>; +}; + + { + status = "okay"; +}; + + { + pinctrl-names = "default"; + pinctrl-0 = <_pins_a>; + status = "okay"; + + axp209: pmic@34 { + reg = <0x34>; + interrupt-parent = <_intc>; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + }; +}; + + { + pinctrl-names = "default"; + pinctrl-0 = <_pins_a>; + vmmc-supply = <_vcc3v0>; + bus-width = <4>; + non-removable; + status = "okay"; +}; + + { + #address-cells = <1>; + #size-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <_pins_a>; + vmmc-supply = <_vcc3v0>; + mmc-pwrseq = <_pwrseq>; + bus-width = <4>; + non-removable; + wakeup-source; + status = "okay"; + + brcmf: wifi@1 { + reg = <1>; + compatible = "brcm,bcm4329-fmac"; + inte
Re: [PATCH] ARM: sun7i: Add Cubietech Einstein A20 board device-tree
Am Donnerstag, 2. November 2017, 16:57:36 CET schrieb Maxime Ripard: > Hi Frank, > > Thanks for your patch. > > On Thu, Nov 02, 2017 at 03:35:34PM +0100, Frank Kunz wrote: > > From: Frank Kunz <xmi...@googlemail.com> > > > > The Einstein A20 board is a Allwinner A20 based board with a credit card > > form factor. > > > > Features: > > - Allwinner A20 SoC > > - DDR3 1GB RAM > > - 8GiB eMMC > > - AP6210 wifi/Bluetooth > > - RTC > > - Micro USB-OTG connector > > - UART0 debugging port > > - 200 pins stamp hole package > > > > Signed-off-by: Frank Kunz <xmi...@googlemail.com> > > --- > > > > arch/arm/boot/dts/Makefile | 1 + > > arch/arm/boot/dts/sun7i-a20-einstein.dts | 200 > > +++ 2 files changed, 201 insertions(+) > > create mode 100644 arch/arm/boot/dts/sun7i-a20-einstein.dts > > > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > > index faf46abaa4a2..f9158400ea0f 100644 > > --- a/arch/arm/boot/dts/Makefile > > +++ b/arch/arm/boot/dts/Makefile > > @@ -878,6 +878,7 @@ dtb-$(CONFIG_MACH_SUN7I) += \ > > > > sun7i-a20-bananapro.dtb \ > > sun7i-a20-cubieboard2.dtb \ > > sun7i-a20-cubietruck.dtb \ > > > > + sun7i-a20-einstein.dtb \ > > I guess it's not that obvious from what company that board is coming > from. Could you turn it into cubietech-einstein please? No problem, I will rename it. > > > sun7i-a20-hummingbird.dtb \ > > sun7i-a20-itead-ibox.dtb \ > > sun7i-a20-i12-tvbox.dtb \ > > > > diff --git a/arch/arm/boot/dts/sun7i-a20-einstein.dts > > b/arch/arm/boot/dts/sun7i-a20-einstein.dts new file mode 100644 > > index ..59d46b08f21c > > --- /dev/null > > +++ b/arch/arm/boot/dts/sun7i-a20-einstein.dts > > @@ -0,0 +1,200 @@ > > +/* > > + * Copyright 2017 Frank Kunz > > + * > > + * Frank Kunz <xmi...@googlemail.com> > > + * > > + * 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 file 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 file 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 "sun7i-a20.dtsi" > > +#include "sunxi-common-regulators.dtsi" > > + > > +#include > > +#include > > + > > +/ { > > + model = "Cubietech Einstein A20"; > > + compatible = "cubietech,einstein-a20", "allwinner,sun7i-a20"; > > + > > + ali
Re: [PATCH] ARM: sun7i: Add Cubietech Einstein A20 board device-tree
Am Donnerstag, 2. November 2017, 16:57:36 CET schrieb Maxime Ripard: > Hi Frank, > > Thanks for your patch. > > On Thu, Nov 02, 2017 at 03:35:34PM +0100, Frank Kunz wrote: > > From: Frank Kunz > > > > The Einstein A20 board is a Allwinner A20 based board with a credit card > > form factor. > > > > Features: > > - Allwinner A20 SoC > > - DDR3 1GB RAM > > - 8GiB eMMC > > - AP6210 wifi/Bluetooth > > - RTC > > - Micro USB-OTG connector > > - UART0 debugging port > > - 200 pins stamp hole package > > > > Signed-off-by: Frank Kunz > > --- > > > > arch/arm/boot/dts/Makefile | 1 + > > arch/arm/boot/dts/sun7i-a20-einstein.dts | 200 > > +++ 2 files changed, 201 insertions(+) > > create mode 100644 arch/arm/boot/dts/sun7i-a20-einstein.dts > > > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > > index faf46abaa4a2..f9158400ea0f 100644 > > --- a/arch/arm/boot/dts/Makefile > > +++ b/arch/arm/boot/dts/Makefile > > @@ -878,6 +878,7 @@ dtb-$(CONFIG_MACH_SUN7I) += \ > > > > sun7i-a20-bananapro.dtb \ > > sun7i-a20-cubieboard2.dtb \ > > sun7i-a20-cubietruck.dtb \ > > > > + sun7i-a20-einstein.dtb \ > > I guess it's not that obvious from what company that board is coming > from. Could you turn it into cubietech-einstein please? No problem, I will rename it. > > > sun7i-a20-hummingbird.dtb \ > > sun7i-a20-itead-ibox.dtb \ > > sun7i-a20-i12-tvbox.dtb \ > > > > diff --git a/arch/arm/boot/dts/sun7i-a20-einstein.dts > > b/arch/arm/boot/dts/sun7i-a20-einstein.dts new file mode 100644 > > index ..59d46b08f21c > > --- /dev/null > > +++ b/arch/arm/boot/dts/sun7i-a20-einstein.dts > > @@ -0,0 +1,200 @@ > > +/* > > + * Copyright 2017 Frank Kunz > > + * > > + * Frank Kunz > > + * > > + * 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 file 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 file 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 "sun7i-a20.dtsi" > > +#include "sunxi-common-regulators.dtsi" > > + > > +#include > > +#include > > + > > +/ { > > + model = "Cubietech Einstein A20"; > > + compatible = "cubietech,einstein-a20", "allwinner,sun7i-a20"; > > + > > + aliases { > > + serial0 = > > + }; > > + > > + chosen { > >
[PATCH] ARM: sun7i: Add Cubietech Einstein A20 board device-tree
From: Frank Kunz <xmi...@googlemail.com> The Einstein A20 board is a Allwinner A20 based board with a credit card form factor. Features: - Allwinner A20 SoC - DDR3 1GB RAM - 8GiB eMMC - AP6210 wifi/Bluetooth - RTC - Micro USB-OTG connector - UART0 debugging port - 200 pins stamp hole package Signed-off-by: Frank Kunz <xmi...@googlemail.com> --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/sun7i-a20-einstein.dts | 200 +++ 2 files changed, 201 insertions(+) create mode 100644 arch/arm/boot/dts/sun7i-a20-einstein.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index faf46abaa4a2..f9158400ea0f 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -878,6 +878,7 @@ dtb-$(CONFIG_MACH_SUN7I) += \ sun7i-a20-bananapro.dtb \ sun7i-a20-cubieboard2.dtb \ sun7i-a20-cubietruck.dtb \ + sun7i-a20-einstein.dtb \ sun7i-a20-hummingbird.dtb \ sun7i-a20-itead-ibox.dtb \ sun7i-a20-i12-tvbox.dtb \ diff --git a/arch/arm/boot/dts/sun7i-a20-einstein.dts b/arch/arm/boot/dts/sun7i-a20-einstein.dts new file mode 100644 index ..59d46b08f21c --- /dev/null +++ b/arch/arm/boot/dts/sun7i-a20-einstein.dts @@ -0,0 +1,200 @@ +/* + * Copyright 2017 Frank Kunz + * + * Frank Kunz <xmi...@googlemail.com> + * + * 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 file 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 file 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 "sun7i-a20.dtsi" +#include "sunxi-common-regulators.dtsi" + +#include +#include + +/ { + model = "Cubietech Einstein A20"; + compatible = "cubietech,einstein-a20", "allwinner,sun7i-a20"; + + aliases { + serial0 = + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + mmc3_pwrseq: mmc3_pwrseq { + compatible = "mmc-pwrseq-simple"; + pinctrl-names = "default"; + pinctrl-0 = <_pwrseq_pin_ea20>; + reset-gpios = < 7 9 GPIO_ACTIVE_LOW>; /* PH9 WIFI-SHDN */ + }; +}; + + { + cpu-supply = <_dcdc2>; +}; + + { + status = "okay"; +}; + + { + pinctrl-names = "default"; + pinctrl-0 = <_pins_a>; + status = "okay"; + + axp209: pmic@34 { + reg = <0x34>; + interrupt-parent = <_intc>; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + }; +}; + + { + pinctrl-names = "default"; + pinctrl-0 = <_pins_a>; + vmmc-supply = <_vcc3v3>; + bus-width = <4>; + non-removable; + status = "okay"; +}; + + { + #address-cells = <1>; + #size-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <_pins_a>; + vmmc-supply = <_vcc3v3>; + mmc-pwrseq = <_pwrseq>; + bus-width = <
[PATCH] ARM: sun7i: Add Cubietech Einstein A20 board device-tree
From: Frank Kunz The Einstein A20 board is a Allwinner A20 based board with a credit card form factor. Features: - Allwinner A20 SoC - DDR3 1GB RAM - 8GiB eMMC - AP6210 wifi/Bluetooth - RTC - Micro USB-OTG connector - UART0 debugging port - 200 pins stamp hole package Signed-off-by: Frank Kunz --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/sun7i-a20-einstein.dts | 200 +++ 2 files changed, 201 insertions(+) create mode 100644 arch/arm/boot/dts/sun7i-a20-einstein.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index faf46abaa4a2..f9158400ea0f 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -878,6 +878,7 @@ dtb-$(CONFIG_MACH_SUN7I) += \ sun7i-a20-bananapro.dtb \ sun7i-a20-cubieboard2.dtb \ sun7i-a20-cubietruck.dtb \ + sun7i-a20-einstein.dtb \ sun7i-a20-hummingbird.dtb \ sun7i-a20-itead-ibox.dtb \ sun7i-a20-i12-tvbox.dtb \ diff --git a/arch/arm/boot/dts/sun7i-a20-einstein.dts b/arch/arm/boot/dts/sun7i-a20-einstein.dts new file mode 100644 index ..59d46b08f21c --- /dev/null +++ b/arch/arm/boot/dts/sun7i-a20-einstein.dts @@ -0,0 +1,200 @@ +/* + * Copyright 2017 Frank Kunz + * + * Frank Kunz + * + * 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 file 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 file 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 "sun7i-a20.dtsi" +#include "sunxi-common-regulators.dtsi" + +#include +#include + +/ { + model = "Cubietech Einstein A20"; + compatible = "cubietech,einstein-a20", "allwinner,sun7i-a20"; + + aliases { + serial0 = + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + mmc3_pwrseq: mmc3_pwrseq { + compatible = "mmc-pwrseq-simple"; + pinctrl-names = "default"; + pinctrl-0 = <_pwrseq_pin_ea20>; + reset-gpios = < 7 9 GPIO_ACTIVE_LOW>; /* PH9 WIFI-SHDN */ + }; +}; + + { + cpu-supply = <_dcdc2>; +}; + + { + status = "okay"; +}; + + { + pinctrl-names = "default"; + pinctrl-0 = <_pins_a>; + status = "okay"; + + axp209: pmic@34 { + reg = <0x34>; + interrupt-parent = <_intc>; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + }; +}; + + { + pinctrl-names = "default"; + pinctrl-0 = <_pins_a>; + vmmc-supply = <_vcc3v3>; + bus-width = <4>; + non-removable; + status = "okay"; +}; + + { + #address-cells = <1>; + #size-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <_pins_a>; + vmmc-supply = <_vcc3v3>; + mmc-pwrseq = <_pwrseq>; + bus-width = <4>; + non-removable; + wakeup-source; + status = "okay"; + + brcmf: wifi@