• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright 2015 Vishnu Patekar
3 * Vishnu Patekar <vishnupatekar0510@gmail.com>
4 *
5 * This file is dual-licensed: you can use it either under the terms
6 * of the GPL or the X11 license, at your option. Note that this dual
7 * licensing only applies to this file, and not this project as a
8 * whole.
9 *
10 *  a) This file is free software; you can redistribute it and/or
11 *     modify it under the terms of the GNU General Public License as
12 *     published by the Free Software Foundation; either version 2 of the
13 *     License, or (at your option) any later version.
14 *
15 *     This file is distributed in the hope that it will be useful,
16 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
17 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 *     GNU General Public License for more details.
19 *
20 * Or, alternatively,
21 *
22 *  b) Permission is hereby granted, free of charge, to any person
23 *     obtaining a copy of this software and associated documentation
24 *     files (the "Software"), to deal in the Software without
25 *     restriction, including without limitation the rights to use,
26 *     copy, modify, merge, publish, distribute, sublicense, and/or
27 *     sell copies of the Software, and to permit persons to whom the
28 *     Software is furnished to do so, subject to the following
29 *     conditions:
30 *
31 *     The above copyright notice and this permission notice shall be
32 *     included in all copies or substantial portions of the Software.
33 *
34 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 *     OTHER DEALINGS IN THE SOFTWARE.
42 */
43
44/dts-v1/;
45#include "sun8i-a83t.dtsi"
46#include "sunxi-common-regulators.dtsi"
47
48/ {
49	model = "Allwinner A83T H8Homlet Proto Dev Board v2.0";
50	compatible = "allwinner,h8homlet-v2", "allwinner,sun8i-a83t";
51
52	aliases {
53		serial0 = &uart0;
54	};
55
56	chosen {
57		stdout-path = "serial0:115200n8";
58	};
59};
60
61&ehci0 {
62	status = "okay";
63};
64
65&mmc0 {
66	pinctrl-names = "default";
67	pinctrl-0 = <&mmc0_pins>;
68	vmmc-supply = <&reg_vcc3v0>;
69	cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */
70	bus-width = <4>;
71	cd-inverted;
72	status = "okay";
73};
74
75&mmc2 {
76	pinctrl-names = "default";
77	pinctrl-0 = <&mmc2_8bit_emmc_pins>;
78	vmmc-supply = <&reg_vcc3v0>;
79	bus-width = <8>;
80	non-removable;
81	cap-mmc-hw-reset;
82	status = "okay";
83};
84
85&ohci0 {
86	status = "okay";
87};
88
89&reg_usb0_vbus {
90	gpio = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */
91	status = "okay";
92};
93
94&reg_usb1_vbus {
95	gpio = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
96	status = "okay";
97};
98
99&r_rsb {
100	status = "okay";
101
102	axp81x: pmic@3a3 {
103		compatible = "x-powers,axp818", "x-powers,axp813";
104		reg = <0x3a3>;
105		interrupt-parent = <&r_intc>;
106		interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
107	};
108
109	ac100: codec@e89 {
110		compatible = "x-powers,ac100";
111		reg = <0xe89>;
112
113		ac100_codec: codec {
114			compatible = "x-powers,ac100-codec";
115			interrupt-parent = <&r_pio>;
116			interrupts = <0 11 IRQ_TYPE_LEVEL_LOW>; /* PL11 */
117			#clock-cells = <0>;
118			clock-output-names = "4M_adda";
119		};
120
121		ac100_rtc: rtc {
122			compatible = "x-powers,ac100-rtc";
123			interrupt-parent = <&r_intc>;
124			interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
125			clocks = <&ac100_codec>;
126			#clock-cells = <1>;
127			clock-output-names = "cko1_rtc",
128					     "cko2_rtc",
129					     "cko3_rtc";
130		};
131	};
132};
133
134&uart0 {
135	pinctrl-names = "default";
136	pinctrl-0 = <&uart0_pb_pins>;
137	status = "okay";
138};
139
140&usbphy {
141	usb0_vbus-supply = <&reg_usb0_vbus>;
142	usb1_vbus-supply = <&reg_usb1_vbus>;
143	status = "okay";
144};
145
146&usb_otg {
147	dr_mode = "host";
148	status = "okay";
149};
150