Linux Audio

Check our new training course

Yocto distribution development and maintenance

Need a Yocto distribution for your embedded project?
Loading...
v6.2
 1// SPDX-License-Identifier: GPL-2.0
 2/dts-v1/;
 3
 4#include "kirkwood.dtsi"
 5#include "kirkwood-6281.dtsi"
 6#include "kirkwood-ts219.dtsi"
 7
 8/ {
 9	ocp@f1000000 {
10		pinctrl: pin-controller@10000 {
11
12			pinctrl-0 = <&pmx_ram_size &pmx_board_id>;
13			pinctrl-names = "default";
14
15			pmx_ram_size: pmx-ram-size {
16				/* RAM: 0: 256 MB, 1: 512 MB */
17				marvell,pins = "mpp36";
18				marvell,function = "gpio";
19			};
20			pmx_USB_copy_button: pmx-USB-copy-button {
21				marvell,pins = "mpp15";
22				marvell,function = "gpio";
23			};
24			pmx_reset_button: pmx-reset-button {
25				marvell,pins = "mpp16";
26				marvell,function = "gpio";
27			};
28			pmx_board_id: pmx-board-id {
29				/* 0: TS-11x, 1: TS-21x */
30				marvell,pins = "mpp44";
31				marvell,function = "gpio";
32			};
33		};
34	};
35
36	gpio_keys {
37		compatible = "gpio-keys";
38		#address-cells = <1>;
39		#size-cells = <0>;
40		pinctrl-0 = <&pmx_reset_button &pmx_USB_copy_button>;
41		pinctrl-names = "default";
42
43		copy {
44			label = "USB Copy";
45			linux,code = <KEY_COPY>;
46			gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
47		};
48		reset {
49			label = "Reset";
50			linux,code = <KEY_RESTART>;
51			gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
52		};
53	};
54};
55
56&ethphy0 { reg = <8>; };
v4.6
 
 1/dts-v1/;
 2
 3#include "kirkwood.dtsi"
 4#include "kirkwood-6281.dtsi"
 5#include "kirkwood-ts219.dtsi"
 6
 7/ {
 8	ocp@f1000000 {
 9		pinctrl: pin-controller@10000 {
10
11			pinctrl-0 = <&pmx_ram_size &pmx_board_id>;
12			pinctrl-names = "default";
13
14			pmx_ram_size: pmx-ram-size {
15				/* RAM: 0: 256 MB, 1: 512 MB */
16				marvell,pins = "mpp36";
17				marvell,function = "gpio";
18			};
19			pmx_USB_copy_button: pmx-USB-copy-button {
20				marvell,pins = "mpp15";
21				marvell,function = "gpio";
22			};
23			pmx_reset_button: pmx-reset-button {
24				marvell,pins = "mpp16";
25				marvell,function = "gpio";
26			};
27			pmx_board_id: pmx-board-id {
28				/* 0: TS-11x, 1: TS-21x */
29				marvell,pins = "mpp44";
30				marvell,function = "gpio";
31			};
32		};
33	};
34
35	gpio_keys {
36		compatible = "gpio-keys";
37		#address-cells = <1>;
38		#size-cells = <0>;
39		pinctrl-0 = <&pmx_reset_button &pmx_USB_copy_button>;
40		pinctrl-names = "default";
41
42		button@1 {
43			label = "USB Copy";
44			linux,code = <KEY_COPY>;
45			gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
46		};
47		button@2 {
48			label = "Reset";
49			linux,code = <KEY_RESTART>;
50			gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
51		};
52	};
53};
54
55&ethphy0 { reg = <8>; };