summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/moxart-uc7112lx.dts
blob: e07b807b4cec569bbdbf3dd1eb390212b178cb0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// SPDX-License-Identifier: GPL-2.0-or-later
/* moxart-uc7112lx.dts - Device Tree file for MOXA UC-7112-LX
 *
 * Copyright (C) 2013 Jonas Jensen <jonas.jensen@gmail.com>
 */

/dts-v1/;
#include "moxart.dtsi"

/ {
	model = "MOXA UC-7112-LX";
	compatible = "moxa,moxart-uc-7112-lx", "moxa,moxart";

	memory {
		device_type = "memory";
		reg = <0x0 0x2000000>;
	};

	clocks {
		ref12: ref12M {
			compatible = "fixed-clock";
			#clock-cells = <0>;
			clock-frequency = <12000000>;
		};
	};

	flash@80000000,0 {
		compatible = "numonyx,js28f128", "cfi-flash";
		reg = <0x80000000 0x1000000>;
		bank-width = <2>;
		#address-cells = <1>;
		#size-cells = <1>;
		partition@0 {
			label = "bootloader";
			reg = <0x0 0x40000>;
		};
		partition@40000 {
			label = "linux kernel";
			reg = <0x40000 0x1C0000>;
		};
		partition@200000 {
			label = "root filesystem";
			reg = <0x200000 0x800000>;
		};
		partition@a00000 {
			label = "user filesystem";
			reg = <0xa00000 0x600000>;
		};
	};

	leds {
		compatible = "gpio-leds";
		user-led {
			label = "ready-led";
			gpios = <&gpio 27 0x1>;
			default-state = "on";
			linux,default-trigger = "default-on";
		};
	};

	gpio_keys_polled {
		compatible = "gpio-keys-polled";
		#address-cells = <1>;
		#size-cells = <0>;
		poll-interval = <500>;
		button@25 {
			label = "GPIO Reset";
			linux,code = <116>;
			gpios = <&gpio 25 1>;
		};
	};

	chosen {
		bootargs = "console=ttyS0,115200n8 earlyprintk root=/dev/mmcblk0p1 rw rootwait";
	};
};

&clk_pll {
	clocks = <&ref12>;
};

&mmc {
	status = "okay";
};

&mdio0 {
	status = "okay";

	ethphy0: ethernet-phy@1 {
		device_type = "ethernet-phy";
		compatible = "moxa,moxart-rtl8201cp", "ethernet-phy-ieee802.3-c22";
		reg = <1>;
	};
};

&mdio1 {
	status = "okay";

	ethphy1: ethernet-phy@1 {
		device_type = "ethernet-phy";
		compatible = "moxa,moxart-rtl8201cp", "ethernet-phy-ieee802.3-c22";
		reg = <1>;
	};
};

&mac0 {
	status = "okay";
};

&mac1 {
	status = "okay";
};

&uart0 {
	status = "okay";
};