/* * Copyright 2014 Maxime Ripard * Copyright 2015 Klaus Goger * * Maxime Ripard * Klaus Goger * * 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. * * You should have received a copy of the GNU General Public * License along with this file; if not, write to the Free * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, * MA 02110-1301 USA * * 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 "sun6i-a31.dtsi" #include "sunxi-common-regulators.dtsi" / { model = "Theobroma Systems A31 Pangolin"; compatible = "tsd,a31-pangolin", "allwinner,sun6i-a31"; chosen { bootargs = "earlyprintk console=ttyS1,115200"; }; leds { compatible = "gpio-leds"; pinctrl-names = "default"; pinctrl-0 = <&leds_pins_pangolin>; on_module { label = "module_led"; gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; linux,default-trigger = "heartbeat"; }; mmc0 { label = "mmc0"; gpios = <&pio 2 16 GPIO_ACTIVE_HIGH>; linux,default-trigger = "mmc0"; }; }; }; &cpu0 { cpu-supply = <&vdd_cpu>; operating-points = < /* kHz uV */ 1008000 1200000 864000 1200000 720000 1100000 480000 1000000 240000 1000000 120000 1000000 >; }; &ehci0 { status = "okay"; }; &ohci0 { status = "okay"; }; &ehci1 { status = "okay"; }; &ohci1 { status = "okay"; }; &ohci2 { status = "okay"; }; &gmac { pinctrl-names = "default"; pinctrl-0 = <&gmac_pins_rgmii_a>; phy-mode = "rgmii"; snps,reset-gpio = <&pio 0 7 GPIO_ACTIVE_LOW>; snps,reset-active-low; snps,reset-delays-us = <0 10000 30000>; txc-skew-ps = <1800>; rxc-skew-ps = <1800>; status = "okay"; }; &i2c0 { pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins_a>; /* pull-ups and devices require AXP221 DLDO3 */ status = "failed"; }; &i2c1 { pinctrl-names = "default"; pinctrl-0 = <&i2c1_pins_a>; status = "okay"; }; &i2c2 { pinctrl-names = "default"; pinctrl-0 = <&i2c2_pins_a>; status = "okay"; }; &gpu { status = "okay"; }; &mmc0 { pinctrl-names = "default"; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_pangolin>; vmmc-supply = <®_vcc3v0>; bus-width = <4>; cd-gpios = <&pio 2 19 GPIO_ACTIVE_LOW>; /* PC19 */ status = "okay"; }; &mmc0_pins_a { /* external pull-ups missing for some pins */ allwinner,pull = ; }; &mmc2 { pinctrl-names = "default"; pinctrl-0 = <&mmc2_pins_a>; vmmc-supply = <®_vcc3v0>; bus-width = <8>; non-removable; status = "okay"; }; &pio { mmc0_cd_pin_pangolin: mmc0_cd_pin@0 { allwinner,pins = "PC19"; allwinner,function = "gpio_in"; allwinner,drive = ; allwinner,pull = ; }; leds_pins_pangolin: led_pins@0 { allwinner,pins = "PH7", "PC16"; allwinner,function = "gpio_out"; allwinner,drive = ; allwinner,pull = ; }; }; &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins_a>; status = "okay"; }; &uart2 { pinctrl-names = "default"; pinctrl-0 = <&uart2_pins_a>; status = "okay"; }; &usb1_vbus_pin_a { allwinner,pins = "PD23"; }; ®_usb1_vbus { gpio = <&pio 3 23 GPIO_ACTIVE_HIGH>; /* PD 23 */ status = "okay"; }; &usbphy { status = "okay"; usb1_vbus-supply = <®_usb1_vbus>; }; &p2wi { status = "okay"; axp221: pmic@68 { compatible = "x-powers,axp221"; reg = <0x68>; interrupt-parent = <&nmi_intc>; interrupts = <0 IRQ_TYPE_LEVEL_LOW>; interrupt-controller; #interrupt-cells = <1>; regulators { x-powers,dcdc-freq = <3000>; vdd_gpio: dcdc1 { regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-always-on; regulator-name = "vdd-gpio"; }; vdd_gpu: dcdc2 { regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; regulator-always-on; regulator-name = "vdd-gpu"; }; vdd_cpu: dcdc3 { regulator-min-microvolt = <900000>; regulator-max-microvolt = <1300000>; regulator-always-on; regulator-name = "vdd-cpu"; }; vdd_system: dcdc4 { regulator-min-microvolt = <1240000>; regulator-max-microvolt = <1240000>; regulator-always-on; regulator-name = "vdd-system"; }; vdd_dram: dcdc5 { regulator-min-microvolt = <1500000>; regulator-max-microvolt = <1500000>; regulator-always-on; regulator-name = "vdd-dram"; }; vdd_analog: aldo3 { regulator-min-microvolt = <3000000>; regulator-max-microvolt = <3000000>; regulator-always-on; regulator-name = "vdd-analog"; }; vdd_cpus: dc5ldo { regulator-min-microvolt = <1100000>; regulator-max-microvolt = <1100000>; regulator-always-on; regulator-name = "vdd-cpus"; }; vdd_rtc: rtc_ldo { regulator-min-microvolt = <3000000>; regulator-max-microvolt = <3000000>; regulator-always-on; regulator-name = "vdd-rtc"; }; }; }; }; &rtp { status = "okay"; };