]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - arch/arm/boot/dts/sun6i-a31s-sina31s.dts
ARM: dts: bcm283x: Add VEC node in bcm283x.dtsi
[mirror_ubuntu-zesty-kernel.git] / arch / arm / boot / dts / sun6i-a31s-sina31s.dts
CommitLineData
96577bcd
CYT
1/*
2 * Copyright 2015 Chen-Yu Tsai <wens@csie.org>
3 *
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
7 * whole.
8 *
9 * a) This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
13 *
14 * This file is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * Or, alternatively,
20 *
21 * b) Permission is hereby granted, free of charge, to any person
22 * obtaining a copy of this software and associated documentation
23 * files (the "Software"), to deal in the Software without
24 * restriction, including without limitation the rights to use,
25 * copy, modify, merge, publish, distribute, sublicense, and/or
26 * sell copies of the Software, and to permit persons to whom the
27 * Software is furnished to do so, subject to the following
28 * conditions:
29 *
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
32 *
33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40 * OTHER DEALINGS IN THE SOFTWARE.
41 */
42
43/* The SinA31s development board has the SinA31s core board soldered on */
44#include "sun6i-a31s-sina31s-core.dtsi"
45
46#include <dt-bindings/input/input.h>
47
48/ {
49 model = "Sinlinx SinA31s Development Board";
50 compatible = "sinlinx,sina31s-sdk", "allwinner,sun6i-a31s";
51
52 chosen {
53 stdout-path = "serial0:115200n8";
54 };
55
56 leds {
57 compatible = "gpio-leds";
58 pinctrl-names = "default";
59 pinctrl-0 = <&led_pin_sina31s>;
60
61 status {
62 label = "sina31s:status:usr";
63 gpios = <&pio 7 13 GPIO_ACTIVE_HIGH>; /* PH13 */
64 };
65 };
66};
67
caed8b58
CYT
68&codec {
69 allwinner,audio-routing =
70 "Line Out", "LINEOUT",
71 "MIC1", "Mic",
72 "Mic", "MBIAS";
73 status = "okay";
74};
75
96577bcd
CYT
76&ehci0 {
77 /* USB 2.0 4 port hub IC */
78 status = "okay";
79};
80
81&ehci1 {
82 status = "okay";
83};
84
85&gmac {
86 pinctrl-names = "default";
87 pinctrl-0 = <&gmac_pins_mii_a>;
88 phy = <&phy1>;
89 phy-mode = "mii";
90 phy-supply = <&reg_dldo1>;
91 status = "okay";
92
93 phy1: ethernet-phy@1 {
94 reg = <1>;
95 };
96};
97
98&ir {
99 pinctrl-names = "default";
100 pinctrl-0 = <&ir_pins_a>;
101 status = "okay";
102};
103
104&lradc {
105 vref-supply = <&reg_aldo3>;
106 status = "okay";
107
108 button@158 {
109 label = "Volume Up";
110 linux,code = <KEY_VOLUMEUP>;
111 channel = <0>;
112 voltage = <158730>;
113 };
114
115 button@349 {
116 label = "Volume Down";
117 linux,code = <KEY_VOLUMEDOWN>;
118 channel = <0>;
119 voltage = <349206>;
120 };
121};
122
123&mmc0 {
124 pinctrl-names = "default";
125 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_sina31s>;
126 vmmc-supply = <&reg_dcdc1>;
127 bus-width = <4>;
128 cd-gpios = <&pio 0 4 GPIO_ACTIVE_HIGH>; /* PA4 */
129 cd-inverted;
130 status = "okay";
131};
132
133&ohci1 {
134 status = "okay";
135};
136
137&pio {
138 led_pin_sina31s: led_pin@0 {
139 allwinner,pins = "PH13";
140 allwinner,function = "gpio_out";
141 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
142 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
143 };
144
145 mmc0_cd_pin_sina31s: mmc0_cd_pin@0 {
146 allwinner,pins = "PA4";
147 allwinner,function = "gpio_in";
148 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
149 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
150 };
151};
152
153&reg_dldo1 {
154 regulator-min-microvolt = <3300000>;
155 regulator-max-microvolt = <3300000>;
156 regulator-name = "vcc-gmac-phy";
157};
158
159&usbphy {
160 status = "okay";
161};