1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Dell Wyse 3020 a.k.a. "Ariel" a.k.a. Tx0D (T00D, T10D)
4*724ba675SRob Herring *
5*724ba675SRob Herring * Copyright (C) 2019 Lubomir Rintel <lkundrak@v3.sk>
6*724ba675SRob Herring */
7*724ba675SRob Herring
8*724ba675SRob Herring/dts-v1/;
9*724ba675SRob Herring#include "mmp3.dtsi"
10*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h>
11*724ba675SRob Herring#include <dt-bindings/interrupt-controller/irq.h>
12*724ba675SRob Herring
13*724ba675SRob Herring/ {
14*724ba675SRob Herring	model = "Dell Ariel";
15*724ba675SRob Herring	compatible = "dell,wyse-ariel", "marvell,mmp3";
16*724ba675SRob Herring
17*724ba675SRob Herring	aliases {
18*724ba675SRob Herring		serial2 = &uart3;
19*724ba675SRob Herring	};
20*724ba675SRob Herring
21*724ba675SRob Herring	chosen {
22*724ba675SRob Herring		#address-cells = <0x1>;
23*724ba675SRob Herring		#size-cells = <0x1>;
24*724ba675SRob Herring		ranges;
25*724ba675SRob Herring		bootargs = "earlyprintk=ttyS2,115200 console=ttyS2,115200";
26*724ba675SRob Herring	};
27*724ba675SRob Herring
28*724ba675SRob Herring	memory@0 {
29*724ba675SRob Herring		available = <0x7f700000 0x7ff00000 0x00000000 0x7f600000>;
30*724ba675SRob Herring		reg = <0x0 0x80000000>;
31*724ba675SRob Herring		device_type = "memory";
32*724ba675SRob Herring	};
33*724ba675SRob Herring
34*724ba675SRob Herring	ec_input_spi: spi {
35*724ba675SRob Herring		compatible = "spi-gpio";
36*724ba675SRob Herring		#address-cells = <1>;
37*724ba675SRob Herring		#size-cells = <0>;
38*724ba675SRob Herring
39*724ba675SRob Herring		num-chipselects = <0>;
40*724ba675SRob Herring		sck-gpios = <&gpio 55 GPIO_ACTIVE_HIGH>;
41*724ba675SRob Herring		miso-gpios = <&gpio 57 GPIO_ACTIVE_HIGH>;
42*724ba675SRob Herring		mosi-gpios = <&gpio 58 GPIO_ACTIVE_HIGH>;
43*724ba675SRob Herring	};
44*724ba675SRob Herring};
45*724ba675SRob Herring
46*724ba675SRob Herring&uart3 {
47*724ba675SRob Herring	status = "okay";
48*724ba675SRob Herring};
49*724ba675SRob Herring
50*724ba675SRob Herring&rtc {
51*724ba675SRob Herring	status = "okay";
52*724ba675SRob Herring};
53*724ba675SRob Herring
54*724ba675SRob Herring&usb_otg0 {
55*724ba675SRob Herring	status = "okay";
56*724ba675SRob Herring};
57*724ba675SRob Herring
58*724ba675SRob Herring&usb_otg_phy0 {
59*724ba675SRob Herring	status = "okay";
60*724ba675SRob Herring};
61*724ba675SRob Herring
62*724ba675SRob Herring&hsic0 {
63*724ba675SRob Herring	status = "okay";
64*724ba675SRob Herring
65*724ba675SRob Herring	usb1@1 {
66*724ba675SRob Herring		compatible = "usb424,2640";
67*724ba675SRob Herring		reg = <0x01>;
68*724ba675SRob Herring		#address-cells = <0x01>;
69*724ba675SRob Herring		#size-cells = <0x00>;
70*724ba675SRob Herring
71*724ba675SRob Herring		mass-storage@1 {
72*724ba675SRob Herring			compatible = "usb424,4040";
73*724ba675SRob Herring			reg = <0x01>;
74*724ba675SRob Herring			status = "disabled";
75*724ba675SRob Herring		};
76*724ba675SRob Herring	};
77*724ba675SRob Herring};
78*724ba675SRob Herring
79*724ba675SRob Herring&hsic_phy0 {
80*724ba675SRob Herring	status = "okay";
81*724ba675SRob Herring	reset-gpios = <&gpio 63 GPIO_ACTIVE_HIGH>;
82*724ba675SRob Herring};
83*724ba675SRob Herring
84*724ba675SRob Herring&mmc3 {
85*724ba675SRob Herring	status = "okay";
86*724ba675SRob Herring	max-frequency = <50000000>;
87*724ba675SRob Herring	status = "okay";
88*724ba675SRob Herring	bus-width = <8>;
89*724ba675SRob Herring	non-removable;
90*724ba675SRob Herring	cap-mmc-highspeed;
91*724ba675SRob Herring};
92*724ba675SRob Herring
93*724ba675SRob Herring&twsi1 {
94*724ba675SRob Herring	status = "okay";
95*724ba675SRob Herring
96*724ba675SRob Herring	rtc@68 {
97*724ba675SRob Herring		compatible = "dallas,ds1338";
98*724ba675SRob Herring		reg = <0x68>;
99*724ba675SRob Herring		status = "okay";
100*724ba675SRob Herring	};
101*724ba675SRob Herring};
102*724ba675SRob Herring
103*724ba675SRob Herring&twsi3 {
104*724ba675SRob Herring	status = "okay";
105*724ba675SRob Herring};
106*724ba675SRob Herring
107*724ba675SRob Herring&twsi4 {
108*724ba675SRob Herring	status = "okay";
109*724ba675SRob Herring
110*724ba675SRob Herring	embedded-controller@58 {
111*724ba675SRob Herring		compatible = "dell,wyse-ariel-ec", "ene,kb3930";
112*724ba675SRob Herring		reg = <0x58>;
113*724ba675SRob Herring		system-power-controller;
114*724ba675SRob Herring
115*724ba675SRob Herring		off-gpios = <&gpio 126 GPIO_ACTIVE_HIGH>,
116*724ba675SRob Herring			    <&gpio 127 GPIO_ACTIVE_HIGH>;
117*724ba675SRob Herring	};
118*724ba675SRob Herring};
119*724ba675SRob Herring
120*724ba675SRob Herring&ssp1 {
121*724ba675SRob Herring	status = "okay";
122*724ba675SRob Herring	cs-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
123*724ba675SRob Herring
124*724ba675SRob Herring	firmware-flash@0 {
125*724ba675SRob Herring		compatible = "winbond,w25q32", "jedec,spi-nor";
126*724ba675SRob Herring		reg = <0>;
127*724ba675SRob Herring		spi-max-frequency = <104000000>;
128*724ba675SRob Herring		m25p,fast-read;
129*724ba675SRob Herring	};
130*724ba675SRob Herring};
131*724ba675SRob Herring
132*724ba675SRob Herring&ec_input_spi {
133*724ba675SRob Herring	status = "okay";
134*724ba675SRob Herring	cs-gpios = <&gpio 56 GPIO_ACTIVE_LOW>;
135*724ba675SRob Herring
136*724ba675SRob Herring	power-button@0 {
137*724ba675SRob Herring		reg = <0>;
138*724ba675SRob Herring		interrupt-parent = <&gpio>;
139*724ba675SRob Herring		interrupts = <60 IRQ_TYPE_EDGE_RISING>;
140*724ba675SRob Herring		compatible = "dell,wyse-ariel-ec-input", "ene,kb3930-input";
141*724ba675SRob Herring		spi-max-frequency = <33000000>;
142*724ba675SRob Herring	};
143*724ba675SRob Herring};
144*724ba675SRob Herring
145*724ba675SRob Herring&gpu_2d {
146*724ba675SRob Herring	status = "okay";
147*724ba675SRob Herring};
148*724ba675SRob Herring
149*724ba675SRob Herring&gpu_3d {
150*724ba675SRob Herring	status = "okay";
151*724ba675SRob Herring};
152