Tim Harvey | 1a50e74 | 2022-02-11 10:48:56 -0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright 2022 Gateworks Corporation |
| 4 | */ |
| 5 | |
| 6 | #include "imx8mn-venice-u-boot.dtsi" |
| 7 | |
Tim Harvey | a5953f9 | 2022-04-13 09:02:44 -0700 | [diff] [blame] | 8 | &gpio1 { |
Tim Harvey | 3cce59e | 2022-11-11 07:55:46 -0800 | [diff] [blame] | 9 | m2pwren { |
| 10 | gpio-hog; |
| 11 | output-low; |
| 12 | gpios = <8 GPIO_ACTIVE_HIGH>; |
| 13 | line-name = "m2_pwren"; |
| 14 | }; |
| 15 | |
Tim Harvey | a5953f9 | 2022-04-13 09:02:44 -0700 | [diff] [blame] | 16 | m2rst { |
| 17 | gpio-hog; |
| 18 | output-low; |
| 19 | gpios = <13 GPIO_ACTIVE_HIGH>; |
| 20 | line-name = "m2_reset"; |
| 21 | }; |
| 22 | |
| 23 | m2wdis { |
| 24 | gpio-hog; |
| 25 | output-high; |
| 26 | gpios = <15 GPIO_ACTIVE_HIGH>; |
| 27 | line-name = "m2_wdis#"; |
| 28 | }; |
| 29 | }; |
| 30 | |
| 31 | &gpio2 { |
| 32 | uart2en { |
| 33 | gpio-hog; |
| 34 | output-high; |
| 35 | gpios = <8 GPIO_ACTIVE_HIGH>; |
| 36 | line-name = "uart2_en#"; |
| 37 | }; |
| 38 | }; |
| 39 | |
| 40 | &gpio3 { |
| 41 | m2gdis { |
| 42 | gpio-hog; |
| 43 | output-high; |
| 44 | gpios = <1 GPIO_ACTIVE_HIGH>; |
| 45 | line-name = "m2_gdis#"; |
| 46 | }; |
| 47 | |
| 48 | m2off { |
| 49 | gpio-hog; |
| 50 | output-high; |
| 51 | gpios = <7 GPIO_ACTIVE_HIGH>; |
| 52 | line-name = "m2_off#"; |
| 53 | }; |
| 54 | }; |
| 55 | |
| 56 | &gpio4 { |
| 57 | appgpio1 { |
| 58 | gpio-hog; |
| 59 | input; |
| 60 | gpios = <21 GPIO_ACTIVE_HIGH>; |
| 61 | line-name = "app_gpio1"; |
| 62 | }; |
| 63 | |
Tim Harvey | 3cce59e | 2022-11-11 07:55:46 -0800 | [diff] [blame] | 64 | vdd4p0en { |
| 65 | gpio-hog; |
| 66 | output-low; |
| 67 | gpios = <22 GPIO_ACTIVE_HIGH>; |
| 68 | line-name = "vdd_4p0_en"; |
| 69 | }; |
| 70 | |
Tim Harvey | a5953f9 | 2022-04-13 09:02:44 -0700 | [diff] [blame] | 71 | uart1rs485 { |
| 72 | gpio-hog; |
| 73 | output-low; |
| 74 | gpios = <23 GPIO_ACTIVE_HIGH>; |
| 75 | line-name = "uart1_rs485"; |
| 76 | }; |
| 77 | |
| 78 | uart1term { |
| 79 | gpio-hog; |
| 80 | output-low; |
| 81 | gpios = <25 GPIO_ACTIVE_HIGH>; |
| 82 | line-name = "uart1_term"; |
| 83 | }; |
| 84 | |
| 85 | uart1half { |
| 86 | gpio-hog; |
| 87 | output-low; |
| 88 | gpios = <26 GPIO_ACTIVE_HIGH>; |
| 89 | line-name = "uart1_half"; |
| 90 | }; |
| 91 | |
| 92 | appgpio2 { |
| 93 | gpio-hog; |
| 94 | input; |
| 95 | gpios = <27 GPIO_ACTIVE_HIGH>; |
| 96 | line-name = "app_gpio2"; |
| 97 | }; |
| 98 | |
| 99 | mipigpio1 { |
| 100 | gpio-hog; |
| 101 | input; |
| 102 | gpios = <28 GPIO_ACTIVE_HIGH>; |
| 103 | line-name = "mipi_gpio1"; |
| 104 | }; |
| 105 | }; |
| 106 | |
| 107 | &gpio5 { |
| 108 | mipigpio4 { |
| 109 | gpio-hog; |
| 110 | input; |
| 111 | gpios = <3 GPIO_ACTIVE_HIGH>; |
| 112 | line-name = "mipi_gpio4"; |
| 113 | }; |
| 114 | |
| 115 | mipigpio3 { |
| 116 | gpio-hog; |
| 117 | input; |
| 118 | gpios = <4 GPIO_ACTIVE_HIGH>; |
| 119 | line-name = "mipi_gpio3"; |
| 120 | }; |
| 121 | |
| 122 | mipigpio2 { |
| 123 | gpio-hog; |
| 124 | input; |
| 125 | gpios = <5 GPIO_ACTIVE_HIGH>; |
| 126 | line-name = "mipi_gpio2"; |
| 127 | }; |
| 128 | }; |
| 129 | |
Tim Harvey | 1a50e74 | 2022-02-11 10:48:56 -0800 | [diff] [blame] | 130 | &fec1 { |
| 131 | phy-reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; |
| 132 | phy-reset-duration = <1>; |
Tim Harvey | 3c43618 | 2022-04-13 09:09:49 -0700 | [diff] [blame] | 133 | phy-reset-post-delay = <300>; |
Tim Harvey | 1a50e74 | 2022-02-11 10:48:56 -0800 | [diff] [blame] | 134 | }; |
| 135 | |
| 136 | &pinctrl_fec1 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 137 | bootph-pre-ram; |
Tim Harvey | 1a50e74 | 2022-02-11 10:48:56 -0800 | [diff] [blame] | 138 | }; |
| 139 | |
| 140 | &{/soc@0/bus@30800000/i2c@30a20000/pmic@4b} { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 141 | bootph-pre-ram; |
Tim Harvey | 1a50e74 | 2022-02-11 10:48:56 -0800 | [diff] [blame] | 142 | }; |
| 143 | |
| 144 | &{/soc@0/bus@30800000/i2c@30a20000/pmic@4b/regulators} { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 145 | bootph-pre-ram; |
Tim Harvey | 1a50e74 | 2022-02-11 10:48:56 -0800 | [diff] [blame] | 146 | }; |
| 147 | |
| 148 | &pinctrl_pmic { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 149 | bootph-pre-ram; |
Tim Harvey | 1a50e74 | 2022-02-11 10:48:56 -0800 | [diff] [blame] | 150 | }; |