| 1 |
// SPDX-License-Identifier: (GPL-2.0 OR MIT) |
| 2 |
|
| 3 |
/dts-v1/; |
| 4 |
|
| 5 |
#include "imx8mp-skov-reva.dtsi" |
| 6 |
|
| 7 |
/ { |
| 8 |
model = "SKOV IMX8MP CPU revC - bd500"; |
| 9 |
compatible = "skov,imx8mp-skov-revc-bd500", "fsl,imx8mp"; |
| 10 |
|
| 11 |
leds { |
| 12 |
led_system_red: led-3 { |
| 13 |
label = "bd500:system:red"; |
| 14 |
color = <LED_COLOR_ID_RED>; |
| 15 |
/* Inverted compared to others due to NMOS inverter */ |
| 16 |
gpios = <&gpioexp 3 GPIO_ACTIVE_HIGH>; |
| 17 |
default-state = "off"; |
| 18 |
}; |
| 19 |
|
| 20 |
led_system_green: led-4 { |
| 21 |
label = "bd500:system:green"; |
| 22 |
color = <LED_COLOR_ID_GREEN>; |
| 23 |
gpios = <&gpioexp 2 GPIO_ACTIVE_LOW>; |
| 24 |
default-state = "on"; |
| 25 |
}; |
| 26 |
|
| 27 |
led_lan1_red: led-5 { |
| 28 |
label = "bd500:lan1:act"; |
| 29 |
color = <LED_COLOR_ID_RED>; |
| 30 |
linux,default-trigger = "netdev"; |
| 31 |
gpios = <&gpioexp 1 GPIO_ACTIVE_LOW>; |
| 32 |
}; |
| 33 |
|
| 34 |
led_lan1_green: led-6 { |
| 35 |
label = "bd500:lan1:link"; |
| 36 |
color = <LED_COLOR_ID_GREEN>; |
| 37 |
linux,default-trigger = "netdev"; |
| 38 |
gpios = <&gpioexp 0 GPIO_ACTIVE_LOW>; |
| 39 |
}; |
| 40 |
|
| 41 |
led_lan2_red: led-7 { |
| 42 |
label = "bd500:lan2:act"; |
| 43 |
color = <LED_COLOR_ID_RED>; |
| 44 |
linux,default-trigger = "netdev"; |
| 45 |
gpios = <&gpioexp 6 GPIO_ACTIVE_LOW>; |
| 46 |
}; |
| 47 |
|
| 48 |
led_lan2_green: led-8 { |
| 49 |
label = "bd500:lan2:link"; |
| 50 |
color = <LED_COLOR_ID_GREEN>; |
| 51 |
linux,default-trigger = "netdev"; |
| 52 |
gpios = <&gpioexp 7 GPIO_ACTIVE_LOW>; |
| 53 |
}; |
| 54 |
}; |
| 55 |
|
| 56 |
gpio-keys { |
| 57 |
compatible = "gpio-keys"; |
| 58 |
|
| 59 |
button-1 { |
| 60 |
label = "S1"; |
| 61 |
linux,code = <KEY_CONFIG>; |
| 62 |
gpios = <&gpioexp 5 GPIO_ACTIVE_LOW>; |
| 63 |
}; |
| 64 |
}; |
| 65 |
}; |
| 66 |
|
| 67 |
&i2c2 { |
| 68 |
clock-frequency = <100000>; |
| 69 |
status = "okay"; |
| 70 |
|
| 71 |
gpioexp: gpio@20 { |
| 72 |
compatible = "nxp,pca6408"; |
| 73 |
reg = <0x20>; |
| 74 |
pinctrl-names = "default"; |
| 75 |
pinctrl-0 = <&pinctrl_gpio_exp>; |
| 76 |
interrupts-extended = <&gpio4 28 IRQ_TYPE_EDGE_FALLING>; |
| 77 |
reset-gpios = <&gpio4 29 GPIO_ACTIVE_LOW>; |
| 78 |
vcc-supply = <®_vdd_3v3>; |
| 79 |
gpio-controller; |
| 80 |
#gpio-cells = <2>; |
| 81 |
}; |
| 82 |
}; |
| 83 |
|
| 84 |
&iomuxc { |
| 85 |
pinctrl_gpio_exp: gpioexpgrp { |
| 86 |
fsl,pins = < |
| 87 |
MX8MP_IOMUXC_SAI3_RXFS__GPIO4_IO28 0x0 |
| 88 |
MX8MP_IOMUXC_SAI3_RXC__GPIO4_IO29 0x0 |
| 89 |
>; |
| 90 |
}; |
| 91 |
}; |