Commit | Line | Data |
---|---|---|
e3e37bca GC |
1 | /* |
2 | * Device Tree file for Globalscale Mirabox | |
3 | * | |
4 | * Gregory CLEMENT <gregory.clement@free-electrons.com> | |
5 | * | |
6 | * This file is licensed under the terms of the GNU General Public | |
7 | * License version 2. This program is licensed "as is" without any | |
8 | * warranty of any kind, whether express or implied. | |
9 | */ | |
10 | ||
11 | /dts-v1/; | |
12 | /include/ "armada-370.dtsi" | |
13 | ||
14 | / { | |
15 | model = "Globalscale Mirabox"; | |
16 | compatible = "globalscale,mirabox", "marvell,armada370", "marvell,armada-370-xp"; | |
17 | ||
18 | chosen { | |
19 | bootargs = "console=ttyS0,115200 earlyprintk"; | |
20 | }; | |
21 | ||
22 | memory { | |
23 | device_type = "memory"; | |
24 | reg = <0x00000000 0x20000000>; /* 512 MB */ | |
25 | }; | |
26 | ||
27 | soc { | |
467f54b2 GC |
28 | internal-regs { |
29 | serial@12000 { | |
30 | clock-frequency = <200000000>; | |
31 | status = "okay"; | |
51ab3fb8 | 32 | }; |
467f54b2 GC |
33 | timer@20300 { |
34 | clock-frequency = <600000000>; | |
35 | status = "okay"; | |
51ab3fb8 | 36 | }; |
51ab3fb8 | 37 | |
467f54b2 GC |
38 | pinctrl { |
39 | pwr_led_pin: pwr-led-pin { | |
40 | marvell,pins = "mpp63"; | |
41 | marvell,function = "gpo"; | |
42 | }; | |
51ab3fb8 | 43 | |
467f54b2 GC |
44 | stat_led_pins: stat-led-pins { |
45 | marvell,pins = "mpp64", "mpp65"; | |
46 | marvell,function = "gpio"; | |
47 | }; | |
51ab3fb8 RP |
48 | }; |
49 | ||
467f54b2 GC |
50 | gpio_leds { |
51 | compatible = "gpio-leds"; | |
52 | pinctrl-names = "default"; | |
53 | pinctrl-0 = <&pwr_led_pin &stat_led_pins>; | |
54 | ||
55 | green_pwr_led { | |
56 | label = "mirabox:green:pwr"; | |
57 | gpios = <&gpio1 31 1>; | |
58 | linux,default-trigger = "heartbeat"; | |
59 | }; | |
60 | ||
61 | blue_stat_led { | |
62 | label = "mirabox:blue:stat"; | |
63 | gpios = <&gpio2 0 1>; | |
64 | linux,default-trigger = "cpu0"; | |
65 | }; | |
66 | ||
67 | green_stat_led { | |
68 | label = "mirabox:green:stat"; | |
69 | gpios = <&gpio2 1 1>; | |
70 | default-state = "off"; | |
71 | }; | |
51ab3fb8 RP |
72 | }; |
73 | ||
467f54b2 GC |
74 | mdio { |
75 | phy0: ethernet-phy@0 { | |
76 | reg = <0>; | |
77 | }; | |
51ab3fb8 | 78 | |
467f54b2 GC |
79 | phy1: ethernet-phy@1 { |
80 | reg = <1>; | |
81 | }; | |
9f32cccc | 82 | }; |
467f54b2 GC |
83 | ethernet@70000 { |
84 | status = "okay"; | |
85 | phy = <&phy0>; | |
86 | phy-mode = "rgmii-id"; | |
87 | }; | |
88 | ethernet@74000 { | |
89 | status = "okay"; | |
90 | phy = <&phy1>; | |
91 | phy-mode = "rgmii-id"; | |
9f32cccc | 92 | }; |
200506b1 | 93 | |
467f54b2 GC |
94 | mvsdio@d4000 { |
95 | pinctrl-0 = <&sdio_pins3>; | |
96 | pinctrl-names = "default"; | |
97 | status = "okay"; | |
98 | /* | |
99 | * No CD or WP GPIOs: SDIO interface used for | |
100 | * Wifi/Bluetooth chip | |
101 | */ | |
d87b5fbb | 102 | broken-cd; |
467f54b2 | 103 | }; |
66bcb58b | 104 | |
467f54b2 GC |
105 | usb@50000 { |
106 | status = "okay"; | |
66bcb58b | 107 | }; |
488d1a6f | 108 | |
467f54b2 GC |
109 | usb@51000 { |
110 | status = "okay"; | |
111 | }; | |
488d1a6f | 112 | |
467f54b2 | 113 | i2c@11000 { |
488d1a6f | 114 | status = "okay"; |
467f54b2 GC |
115 | clock-frequency = <100000>; |
116 | pca9505: pca9505@25 { | |
117 | compatible = "nxp,pca9505"; | |
118 | gpio-controller; | |
119 | #gpio-cells = <2>; | |
120 | reg = <0x25>; | |
121 | }; | |
488d1a6f TP |
122 | }; |
123 | ||
467f54b2 | 124 | pcie-controller { |
488d1a6f | 125 | status = "okay"; |
467f54b2 GC |
126 | |
127 | /* Internal mini-PCIe connector */ | |
128 | pcie@1,0 { | |
129 | /* Port 0, Lane 0 */ | |
130 | status = "okay"; | |
131 | }; | |
132 | ||
133 | /* Connected on the PCB to a USB 3.0 XHCI controller */ | |
134 | pcie@2,0 { | |
135 | /* Port 1, Lane 0 */ | |
136 | status = "okay"; | |
137 | }; | |
488d1a6f TP |
138 | }; |
139 | }; | |
e3e37bca GC |
140 | }; |
141 | }; |