ARM: dts: synquacer: Add device trees for DeveloperBox
[platform/kernel/u-boot.git] / arch / arm / dts / vf610-bk4r1.dts
1 // SPDX-License-Identifier: GPL-2.0+ OR X11
2 /*
3  * (C) Copyright 2018
4  * Lukasz Majewski, DENX Software Engineering, lukma@denx.de.
5  *
6  * Copyright 2016 Toradex AG
7  */
8
9 /dts-v1/;
10 #include "vf610-pcm052.dtsi"
11 #include "vf610-pinfunc.h"
12
13 / {
14         model = "Liebherr (LVF) BK4 Vybrid Board";
15         compatible = "lvf,bk4", "fsl,vf610";
16
17         leds {
18                 pinctrl-names = "default";
19                 pinctrl-0 = <&pinctrl_gpio_leds>;
20
21                 compatible = "gpio-leds";
22
23                 /* PTE15 PORT3[24] H6 green */
24                 led@0 {
25                         label = "0";
26                         gpios = <&gpio3 24 GPIO_ACTIVE_LOW>;
27                         default-state = "off";
28                 };
29
30                 /* PTA12 PORT0[5] H5 green */
31                 led@1 {
32                         label = "1";
33                         gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
34                         default-state = "off";
35                 };
36
37                 /* PTE20 PORT3[39] H4 green */
38                 led@2 {
39                         label = "2";
40                         gpios = <&gpio3 29 GPIO_ACTIVE_LOW>;
41                         default-state = "off";
42                 };
43
44                 /* PTE12 PORT3[21] H3 green */
45                 led@3 {
46                         label = "3";
47                         gpios = <&gpio3 21 GPIO_ACTIVE_LOW>;
48                         default-state = "off";
49                 };
50
51                 /* LED6 is now PRESET ETH -> PTA16 PORT0[6]  H6 red */
52                 /* PTE9  PORT3[18] H5 red */
53                 led@4 {
54                         label = "5";
55                         gpios = <&gpio3 18 GPIO_ACTIVE_LOW>;
56                         default-state = "off";
57                 };
58
59                 /* PTE23 PORT4[0]  H4 red */
60                 led@5 {
61                         label = "6";
62                         gpios = <&gpio4 0 GPIO_ACTIVE_LOW>;
63                         default-state = "off";
64                 };
65
66                 /* PTE16 PORT3[25] H3 red */
67                 led@6 {
68                         label = "7";
69                         gpios = <&gpio3 25 GPIO_ACTIVE_LOW>;
70                         default-state = "off";
71                 };
72         };
73 };
74
75 &iomuxc {
76         pinctrl-0 = <&pinctrl_ddr &pinctrl_hog>;
77
78         pinctrl_hog: hoggrp {
79                 fsl,pins = <
80                         /* ETH control pins */
81                         VF610_PAD_PTE17__GPIO_122               0x1183
82                         VF610_PAD_PTA16__GPIO_6 0x1183
83                 >;
84         };
85
86         pinctrl_gpio_leds: gpioledsgrp {
87                 fsl,pins = <
88                         /* LEDS */
89                         VF610_PAD_PTE15__GPIO_120       0x1183
90                         VF610_PAD_PTA12__GPIO_5 0x1183
91                         VF610_PAD_PTE9__GPIO_114        0x1183
92                         VF610_PAD_PTE20__GPIO_125       0x1183
93                         VF610_PAD_PTE23__GPIO_128       0x1183
94                         VF610_PAD_PTE16__GPIO_121       0x1183
95                 >;
96         };
97 };