Linux Audio

Check our new training course

Loading...
v6.2
  1// SPDX-License-Identifier: GPL-2.0
  2/dts-v1/;
  3
  4#include "kirkwood-nsa3x0-common.dtsi"
  5
  6/ {
  7	compatible = "zyxel,nsa310", "marvell,kirkwood-88f6281", "marvell,kirkwood";
  8
  9	memory {
 10		device_type = "memory";
 11		reg = <0x00000000 0x10000000>;
 12	};
 13
 14	chosen {
 15		bootargs = "console=ttyS0,115200";
 16		stdout-path = &uart0;
 17	};
 18
 
 
 
 
 
 
 
 
 
 
 19	ocp@f1000000 {
 20		pinctrl: pin-controller@10000 {
 21			pinctrl-0 = <&pmx_unknown>;
 22			pinctrl-names = "default";
 23
 24			pmx_led_esata_green: pmx-led-esata-green {
 25				marvell,pins = "mpp12";
 26				marvell,function = "gpio";
 27			};
 28
 29			pmx_led_esata_red: pmx-led-esata-red {
 30				marvell,pins = "mpp13";
 31				marvell,function = "gpio";
 32			};
 33
 34			pmx_led_usb_green: pmx-led-usb-green {
 35				marvell,pins = "mpp15";
 36				marvell,function = "gpio";
 37			};
 38
 39			pmx_led_usb_red: pmx-led-usb-red {
 40				marvell,pins = "mpp16";
 41				marvell,function = "gpio";
 42			};
 43
 44			pmx_led_sys_green: pmx-led-sys-green {
 45				marvell,pins = "mpp28";
 46				marvell,function = "gpio";
 47			};
 48
 49			pmx_led_sys_red: pmx-led-sys-red {
 50				marvell,pins = "mpp29";
 51				marvell,function = "gpio";
 52			};
 53
 54			pmx_led_hdd_green: pmx-led-hdd-green {
 55				marvell,pins = "mpp41";
 56				marvell,function = "gpio";
 57			};
 58
 59			pmx_led_hdd_red: pmx-led-hdd-red {
 60				marvell,pins = "mpp42";
 61				marvell,function = "gpio";
 62			};
 63
 64			pmx_unknown: pmx-unknown {
 65				marvell,pins = "mpp44";
 66				marvell,function = "gpio";
 67			};
 68
 69		};
 70
 71		i2c@11000 {
 72			status = "okay";
 73
 74			adt7476: adt7476a@2e {
 75				compatible = "adi,adt7476";
 76				reg = <0x2e>;
 77			};
 78		};
 79	};
 80
 81	gpio-leds {
 82		compatible = "gpio-leds";
 83		pinctrl-0 = <&pmx_led_esata_green &pmx_led_esata_red
 84			     &pmx_led_usb_green &pmx_led_usb_red
 85			     &pmx_led_sys_green &pmx_led_sys_red
 86			     &pmx_led_copy_green &pmx_led_copy_red
 87			     &pmx_led_hdd_green &pmx_led_hdd_red>;
 88		pinctrl-names = "default";
 89
 90		green-sys {
 91			label = "nsa310:green:sys";
 92			gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
 93		};
 94		red-sys {
 95			label = "nsa310:red:sys";
 96			gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
 97		};
 98		green-hdd {
 99			label = "nsa310:green:hdd";
100			gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
101		};
102		red-hdd {
103			label = "nsa310:red:hdd";
104			gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
105		};
106		green-esata {
107			label = "nsa310:green:esata";
108			gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
109		};
110		red-esata {
111			label = "nsa310:red:esata";
112			gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
113		};
114		green-usb {
115			label = "nsa310:green:usb";
116			gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
117		};
118		red-usb {
119			label = "nsa310:red:usb";
120			gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
121		};
122		green-copy {
123			label = "nsa310:green:copy";
124			gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
125		};
126		red-copy {
127			label = "nsa310:red:copy";
128			gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
129		};
130	};
131};
132
133&pciec {
134	status = "okay";
135};
136
137&pcie0 {
138	status = "okay";
139};
v4.6
 
  1/dts-v1/;
  2
  3#include "kirkwood-nsa3x0-common.dtsi"
  4
  5/ {
  6	compatible = "zyxel,nsa310", "marvell,kirkwood-88f6281", "marvell,kirkwood";
  7
  8	memory {
  9		device_type = "memory";
 10		reg = <0x00000000 0x10000000>;
 11	};
 12
 13	chosen {
 14		bootargs = "console=ttyS0,115200";
 15		stdout-path = &uart0;
 16	};
 17
 18	mbus {
 19		pcie-controller {
 20			status = "okay";
 21
 22			pcie@1,0 {
 23				status = "okay";
 24			};
 25		};
 26	};
 27
 28	ocp@f1000000 {
 29		pinctrl: pin-controller@10000 {
 30			pinctrl-0 = <&pmx_unknown>;
 31			pinctrl-names = "default";
 32
 33			pmx_led_esata_green: pmx-led-esata-green {
 34				marvell,pins = "mpp12";
 35				marvell,function = "gpio";
 36			};
 37
 38			pmx_led_esata_red: pmx-led-esata-red {
 39				marvell,pins = "mpp13";
 40				marvell,function = "gpio";
 41			};
 42
 43			pmx_led_usb_green: pmx-led-usb-green {
 44				marvell,pins = "mpp15";
 45				marvell,function = "gpio";
 46			};
 47
 48			pmx_led_usb_red: pmx-led-usb-red {
 49				marvell,pins = "mpp16";
 50				marvell,function = "gpio";
 51			};
 52
 53			pmx_led_sys_green: pmx-led-sys-green {
 54				marvell,pins = "mpp28";
 55				marvell,function = "gpio";
 56			};
 57
 58			pmx_led_sys_red: pmx-led-sys-red {
 59				marvell,pins = "mpp29";
 60				marvell,function = "gpio";
 61			};
 62
 63			pmx_led_hdd_green: pmx-led-hdd-green {
 64				marvell,pins = "mpp41";
 65				marvell,function = "gpio";
 66			};
 67
 68			pmx_led_hdd_red: pmx-led-hdd-red {
 69				marvell,pins = "mpp42";
 70				marvell,function = "gpio";
 71			};
 72
 73			pmx_unknown: pmx-unknown {
 74				marvell,pins = "mpp44";
 75				marvell,function = "gpio";
 76			};
 77
 78		};
 79
 80		i2c@11000 {
 81			status = "okay";
 82
 83			adt7476: adt7476a@2e {
 84				compatible = "adi,adt7476";
 85				reg = <0x2e>;
 86			};
 87		};
 88	};
 89
 90	gpio-leds {
 91		compatible = "gpio-leds";
 92		pinctrl-0 = <&pmx_led_esata_green &pmx_led_esata_red
 93			     &pmx_led_usb_green &pmx_led_usb_red
 94			     &pmx_led_sys_green &pmx_led_sys_red
 95			     &pmx_led_copy_green &pmx_led_copy_red
 96			     &pmx_led_hdd_green &pmx_led_hdd_red>;
 97		pinctrl-names = "default";
 98
 99		green-sys {
100			label = "nsa310:green:sys";
101			gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
102		};
103		red-sys {
104			label = "nsa310:red:sys";
105			gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
106		};
107		green-hdd {
108			label = "nsa310:green:hdd";
109			gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
110		};
111		red-hdd {
112			label = "nsa310:red:hdd";
113			gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
114		};
115		green-esata {
116			label = "nsa310:green:esata";
117			gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
118		};
119		red-esata {
120			label = "nsa310:red:esata";
121			gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
122		};
123		green-usb {
124			label = "nsa310:green:usb";
125			gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
126		};
127		red-usb {
128			label = "nsa310:red:usb";
129			gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
130		};
131		green-copy {
132			label = "nsa310:green:copy";
133			gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
134		};
135		red-copy {
136			label = "nsa310:red:copy";
137			gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
138		};
139	};
 
 
 
 
 
 
 
 
140};