Linux Audio

Check our new training course

Loading...
v5.4
  1// SPDX-License-Identifier: GPL-2.0
  2/dts-v1/;
  3
  4#include "kirkwood.dtsi"
  5#include "kirkwood-6282.dtsi"
  6
  7/ {
  8	model = "Universal Scientific Industrial Co. Topkick-1281P2";
  9	compatible = "usi,topkick-1281P2", "usi,topkick", "marvell,kirkwood-88f6282", "marvell,kirkwood";
 10
 11	memory {
 12		device_type = "memory";
 13		reg = <0x00000000 0x10000000>;
 14	};
 15
 16	chosen {
 17		bootargs = "console=ttyS0,115200n8 earlyprintk";
 18		stdout-path = &uart0;
 19	};
 20
 21	ocp@f1000000 {
 22		pinctrl: pin-controller@10000 {
 23			/*
 24			 * Switch positions
 25			 *
 26			 *     /-SW_LEFT(2)
 27			 *     |
 28			 *     |   /-SW_IDLE
 29			 *     |   |
 30			 *     |   |   /-SW_RIGHT
 31			 *     |   |   |
 32			 * PS [L] [I] [R] LEDS
 33			 */
 34			pinctrl-0 = <&pmx_sw_left &pmx_sw_right
 35				     &pmx_sw_idle &pmx_sw_left2>;
 36			pinctrl-names = "default";
 37
 38			pmx_led_disk_yellow: pmx-led-disk-yellow {
 39				marvell,pins = "mpp21";
 40				marvell,function = "gpio";
 41			};
 42
 43			pmx_sata0_pwr_enable: pmx-sata0-pwr-enable {
 44				marvell,pins = "mpp36";
 45				marvell,function = "gpio";
 46			};
 47
 48			pmx_led_sys_red: pmx-led-sys-red {
 49				marvell,pins = "mpp37";
 50				marvell,function = "gpio";
 51			};
 52
 53			pmx_led_sys_blue: pmx-led-sys-blue {
 54				marvell,pins = "mpp38";
 55				marvell,function = "gpio";
 56			};
 57
 58			pmx_led_wifi_green: pmx-led-wifi-green {
 59				marvell,pins = "mpp39";
 60				marvell,function = "gpio";
 61			};
 62
 63			pmx_sw_left: pmx-sw-left {
 64				marvell,pins = "mpp43";
 65				marvell,function = "gpio";
 66			};
 67
 68			pmx_sw_right: pmx-sw-right {
 69				marvell,pins = "mpp44";
 70				marvell,function = "gpio";
 71			};
 72
 73			pmx_sw_idle: pmx-sw-idle {
 74				marvell,pins = "mpp45";
 75				marvell,function = "gpio";
 76			};
 77
 78			pmx_sw_left2: pmx-sw-left2 {
 79				marvell,pins = "mpp46";
 80				marvell,function = "gpio";
 81			};
 82
 83			pmx_led_wifi_yellow: pmx-led-wifi-yellow {
 84				marvell,pins = "mpp48";
 85				marvell,function = "gpio";
 86			};
 87		};
 88
 89		serial@12000 {
 90			status = "okay";
 91		};
 92
 93		sata@80000 {
 94			status = "okay";
 95			nr-ports = <1>;
 96		};
 97
 98		i2c@11000 {
 99			status = "okay";
100		};
101
102		mvsdio@90000 {
103			pinctrl-0 = <&pmx_sdio>;
104			pinctrl-names = "default";
105			status = "okay";
106			/* No CD or WP GPIOs */
107			broken-cd;
108		};
109	};
110
111	gpio-leds {
112		/*
113		 * GPIO LED layout
114		 *
115		 *       /-SYS_LED(2)
116		 *       |
117		 *       |   /-DISK_LED
118		 *       |   |
119		 *       |   |   /-WLAN_LED(2)
120		 *       |   |   |
121		 * [SW] [*] [*] [*]
122		 */
123
124		compatible = "gpio-leds";
125		pinctrl-0 = <&pmx_led_disk_yellow &pmx_led_sys_red
126			     &pmx_led_sys_blue &pmx_led_wifi_green
127			     &pmx_led_wifi_yellow>;
128		pinctrl-names = "default";
129
130		disk {
131			label = "topkick:yellow:disk";
132			gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
133			linux,default-trigger = "disk-activity";
134		};
135		system2 {
136			label = "topkick:red:system";
137			gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
138		};
139		system {
140			label = "topkick:blue:system";
141			gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
142			default-state = "on";
143		};
144		wifi {
145			label = "topkick:green:wifi";
146			gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
147		};
148		wifi2 {
149			label = "topkick:yellow:wifi";
150			gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
151		};
152	};
153	regulators {
154		compatible = "simple-bus";
155		#address-cells = <1>;
156		#size-cells = <0>;
157		pinctrl-0 = <&pmx_sata0_pwr_enable>;
158		pinctrl-names = "default";
159
160		sata0_power: regulator@1 {
161			compatible = "regulator-fixed";
162			reg = <1>;
163			regulator-name = "SATA0 Power";
164			regulator-min-microvolt = <5000000>;
165			regulator-max-microvolt = <5000000>;
166			enable-active-high;
167			regulator-always-on;
168			regulator-boot-on;
169			gpio = <&gpio1 4 0>;
170		};
171	};
172};
173
174&nand {
175	status = "okay";
176
177	partition@0 {
178		label = "u-boot";
179		reg = <0x0000000 0x180000>;
180	};
181
182	partition@180000 {
183		label = "u-boot env";
184		reg = <0x0180000 0x20000>;
185	};
186
187	partition@200000 {
188		label = "uImage";
189		reg = <0x0200000 0x600000>;
190	};
191
192	partition@800000 {
193		label = "uInitrd";
194		reg = <0x0800000 0x1000000>;
195	};
196
197	partition@1800000 {
198		label = "rootfs";
199		reg = <0x1800000 0xe800000>;
200	};
201};
202
203&mdio {
204	status = "okay";
205
206	ethphy0: ethernet-phy@0 {
207		reg = <0>;
208	};
209};
210
211&eth0 {
212	status = "okay";
213	ethernet0-port@0 {
214		phy-handle = <&ethphy0>;
215	};
216};
v4.10.11
 
  1/dts-v1/;
  2
  3#include "kirkwood.dtsi"
  4#include "kirkwood-6282.dtsi"
  5
  6/ {
  7	model = "Universal Scientific Industrial Co. Topkick-1281P2";
  8	compatible = "usi,topkick-1281P2", "usi,topkick", "marvell,kirkwood-88f6282", "marvell,kirkwood";
  9
 10	memory {
 11		device_type = "memory";
 12		reg = <0x00000000 0x10000000>;
 13	};
 14
 15	chosen {
 16		bootargs = "console=ttyS0,115200n8 earlyprintk";
 17		stdout-path = &uart0;
 18	};
 19
 20	ocp@f1000000 {
 21		pinctrl: pin-controller@10000 {
 22			/*
 23			 * Switch positions
 24			 *
 25			 *     /-SW_LEFT(2)
 26			 *     |
 27			 *     |   /-SW_IDLE
 28			 *     |   |
 29			 *     |   |   /-SW_RIGHT
 30			 *     |   |   |
 31			 * PS [L] [I] [R] LEDS
 32			 */
 33			pinctrl-0 = <&pmx_sw_left &pmx_sw_right
 34				     &pmx_sw_idle &pmx_sw_left2>;
 35			pinctrl-names = "default";
 36
 37			pmx_led_disk_yellow: pmx-led-disk-yellow {
 38				marvell,pins = "mpp21";
 39				marvell,function = "gpio";
 40			};
 41
 42			pmx_sata0_pwr_enable: pmx-sata0-pwr-enable {
 43				marvell,pins = "mpp36";
 44				marvell,function = "gpio";
 45			};
 46
 47			pmx_led_sys_red: pmx-led-sys-red {
 48				marvell,pins = "mpp37";
 49				marvell,function = "gpio";
 50			};
 51
 52			pmx_led_sys_blue: pmx-led-sys-blue {
 53				marvell,pins = "mpp38";
 54				marvell,function = "gpio";
 55			};
 56
 57			pmx_led_wifi_green: pmx-led-wifi-green {
 58				marvell,pins = "mpp39";
 59				marvell,function = "gpio";
 60			};
 61
 62			pmx_sw_left: pmx-sw-left {
 63				marvell,pins = "mpp43";
 64				marvell,function = "gpio";
 65			};
 66
 67			pmx_sw_right: pmx-sw-right {
 68				marvell,pins = "mpp44";
 69				marvell,function = "gpio";
 70			};
 71
 72			pmx_sw_idle: pmx-sw-idle {
 73				marvell,pins = "mpp45";
 74				marvell,function = "gpio";
 75			};
 76
 77			pmx_sw_left2: pmx-sw-left2 {
 78				marvell,pins = "mpp46";
 79				marvell,function = "gpio";
 80			};
 81
 82			pmx_led_wifi_yellow: pmx-led-wifi-yellow {
 83				marvell,pins = "mpp48";
 84				marvell,function = "gpio";
 85			};
 86		};
 87
 88		serial@12000 {
 89			status = "okay";
 90		};
 91
 92		sata@80000 {
 93			status = "okay";
 94			nr-ports = <1>;
 95		};
 96
 97		i2c@11000 {
 98			status = "okay";
 99		};
100
101		mvsdio@90000 {
102			pinctrl-0 = <&pmx_sdio>;
103			pinctrl-names = "default";
104			status = "okay";
105			/* No CD or WP GPIOs */
106			broken-cd;
107		};
108	};
109
110	gpio-leds {
111		/*
112		 * GPIO LED layout
113		 *
114		 *       /-SYS_LED(2)
115		 *       |
116		 *       |   /-DISK_LED
117		 *       |   |
118		 *       |   |   /-WLAN_LED(2)
119		 *       |   |   |
120		 * [SW] [*] [*] [*]
121		 */
122
123		compatible = "gpio-leds";
124		pinctrl-0 = <&pmx_led_disk_yellow &pmx_led_sys_red
125			     &pmx_led_sys_blue &pmx_led_wifi_green
126			     &pmx_led_wifi_yellow>;
127		pinctrl-names = "default";
128
129		disk {
130			label = "topkick:yellow:disk";
131			gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
132			linux,default-trigger = "disk-activity";
133		};
134		system2 {
135			label = "topkick:red:system";
136			gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
137		};
138		system {
139			label = "topkick:blue:system";
140			gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
141			default-state = "on";
142		};
143		wifi {
144			label = "topkick:green:wifi";
145			gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
146		};
147		wifi2 {
148			label = "topkick:yellow:wifi";
149			gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
150		};
151	};
152	regulators {
153		compatible = "simple-bus";
154		#address-cells = <1>;
155		#size-cells = <0>;
156		pinctrl-0 = <&pmx_sata0_pwr_enable>;
157		pinctrl-names = "default";
158
159		sata0_power: regulator@1 {
160			compatible = "regulator-fixed";
161			reg = <1>;
162			regulator-name = "SATA0 Power";
163			regulator-min-microvolt = <5000000>;
164			regulator-max-microvolt = <5000000>;
165			enable-active-high;
166			regulator-always-on;
167			regulator-boot-on;
168			gpio = <&gpio1 4 0>;
169		};
170	};
171};
172
173&nand {
174	status = "okay";
175
176	partition@0 {
177		label = "u-boot";
178		reg = <0x0000000 0x180000>;
179	};
180
181	partition@180000 {
182		label = "u-boot env";
183		reg = <0x0180000 0x20000>;
184	};
185
186	partition@200000 {
187		label = "uImage";
188		reg = <0x0200000 0x600000>;
189	};
190
191	partition@800000 {
192		label = "uInitrd";
193		reg = <0x0800000 0x1000000>;
194	};
195
196	partition@1800000 {
197		label = "rootfs";
198		reg = <0x1800000 0xe800000>;
199	};
200};
201
202&mdio {
203	status = "okay";
204
205	ethphy0: ethernet-phy@0 {
206		reg = <0>;
207	};
208};
209
210&eth0 {
211	status = "okay";
212	ethernet0-port@0 {
213		phy-handle = <&ethphy0>;
214	};
215};