blob: da8891bbeec86909a121da832d9c3169fca3c8e5 [file] [log] [blame]
Ezequiel Garcia0ab61292013-07-26 10:18:02 -03001#include "kirkwood.dtsi"
2#include "kirkwood-6281.dtsi"
Simon Guinotecee1e42012-10-17 12:09:04 +02003
4/ {
5 chosen {
6 bootargs = "console=ttyS0,115200n8";
Sebastian Hesselbarthab833612014-04-30 14:56:30 +02007 stdout-path = &uart0;
Simon Guinotecee1e42012-10-17 12:09:04 +02008 };
9
10 ocp@f1000000 {
Simon Guinot4ea931e2013-01-08 15:36:18 +010011 pinctrl: pinctrl@10000 {
Simon Guinot4ea931e2013-01-08 15:36:18 +010012 pmx_ns2_sata0: pmx-ns2-sata0 {
13 marvell,pins = "mpp21";
14 marvell,function = "sata0";
15 };
16 pmx_ns2_sata1: pmx-ns2-sata1 {
17 marvell,pins = "mpp20";
18 marvell,function = "sata1";
19 };
20 };
21
Simon Guinotecee1e42012-10-17 12:09:04 +020022 serial@12000 {
Thomas Petazzonief519a42013-05-24 11:44:48 +020023 pinctrl-0 = <&pmx_uart0>;
24 pinctrl-names = "default";
Simon Guinotecee1e42012-10-17 12:09:04 +020025 status = "okay";
26 };
27
28 spi@10600 {
Thomas Petazzonief519a42013-05-24 11:44:48 +020029 pinctrl-0 = <&pmx_spi>;
30 pinctrl-names = "default";
Simon Guinotecee1e42012-10-17 12:09:04 +020031 status = "okay";
32
33 flash@0 {
34 #address-cells = <1>;
35 #size-cells = <1>;
36 compatible = "mx25l4005a";
37 reg = <0>;
38 spi-max-frequency = <20000000>;
39 mode = <0>;
40
41 partition@0 {
42 reg = <0x0 0x80000>;
43 label = "u-boot";
44 };
45 };
46 };
47
48 i2c@11000 {
Thomas Petazzonief519a42013-05-24 11:44:48 +020049 pinctrl-0 = <&pmx_twsi0>;
50 pinctrl-names = "default";
Simon Guinotecee1e42012-10-17 12:09:04 +020051 status = "okay";
52
53 eeprom@50 {
54 compatible = "at,24c04";
55 pagesize = <16>;
56 reg = <0x50>;
57 };
58 };
59 };
60
61 gpio_keys {
62 compatible = "gpio-keys";
63 #address-cells = <1>;
64 #size-cells = <0>;
65
66 button@1 {
67 label = "Power push button";
Andrew Lunn23301192013-12-04 16:51:38 +010068 linux,code = <KEY_POWER>;
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010069 gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
Simon Guinotecee1e42012-10-17 12:09:04 +020070 };
71 };
72
73 gpio-leds {
74 compatible = "gpio-leds";
75
76 red-fail {
77 label = "ns2:red:fail";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010078 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
Simon Guinotecee1e42012-10-17 12:09:04 +020079 };
80 };
Andrew Lunn102c9542012-12-28 15:14:10 +010081
82 gpio_poweroff {
83 compatible = "gpio-poweroff";
Andrew Lunn3a31f2d72013-12-04 16:51:39 +010084 gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
Andrew Lunn102c9542012-12-28 15:14:10 +010085 };
86
Simon Guinotecee1e42012-10-17 12:09:04 +020087};
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +020088
89&mdio {
90 status = "okay";
91
92 ethphy0: ethernet-phy {
Sebastian Hesselbarth876e2332013-07-07 22:34:56 +020093 /* overwrite reg property in board file */
94 };
95};
96
97&eth0 {
98 status = "okay";
99 ethernet0-port@0 {
100 phy-handle = <&ethphy0>;
101 };
102};