Sync dts files with the upstream kernel including changes queued for 4.6: https://git.kernel.org/cgit/linux/kernel/git/mripard/linux.git/commit/?h=sunxi/dt-for-4.6 Note this adds a number of new unused board dts files. I've asked the authors of the kernel commits adding these to submit a matching defconfig to u-boot. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>master
parent
4bb656e9dd
commit
80e5f83c0f
@ -0,0 +1,145 @@ |
|||||||
|
/* |
||||||
|
* Copyright 2015 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. |
||||||
|
* |
||||||
|
* 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. |
||||||
|
*/ |
||||||
|
|
||||||
|
/* |
||||||
|
* AXP221/221s/223 Integrated Power Management Chip |
||||||
|
* http://www.x-powers.com/product/AXP22X.php |
||||||
|
* http://dl.linux-sunxi.org/AXP/AXP221%20Datasheet%20V1.2%2020130326%20.pdf |
||||||
|
*/ |
||||||
|
|
||||||
|
&axp22x { |
||||||
|
interrupt-controller; |
||||||
|
#interrupt-cells = <1>; |
||||||
|
|
||||||
|
regulators { |
||||||
|
/* Default work frequency for buck regulators */ |
||||||
|
x-powers,dcdc-freq = <3000>; |
||||||
|
|
||||||
|
reg_dcdc1: dcdc1 { |
||||||
|
regulator-name = "dcdc1"; |
||||||
|
}; |
||||||
|
|
||||||
|
reg_dcdc2: dcdc2 { |
||||||
|
regulator-name = "dcdc2"; |
||||||
|
}; |
||||||
|
|
||||||
|
reg_dcdc3: dcdc3 { |
||||||
|
regulator-name = "dcdc3"; |
||||||
|
}; |
||||||
|
|
||||||
|
reg_dcdc4: dcdc4 { |
||||||
|
regulator-name = "dcdc4"; |
||||||
|
}; |
||||||
|
|
||||||
|
reg_dcdc5: dcdc5 { |
||||||
|
regulator-name = "dcdc5"; |
||||||
|
}; |
||||||
|
|
||||||
|
reg_dc1sw: dc1sw { |
||||||
|
regulator-name = "dc1sw"; |
||||||
|
}; |
||||||
|
|
||||||
|
reg_dc5ldo: dc5ldo { |
||||||
|
regulator-name = "dc5ldo"; |
||||||
|
}; |
||||||
|
|
||||||
|
reg_aldo1: aldo1 { |
||||||
|
regulator-name = "aldo1"; |
||||||
|
}; |
||||||
|
|
||||||
|
reg_aldo2: aldo2 { |
||||||
|
regulator-name = "aldo2"; |
||||||
|
}; |
||||||
|
|
||||||
|
reg_aldo3: aldo3 { |
||||||
|
regulator-name = "aldo3"; |
||||||
|
}; |
||||||
|
|
||||||
|
reg_dldo1: dldo1 { |
||||||
|
regulator-name = "dldo1"; |
||||||
|
}; |
||||||
|
|
||||||
|
reg_dldo2: dldo2 { |
||||||
|
regulator-name = "dldo2"; |
||||||
|
}; |
||||||
|
|
||||||
|
reg_dldo3: dldo3 { |
||||||
|
regulator-name = "dldo3"; |
||||||
|
}; |
||||||
|
|
||||||
|
reg_dldo4: dldo4 { |
||||||
|
regulator-name = "dldo4"; |
||||||
|
}; |
||||||
|
|
||||||
|
reg_eldo1: eldo1 { |
||||||
|
regulator-name = "eldo1"; |
||||||
|
}; |
||||||
|
|
||||||
|
reg_eldo2: eldo2 { |
||||||
|
regulator-name = "eldo2"; |
||||||
|
}; |
||||||
|
|
||||||
|
reg_eldo3: eldo3 { |
||||||
|
regulator-name = "eldo3"; |
||||||
|
}; |
||||||
|
|
||||||
|
reg_ldo_io0: ldo_io0 { |
||||||
|
regulator-name = "ldo_io0"; |
||||||
|
status = "disabled"; |
||||||
|
}; |
||||||
|
|
||||||
|
reg_ldo_io1: ldo_io1 { |
||||||
|
regulator-name = "ldo_io1"; |
||||||
|
status = "disabled"; |
||||||
|
}; |
||||||
|
|
||||||
|
reg_rtc_ldo: rtc_ldo { |
||||||
|
/* RTC_LDO is a fixed, always-on regulator */ |
||||||
|
regulator-always-on; |
||||||
|
regulator-min-microvolt = <3000000>; |
||||||
|
regulator-max-microvolt = <3000000>; |
||||||
|
regulator-name = "rtc_ldo"; |
||||||
|
}; |
||||||
|
}; |
||||||
|
}; |
@ -0,0 +1,78 @@ |
|||||||
|
/* |
||||||
|
* Copyright 2015 Siarhei Siamashka <siarhei.siamashka@gmail.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. |
||||||
|
*/ |
||||||
|
|
||||||
|
/* |
||||||
|
* The LinkSprite pcDuino2 board is almost identical to the older |
||||||
|
* LinkSprite pcDuino1 board. The only software visible difference |
||||||
|
* is that the pcDuino2 board got a USB VBUS voltage regulator, which |
||||||
|
* is controlled by the PD2 pin (pulled-up by default). Also one of |
||||||
|
* the USB host ports has been replaced with a USB WIFI chip. |
||||||
|
*/ |
||||||
|
|
||||||
|
#include "sun4i-a10-pcduino.dts" |
||||||
|
|
||||||
|
/ { |
||||||
|
model = "LinkSprite pcDuino2"; |
||||||
|
compatible = "linksprite,a10-pcduino2", "allwinner,sun4i-a10"; |
||||||
|
}; |
||||||
|
|
||||||
|
&pio { |
||||||
|
usb2_vbus_pin_pcduino2: usb2_vbus_pin@0 { |
||||||
|
allwinner,pins = "PD2"; |
||||||
|
allwinner,function = "gpio_out"; |
||||||
|
allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
||||||
|
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
®_usb2_vbus { |
||||||
|
pinctrl-names = "default"; |
||||||
|
pinctrl-0 = <&usb2_vbus_pin_pcduino2>; |
||||||
|
gpio = <&pio 3 2 GPIO_ACTIVE_HIGH>; |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&usbphy { |
||||||
|
usb1_vbus-supply = <®_vcc3v3>; /* USB WIFI is always on */ |
||||||
|
usb2_vbus-supply = <®_usb2_vbus>; |
||||||
|
status = "okay"; |
||||||
|
}; |
@ -0,0 +1,142 @@ |
|||||||
|
/* |
||||||
|
* Copyright 2015 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. |
||||||
|
* |
||||||
|
* 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 "sun6i-a31s.dtsi" |
||||||
|
#include "sunxi-common-regulators.dtsi" |
||||||
|
|
||||||
|
#include <dt-bindings/gpio/gpio.h> |
||||||
|
#include <dt-bindings/pinctrl/sun4i-a10.h> |
||||||
|
|
||||||
|
/ { |
||||||
|
model = "Sinlinx SinA31s Core Board"; |
||||||
|
compatible = "sinlinx,sina31s", "allwinner,sun6i-a31s"; |
||||||
|
|
||||||
|
aliases { |
||||||
|
serial0 = &uart0; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
&cpu0 { |
||||||
|
cpu-supply = <®_dcdc3>; |
||||||
|
}; |
||||||
|
|
||||||
|
/* eMMC on core board */ |
||||||
|
&mmc3 { |
||||||
|
pinctrl-names = "default"; |
||||||
|
pinctrl-0 = <&mmc3_8bit_emmc_pins>; |
||||||
|
vmmc-supply = <®_dcdc1>; |
||||||
|
vqmmc-supply = <®_dcdc1>; |
||||||
|
bus-width = <8>; |
||||||
|
non-removable; |
||||||
|
cap-mmc-hw-reset; |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
/* AXP221s PMIC on core board */ |
||||||
|
&p2wi { |
||||||
|
status = "okay"; |
||||||
|
|
||||||
|
axp22x: pmic@68 { |
||||||
|
compatible = "x-powers,axp221"; |
||||||
|
reg = <0x68>; |
||||||
|
interrupt-parent = <&nmi_intc>; |
||||||
|
interrupts = <0 IRQ_TYPE_LEVEL_LOW>; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
#include "axp22x.dtsi" |
||||||
|
|
||||||
|
®_aldo3 { |
||||||
|
regulator-always-on; |
||||||
|
regulator-min-microvolt = <2700000>; |
||||||
|
regulator-max-microvolt = <3300000>; |
||||||
|
regulator-name = "avcc"; |
||||||
|
}; |
||||||
|
|
||||||
|
®_dc5ldo { |
||||||
|
regulator-min-microvolt = <700000>; |
||||||
|
regulator-max-microvolt = <1320000>; |
||||||
|
regulator-name = "vdd-cpus"; |
||||||
|
}; |
||||||
|
|
||||||
|
®_dcdc1 { |
||||||
|
regulator-always-on; |
||||||
|
regulator-min-microvolt = <3000000>; |
||||||
|
regulator-max-microvolt = <3000000>; |
||||||
|
regulator-name = "vcc-3v0"; |
||||||
|
}; |
||||||
|
|
||||||
|
®_dcdc2 { |
||||||
|
regulator-min-microvolt = <700000>; |
||||||
|
regulator-max-microvolt = <1320000>; |
||||||
|
regulator-name = "vdd-gpu"; |
||||||
|
}; |
||||||
|
|
||||||
|
®_dcdc3 { |
||||||
|
regulator-always-on; |
||||||
|
regulator-min-microvolt = <700000>; |
||||||
|
regulator-max-microvolt = <1320000>; |
||||||
|
regulator-name = "vdd-cpu"; |
||||||
|
}; |
||||||
|
|
||||||
|
®_dcdc4 { |
||||||
|
regulator-always-on; |
||||||
|
regulator-min-microvolt = <700000>; |
||||||
|
regulator-max-microvolt = <1320000>; |
||||||
|
regulator-name = "vdd-sys-dll"; |
||||||
|
}; |
||||||
|
|
||||||
|
®_dcdc5 { |
||||||
|
regulator-always-on; |
||||||
|
regulator-min-microvolt = <1500000>; |
||||||
|
regulator-max-microvolt = <1500000>; |
||||||
|
regulator-name = "vcc-dram"; |
||||||
|
}; |
||||||
|
|
||||||
|
/* UART0 pads available on core board */ |
||||||
|
&uart0 { |
||||||
|
pinctrl-names = "default"; |
||||||
|
pinctrl-0 = <&uart0_pins_a>; |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
@ -0,0 +1,153 @@ |
|||||||
|
/* |
||||||
|
* Copyright 2015 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. |
||||||
|
* |
||||||
|
* 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. |
||||||
|
*/ |
||||||
|
|
||||||
|
/* The SinA31s development board has the SinA31s core board soldered on */ |
||||||
|
#include "sun6i-a31s-sina31s-core.dtsi" |
||||||
|
|
||||||
|
#include <dt-bindings/input/input.h> |
||||||
|
|
||||||
|
/ { |
||||||
|
model = "Sinlinx SinA31s Development Board"; |
||||||
|
compatible = "sinlinx,sina31s-sdk", "allwinner,sun6i-a31s"; |
||||||
|
|
||||||
|
chosen { |
||||||
|
stdout-path = "serial0:115200n8"; |
||||||
|
}; |
||||||
|
|
||||||
|
leds { |
||||||
|
compatible = "gpio-leds"; |
||||||
|
pinctrl-names = "default"; |
||||||
|
pinctrl-0 = <&led_pin_sina31s>; |
||||||
|
|
||||||
|
status { |
||||||
|
label = "sina31s:status:usr"; |
||||||
|
gpios = <&pio 7 13 GPIO_ACTIVE_HIGH>; /* PH13 */ |
||||||
|
}; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
&ehci0 { |
||||||
|
/* USB 2.0 4 port hub IC */ |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&ehci1 { |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&gmac { |
||||||
|
pinctrl-names = "default"; |
||||||
|
pinctrl-0 = <&gmac_pins_mii_a>; |
||||||
|
phy = <&phy1>; |
||||||
|
phy-mode = "mii"; |
||||||
|
phy-supply = <®_dldo1>; |
||||||
|
status = "okay"; |
||||||
|
|
||||||
|
phy1: ethernet-phy@1 { |
||||||
|
reg = <1>; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
&ir { |
||||||
|
pinctrl-names = "default"; |
||||||
|
pinctrl-0 = <&ir_pins_a>; |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&lradc { |
||||||
|
vref-supply = <®_aldo3>; |
||||||
|
status = "okay"; |
||||||
|
|
||||||
|
button@158 { |
||||||
|
label = "Volume Up"; |
||||||
|
linux,code = <KEY_VOLUMEUP>; |
||||||
|
channel = <0>; |
||||||
|
voltage = <158730>; |
||||||
|
}; |
||||||
|
|
||||||
|
button@349 { |
||||||
|
label = "Volume Down"; |
||||||
|
linux,code = <KEY_VOLUMEDOWN>; |
||||||
|
channel = <0>; |
||||||
|
voltage = <349206>; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
&mmc0 { |
||||||
|
pinctrl-names = "default"; |
||||||
|
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_sina31s>; |
||||||
|
vmmc-supply = <®_dcdc1>; |
||||||
|
bus-width = <4>; |
||||||
|
cd-gpios = <&pio 0 4 GPIO_ACTIVE_HIGH>; /* PA4 */ |
||||||
|
cd-inverted; |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&ohci1 { |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&pio { |
||||||
|
led_pin_sina31s: led_pin@0 { |
||||||
|
allwinner,pins = "PH13"; |
||||||
|
allwinner,function = "gpio_out"; |
||||||
|
allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
||||||
|
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
||||||
|
}; |
||||||
|
|
||||||
|
mmc0_cd_pin_sina31s: mmc0_cd_pin@0 { |
||||||
|
allwinner,pins = "PA4"; |
||||||
|
allwinner,function = "gpio_in"; |
||||||
|
allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
||||||
|
allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
®_dldo1 { |
||||||
|
regulator-min-microvolt = <3300000>; |
||||||
|
regulator-max-microvolt = <3300000>; |
||||||
|
regulator-name = "vcc-gmac-phy"; |
||||||
|
}; |
||||||
|
|
||||||
|
&usbphy { |
||||||
|
status = "okay"; |
||||||
|
}; |
@ -0,0 +1,205 @@ |
|||||||
|
/* |
||||||
|
* Copyright 2015 Lawrence Yu <lyu@micile.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 "sun6i-a31s.dtsi" |
||||||
|
#include "sunxi-common-regulators.dtsi" |
||||||
|
|
||||||
|
#include <dt-bindings/gpio/gpio.h> |
||||||
|
#include <dt-bindings/pinctrl/sun4i-a10.h> |
||||||
|
|
||||||
|
/ { |
||||||
|
model = "Yones TopTech BS1078 v2 Tablet"; |
||||||
|
compatible = "yones-toptech,bs1078-v2", "allwinner,sun6i-a31s"; |
||||||
|
|
||||||
|
aliases { |
||||||
|
serial0 = &uart0; |
||||||
|
i2c1 = &i2c1; |
||||||
|
i2c2 = &i2c2; |
||||||
|
}; |
||||||
|
|
||||||
|
chosen { |
||||||
|
stdout-path = "serial0:115200n8"; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
&i2c1 { |
||||||
|
pinctrl-names = "default"; |
||||||
|
pinctrl-0 = <&i2c1_pins_a>; |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&i2c2 { |
||||||
|
pinctrl-names = "default"; |
||||||
|
pinctrl-0 = <&i2c2_pins_a>; |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&ehci0 { |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&ehci1 { |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&ohci0 { |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&ohci1 { |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&pio { |
||||||
|
mmc0_cd_pin_bs1078v2: mmc0_cd_pin@0 { |
||||||
|
allwinner,pins = "PA8"; |
||||||
|
allwinner,function = "gpio_in"; |
||||||
|
allwinner,drive = <SUN4I_PINCTRL_10_MA>; |
||||||
|
allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
&mmc0 { |
||||||
|
pinctrl-names = "default"; |
||||||
|
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_bs1078v2>; |
||||||
|
vmmc-supply = <®_vcc3v0>; |
||||||
|
bus-width = <4>; |
||||||
|
cd-gpios = <&pio 0 8 GPIO_ACTIVE_HIGH>; /* PA8 */ |
||||||
|
cd-inverted; |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&mmc0_pins_a { |
||||||
|
allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; |
||||||
|
}; |
||||||
|
|
||||||
|
&p2wi { |
||||||
|
status = "okay"; |
||||||
|
|
||||||
|
axp22x: pmic@68 { |
||||||
|
compatible = "x-powers,axp221"; |
||||||
|
reg = <0x68>; |
||||||
|
interrupt-parent = <&nmi_intc>; |
||||||
|
interrupts = <0 IRQ_TYPE_LEVEL_LOW>; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
#include "axp22x.dtsi" |
||||||
|
|
||||||
|
®_aldo3 { |
||||||
|
regulator-always-on; |
||||||
|
regulator-min-microvolt = <2700000>; |
||||||
|
regulator-max-microvolt = <3300000>; |
||||||
|
regulator-name = "avcc"; |
||||||
|
}; |
||||||
|
|
||||||
|
®_dc1sw { |
||||||
|
regulator-name = "vcc-lcd-usb2"; |
||||||
|
regulator-min-microvolt = <3000000>; |
||||||
|
regulator-max-microvolt = <3000000>; |
||||||
|
}; |
||||||
|
|
||||||
|
®_dc5ldo { |
||||||
|
regulator-min-microvolt = <700000>; |
||||||
|
regulator-max-microvolt = <1320000>; |
||||||
|
regulator-name = "vdd-cpus"; |
||||||
|
}; |
||||||
|
|
||||||
|
®_dcdc1 { |
||||||
|
regulator-always-on; |
||||||
|
regulator-min-microvolt = <3000000>; |
||||||
|
regulator-max-microvolt = <3000000>; |
||||||
|
regulator-name = "vcc-3v0"; |
||||||
|
}; |
||||||
|
|
||||||
|
®_dcdc2 { |
||||||
|
regulator-min-microvolt = <700000>; |
||||||
|
regulator-max-microvolt = <1320000>; |
||||||
|
regulator-name = "vdd-gpu"; |
||||||
|
}; |
||||||
|
|
||||||
|
®_dcdc3 { |
||||||
|
regulator-always-on; |
||||||
|
regulator-min-microvolt = <700000>; |
||||||
|
regulator-max-microvolt = <1320000>; |
||||||
|
regulator-name = "vdd-cpu"; |
||||||
|
}; |
||||||
|
|
||||||
|
®_dcdc4 { |
||||||
|
regulator-always-on; |
||||||
|
regulator-min-microvolt = <700000>; |
||||||
|
regulator-max-microvolt = <1320000>; |
||||||
|
regulator-name = "vdd-sys-dll"; |
||||||
|
}; |
||||||
|
|
||||||
|
®_dcdc5 { |
||||||
|
regulator-always-on; |
||||||
|
regulator-min-microvolt = <1500000>; |
||||||
|
regulator-max-microvolt = <1500000>; |
||||||
|
regulator-name = "vcc-dram"; |
||||||
|
}; |
||||||
|
|
||||||
|
®_dldo1 { |
||||||
|
regulator-min-microvolt = <3300000>; |
||||||
|
regulator-max-microvolt = <3300000>; |
||||||
|
regulator-name = "vcc-wifi"; |
||||||
|
}; |
||||||
|
|
||||||
|
/* Voltage source for I2C pullup resistors for I2C Bus 0 */ |
||||||
|
®_dldo3 { |
||||||
|
regulator-min-microvolt = <2800000>; |
||||||
|
regulator-max-microvolt = <2800000>; |
||||||
|
regulator-name = "vddio-csi"; |
||||||
|
}; |
||||||
|
|
||||||
|
&uart0 { |
||||||
|
pinctrl-names = "default"; |
||||||
|
pinctrl-0 = <&uart0_pins_a>; |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&usbphy { |
||||||
|
usb1_vbus-supply = <®_dldo1>; |
||||||
|
usb2_vbus-supply = <®_dc1sw>; |
||||||
|
status = "okay"; |
||||||
|
}; |
@ -0,0 +1,169 @@ |
|||||||
|
/* |
||||||
|
* Copyright 2015 Stefan Roese <sr@denx.de> |
||||||
|
* |
||||||
|
* 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 <dt-bindings/gpio/gpio.h> |
||||||
|
#include <dt-bindings/interrupt-controller/irq.h> |
||||||
|
#include <dt-bindings/pinctrl/sun4i-a10.h> |
||||||
|
|
||||||
|
/ { |
||||||
|
model = "ICnova-A20 SWAC"; |
||||||
|
compatible = "swac,icnova-a20-swac", "incircuit,icnova-a20", "allwinner,sun7i-a20"; |
||||||
|
|
||||||
|
aliases { |
||||||
|
serial0 = &uart0; |
||||||
|
}; |
||||||
|
|
||||||
|
chosen { |
||||||
|
stdout-path = "serial0:115200n8"; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
&cpu0 { |
||||||
|
cpu-supply = <®_dcdc2>; |
||||||
|
}; |
||||||
|
|
||||||
|
&ehci0 { |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&ehci1 { |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&gmac { |
||||||
|
pinctrl-names = "default"; |
||||||
|
pinctrl-0 = <&gmac_pins_mii_a>; |
||||||
|
phy = <&phy1>; |
||||||
|
phy-mode = "mii"; |
||||||
|
status = "okay"; |
||||||
|
|
||||||
|
phy1: ethernet-phy@1 { |
||||||
|
reg = <1>; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
&i2c0 { |
||||||
|
pinctrl-names = "default"; |
||||||
|
pinctrl-0 = <&i2c0_pins_a>; |
||||||
|
status = "okay"; |
||||||
|
|
||||||
|
axp209: pmic@34 { |
||||||
|
reg = <0x34>; |
||||||
|
interrupt-parent = <&nmi_intc>; |
||||||
|
interrupts = <0 IRQ_TYPE_LEVEL_LOW>; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
&i2c1 { |
||||||
|
pinctrl-names = "default"; |
||||||
|
pinctrl-0 = <&i2c1_pins_a>; |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&mmc0 { |
||||||
|
pinctrl-names = "default"; |
||||||
|
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |
||||||
|
vmmc-supply = <®_vcc3v3>; |
||||||
|
bus-width = <4>; |
||||||
|
cd-gpios = <&pio 8 5 GPIO_ACTIVE_HIGH>; /* PI5 */ |
||||||
|
cd-inverted; |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&ohci0 { |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&ohci1 { |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
#include "axp209.dtsi" |
||||||
|
|
||||||
|
®_dcdc2 { |
||||||
|
regulator-always-on; |
||||||
|
regulator-min-microvolt = <1000000>; |
||||||
|
regulator-max-microvolt = <1400000>; |
||||||
|
regulator-name = "vdd-cpu"; |
||||||
|
}; |
||||||
|
|
||||||
|
®_dcdc3 { |
||||||
|
regulator-always-on; |
||||||
|
regulator-min-microvolt = <1000000>; |
||||||
|
regulator-max-microvolt = <1400000>; |
||||||
|
regulator-name = "vdd-int-dll"; |
||||||
|
}; |
||||||
|
|
||||||
|
®_ldo1 { |
||||||
|
regulator-name = "vdd-rtc"; |
||||||
|
}; |
||||||
|
|
||||||
|
®_ldo2 { |
||||||
|
regulator-always-on; |
||||||
|
regulator-min-microvolt = <3000000>; |
||||||
|
regulator-max-microvolt = <3000000>; |
||||||
|
regulator-name = "avcc"; |
||||||
|
}; |
||||||
|
|
||||||
|
®_usb1_vbus { |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
®_usb2_vbus { |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&uart0 { |
||||||
|
pinctrl-names = "default"; |
||||||
|
pinctrl-0 = <&uart0_pins_a>; |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&usbphy { |
||||||
|
usb1_vbus-supply = <®_usb1_vbus>; |
||||||
|
usb2_vbus-supply = <®_usb2_vbus>; |
||||||
|
status = "okay"; |
||||||
|
}; |
@ -0,0 +1,125 @@ |
|||||||
|
/* |
||||||
|
* Copyright 2015 - Marcus Cooper <codekipper@gmail.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-itead-core-common.dtsi" |
||||||
|
|
||||||
|
/ { |
||||||
|
model = "Itead Ibox A20"; |
||||||
|
compatible = "itead,itead-ibox-a20", "allwinner,sun7i-a20"; |
||||||
|
|
||||||
|
leds { |
||||||
|
compatible = "gpio-leds"; |
||||||
|
pinctrl-names = "default"; |
||||||
|
pinctrl-0 = <&led_pins_itead_core>; |
||||||
|
|
||||||
|
green { |
||||||
|
label = "itead_core:green:usr"; |
||||||
|
gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>; |
||||||
|
default-state = "on"; |
||||||
|
}; |
||||||
|
|
||||||
|
blue { |
||||||
|
label = "itead_core:blue:usr"; |
||||||
|
gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>; |
||||||
|
default-state = "on"; |
||||||
|
}; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
&ahci { |
||||||
|
target-supply = <®_ahci_5v>; |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&codec { |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&gmac { |
||||||
|
pinctrl-names = "default"; |
||||||
|
pinctrl-0 = <&gmac_pins_mii_a>; |
||||||
|
phy = <&phy1>; |
||||||
|
phy-mode = "mii"; |
||||||
|
status = "okay"; |
||||||
|
|
||||||
|
phy1: ethernet-phy@1 { |
||||||
|
reg = <1>; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
&i2c0 { |
||||||
|
axp209: pmic@34 { |
||||||
|
interrupt-parent = <&nmi_intc>; |
||||||
|
interrupts = <0 IRQ_TYPE_LEVEL_LOW>; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
&ir0 { |
||||||
|
pinctrl-names = "default"; |
||||||
|
pinctrl-0 = <&ir0_rx_pins_a>; |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&mmc0 { |
||||||
|
pinctrl-names = "default"; |
||||||
|
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |
||||||
|
vmmc-supply = <®_vcc3v3>; |
||||||
|
bus-width = <4>; |
||||||
|
cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ |
||||||
|
cd-inverted; |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&pio { |
||||||
|
led_pins_itead_core: led_pins@0 { |
||||||
|
allwinner,pins = "PH20","PH21"; |
||||||
|
allwinner,function = "gpio_out"; |
||||||
|
allwinner,drive = <SUN4I_PINCTRL_20_MA>; |
||||||
|
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
®_ahci_5v { |
||||||
|
status = "okay"; |
||||||
|
}; |
@ -0,0 +1,65 @@ |
|||||||
|
/* |
||||||
|
* Copyright 2015 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. |
||||||
|
* |
||||||
|
* 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 "sun8i-a83t.dtsi" |
||||||
|
|
||||||
|
/ { |
||||||
|
model = "Cubietech Cubietruck Plus"; |
||||||
|
compatible = "cubietech,cubietruck-plus", "allwinner,sun8i-a83t"; |
||||||
|
|
||||||
|
aliases { |
||||||
|
serial0 = &uart0; |
||||||
|
}; |
||||||
|
|
||||||
|
chosen { |
||||||
|
stdout-path = "serial0:115200n8"; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
&uart0 { |
||||||
|
pinctrl-names = "default"; |
||||||
|
pinctrl-0 = <&uart0_pins_b>; |
||||||
|
status = "okay"; |
||||||
|
}; |
@ -0,0 +1,136 @@ |
|||||||
|
/* |
||||||
|
* Copyright 2015 - Marcus Cooper <codekipper@gmail.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. |
||||||
|
*/ |
||||||
|
|
||||||
|
#include "sunxi-common-regulators.dtsi" |
||||||
|
|
||||||
|
/ { |
||||||
|
aliases { |
||||||
|
serial0 = &uart0; |
||||||
|
}; |
||||||
|
|
||||||
|
chosen { |
||||||
|
stdout-path = "serial0:115200n8"; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
&cpu0 { |
||||||
|
cpu-supply = <®_dcdc2>; |
||||||
|
}; |
||||||
|
|
||||||
|
&ehci0 { |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&ehci1 { |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&i2c0 { |
||||||
|
pinctrl-names = "default"; |
||||||
|
pinctrl-0 = <&i2c0_pins_a>; |
||||||
|
status = "okay"; |
||||||
|
|
||||||
|
axp209: pmic@34 { |
||||||
|
reg = <0x34>; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
&i2c1 { |
||||||
|
pinctrl-names = "default"; |
||||||
|
pinctrl-0 = <&i2c1_pins_a>; |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&ohci0 { |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&ohci1 { |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
#include "axp209.dtsi" |
||||||
|
|
||||||
|
®_dcdc2 { |
||||||
|
regulator-always-on; |
||||||
|
regulator-min-microvolt = <1000000>; |
||||||
|
regulator-max-microvolt = <1400000>; |
||||||
|
regulator-name = "vdd-cpu"; |
||||||
|
}; |
||||||
|
|
||||||
|
®_dcdc3 { |
||||||
|
regulator-always-on; |
||||||
|
regulator-min-microvolt = <1000000>; |
||||||
|
regulator-max-microvolt = <1400000>; |
||||||
|
regulator-name = "vdd-int-dll"; |
||||||
|
}; |
||||||
|
|
||||||
|
®_ldo1 { |
||||||
|
regulator-name = "vdd-rtc"; |
||||||
|
}; |
||||||
|
|
||||||
|
®_ldo2 { |
||||||
|
regulator-always-on; |
||||||
|
regulator-min-microvolt = <3000000>; |
||||||
|
regulator-max-microvolt = <3000000>; |
||||||
|
regulator-name = "avcc"; |
||||||
|
}; |
||||||
|
|
||||||
|
®_usb1_vbus { |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
®_usb2_vbus { |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&uart0 { |
||||||
|
pinctrl-names = "default"; |
||||||
|
pinctrl-0 = <&uart0_pins_a>; |
||||||
|
status = "okay"; |
||||||
|
}; |
||||||
|
|
||||||
|
&usbphy { |
||||||
|
usb1_vbus-supply = <®_usb1_vbus>; |
||||||
|
usb2_vbus-supply = <®_usb2_vbus>; |
||||||
|
status = "okay"; |
||||||
|
}; |
Loading…
Reference in new issue