0001 /*
0002 * Copyright 2015 Josef Gajdusek <atx@atx.name>
0003 * Copyright 2015 - Marcus Cooper <codekipper@gmail.com>
0004 *
0005 * This file is dual-licensed: you can use it either under the terms
0006 * of the GPL or the X11 license, at your option. Note that this dual
0007 * licensing only applies to this file, and not this project as a
0008 * whole.
0009 *
0010 * a) This file is free software; you can redistribute it and/or
0011 * modify it under the terms of the GNU General Public License as
0012 * published by the Free Software Foundation; either version 2 of the
0013 * License, or (at your option) any later version.
0014 *
0015 * This file is distributed in the hope that it will be useful,
0016 * but WITHOUT ANY WARRANTY; without even the implied warranty of
0017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0018 * GNU General Public License for more details.
0019 *
0020 * Or, alternatively,
0021 *
0022 * b) Permission is hereby granted, free of charge, to any person
0023 * obtaining a copy of this software and associated documentation
0024 * files (the "Software"), to deal in the Software without
0025 * restriction, including without limitation the rights to use,
0026 * copy, modify, merge, publish, distribute, sublicense, and/or
0027 * sell copies of the Software, and to permit persons to whom the
0028 * Software is furnished to do so, subject to the following
0029 * conditions:
0030 *
0031 * The above copyright notice and this permission notice shall be
0032 * included in all copies or substantial portions of the Software.
0033 *
0034 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0035 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
0036 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0037 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
0038 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
0039 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0040 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0041 * OTHER DEALINGS IN THE SOFTWARE.
0042 */
0043
0044 /dts-v1/;
0045 #include "sun4i-a10.dtsi"
0046 #include "sunxi-itead-core-common.dtsi"
0047
0048 / {
0049 model = "Iteaduino Plus A10";
0050 compatible = "itead,iteaduino-plus-a10", "allwinner,sun4i-a10";
0051 };
0052
0053 &ahci {
0054 target-supply = <®_ahci_5v>;
0055 status = "okay";
0056 };
0057
0058 &emac {
0059 pinctrl-names = "default";
0060 pinctrl-0 = <&emac_pins>;
0061 phy-handle = <&phy1>;
0062 status = "okay";
0063 };
0064
0065 &emac_sram {
0066 status = "okay";
0067 };
0068
0069 &i2c0 {
0070 pinctrl-names = "default";
0071 pinctrl-0 = <&i2c0_pins>;
0072
0073 axp209: pmic@34 {
0074 interrupts = <0>;
0075 };
0076 };
0077
0078 &i2c1 {
0079 pinctrl-names = "default";
0080 pinctrl-0 = <&i2c1_pins>;
0081 status = "okay";
0082 };
0083
0084 &i2c2 {
0085 pinctrl-names = "default";
0086 pinctrl-0 = <&i2c2_pins>;
0087 status = "okay";
0088 };
0089
0090 &ir0 {
0091 pinctrl-names = "default";
0092 pinctrl-0 = <&ir0_rx_pins>;
0093 status = "okay";
0094 };
0095
0096 &mdio {
0097 status = "okay";
0098
0099 phy1: ethernet-phy@1 {
0100 reg = <1>;
0101 };
0102 };
0103
0104 &mmc0 {
0105 pinctrl-names = "default";
0106 pinctrl-0 = <&mmc0_pins>;
0107 vmmc-supply = <®_vcc3v3>;
0108 bus-width = <4>;
0109 cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */
0110 status = "okay";
0111 };
0112
0113 ®_ahci_5v {
0114 status = "okay";
0115 };
0116
0117 &spi0 {
0118 pinctrl-names = "default";
0119 pinctrl-0 = <&spi0_pi_pins>,
0120 <&spi0_cs0_pi_pin>;
0121 status = "okay";
0122 };
0123
0124 &uart0 {
0125 pinctrl-0 = <&uart0_pb_pins>;
0126 };