Linux Audio

Check our new training course

Loading...
v4.17
  1// SPDX-License-Identifier: GPL-2.0
  2/dts-v1/;
  3
  4#include "kirkwood.dtsi"
  5#include "kirkwood-6281.dtsi"
  6
  7/ {
  8	model = "RaidSonic ICY BOX IB-NAS62x0 (Rev B)";
  9	compatible = "raidsonic,ib-nas6210-b", "raidsonic,ib-nas6220-b", "raidsonic,ib-nas6210", "raidsonic,ib-nas6220", "raidsonic,ib-nas62x0", "marvell,kirkwood-88f6281", "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			pmx_led_os_red: pmx-led-os-red {
 24				marvell,pins = "mpp22";
 25				marvell,function = "gpio";
 26			};
 27			pmx_power_off: pmx-power-off {
 28				marvell,pins = "mpp24";
 29				marvell,function = "gpio";
 30			};
 31			pmx_led_os_green: pmx-led-os-green {
 32				marvell,pins = "mpp25";
 33				marvell,function = "gpio";
 34			};
 35			pmx_led_usb_transfer: pmx-led-usb-transfer {
 36				marvell,pins = "mpp27";
 37				marvell,function = "gpio";
 38			};
 39			pmx_button_reset: pmx-button-reset {
 40				marvell,pins = "mpp28";
 41				marvell,function = "gpio";
 42			};
 43			pmx_button_usb_copy: pmx-button-usb-copy {
 44				marvell,pins = "mpp29";
 45				marvell,function = "gpio";
 46			};
 47		};
 48
 49		serial@12000 {
 50			status = "okay";
 51		};
 52
 53		sata@80000 {
 54			status = "okay";
 55			nr-ports = <2>;
 56		};
 57	};
 58
 59	gpio_keys {
 60		compatible = "gpio-keys";
 61		#address-cells = <1>;
 62		#size-cells = <0>;
 63		pinctrl-0 = <&pmx_button_reset &pmx_button_usb_copy>;
 64		pinctrl-names = "default";
 65
 66		copy {
 67			label = "USB Copy";
 68			linux,code = <KEY_COPY>;
 69			gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
 70		};
 71		reset {
 72			label = "Reset";
 73			linux,code = <KEY_RESTART>;
 74			gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
 75		};
 76	};
 77
 78	gpio-leds {
 79		compatible = "gpio-leds";
 80		pinctrl-0 = <&pmx_led_os_red &pmx_led_os_green
 81			     &pmx_led_usb_transfer>;
 82		pinctrl-names = "default";
 83
 84		green-os {
 85			label = "ib62x0:green:os";
 86			gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
 87			default-state = "keep";
 88		};
 89		red-os {
 90			label = "ib62x0:red:os";
 91			gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
 92		};
 93		usb-copy {
 94			label = "ib62x0:red:usb_copy";
 95			gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
 96		};
 97	};
 98
 99	gpio_poweroff {
100		compatible = "gpio-poweroff";
101		pinctrl-0 = <&pmx_power_off>;
102		pinctrl-names = "default";
103		gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
104	};
105};
106
107&nand {
108	status = "okay";
109
110	partition@0 {
111		label = "u-boot";
112		reg = <0x0000000 0xe0000>;
113	};
114
115	partition@e0000 {
116		label = "u-boot environment";
117		reg = <0xe0000 0x20000>;
118	};
119
120	partition@100000 {
121		label = "uImage";
122		reg = <0x0100000 0x600000>;
123	};
124
125	partition@700000 {
126		label = "root";
127		reg = <0x0700000 0xf900000>;
128	};
129
130};
131
132&mdio {
133	status = "okay";
134
135	ethphy0: ethernet-phy@8 {
136		reg = <8>;
137	};
138};
139
140&eth0 {
141	status = "okay";
142
143	ethernet0-port@0 {
144		phy-handle = <&ethphy0>;
145	};
146};
v4.6
 
  1/dts-v1/;
  2
  3#include "kirkwood.dtsi"
  4#include "kirkwood-6281.dtsi"
  5
  6/ {
  7	model = "RaidSonic ICY BOX IB-NAS62x0 (Rev B)";
  8	compatible = "raidsonic,ib-nas6210-b", "raidsonic,ib-nas6220-b", "raidsonic,ib-nas6210", "raidsonic,ib-nas6220", "raidsonic,ib-nas62x0", "marvell,kirkwood-88f6281", "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			pmx_led_os_red: pmx-led-os-red {
 23				marvell,pins = "mpp22";
 24				marvell,function = "gpio";
 25			};
 26			pmx_power_off: pmx-power-off {
 27				marvell,pins = "mpp24";
 28				marvell,function = "gpio";
 29			};
 30			pmx_led_os_green: pmx-led-os-green {
 31				marvell,pins = "mpp25";
 32				marvell,function = "gpio";
 33			};
 34			pmx_led_usb_transfer: pmx-led-usb-transfer {
 35				marvell,pins = "mpp27";
 36				marvell,function = "gpio";
 37			};
 38			pmx_button_reset: pmx-button-reset {
 39				marvell,pins = "mpp28";
 40				marvell,function = "gpio";
 41			};
 42			pmx_button_usb_copy: pmx-button-usb-copy {
 43				marvell,pins = "mpp29";
 44				marvell,function = "gpio";
 45			};
 46		};
 47
 48		serial@12000 {
 49			status = "okay";
 50		};
 51
 52		sata@80000 {
 53			status = "okay";
 54			nr-ports = <2>;
 55		};
 56	};
 57
 58	gpio_keys {
 59		compatible = "gpio-keys";
 60		#address-cells = <1>;
 61		#size-cells = <0>;
 62		pinctrl-0 = <&pmx_button_reset &pmx_button_usb_copy>;
 63		pinctrl-names = "default";
 64
 65		button@1 {
 66			label = "USB Copy";
 67			linux,code = <KEY_COPY>;
 68			gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
 69		};
 70		button@2 {
 71			label = "Reset";
 72			linux,code = <KEY_RESTART>;
 73			gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
 74		};
 75	};
 76
 77	gpio-leds {
 78		compatible = "gpio-leds";
 79		pinctrl-0 = <&pmx_led_os_red &pmx_led_os_green
 80			     &pmx_led_usb_transfer>;
 81		pinctrl-names = "default";
 82
 83		green-os {
 84			label = "ib62x0:green:os";
 85			gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
 86			default-state = "keep";
 87		};
 88		red-os {
 89			label = "ib62x0:red:os";
 90			gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
 91		};
 92		usb-copy {
 93			label = "ib62x0:red:usb_copy";
 94			gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
 95		};
 96	};
 97
 98	gpio_poweroff {
 99		compatible = "gpio-poweroff";
100		pinctrl-0 = <&pmx_power_off>;
101		pinctrl-names = "default";
102		gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
103	};
104};
105
106&nand {
107	status = "okay";
108
109	partition@0 {
110		label = "u-boot";
111		reg = <0x0000000 0xe0000>;
112	};
113
114	partition@e0000 {
115		label = "u-boot environment";
116		reg = <0xe0000 0x100000>;
117	};
118
119	partition@100000 {
120		label = "uImage";
121		reg = <0x0100000 0x600000>;
122	};
123
124	partition@700000 {
125		label = "root";
126		reg = <0x0700000 0xf900000>;
127	};
128
129};
130
131&mdio {
132	status = "okay";
133
134	ethphy0: ethernet-phy@8 {
135		reg = <8>;
136	};
137};
138
139&eth0 {
140	status = "okay";
141
142	ethernet0-port@0 {
143		phy-handle = <&ethphy0>;
144	};
145};