Loading...
1// SPDX-License-Identifier: GPL-2.0 OR MIT
2/*
3 * Copyright 2015 Endless Mobile, Inc.
4 * Author: Carlo Caione <carlo@endlessm.com>
5 */
6
7/dts-v1/;
8
9#include <dt-bindings/gpio/gpio.h>
10
11#include "meson8b.dtsi"
12
13/ {
14 model = "TRONFY MXQ S805";
15 compatible = "tronfy,mxq", "amlogic,meson8b";
16
17 aliases {
18 serial0 = &uart_AO;
19 };
20
21 chosen {
22 stdout-path = "serial0:115200n8";
23 };
24
25 memory {
26 device_type = "memory";
27 reg = <0x40000000 0x40000000>;
28 };
29
30 vcck: regulator-vcck {
31 compatible = "pwm-regulator";
32
33 regulator-name = "VCCK";
34 regulator-min-microvolt = <860000>;
35 regulator-max-microvolt = <1140000>;
36
37 pwm-supply = <&vcc_5v>;
38
39 pwms = <&pwm_cd 0 1148 0>;
40 pwm-dutycycle-range = <100 0>;
41
42 regulator-boot-on;
43 regulator-always-on;
44 };
45
46 vcc_1v8: regulator-vcc1v8 {
47 compatible = "regulator-fixed";
48
49 regulator-name = "VCC1V8";
50 regulator-min-microvolt = <1800000>;
51 regulator-max-microvolt = <1800000>;
52
53 vin-supply = <&vcc_3v3>;
54 };
55
56 vcc_3v3: regulator-vcc3v3 {
57 compatible = "regulator-fixed";
58
59 regulator-name = "VCC3V3";
60 regulator-min-microvolt = <3300000>;
61 regulator-max-microvolt = <3300000>;
62
63 vin-supply = <&vcc_5v>;
64 };
65
66 vcc_5v: regulator-vcc5v {
67 compatible = "regulator-fixed";
68
69 regulator-name = "VCC5V";
70 regulator-min-microvolt = <5000000>;
71 regulator-max-microvolt = <5000000>;
72
73 regulator-boot-on;
74 regulator-always-on;
75 };
76
77 vddee: regulator-vddee {
78 compatible = "pwm-regulator";
79
80 regulator-name = "VDDEE";
81 regulator-min-microvolt = <860000>;
82 regulator-max-microvolt = <1140000>;
83
84 pwm-supply = <&vcc_5v>;
85
86 pwms = <&pwm_cd 1 1148 0>;
87 pwm-dutycycle-range = <100 0>;
88
89 regulator-boot-on;
90 regulator-always-on;
91 };
92};
93
94&cpu0 {
95 cpu-supply = <&vcck>;
96};
97
98ðmac {
99 status = "okay";
100
101 pinctrl-0 = <ð_rmii_pins>;
102 pinctrl-names = "default";
103
104 phy-handle = <ð_phy0>;
105 phy-mode = "rmii";
106
107 mdio {
108 compatible = "snps,dwmac-mdio";
109 #address-cells = <1>;
110 #size-cells = <0>;
111
112 eth_phy0: ethernet-phy@0 {
113 /* IC Plus IP101A/G (0x02430c54) */
114 reg = <0>;
115
116 reset-assert-us = <10000>;
117 reset-deassert-us = <10000>;
118 reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>;
119
120 icplus,select-interrupt;
121 interrupt-parent = <&gpio_intc>;
122 /* GPIOH_3 */
123 interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
124 };
125 };
126};
127
128&mali {
129 mali-supply = <&vddee>;
130};
131
132&saradc {
133 status = "okay";
134 vref-supply = <&vcc_1v8>;
135};
136
137&sdio {
138 status = "okay";
139
140 pinctrl-0 = <&sd_b_pins>;
141 pinctrl-names = "default";
142
143 /* SD card */
144 sd_card_slot: slot@1 {
145 compatible = "mmc-slot";
146 reg = <1>;
147 status = "okay";
148
149 bus-width = <4>;
150 no-sdio;
151 cap-mmc-highspeed;
152 cap-sd-highspeed;
153 disable-wp;
154
155 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
156
157 vmmc-supply = <&vcc_3v3>;
158 };
159};
160
161&pwm_cd {
162 status = "okay";
163 pinctrl-0 = <&pwm_c1_pins>, <&pwm_d_pins>;
164 pinctrl-names = "default";
165 clocks = <&xtal>, <&xtal>;
166 clock-names = "clkin0", "clkin1";
167};
168
169&uart_AO {
170 status = "okay";
171 pinctrl-0 = <&uart_ao_a_pins>;
172 pinctrl-names = "default";
173};
174
175&usb0 {
176 status = "okay";
177};
178
179&usb0_phy {
180 status = "okay";
181};
182
183&usb1 {
184 status = "okay";
185};
186
187&usb1_phy {
188 status = "okay";
189};
1/*
2 * Copyright 2015 Endless Mobile, Inc.
3 * Author: Carlo Caione <carlo@endlessm.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 library 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 library 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 * You should have received a copy of the GNU General Public License
21 * along with this program. If not, see <http://www.gnu.org/licenses/>.
22 *
23 * Or, alternatively,
24 *
25 * b) Permission is hereby granted, free of charge, to any person
26 * obtaining a copy of this software and associated documentation
27 * files (the "Software"), to deal in the Software without
28 * restriction, including without limitation the rights to use,
29 * copy, modify, merge, publish, distribute, sublicense, and/or
30 * sell copies of the Software, and to permit persons to whom the
31 * Software is furnished to do so, subject to the following
32 * conditions:
33 *
34 * The above copyright notice and this permission notice shall be
35 * included in all copies or substantial portions of the Software.
36 *
37 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
38 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
39 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
40 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
41 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
42 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
43 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
44 * OTHER DEALINGS IN THE SOFTWARE.
45 */
46
47/dts-v1/;
48#include "meson8b.dtsi"
49
50/ {
51 model = "TRONFY MXQ S805";
52 compatible = "tronfy,mxq", "amlogic,meson8b";
53
54 aliases {
55 serial0 = &uart_AO;
56 };
57
58 memory {
59 reg = <0x40000000 0x40000000>;
60 };
61};
62
63&uart_AO {
64 status = "okay";
65 pinctrl-0 = <&uart_ao_a_pins>;
66 pinctrl-names = "default";
67};