xref: /linux/scripts/dtc/include-prefixes/arm/marvell/kirkwood-nsa310.dts (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2724ba675SRob Herring/dts-v1/;
3724ba675SRob Herring
4724ba675SRob Herring#include "kirkwood-nsa3x0-common.dtsi"
5724ba675SRob Herring
6724ba675SRob Herring/ {
7724ba675SRob Herring	compatible = "zyxel,nsa310", "marvell,kirkwood-88f6281", "marvell,kirkwood";
8724ba675SRob Herring
9724ba675SRob Herring	memory {
10724ba675SRob Herring		device_type = "memory";
11724ba675SRob Herring		reg = <0x00000000 0x10000000>;
12724ba675SRob Herring	};
13724ba675SRob Herring
14724ba675SRob Herring	chosen {
15724ba675SRob Herring		bootargs = "console=ttyS0,115200";
16724ba675SRob Herring		stdout-path = &uart0;
17724ba675SRob Herring	};
18724ba675SRob Herring
19724ba675SRob Herring	ocp@f1000000 {
20724ba675SRob Herring		pinctrl: pin-controller@10000 {
21724ba675SRob Herring			pinctrl-0 = <&pmx_unknown>;
22724ba675SRob Herring			pinctrl-names = "default";
23724ba675SRob Herring
24724ba675SRob Herring			pmx_led_esata_green: pmx-led-esata-green {
25724ba675SRob Herring				marvell,pins = "mpp12";
26724ba675SRob Herring				marvell,function = "gpio";
27724ba675SRob Herring			};
28724ba675SRob Herring
29724ba675SRob Herring			pmx_led_esata_red: pmx-led-esata-red {
30724ba675SRob Herring				marvell,pins = "mpp13";
31724ba675SRob Herring				marvell,function = "gpio";
32724ba675SRob Herring			};
33724ba675SRob Herring
34724ba675SRob Herring			pmx_led_usb_green: pmx-led-usb-green {
35724ba675SRob Herring				marvell,pins = "mpp15";
36724ba675SRob Herring				marvell,function = "gpio";
37724ba675SRob Herring			};
38724ba675SRob Herring
39724ba675SRob Herring			pmx_led_usb_red: pmx-led-usb-red {
40724ba675SRob Herring				marvell,pins = "mpp16";
41724ba675SRob Herring				marvell,function = "gpio";
42724ba675SRob Herring			};
43724ba675SRob Herring
44724ba675SRob Herring			pmx_led_sys_green: pmx-led-sys-green {
45724ba675SRob Herring				marvell,pins = "mpp28";
46724ba675SRob Herring				marvell,function = "gpio";
47724ba675SRob Herring			};
48724ba675SRob Herring
49724ba675SRob Herring			pmx_led_sys_red: pmx-led-sys-red {
50724ba675SRob Herring				marvell,pins = "mpp29";
51724ba675SRob Herring				marvell,function = "gpio";
52724ba675SRob Herring			};
53724ba675SRob Herring
54724ba675SRob Herring			pmx_led_hdd_green: pmx-led-hdd-green {
55724ba675SRob Herring				marvell,pins = "mpp41";
56724ba675SRob Herring				marvell,function = "gpio";
57724ba675SRob Herring			};
58724ba675SRob Herring
59724ba675SRob Herring			pmx_led_hdd_red: pmx-led-hdd-red {
60724ba675SRob Herring				marvell,pins = "mpp42";
61724ba675SRob Herring				marvell,function = "gpio";
62724ba675SRob Herring			};
63724ba675SRob Herring
64724ba675SRob Herring			pmx_unknown: pmx-unknown {
65724ba675SRob Herring				marvell,pins = "mpp44";
66724ba675SRob Herring				marvell,function = "gpio";
67724ba675SRob Herring			};
68724ba675SRob Herring
69724ba675SRob Herring		};
70724ba675SRob Herring
71724ba675SRob Herring		i2c@11000 {
72724ba675SRob Herring			status = "okay";
73724ba675SRob Herring
74724ba675SRob Herring			adt7476: adt7476a@2e {
75724ba675SRob Herring				compatible = "adi,adt7476";
76724ba675SRob Herring				reg = <0x2e>;
77724ba675SRob Herring			};
78724ba675SRob Herring		};
79724ba675SRob Herring	};
80724ba675SRob Herring
81724ba675SRob Herring	gpio-leds {
82724ba675SRob Herring		compatible = "gpio-leds";
83724ba675SRob Herring		pinctrl-0 = <&pmx_led_esata_green &pmx_led_esata_red
84724ba675SRob Herring			     &pmx_led_usb_green &pmx_led_usb_red
85724ba675SRob Herring			     &pmx_led_sys_green &pmx_led_sys_red
86724ba675SRob Herring			     &pmx_led_copy_green &pmx_led_copy_red
87724ba675SRob Herring			     &pmx_led_hdd_green &pmx_led_hdd_red>;
88724ba675SRob Herring		pinctrl-names = "default";
89724ba675SRob Herring
90*9d0120b7SKrzysztof Kozlowski		led-green-sys {
91724ba675SRob Herring			label = "nsa310:green:sys";
92724ba675SRob Herring			gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
93724ba675SRob Herring		};
94*9d0120b7SKrzysztof Kozlowski		led-red-sys {
95724ba675SRob Herring			label = "nsa310:red:sys";
96724ba675SRob Herring			gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
97724ba675SRob Herring		};
98*9d0120b7SKrzysztof Kozlowski		led-green-hdd {
99724ba675SRob Herring			label = "nsa310:green:hdd";
100724ba675SRob Herring			gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
101724ba675SRob Herring		};
102*9d0120b7SKrzysztof Kozlowski		led-red-hdd {
103724ba675SRob Herring			label = "nsa310:red:hdd";
104724ba675SRob Herring			gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
105724ba675SRob Herring		};
106*9d0120b7SKrzysztof Kozlowski		led-green-esata {
107724ba675SRob Herring			label = "nsa310:green:esata";
108724ba675SRob Herring			gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
109724ba675SRob Herring		};
110*9d0120b7SKrzysztof Kozlowski		led-red-esata {
111724ba675SRob Herring			label = "nsa310:red:esata";
112724ba675SRob Herring			gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
113724ba675SRob Herring		};
114*9d0120b7SKrzysztof Kozlowski		led-green-usb {
115724ba675SRob Herring			label = "nsa310:green:usb";
116724ba675SRob Herring			gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
117724ba675SRob Herring		};
118*9d0120b7SKrzysztof Kozlowski		led-red-usb {
119724ba675SRob Herring			label = "nsa310:red:usb";
120724ba675SRob Herring			gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
121724ba675SRob Herring		};
122*9d0120b7SKrzysztof Kozlowski		led-green-copy {
123724ba675SRob Herring			label = "nsa310:green:copy";
124724ba675SRob Herring			gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
125724ba675SRob Herring		};
126*9d0120b7SKrzysztof Kozlowski		led-red-copy {
127724ba675SRob Herring			label = "nsa310:red:copy";
128724ba675SRob Herring			gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
129724ba675SRob Herring		};
130724ba675SRob Herring	};
131724ba675SRob Herring};
132724ba675SRob Herring
133724ba675SRob Herring&pciec {
134724ba675SRob Herring	status = "okay";
135724ba675SRob Herring};
136724ba675SRob Herring
137724ba675SRob Herring&pcie0 {
138724ba675SRob Herring	status = "okay";
139724ba675SRob Herring};
140