xref: /linux/scripts/dtc/include-prefixes/arm/marvell/kirkwood-ns2-common.dtsi (revision b98a91911d24babe20600ad19697570ea335356f)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2724ba675SRob Herring#include "kirkwood.dtsi"
3724ba675SRob Herring#include "kirkwood-6281.dtsi"
4724ba675SRob Herring
5724ba675SRob Herring/ {
6724ba675SRob Herring	chosen {
7724ba675SRob Herring		bootargs = "console=ttyS0,115200n8";
8724ba675SRob Herring		stdout-path = &uart0;
9724ba675SRob Herring	};
10724ba675SRob Herring
11724ba675SRob Herring	ocp@f1000000 {
12724ba675SRob Herring		pinctrl: pin-controller@10000 {
13724ba675SRob Herring			pmx_ns2_sata0: pmx-ns2-sata0 {
14724ba675SRob Herring				marvell,pins = "mpp21";
15724ba675SRob Herring				marvell,function = "sata0";
16724ba675SRob Herring			};
17724ba675SRob Herring			pmx_ns2_sata1: pmx-ns2-sata1 {
18724ba675SRob Herring				marvell,pins = "mpp20";
19724ba675SRob Herring				marvell,function = "sata1";
20724ba675SRob Herring			};
21724ba675SRob Herring		};
22724ba675SRob Herring
23724ba675SRob Herring		serial@12000 {
24724ba675SRob Herring			status = "okay";
25724ba675SRob Herring		};
26724ba675SRob Herring
27724ba675SRob Herring		spi@10600 {
28724ba675SRob Herring			status = "okay";
29724ba675SRob Herring
30724ba675SRob Herring			flash@0 {
31724ba675SRob Herring				#address-cells = <1>;
32724ba675SRob Herring				#size-cells = <1>;
33724ba675SRob Herring				compatible = "mxicy,mx25l4005a", "jedec,spi-nor";
34724ba675SRob Herring				reg = <0>;
35724ba675SRob Herring				spi-max-frequency = <20000000>;
36724ba675SRob Herring				mode = <0>;
37724ba675SRob Herring
38724ba675SRob Herring				partition@0 {
39724ba675SRob Herring					reg = <0x0 0x80000>;
40724ba675SRob Herring					label = "u-boot";
41724ba675SRob Herring				};
42724ba675SRob Herring			};
43724ba675SRob Herring		};
44724ba675SRob Herring
45724ba675SRob Herring		i2c@11000 {
46724ba675SRob Herring			status = "okay";
47724ba675SRob Herring
48724ba675SRob Herring			eeprom@50 {
49724ba675SRob Herring				compatible = "atmel,24c04";
50724ba675SRob Herring				pagesize = <16>;
51724ba675SRob Herring				reg = <0x50>;
52724ba675SRob Herring			};
53724ba675SRob Herring		};
54724ba675SRob Herring	};
55724ba675SRob Herring
56724ba675SRob Herring	gpio_keys {
57724ba675SRob Herring		compatible = "gpio-keys";
58724ba675SRob Herring		#address-cells = <1>;
59724ba675SRob Herring		#size-cells = <0>;
60724ba675SRob Herring
61*b98a9191SKrzysztof Kozlowski		button-power {
62724ba675SRob Herring			label = "Power push button";
63724ba675SRob Herring			linux,code = <KEY_POWER>;
64724ba675SRob Herring			gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
65724ba675SRob Herring		};
66724ba675SRob Herring	};
67724ba675SRob Herring
68724ba675SRob Herring	gpio-leds {
69724ba675SRob Herring		compatible = "gpio-leds";
70724ba675SRob Herring
71724ba675SRob Herring		red-fail {
72724ba675SRob Herring			label = "ns2:red:fail";
73724ba675SRob Herring			gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
74724ba675SRob Herring		};
75724ba675SRob Herring	};
76724ba675SRob Herring
77724ba675SRob Herring	gpio_poweroff {
78724ba675SRob Herring		compatible = "gpio-poweroff";
79724ba675SRob Herring		gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
80724ba675SRob Herring	};
81724ba675SRob Herring
82724ba675SRob Herring};
83724ba675SRob Herring
84724ba675SRob Herring&mdio {
85724ba675SRob Herring	status = "okay";
86724ba675SRob Herring
87724ba675SRob Herring	ethphy0: ethernet-phy@X {
88724ba675SRob Herring                /* overwrite reg property in board file */
89724ba675SRob Herring	};
90724ba675SRob Herring};
91724ba675SRob Herring
92724ba675SRob Herring&eth0 {
93724ba675SRob Herring	status = "okay";
94724ba675SRob Herring	ethernet0-port@0 {
95724ba675SRob Herring		phy-handle = <&ethphy0>;
96724ba675SRob Herring	};
97724ba675SRob Herring};
98