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