1*46f166caSHans de Goede/*
2*46f166caSHans de Goede * Copyright 2015 Hans de Goede <hdegoede@redhat.com>
3*46f166caSHans de Goede *
4*46f166caSHans de Goede * This file is dual-licensed: you can use it either under the terms
5*46f166caSHans de Goede * of the GPL or the X11 license, at your option. Note that this dual
6*46f166caSHans de Goede * licensing only applies to this file, and not this project as a
7*46f166caSHans de Goede * whole.
8*46f166caSHans de Goede *
9*46f166caSHans de Goede *  a) This file is free software; you can redistribute it and/or
10*46f166caSHans de Goede *     modify it under the terms of the GNU General Public License as
11*46f166caSHans de Goede *     published by the Free Software Foundation; either version 2 of the
12*46f166caSHans de Goede *     License, or (at your option) any later version.
13*46f166caSHans de Goede *
14*46f166caSHans de Goede *     This file is distributed in the hope that it will be useful,
15*46f166caSHans de Goede *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16*46f166caSHans de Goede *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17*46f166caSHans de Goede *     GNU General Public License for more details.
18*46f166caSHans de Goede *
19*46f166caSHans de Goede * Or, alternatively,
20*46f166caSHans de Goede *
21*46f166caSHans de Goede *  b) Permission is hereby granted, free of charge, to any person
22*46f166caSHans de Goede *     obtaining a copy of this software and associated documentation
23*46f166caSHans de Goede *     files (the "Software"), to deal in the Software without
24*46f166caSHans de Goede *     restriction, including without limitation the rights to use,
25*46f166caSHans de Goede *     copy, modify, merge, publish, distribute, sublicense, and/or
26*46f166caSHans de Goede *     sell copies of the Software, and to permit persons to whom the
27*46f166caSHans de Goede *     Software is furnished to do so, subject to the following
28*46f166caSHans de Goede *     conditions:
29*46f166caSHans de Goede *
30*46f166caSHans de Goede *     The above copyright notice and this permission notice shall be
31*46f166caSHans de Goede *     included in all copies or substantial portions of the Software.
32*46f166caSHans de Goede *
33*46f166caSHans de Goede *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34*46f166caSHans de Goede *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35*46f166caSHans de Goede *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36*46f166caSHans de Goede *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37*46f166caSHans de Goede *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38*46f166caSHans de Goede *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39*46f166caSHans de Goede *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40*46f166caSHans de Goede *     OTHER DEALINGS IN THE SOFTWARE.
41*46f166caSHans de Goede */
42*46f166caSHans de Goede
43*46f166caSHans de Goede/dts-v1/;
44*46f166caSHans de Goede#include "sun8i-a33.dtsi"
45*46f166caSHans de Goede#include "sun8i-q8-common.dtsi"
46*46f166caSHans de Goede
47*46f166caSHans de Goede/ {
48*46f166caSHans de Goede	model = "Q8 A33 Tablet";
49*46f166caSHans de Goede	compatible = "allwinner,q8-a33", "allwinner,sun8i-a33";
50*46f166caSHans de Goede};
51*46f166caSHans de Goede
52*46f166caSHans de Goede/*
53*46f166caSHans de Goede * FIXME for now we only support host mode and rely on u-boot to have
54*46f166caSHans de Goede * turned on Vbus which is controlled by the axp223 pmic on the board.
55*46f166caSHans de Goede *
56*46f166caSHans de Goede * Once we have axp223 support we should switch to fully supporting otg.
57*46f166caSHans de Goede */
58*46f166caSHans de Goede&usb_otg {
59*46f166caSHans de Goede	dr_mode = "host";
60*46f166caSHans de Goede	status = "okay";
61*46f166caSHans de Goede};
62*46f166caSHans de Goede
63*46f166caSHans de Goede&usbphy {
64*46f166caSHans de Goede	status = "okay";
65*46f166caSHans de Goede};
66