1295011Sandrew/*
2295011Sandrew * Copyright 2014 Beniamino Galvani <b.galvani@gmail.com>
3295011Sandrew *
4295011Sandrew * This file is dual-licensed: you can use it either under the terms
5295011Sandrew * of the GPL or the X11 license, at your option. Note that this dual
6295011Sandrew * licensing only applies to this file, and not this project as a
7295011Sandrew * whole.
8295011Sandrew *
9295011Sandrew *  a) This library is free software; you can redistribute it and/or
10295011Sandrew *     modify it under the terms of the GNU General Public License as
11295011Sandrew *     published by the Free Software Foundation; either version 2 of the
12295011Sandrew *     License, or (at your option) any later version.
13295011Sandrew *
14295011Sandrew *     This library is distributed in the hope that it will be useful,
15295011Sandrew *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16295011Sandrew *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17295011Sandrew *     GNU General Public License for more details.
18295011Sandrew *
19295011Sandrew * Or, alternatively,
20295011Sandrew *
21295011Sandrew *  b) Permission is hereby granted, free of charge, to any person
22295011Sandrew *     obtaining a copy of this software and associated documentation
23295011Sandrew *     files (the "Software"), to deal in the Software without
24295011Sandrew *     restriction, including without limitation the rights to use,
25295011Sandrew *     copy, modify, merge, publish, distribute, sublicense, and/or
26295011Sandrew *     sell copies of the Software, and to permit persons to whom the
27295011Sandrew *     Software is furnished to do so, subject to the following
28295011Sandrew *     conditions:
29295011Sandrew *
30295011Sandrew *     The above copyright notice and this permission notice shall be
31295011Sandrew *     included in all copies or substantial portions of the Software.
32295011Sandrew *
33295011Sandrew *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34295011Sandrew *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35295011Sandrew *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36295011Sandrew *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37295011Sandrew *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38295011Sandrew *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39295011Sandrew *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40295011Sandrew *     OTHER DEALINGS IN THE SOFTWARE.
41295011Sandrew */
42295011Sandrew
43295011Sandrew/dts-v1/;
44295011Sandrew#include <dt-bindings/gpio/gpio.h>
45295011Sandrew#include "meson8.dtsi"
46295011Sandrew
47295011Sandrew/ {
48295011Sandrew	model = "MINIX NEO-X8";
49295011Sandrew	compatible = "minix,neo-x8", "amlogic,meson8";
50295011Sandrew
51295011Sandrew	aliases {
52295011Sandrew		serial0 = &uart_AO;
53295011Sandrew	};
54295011Sandrew
55295011Sandrew	memory {
56295011Sandrew		reg = <0x40000000 0x80000000>;
57295011Sandrew	};
58295011Sandrew
59295011Sandrew	gpio-leds {
60295011Sandrew		compatible = "gpio-leds";
61295011Sandrew
62295011Sandrew		blue {
63295011Sandrew			label = "x8:blue:power";
64295011Sandrew			gpios = <&gpio_ao GPIO_TEST_N GPIO_ACTIVE_HIGH>;
65295011Sandrew		};
66295011Sandrew	};
67295011Sandrew};
68295011Sandrew
69295011Sandrew&uart_AO {
70295011Sandrew	status = "okay";
71295011Sandrew	pinctrl-0 = <&uart_ao_a_pins>;
72295011Sandrew	pinctrl-names = "default";
73295011Sandrew};
74295011Sandrew
75295011Sandrew&i2c_AO {
76295011Sandrew	status = "okay";
77295011Sandrew	pinctrl-0 = <&i2c_ao_pins>;
78295011Sandrew	pinctrl-names = "default";
79295011Sandrew
80295011Sandrew	pmic@32 {
81295011Sandrew		compatible = "ricoh,rn5t618";
82295011Sandrew		reg = <0x32>;
83295011Sandrew
84295011Sandrew		regulators {
85295011Sandrew		};
86295011Sandrew	};
87295011Sandrew
88295011Sandrew	rtc@51 {
89295011Sandrew		compatible = "nxp,pcf8563";
90295011Sandrew		reg = <0x51>;
91295011Sandrew	};
92295011Sandrew};
93295011Sandrew
94295011Sandrew&spifc {
95295011Sandrew	status = "okay";
96295011Sandrew	pinctrl-0 = <&spi_nor_pins>;
97295011Sandrew	pinctrl-names = "default";
98295011Sandrew
99295011Sandrew	spi-flash@0 {
100295011Sandrew		compatible = "mxicy,mx25l1606e";
101295011Sandrew		#address-cells = <1>;
102295011Sandrew		#size-cells = <1>;
103295011Sandrew		reg = <0>;
104295011Sandrew		spi-max-frequency = <30000000>;
105295011Sandrew
106295011Sandrew		partition@0 {
107295011Sandrew			label = "boot";
108295011Sandrew			reg = <0x0 0x100000>;
109295011Sandrew		};
110295011Sandrew
111295011Sandrew		partition@100000 {
112295011Sandrew			label = "env";
113295011Sandrew			reg = <0x100000 0x10000>;
114295011Sandrew		};
115295011Sandrew	};
116295011Sandrew};
117295011Sandrew
118295011Sandrew&ir_receiver {
119295011Sandrew	status = "okay";
120295011Sandrew	pinctrl-0 = <&ir_recv_pins>;
121295011Sandrew	pinctrl-names = "default";
122295011Sandrew};
123295011Sandrew
124295011Sandrew&ethmac {
125295011Sandrew	status = "okay";
126295011Sandrew	pinctrl-0 = <&eth_pins>;
127295011Sandrew	pnictrl-names = "default";
128295011Sandrew};
129