2014-03-02 03:26:37 +08:00
|
|
|
/*
|
|
|
|
* Copyright 2014 - Hans de Goede <hdegoede@redhat.com>
|
|
|
|
*
|
2014-09-03 01:25:26 +08:00
|
|
|
* 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-03-02 03:26:37 +08:00
|
|
|
*
|
2014-09-03 01:25:26 +08:00
|
|
|
* 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.
|
2014-03-02 03:26:37 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
2014-12-17 05:59:54 +08:00
|
|
|
#include "sun4i-a10.dtsi"
|
|
|
|
#include "sunxi-common-regulators.dtsi"
|
2014-03-02 03:26:37 +08:00
|
|
|
|
2014-12-17 05:59:55 +08:00
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
|
2014-03-02 03:26:37 +08:00
|
|
|
/ {
|
|
|
|
model = "Olimex A10-OLinuXino-LIME";
|
|
|
|
compatible = "olimex,a10-olinuxino-lime", "allwinner,sun4i-a10";
|
|
|
|
|
2015-03-16 03:47:31 +08:00
|
|
|
aliases {
|
|
|
|
serial0 = &uart0;
|
|
|
|
};
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
stdout-path = "serial0:115200n8";
|
|
|
|
};
|
|
|
|
|
2017-10-13 11:26:48 +08:00
|
|
|
hdmi-connector {
|
|
|
|
compatible = "hdmi-connector";
|
|
|
|
type = "a";
|
|
|
|
|
|
|
|
port {
|
|
|
|
hdmi_con_in: endpoint {
|
|
|
|
remote-endpoint = <&hdmi_out_con>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-01-31 19:11:54 +08:00
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&led_pins_olinuxinolime>;
|
|
|
|
|
|
|
|
green {
|
|
|
|
label = "a10-olinuxino-lime:green:usr";
|
|
|
|
gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>;
|
|
|
|
default-state = "on";
|
2015-03-25 00:53:26 +08:00
|
|
|
};
|
|
|
|
};
|
2015-01-31 19:11:54 +08:00
|
|
|
};
|
2015-03-25 00:53:26 +08:00
|
|
|
|
2015-01-31 19:11:54 +08:00
|
|
|
&ahci {
|
|
|
|
target-supply = <®_ahci_5v>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
2014-03-02 03:26:37 +08:00
|
|
|
|
2015-01-31 19:11:54 +08:00
|
|
|
&cpu0 {
|
|
|
|
/*
|
|
|
|
* The A10-Lime is known to be unstable when running at 1008 MHz
|
|
|
|
*/
|
|
|
|
operating-points = <
|
|
|
|
/* kHz uV */
|
|
|
|
912000 1350000
|
|
|
|
864000 1300000
|
|
|
|
624000 1250000
|
|
|
|
>;
|
|
|
|
};
|
2014-03-02 03:26:37 +08:00
|
|
|
|
2017-10-13 11:26:48 +08:00
|
|
|
&de {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2015-01-31 19:11:54 +08:00
|
|
|
&ehci0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2014-03-02 03:26:37 +08:00
|
|
|
|
2015-01-31 19:11:54 +08:00
|
|
|
&ehci1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2014-05-02 23:57:20 +08:00
|
|
|
|
2015-01-31 19:11:54 +08:00
|
|
|
&emac {
|
|
|
|
phy = <&phy1>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
2014-03-02 03:26:37 +08:00
|
|
|
|
2015-03-26 22:53:44 +08:00
|
|
|
&emac_sram {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2017-10-13 11:26:48 +08:00
|
|
|
&hdmi {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&hdmi_out {
|
|
|
|
hdmi_out_con: endpoint {
|
|
|
|
remote-endpoint = <&hdmi_con_in>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-01-31 19:11:54 +08:00
|
|
|
&i2c0 {
|
|
|
|
status = "okay";
|
2014-03-02 03:26:37 +08:00
|
|
|
|
2015-01-31 19:11:54 +08:00
|
|
|
axp209: pmic@34 {
|
|
|
|
compatible = "x-powers,axp209";
|
|
|
|
reg = <0x34>;
|
|
|
|
interrupts = <0>;
|
2014-03-02 03:26:37 +08:00
|
|
|
|
2015-01-31 19:11:54 +08:00
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <1>;
|
|
|
|
};
|
|
|
|
};
|
2014-03-02 03:26:37 +08:00
|
|
|
|
2015-09-10 16:31:17 +08:00
|
|
|
&i2c1 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
eeprom: eeprom@50 {
|
|
|
|
compatible = "atmel,24c16";
|
|
|
|
reg = <0x50>;
|
|
|
|
pagesize = <16>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-01-31 19:11:54 +08:00
|
|
|
&mdio {
|
|
|
|
status = "okay";
|
2014-03-02 03:26:37 +08:00
|
|
|
|
2015-01-31 19:11:54 +08:00
|
|
|
phy1: ethernet-phy@1 {
|
|
|
|
reg = <1>;
|
|
|
|
};
|
|
|
|
};
|
2014-03-02 03:26:37 +08:00
|
|
|
|
2015-01-31 19:11:54 +08:00
|
|
|
&mmc0 {
|
|
|
|
vmmc-supply = <®_vcc3v3>;
|
|
|
|
bus-width = <4>;
|
2017-12-23 04:57:37 +08:00
|
|
|
cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */
|
2015-01-31 19:11:54 +08:00
|
|
|
status = "okay";
|
|
|
|
};
|
2014-03-02 03:26:37 +08:00
|
|
|
|
2015-01-31 19:11:54 +08:00
|
|
|
&ohci0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2014-07-01 05:57:52 +08:00
|
|
|
|
2015-01-31 19:11:54 +08:00
|
|
|
&ohci1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2014-07-01 05:57:52 +08:00
|
|
|
|
2015-07-31 16:59:50 +08:00
|
|
|
&otg_sram {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2015-01-31 19:11:54 +08:00
|
|
|
&pio {
|
2017-10-05 02:07:23 +08:00
|
|
|
led_pins_olinuxinolime: led-pin {
|
2016-09-23 19:28:10 +08:00
|
|
|
pins = "PH2";
|
|
|
|
function = "gpio_out";
|
|
|
|
drive-strength = <20>;
|
2014-03-02 03:26:37 +08:00
|
|
|
};
|
2015-07-31 16:59:50 +08:00
|
|
|
|
2017-10-05 02:07:23 +08:00
|
|
|
usb0_id_detect_pin: usb0-id-detect-pin {
|
2016-09-23 19:28:10 +08:00
|
|
|
pins = "PH4";
|
|
|
|
function = "gpio_in";
|
|
|
|
bias-pull-up;
|
2015-07-31 16:59:50 +08:00
|
|
|
};
|
|
|
|
|
2017-10-05 02:07:23 +08:00
|
|
|
usb0_vbus_detect_pin: usb0-vbus-detect-pin {
|
2016-09-23 19:28:10 +08:00
|
|
|
pins = "PH5";
|
|
|
|
function = "gpio_in";
|
|
|
|
bias-pull-down;
|
2015-07-31 16:59:50 +08:00
|
|
|
};
|
2015-01-31 19:11:54 +08:00
|
|
|
};
|
2014-03-02 03:26:37 +08:00
|
|
|
|
2015-01-31 19:11:54 +08:00
|
|
|
®_ahci_5v {
|
|
|
|
gpio = <&pio 2 3 GPIO_ACTIVE_HIGH>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
2014-03-02 03:26:37 +08:00
|
|
|
|
2015-07-31 16:59:50 +08:00
|
|
|
®_usb0_vbus {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2015-01-31 19:11:54 +08:00
|
|
|
®_usb1_vbus {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2014-03-02 03:26:37 +08:00
|
|
|
|
2015-01-31 19:11:54 +08:00
|
|
|
®_usb2_vbus {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2014-03-02 03:26:37 +08:00
|
|
|
|
2015-01-31 19:11:54 +08:00
|
|
|
&uart0 {
|
|
|
|
pinctrl-names = "default";
|
2017-10-05 00:02:14 +08:00
|
|
|
pinctrl-0 = <&uart0_pb_pins>;
|
2015-01-31 19:11:54 +08:00
|
|
|
status = "okay";
|
|
|
|
};
|
2014-03-02 03:26:37 +08:00
|
|
|
|
2015-07-31 16:59:50 +08:00
|
|
|
&usb_otg {
|
|
|
|
dr_mode = "otg";
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2015-01-31 19:11:54 +08:00
|
|
|
&usbphy {
|
2015-07-31 16:59:50 +08:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>;
|
|
|
|
usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
|
|
|
|
usb0_vbus_det-gpio = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
|
|
|
|
usb0_vbus-supply = <®_usb0_vbus>;
|
2015-01-31 19:11:54 +08:00
|
|
|
usb1_vbus-supply = <®_usb1_vbus>;
|
|
|
|
usb2_vbus-supply = <®_usb2_vbus>;
|
|
|
|
status = "okay";
|
2014-03-02 03:26:37 +08:00
|
|
|
};
|