0001 // SPDX-License-Identifier: GPL-2.0
0002 /dts-v1/;
0003
0004 #include "kirkwood-nsa3x0-common.dtsi"
0005
0006 / {
0007 compatible = "zyxel,nsa310", "marvell,kirkwood-88f6281", "marvell,kirkwood";
0008
0009 memory {
0010 device_type = "memory";
0011 reg = <0x00000000 0x10000000>;
0012 };
0013
0014 chosen {
0015 bootargs = "console=ttyS0,115200";
0016 stdout-path = &uart0;
0017 };
0018
0019 ocp@f1000000 {
0020 pinctrl: pin-controller@10000 {
0021 pinctrl-0 = <&pmx_unknown>;
0022 pinctrl-names = "default";
0023
0024 pmx_led_esata_green: pmx-led-esata-green {
0025 marvell,pins = "mpp12";
0026 marvell,function = "gpio";
0027 };
0028
0029 pmx_led_esata_red: pmx-led-esata-red {
0030 marvell,pins = "mpp13";
0031 marvell,function = "gpio";
0032 };
0033
0034 pmx_led_usb_green: pmx-led-usb-green {
0035 marvell,pins = "mpp15";
0036 marvell,function = "gpio";
0037 };
0038
0039 pmx_led_usb_red: pmx-led-usb-red {
0040 marvell,pins = "mpp16";
0041 marvell,function = "gpio";
0042 };
0043
0044 pmx_led_sys_green: pmx-led-sys-green {
0045 marvell,pins = "mpp28";
0046 marvell,function = "gpio";
0047 };
0048
0049 pmx_led_sys_red: pmx-led-sys-red {
0050 marvell,pins = "mpp29";
0051 marvell,function = "gpio";
0052 };
0053
0054 pmx_led_hdd_green: pmx-led-hdd-green {
0055 marvell,pins = "mpp41";
0056 marvell,function = "gpio";
0057 };
0058
0059 pmx_led_hdd_red: pmx-led-hdd-red {
0060 marvell,pins = "mpp42";
0061 marvell,function = "gpio";
0062 };
0063
0064 pmx_unknown: pmx-unknown {
0065 marvell,pins = "mpp44";
0066 marvell,function = "gpio";
0067 };
0068
0069 };
0070
0071 i2c@11000 {
0072 status = "okay";
0073
0074 adt7476: adt7476a@2e {
0075 compatible = "adi,adt7476";
0076 reg = <0x2e>;
0077 };
0078 };
0079 };
0080
0081 gpio-leds {
0082 compatible = "gpio-leds";
0083 pinctrl-0 = <&pmx_led_esata_green &pmx_led_esata_red
0084 &pmx_led_usb_green &pmx_led_usb_red
0085 &pmx_led_sys_green &pmx_led_sys_red
0086 &pmx_led_copy_green &pmx_led_copy_red
0087 &pmx_led_hdd_green &pmx_led_hdd_red>;
0088 pinctrl-names = "default";
0089
0090 green-sys {
0091 label = "nsa310:green:sys";
0092 gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
0093 };
0094 red-sys {
0095 label = "nsa310:red:sys";
0096 gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
0097 };
0098 green-hdd {
0099 label = "nsa310:green:hdd";
0100 gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
0101 };
0102 red-hdd {
0103 label = "nsa310:red:hdd";
0104 gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
0105 };
0106 green-esata {
0107 label = "nsa310:green:esata";
0108 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
0109 };
0110 red-esata {
0111 label = "nsa310:red:esata";
0112 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
0113 };
0114 green-usb {
0115 label = "nsa310:green:usb";
0116 gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
0117 };
0118 red-usb {
0119 label = "nsa310:red:usb";
0120 gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
0121 };
0122 green-copy {
0123 label = "nsa310:green:copy";
0124 gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
0125 };
0126 red-copy {
0127 label = "nsa310:red:copy";
0128 gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
0129 };
0130 };
0131 };
0132
0133 &pciec {
0134 status = "okay";
0135 };
0136
0137 &pcie0 {
0138 status = "okay";
0139 };