xref: /freebsd/sys/contrib/device-tree/src/arm/marvell/kirkwood-ns2-common.dtsi (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2f126890aSEmmanuel Vadot#include "kirkwood.dtsi"
3f126890aSEmmanuel Vadot#include "kirkwood-6281.dtsi"
4f126890aSEmmanuel Vadot
5f126890aSEmmanuel Vadot/ {
6f126890aSEmmanuel Vadot	chosen {
7f126890aSEmmanuel Vadot		bootargs = "console=ttyS0,115200n8";
8f126890aSEmmanuel Vadot		stdout-path = &uart0;
9f126890aSEmmanuel Vadot	};
10f126890aSEmmanuel Vadot
11f126890aSEmmanuel Vadot	ocp@f1000000 {
12f126890aSEmmanuel Vadot		pinctrl: pin-controller@10000 {
13f126890aSEmmanuel Vadot			pmx_ns2_sata0: pmx-ns2-sata0 {
14f126890aSEmmanuel Vadot				marvell,pins = "mpp21";
15f126890aSEmmanuel Vadot				marvell,function = "sata0";
16f126890aSEmmanuel Vadot			};
17f126890aSEmmanuel Vadot			pmx_ns2_sata1: pmx-ns2-sata1 {
18f126890aSEmmanuel Vadot				marvell,pins = "mpp20";
19f126890aSEmmanuel Vadot				marvell,function = "sata1";
20f126890aSEmmanuel Vadot			};
21f126890aSEmmanuel Vadot		};
22f126890aSEmmanuel Vadot
23f126890aSEmmanuel Vadot		serial@12000 {
24f126890aSEmmanuel Vadot			status = "okay";
25f126890aSEmmanuel Vadot		};
26f126890aSEmmanuel Vadot
27f126890aSEmmanuel Vadot		spi@10600 {
28f126890aSEmmanuel Vadot			status = "okay";
29f126890aSEmmanuel Vadot
30f126890aSEmmanuel Vadot			flash@0 {
31f126890aSEmmanuel Vadot				#address-cells = <1>;
32f126890aSEmmanuel Vadot				#size-cells = <1>;
33f126890aSEmmanuel Vadot				compatible = "mxicy,mx25l4005a", "jedec,spi-nor";
34f126890aSEmmanuel Vadot				reg = <0>;
35f126890aSEmmanuel Vadot				spi-max-frequency = <20000000>;
36f126890aSEmmanuel Vadot				mode = <0>;
37f126890aSEmmanuel Vadot
38f126890aSEmmanuel Vadot				partition@0 {
39f126890aSEmmanuel Vadot					reg = <0x0 0x80000>;
40f126890aSEmmanuel Vadot					label = "u-boot";
41f126890aSEmmanuel Vadot				};
42f126890aSEmmanuel Vadot			};
43f126890aSEmmanuel Vadot		};
44f126890aSEmmanuel Vadot
45f126890aSEmmanuel Vadot		i2c@11000 {
46f126890aSEmmanuel Vadot			status = "okay";
47f126890aSEmmanuel Vadot
48f126890aSEmmanuel Vadot			eeprom@50 {
49f126890aSEmmanuel Vadot				compatible = "atmel,24c04";
50f126890aSEmmanuel Vadot				pagesize = <16>;
51f126890aSEmmanuel Vadot				reg = <0x50>;
52f126890aSEmmanuel Vadot			};
53f126890aSEmmanuel Vadot		};
54f126890aSEmmanuel Vadot	};
55f126890aSEmmanuel Vadot
56f126890aSEmmanuel Vadot	gpio_keys {
57f126890aSEmmanuel Vadot		compatible = "gpio-keys";
58f126890aSEmmanuel Vadot
59*0e8011faSEmmanuel Vadot		button-power {
60f126890aSEmmanuel Vadot			label = "Power push button";
61f126890aSEmmanuel Vadot			linux,code = <KEY_POWER>;
62f126890aSEmmanuel Vadot			gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
63f126890aSEmmanuel Vadot		};
64f126890aSEmmanuel Vadot	};
65f126890aSEmmanuel Vadot
66f126890aSEmmanuel Vadot	gpio-leds {
67f126890aSEmmanuel Vadot		compatible = "gpio-leds";
68f126890aSEmmanuel Vadot
69*0e8011faSEmmanuel Vadot		led-red-fail {
70f126890aSEmmanuel Vadot			label = "ns2:red:fail";
71f126890aSEmmanuel Vadot			gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
72f126890aSEmmanuel Vadot		};
73f126890aSEmmanuel Vadot	};
74f126890aSEmmanuel Vadot
75f126890aSEmmanuel Vadot	gpio_poweroff {
76f126890aSEmmanuel Vadot		compatible = "gpio-poweroff";
77f126890aSEmmanuel Vadot		gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
78f126890aSEmmanuel Vadot	};
79f126890aSEmmanuel Vadot
80f126890aSEmmanuel Vadot};
81f126890aSEmmanuel Vadot
82f126890aSEmmanuel Vadot&mdio {
83f126890aSEmmanuel Vadot	status = "okay";
84f126890aSEmmanuel Vadot
85f126890aSEmmanuel Vadot	ethphy0: ethernet-phy@X {
86f126890aSEmmanuel Vadot                /* overwrite reg property in board file */
87f126890aSEmmanuel Vadot	};
88f126890aSEmmanuel Vadot};
89f126890aSEmmanuel Vadot
90f126890aSEmmanuel Vadot&eth0 {
91f126890aSEmmanuel Vadot	status = "okay";
92f126890aSEmmanuel Vadot	ethernet0-port@0 {
93f126890aSEmmanuel Vadot		phy-handle = <&ethphy0>;
94f126890aSEmmanuel Vadot	};
95f126890aSEmmanuel Vadot};
96