Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | /* |
| 3 | * Copyright 2022 Gateworks Corporation |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | |
| 8 | #include "imx8mp.dtsi" |
| 9 | |
| 10 | / { |
| 11 | model = "Gateworks Venice i.MX8MP board"; |
| 12 | compatible = "gateworks,imx8mp-venice", "fsl,imx8mp"; |
| 13 | |
| 14 | chosen { |
| 15 | stdout-path = &uart2; |
| 16 | }; |
| 17 | |
| 18 | memory@40000000 { |
| 19 | device_type = "memory"; |
| 20 | reg = <0x0 0x40000000 0 0x80000000>; |
| 21 | }; |
| 22 | }; |
| 23 | |
| 24 | &i2c1 { |
| 25 | clock-frequency = <100000>; |
Tim Harvey | 2ccf28d | 2022-11-11 08:03:07 -0800 | [diff] [blame] | 26 | pinctrl-names = "default", "gpio"; |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 27 | pinctrl-0 = <&pinctrl_i2c1>; |
Tim Harvey | 2ccf28d | 2022-11-11 08:03:07 -0800 | [diff] [blame] | 28 | pinctrl-1 = <&pinctrl_i2c1_gpio>; |
| 29 | scl-gpios = <&gpio5 14 GPIO_ACTIVE_HIGH>; |
| 30 | sda-gpios = <&gpio5 15 GPIO_ACTIVE_HIGH>; |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 31 | status = "okay"; |
| 32 | |
| 33 | gsc: gsc@20 { |
| 34 | compatible = "gw,gsc"; |
| 35 | reg = <0x20>; |
| 36 | #address-cells = <1>; |
| 37 | #size-cells = <0>; |
| 38 | }; |
| 39 | |
| 40 | eeprom@51 { |
| 41 | compatible = "atmel,24c02"; |
| 42 | reg = <0x51>; |
| 43 | pagesize = <16>; |
| 44 | }; |
| 45 | }; |
| 46 | |
| 47 | &i2c2 { |
| 48 | clock-frequency = <400000>; |
| 49 | pinctrl-names = "default"; |
| 50 | pinctrl-0 = <&pinctrl_i2c2>; |
| 51 | status = "okay"; |
| 52 | |
| 53 | eeprom@52 { |
| 54 | compatible = "atmel,24c32"; |
| 55 | reg = <0x52>; |
| 56 | pagesize = <32>; |
| 57 | }; |
| 58 | }; |
| 59 | |
Tim Harvey | ffe9e3c | 2023-08-15 15:01:15 -0700 | [diff] [blame] | 60 | &i2c3 { |
| 61 | clock-frequency = <400000>; |
| 62 | pinctrl-names = "default"; |
| 63 | pinctrl-0 = <&pinctrl_i2c3>; |
| 64 | status = "okay"; |
| 65 | }; |
| 66 | |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 67 | /* console */ |
| 68 | &uart2 { |
| 69 | pinctrl-names = "default"; |
| 70 | pinctrl-0 = <&pinctrl_uart2>; |
| 71 | status = "okay"; |
| 72 | }; |
| 73 | |
| 74 | /* eMMC */ |
| 75 | &usdhc3 { |
| 76 | assigned-clocks = <&clk IMX8MP_CLK_USDHC3>; |
| 77 | assigned-clock-rates = <400000000>; |
| 78 | pinctrl-names = "default", "state_100mhz", "state_200mhz"; |
| 79 | pinctrl-0 = <&pinctrl_usdhc3>; |
| 80 | pinctrl-1 = <&pinctrl_usdhc3_100mhz>; |
| 81 | pinctrl-2 = <&pinctrl_usdhc3_200mhz>; |
| 82 | bus-width = <8>; |
| 83 | non-removable; |
| 84 | status = "okay"; |
| 85 | }; |
| 86 | |
| 87 | &wdog1 { |
| 88 | pinctrl-names = "default"; |
| 89 | pinctrl-0 = <&pinctrl_wdog>; |
| 90 | fsl,ext-reset-output; |
| 91 | status = "okay"; |
| 92 | }; |
| 93 | |
| 94 | &iomuxc { |
| 95 | pinctrl_i2c1: i2c1grp { |
| 96 | fsl,pins = < |
| 97 | MX8MP_IOMUXC_I2C1_SCL__I2C1_SCL 0x400001c3 |
| 98 | MX8MP_IOMUXC_I2C1_SDA__I2C1_SDA 0x400001c3 |
| 99 | >; |
| 100 | }; |
| 101 | |
Tim Harvey | 2ccf28d | 2022-11-11 08:03:07 -0800 | [diff] [blame] | 102 | pinctrl_i2c1_gpio: i2c1grp-gpio-grp { |
| 103 | fsl,pins = < |
| 104 | MX8MP_IOMUXC_I2C1_SCL__GPIO5_IO14 0x400001c3 |
| 105 | MX8MP_IOMUXC_I2C1_SDA__GPIO5_IO15 0x400001c3 |
| 106 | >; |
| 107 | }; |
| 108 | |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 109 | pinctrl_i2c2: i2c2grp { |
| 110 | fsl,pins = < |
| 111 | MX8MP_IOMUXC_I2C2_SCL__I2C2_SCL 0x400001c3 |
| 112 | MX8MP_IOMUXC_I2C2_SDA__I2C2_SDA 0x400001c3 |
| 113 | >; |
| 114 | }; |
| 115 | |
Tim Harvey | ffe9e3c | 2023-08-15 15:01:15 -0700 | [diff] [blame] | 116 | pinctrl_i2c3: i2c3grp { |
| 117 | fsl,pins = < |
| 118 | MX8MP_IOMUXC_I2C3_SCL__I2C3_SCL 0x400001c3 |
| 119 | MX8MP_IOMUXC_I2C3_SDA__I2C3_SDA 0x400001c3 |
| 120 | >; |
| 121 | }; |
| 122 | |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 123 | pinctrl_uart2: uart2grp { |
| 124 | fsl,pins = < |
| 125 | MX8MP_IOMUXC_UART2_RXD__UART2_DCE_RX 0x49 |
| 126 | MX8MP_IOMUXC_UART2_TXD__UART2_DCE_TX 0x49 |
| 127 | >; |
| 128 | }; |
| 129 | |
| 130 | pinctrl_usdhc3: usdhc3grp { |
| 131 | fsl,pins = < |
| 132 | MX8MP_IOMUXC_NAND_WE_B__USDHC3_CLK 0x190 |
| 133 | MX8MP_IOMUXC_NAND_WP_B__USDHC3_CMD 0x1d0 |
| 134 | MX8MP_IOMUXC_NAND_DATA04__USDHC3_DATA0 0x1d0 |
| 135 | MX8MP_IOMUXC_NAND_DATA05__USDHC3_DATA1 0x1d0 |
| 136 | MX8MP_IOMUXC_NAND_DATA06__USDHC3_DATA2 0x1d0 |
| 137 | MX8MP_IOMUXC_NAND_DATA07__USDHC3_DATA3 0x1d0 |
| 138 | MX8MP_IOMUXC_NAND_RE_B__USDHC3_DATA4 0x1d0 |
| 139 | MX8MP_IOMUXC_NAND_CE2_B__USDHC3_DATA5 0x1d0 |
| 140 | MX8MP_IOMUXC_NAND_CE3_B__USDHC3_DATA6 0x1d0 |
| 141 | MX8MP_IOMUXC_NAND_CLE__USDHC3_DATA7 0x1d0 |
| 142 | MX8MP_IOMUXC_NAND_CE1_B__USDHC3_STROBE 0x190 |
| 143 | >; |
| 144 | }; |
| 145 | |
| 146 | pinctrl_usdhc3_100mhz: usdhc3-100mhzgrp { |
| 147 | fsl,pins = < |
| 148 | MX8MP_IOMUXC_NAND_WE_B__USDHC3_CLK 0x194 |
| 149 | MX8MP_IOMUXC_NAND_WP_B__USDHC3_CMD 0x1d4 |
| 150 | MX8MP_IOMUXC_NAND_DATA04__USDHC3_DATA0 0x1d4 |
| 151 | MX8MP_IOMUXC_NAND_DATA05__USDHC3_DATA1 0x1d4 |
| 152 | MX8MP_IOMUXC_NAND_DATA06__USDHC3_DATA2 0x1d4 |
| 153 | MX8MP_IOMUXC_NAND_DATA07__USDHC3_DATA3 0x1d4 |
| 154 | MX8MP_IOMUXC_NAND_RE_B__USDHC3_DATA4 0x1d4 |
| 155 | MX8MP_IOMUXC_NAND_CE2_B__USDHC3_DATA5 0x1d4 |
| 156 | MX8MP_IOMUXC_NAND_CE3_B__USDHC3_DATA6 0x1d4 |
| 157 | MX8MP_IOMUXC_NAND_CLE__USDHC3_DATA7 0x1d4 |
| 158 | MX8MP_IOMUXC_NAND_CE1_B__USDHC3_STROBE 0x194 |
| 159 | >; |
| 160 | }; |
| 161 | |
| 162 | pinctrl_usdhc3_200mhz: usdhc3-200mhzgrp { |
| 163 | fsl,pins = < |
| 164 | MX8MP_IOMUXC_NAND_WE_B__USDHC3_CLK 0x196 |
| 165 | MX8MP_IOMUXC_NAND_WP_B__USDHC3_CMD 0x1d6 |
| 166 | MX8MP_IOMUXC_NAND_DATA04__USDHC3_DATA0 0x1d6 |
| 167 | MX8MP_IOMUXC_NAND_DATA05__USDHC3_DATA1 0x1d6 |
| 168 | MX8MP_IOMUXC_NAND_DATA06__USDHC3_DATA2 0x1d6 |
| 169 | MX8MP_IOMUXC_NAND_DATA07__USDHC3_DATA3 0x1d6 |
| 170 | MX8MP_IOMUXC_NAND_RE_B__USDHC3_DATA4 0x1d6 |
| 171 | MX8MP_IOMUXC_NAND_CE2_B__USDHC3_DATA5 0x1d6 |
| 172 | MX8MP_IOMUXC_NAND_CE3_B__USDHC3_DATA6 0x1d6 |
| 173 | MX8MP_IOMUXC_NAND_CLE__USDHC3_DATA7 0x1d6 |
| 174 | MX8MP_IOMUXC_NAND_CE1_B__USDHC3_STROBE 0x196 |
| 175 | >; |
| 176 | }; |
| 177 | |
| 178 | pinctrl_wdog: wdoggrp { |
| 179 | fsl,pins = < |
| 180 | MX8MP_IOMUXC_GPIO1_IO02__WDOG1_WDOG_B 0x166 |
| 181 | >; |
| 182 | }; |
| 183 | }; |