blob: 9590d0924b643d4738805292a7375211c77c7b64 [file] [log] [blame]
Tim Harveya1c71102022-02-18 15:19:33 -08001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright 2022 Gateworks Corporation
4 */
5
6#include "imx8mm-venice-u-boot.dtsi"
7
Tim Harveyd5cc2342022-04-13 09:02:44 -07008&gpio1 {
9 rs422en {
10 gpio-hog;
11 output-high;
12 gpios = <10 GPIO_ACTIVE_HIGH>;
13 line-name = "rs422_en#";
14 };
15
16 rs485en {
17 gpio-hog;
18 output-high;
19 gpios = <11 GPIO_ACTIVE_HIGH>;
20 line-name = "rs485_en#";
21 };
22
23 rs232en {
24 gpio-hog;
25 output-low;
26 gpios = <12 GPIO_ACTIVE_HIGH>;
27 line-name = "rs232_en#";
28 };
29};
30
31&gpio2 {
32 dig2in {
33 gpio-hog;
34 input;
35 gpios = <0 GPIO_ACTIVE_HIGH>;
36 line-name = "dig2_in";
37 };
38
39 dig2out {
40 gpio-hog;
41 output-high;
42 gpios = <1 GPIO_ACTIVE_HIGH>;
43 line-name = "dig2_out#";
44 };
45
Tim Harvey6fe5df82022-09-09 15:58:42 -070046 dig2ctl {
47 gpio-hog;
48 output-low;
49 gpios = <2 GPIO_ACTIVE_HIGH>;
50 line-name = "dig2_ctl";
51 };
52
53 dig1ctl {
54 gpio-hog;
55 output-low;
56 gpios = <6 GPIO_ACTIVE_HIGH>;
57 line-name = "dig1_ctl";
58 };
59
Tim Harveyd5cc2342022-04-13 09:02:44 -070060 dig1out {
61 gpio-hog;
62 output-high;
63 gpios = <8 GPIO_ACTIVE_HIGH>;
64 line-name = "dig1_out#";
65 };
66
67 dig1in {
68 gpio-hog;
69 input;
70 gpios = <9 GPIO_ACTIVE_HIGH>;
71 line-name = "dig1_in";
72 };
73};
74
75&gpio5 {
76 sim1det {
77 gpio-hog;
78 input;
79 gpios = <7 GPIO_ACTIVE_LOW>;
80 line-name = "sim1_det#";
81 };
82
83 sim2det {
84 gpio-hog;
85 input;
86 gpios = <8 GPIO_ACTIVE_LOW>;
87 line-name = "sim2_det#";
88 };
89
90 sim2sel {
91 gpio-hog;
92 output-low;
93 gpios = <9 GPIO_ACTIVE_HIGH>;
94 line-name = "sim2_sel";
95 };
96
97 pci_wdis {
98 gpio-hog;
99 output-high;
100 gpios = <12 GPIO_ACTIVE_HIGH>;
101 line-name = "pci_wdis#";
102 };
103};
104
Tim Harveya1c71102022-02-18 15:19:33 -0800105&fec1 {
106 phy-reset-gpios = <&gpio4 25 GPIO_ACTIVE_LOW>;
107 phy-reset-duration = <1>;
108 phy-reset-post-delay = <300>;
109};
110
111&pinctrl_fec1 {
Simon Glass8c103c32023-02-13 08:56:33 -0700112 bootph-pre-ram;
Tim Harveya1c71102022-02-18 15:19:33 -0800113};
114
115&{/soc@0/bus@30800000/i2c@30a30000/pmic@4b} {
Simon Glass8c103c32023-02-13 08:56:33 -0700116 bootph-pre-ram;
Tim Harveya1c71102022-02-18 15:19:33 -0800117};
118
119&{/soc@0/bus@30800000/i2c@30a30000/pmic@4b/regulators} {
Simon Glass8c103c32023-02-13 08:56:33 -0700120 bootph-pre-ram;
Tim Harveya1c71102022-02-18 15:19:33 -0800121};
122
123&pinctrl_pmic {
Simon Glass8c103c32023-02-13 08:56:33 -0700124 bootph-pre-ram;
Tim Harveya1c71102022-02-18 15:19:33 -0800125};