aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/dts/vf610-bk4r1.dts
blob: 55cd53384a3616b6386b447aef01545bb2d25516 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
// SPDX-License-Identifier: GPL-2.0+ OR X11
/*
 * (C) Copyright 2018
 * Lukasz Majewski, DENX Software Engineering, lukma@denx.de.
 *
 * Copyright 2016 Toradex AG
 */

/dts-v1/;
#include "vf610-pcm052.dtsi"
#include "vf610-pinfunc.h"

/ {
	model = "Liebherr (LVF) BK4 Vybrid Board";
	compatible = "lvf,bk4", "fsl,vf610";

	leds {
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_gpio_leds>;

		compatible = "gpio-leds";

		/* PTE15 PORT3[24] H6 green */
		led@0 {
			label = "0";
			gpios = <&gpio3 24 GPIO_ACTIVE_LOW>;
			default-state = "off";
		};

		/* PTA12 PORT0[5] H5 green */
		led@1 {
			label = "1";
			gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
			default-state = "off";
		};

		/* PTE20 PORT3[39] H4 green */
		led@2 {
			label = "2";
			gpios = <&gpio3 29 GPIO_ACTIVE_LOW>;
			default-state = "off";
		};

		/* PTE12 PORT3[21] H3 green */
		led@3 {
			label = "3";
			gpios = <&gpio3 21 GPIO_ACTIVE_LOW>;
			default-state = "off";
		};

		/* LED6 is now PRESET ETH -> PTA16 PORT0[6]  H6 red */
		/* PTE9  PORT3[18] H5 red */
		led@4 {
			label = "5";
			gpios = <&gpio3 18 GPIO_ACTIVE_LOW>;
			default-state = "off";
		};

		/* PTE23 PORT4[0]  H4 red */
		led@5 {
			label = "6";
			gpios = <&gpio4 0 GPIO_ACTIVE_LOW>;
			default-state = "off";
		};

		/* PTE16 PORT3[25] H3 red */
		led@6 {
			label = "7";
			gpios = <&gpio3 25 GPIO_ACTIVE_LOW>;
			default-state = "off";
		};
	};
};

&iomuxc {
	pinctrl-0 = <&pinctrl_ddr &pinctrl_hog>;

	pinctrl_hog: hoggrp {
		fsl,pins = <
			/* ETH control pins */
			VF610_PAD_PTE17__GPIO_122		0x1183
			VF610_PAD_PTA16__GPIO_6	0x1183
		>;
	};

	pinctrl_gpio_leds: gpioledsgrp {
		fsl,pins = <
			/* LEDS */
			VF610_PAD_PTE15__GPIO_120	0x1183
			VF610_PAD_PTA12__GPIO_5	0x1183
			VF610_PAD_PTE9__GPIO_114	0x1183
			VF610_PAD_PTE20__GPIO_125	0x1183
			VF610_PAD_PTE23__GPIO_128	0x1183
			VF610_PAD_PTE16__GPIO_121	0x1183
		>;
	};
};