ARM: dts: sun9i: Add A80 Optimus Board support
The A80 Optimus Board is was launched with the Allwinner A80 SoC.
It was jointly developed by Allwinner and Merrii.
This board has a UART port, a JTAG connector, USB host ports, a USB
3.0 OTG connector, an HDMI output, a micro SD slot, 8G NAND flash,
4G DRAM, a camera sensor interface, a WiFi/BT combo chip, a headphone
jack, IR receiver, and additional GPIO headers.
This patch adds only basic support.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Tested-by: Andreas Färber <afaerber@suse.de>
2014-10-08 20:02:54 +07:00
|
|
|
/*
|
|
|
|
* Copyright 2014 Chen-Yu Tsai
|
|
|
|
*
|
|
|
|
* Chen-Yu Tsai <wens@csie.org>
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
2014-10-17 16:38:23 +07:00
|
|
|
* a) This file is free software; you can redistribute it and/or
|
ARM: dts: sun9i: Add A80 Optimus Board support
The A80 Optimus Board is was launched with the Allwinner A80 SoC.
It was jointly developed by Allwinner and Merrii.
This board has a UART port, a JTAG connector, USB host ports, a USB
3.0 OTG connector, an HDMI output, a micro SD slot, 8G NAND flash,
4G DRAM, a camera sensor interface, a WiFi/BT combo chip, a headphone
jack, IR receiver, and additional GPIO headers.
This patch adds only basic support.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Tested-by: Andreas Färber <afaerber@suse.de>
2014-10-08 20:02:54 +07:00
|
|
|
* 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.
|
|
|
|
*
|
2014-10-17 16:38:23 +07:00
|
|
|
* This file is distributed in the hope that it will be useful,
|
ARM: dts: sun9i: Add A80 Optimus Board support
The A80 Optimus Board is was launched with the Allwinner A80 SoC.
It was jointly developed by Allwinner and Merrii.
This board has a UART port, a JTAG connector, USB host ports, a USB
3.0 OTG connector, an HDMI output, a micro SD slot, 8G NAND flash,
4G DRAM, a camera sensor interface, a WiFi/BT combo chip, a headphone
jack, IR receiver, and additional GPIO headers.
This patch adds only basic support.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Tested-by: Andreas Färber <afaerber@suse.de>
2014-10-08 20:02:54 +07:00
|
|
|
* 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/;
|
2014-12-17 04:59:54 +07:00
|
|
|
#include "sun9i-a80.dtsi"
|
2015-01-17 12:19:32 +07:00
|
|
|
#include "sunxi-common-regulators.dtsi"
|
ARM: dts: sun9i: Add A80 Optimus Board support
The A80 Optimus Board is was launched with the Allwinner A80 SoC.
It was jointly developed by Allwinner and Merrii.
This board has a UART port, a JTAG connector, USB host ports, a USB
3.0 OTG connector, an HDMI output, a micro SD slot, 8G NAND flash,
4G DRAM, a camera sensor interface, a WiFi/BT combo chip, a headphone
jack, IR receiver, and additional GPIO headers.
This patch adds only basic support.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Tested-by: Andreas Färber <afaerber@suse.de>
2014-10-08 20:02:54 +07:00
|
|
|
|
2014-12-17 04:59:55 +07:00
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
2014-12-17 04:59:57 +07:00
|
|
|
#include <dt-bindings/pinctrl/sun4i-a10.h>
|
ARM: dts: sun9i: Add A80 Optimus Board support
The A80 Optimus Board is was launched with the Allwinner A80 SoC.
It was jointly developed by Allwinner and Merrii.
This board has a UART port, a JTAG connector, USB host ports, a USB
3.0 OTG connector, an HDMI output, a micro SD slot, 8G NAND flash,
4G DRAM, a camera sensor interface, a WiFi/BT combo chip, a headphone
jack, IR receiver, and additional GPIO headers.
This patch adds only basic support.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Tested-by: Andreas Färber <afaerber@suse.de>
2014-10-08 20:02:54 +07:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Merrii A80 Optimus Board";
|
|
|
|
compatible = "merrii,a80-optimus", "allwinner,sun9i-a80";
|
|
|
|
|
2015-01-23 04:10:54 +07:00
|
|
|
aliases {
|
|
|
|
serial0 = &uart0;
|
|
|
|
serial1 = &uart4;
|
|
|
|
};
|
|
|
|
|
ARM: dts: sun9i: Add A80 Optimus Board support
The A80 Optimus Board is was launched with the Allwinner A80 SoC.
It was jointly developed by Allwinner and Merrii.
This board has a UART port, a JTAG connector, USB host ports, a USB
3.0 OTG connector, an HDMI output, a micro SD slot, 8G NAND flash,
4G DRAM, a camera sensor interface, a WiFi/BT combo chip, a headphone
jack, IR receiver, and additional GPIO headers.
This patch adds only basic support.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Tested-by: Andreas Färber <afaerber@suse.de>
2014-10-08 20:02:54 +07:00
|
|
|
chosen {
|
2015-03-16 02:47:31 +07:00
|
|
|
stdout-path = "serial0:115200n8";
|
ARM: dts: sun9i: Add A80 Optimus Board support
The A80 Optimus Board is was launched with the Allwinner A80 SoC.
It was jointly developed by Allwinner and Merrii.
This board has a UART port, a JTAG connector, USB host ports, a USB
3.0 OTG connector, an HDMI output, a micro SD slot, 8G NAND flash,
4G DRAM, a camera sensor interface, a WiFi/BT combo chip, a headphone
jack, IR receiver, and additional GPIO headers.
This patch adds only basic support.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Tested-by: Andreas Färber <afaerber@suse.de>
2014-10-08 20:02:54 +07:00
|
|
|
};
|
|
|
|
|
2014-10-31 10:05:49 +07:00
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
pinctrl-names = "default";
|
2015-12-01 12:47:21 +07:00
|
|
|
pinctrl-0 = <&led_pins_optimus>, <&led_r_pins_optimus>;
|
2014-10-31 10:05:49 +07:00
|
|
|
|
|
|
|
/* The LED names match those found on the board */
|
|
|
|
|
|
|
|
led2 {
|
|
|
|
label = "optimus:led2:usr";
|
2014-12-17 04:59:55 +07:00
|
|
|
gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>;
|
2014-10-31 10:05:49 +07:00
|
|
|
};
|
|
|
|
|
2015-12-01 12:47:21 +07:00
|
|
|
led3 {
|
|
|
|
label = "optimus:led3:usr";
|
|
|
|
gpios = <&r_pio 1 15 GPIO_ACTIVE_HIGH>; /* PM15 */
|
|
|
|
};
|
2014-10-31 10:05:49 +07:00
|
|
|
|
|
|
|
led4 {
|
|
|
|
label = "optimus:led4:usr";
|
2014-12-17 04:59:55 +07:00
|
|
|
gpios = <&pio 7 0 GPIO_ACTIVE_HIGH>;
|
2014-10-31 10:05:49 +07:00
|
|
|
};
|
|
|
|
};
|
2015-02-03 05:22:03 +07:00
|
|
|
|
|
|
|
reg_usb3_vbus: usb3-vbus {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&usb3_vbus_pin_optimus>;
|
|
|
|
regulator-name = "usb3-vbus";
|
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
enable-active-high;
|
|
|
|
gpio = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&ehci0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&ehci1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&ehci2 {
|
|
|
|
status = "okay";
|
ARM: dts: sun9i: Add A80 Optimus Board support
The A80 Optimus Board is was launched with the Allwinner A80 SoC.
It was jointly developed by Allwinner and Merrii.
This board has a UART port, a JTAG connector, USB host ports, a USB
3.0 OTG connector, an HDMI output, a micro SD slot, 8G NAND flash,
4G DRAM, a camera sensor interface, a WiFi/BT combo chip, a headphone
jack, IR receiver, and additional GPIO headers.
This patch adds only basic support.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Tested-by: Andreas Färber <afaerber@suse.de>
2014-10-08 20:02:54 +07:00
|
|
|
};
|
2015-01-17 12:19:31 +07:00
|
|
|
|
2015-02-03 05:22:03 +07:00
|
|
|
&ohci0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&ohci2 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2015-01-17 12:19:31 +07:00
|
|
|
&pio {
|
|
|
|
led_pins_optimus: led-pins@0 {
|
|
|
|
allwinner,pins = "PH0", "PH1";
|
|
|
|
allwinner,function = "gpio_out";
|
|
|
|
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
|
|
|
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
|
|
|
};
|
2015-01-17 12:19:32 +07:00
|
|
|
|
|
|
|
mmc0_cd_pin_optimus: mmc0_cd_pin@0 {
|
|
|
|
allwinner,pins = "PH18";
|
|
|
|
allwinner,function = "gpio_in";
|
|
|
|
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
|
|
|
allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
|
|
|
|
};
|
2015-02-03 05:22:03 +07:00
|
|
|
|
|
|
|
usb1_vbus_pin_optimus: usb1_vbus_pin@1 {
|
|
|
|
allwinner,pins = "PH4";
|
|
|
|
allwinner,function = "gpio_out";
|
|
|
|
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
|
|
|
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
|
|
|
};
|
|
|
|
|
|
|
|
usb3_vbus_pin_optimus: usb3_vbus_pin@1 {
|
|
|
|
allwinner,pins = "PH5";
|
|
|
|
allwinner,function = "gpio_out";
|
|
|
|
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
|
|
|
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
|
|
|
};
|
2015-01-17 12:19:32 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
&mmc0 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&mmc0_pins>, <&mmc0_cd_pin_optimus>;
|
|
|
|
vmmc-supply = <®_vcc3v0>;
|
|
|
|
bus-width = <4>;
|
|
|
|
cd-gpios = <&pio 7 18 GPIO_ACTIVE_HIGH>; /* PH8 */
|
|
|
|
cd-inverted;
|
|
|
|
status = "okay";
|
2015-01-17 12:19:31 +07:00
|
|
|
};
|
|
|
|
|
2015-01-17 12:19:34 +07:00
|
|
|
&mmc2 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&mmc2_8bit_pins>;
|
|
|
|
vmmc-supply = <®_vcc3v0>;
|
|
|
|
bus-width = <8>;
|
|
|
|
non-removable;
|
2016-01-21 12:26:41 +07:00
|
|
|
cap-mmc-hw-reset;
|
2015-01-17 12:19:34 +07:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2016-01-21 12:26:41 +07:00
|
|
|
&mmc2_8bit_pins {
|
|
|
|
/* Increase drive strength for DDR modes */
|
|
|
|
allwinner,drive = <SUN4I_PINCTRL_40_MA>;
|
|
|
|
};
|
|
|
|
|
2015-02-03 05:22:03 +07:00
|
|
|
®_usb1_vbus {
|
|
|
|
pinctrl-0 = <&usb1_vbus_pin_optimus>;
|
|
|
|
gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2015-12-01 12:47:23 +07:00
|
|
|
&r_ir {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2015-12-01 12:47:21 +07:00
|
|
|
&r_pio {
|
|
|
|
led_r_pins_optimus: led-pins@1 {
|
|
|
|
allwinner,pins = "PM15";
|
|
|
|
allwinner,function = "gpio_out";
|
|
|
|
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
|
|
|
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-12-01 12:47:25 +07:00
|
|
|
&r_rsb {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2015-01-17 12:19:31 +07:00
|
|
|
&uart0 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&uart0_pins_a>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2015-02-03 05:22:03 +07:00
|
|
|
&usbphy1 {
|
2015-03-14 10:57:17 +07:00
|
|
|
phy-supply = <®_usb1_vbus>;
|
2015-02-03 05:22:03 +07:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usbphy2 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usbphy3 {
|
2015-03-14 10:57:17 +07:00
|
|
|
phy-supply = <®_usb3_vbus>;
|
2015-02-03 05:22:03 +07:00
|
|
|
status = "okay";
|
|
|
|
};
|