1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 2 /* 3 * Copyright (C) 2023 Marek Vasut <marex@denx.d 3 * Copyright (C) 2023 Marek Vasut <marex@denx.de> 4 * 4 * 5 * DHCOM iMX8MP variant: 5 * DHCOM iMX8MP variant: 6 * DHCM-iMX8ML8-C160-R409-F1638-SPI16-GE-CAN2- 6 * DHCM-iMX8ML8-C160-R409-F1638-SPI16-GE-CAN2-SD-RTC-WBTA-ADC-T-RGB-CSI2-HS-I-01D2 7 * DHCOM PCB number: 660-100 or newer 7 * DHCOM PCB number: 660-100 or newer 8 * PDK3 PCB number: 669-100 or newer 8 * PDK3 PCB number: 669-100 or newer 9 */ 9 */ 10 10 11 /dts-v1/; 11 /dts-v1/; 12 12 13 #include <dt-bindings/leds/common.h> 13 #include <dt-bindings/leds/common.h> 14 #include <dt-bindings/phy/phy-imx8-pcie.h> 14 #include <dt-bindings/phy/phy-imx8-pcie.h> 15 #include "imx8mp-dhcom-som.dtsi" 15 #include "imx8mp-dhcom-som.dtsi" 16 16 17 / { 17 / { 18 model = "DH electronics i.MX8M Plus DH 18 model = "DH electronics i.MX8M Plus DHCOM Premium Developer Kit (3)"; 19 compatible = "dh,imx8mp-dhcom-pdk3", " 19 compatible = "dh,imx8mp-dhcom-pdk3", "dh,imx8mp-dhcom-som", 20 "fsl,imx8mp"; 20 "fsl,imx8mp"; 21 21 22 chosen { 22 chosen { 23 stdout-path = &uart1; 23 stdout-path = &uart1; 24 }; 24 }; 25 25 26 clk_ext_audio_codec: clock-codec { !! 26 clk_pcie: clock-pcie { 27 compatible = "fixed-clock"; 27 compatible = "fixed-clock"; 28 #clock-cells = <0>; 28 #clock-cells = <0>; 29 clock-frequency = <24000000>; !! 29 clock-frequency = <100000000>; 30 }; 30 }; 31 31 32 clk_xtal25: clock-xtal25 { !! 32 connector { 33 compatible = "fixed-clock"; !! 33 compatible = "usb-c-connector"; 34 #clock-cells = <0>; !! 34 label = "USB-C"; 35 clock-frequency = <25000000>; !! 35 data-role = "dual"; >> 36 >> 37 ports { >> 38 #address-cells = <1>; >> 39 #size-cells = <0>; >> 40 >> 41 port@0 { >> 42 reg = <0>; >> 43 >> 44 usb_c_0_hs_ep: endpoint { >> 45 remote-endpoint = <&dwc3_0_hs_ep>; >> 46 }; >> 47 }; >> 48 >> 49 port@1 { >> 50 reg = <1>; >> 51 >> 52 usb_c_0_ss_ep: endpoint { >> 53 remote-endpoint = <&ptn5150_in_ep>; >> 54 }; >> 55 }; >> 56 }; 36 }; 57 }; 37 58 38 gpio-keys { 59 gpio-keys { 39 compatible = "gpio-keys"; 60 compatible = "gpio-keys"; 40 61 41 button-0 { 62 button-0 { 42 gpios = <&gpio1 9 GPIO 63 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; /* GPIO A */ 43 label = "TA1-GPIO-A"; 64 label = "TA1-GPIO-A"; 44 linux,code = <KEY_A>; 65 linux,code = <KEY_A>; 45 pinctrl-0 = <&pinctrl_ 66 pinctrl-0 = <&pinctrl_dhcom_a>; 46 pinctrl-names = "defau 67 pinctrl-names = "default"; 47 wakeup-source; 68 wakeup-source; 48 }; 69 }; 49 70 50 button-1 { 71 button-1 { 51 gpios = <&gpio1 8 GPIO 72 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; /* GPIO B */ 52 label = "TA2-GPIO-B"; 73 label = "TA2-GPIO-B"; 53 linux,code = <KEY_B>; 74 linux,code = <KEY_B>; 54 pinctrl-0 = <&pinctrl_ 75 pinctrl-0 = <&pinctrl_dhcom_b>; 55 pinctrl-names = "defau 76 pinctrl-names = "default"; 56 wakeup-source; 77 wakeup-source; 57 }; 78 }; 58 79 59 button-2 { 80 button-2 { 60 gpios = <&gpio5 2 GPIO 81 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>; /* GPIO C */ 61 label = "TA3-GPIO-C"; 82 label = "TA3-GPIO-C"; 62 linux,code = <KEY_C>; 83 linux,code = <KEY_C>; 63 pinctrl-0 = <&pinctrl_ 84 pinctrl-0 = <&pinctrl_dhcom_c>; 64 pinctrl-names = "defau 85 pinctrl-names = "default"; 65 wakeup-source; 86 wakeup-source; 66 }; 87 }; 67 88 68 button-3 { 89 button-3 { 69 gpios = <&gpio5 22 GPI 90 gpios = <&gpio5 22 GPIO_ACTIVE_LOW>; /* GPIO E */ 70 label = "TA4-GPIO-E"; 91 label = "TA4-GPIO-E"; 71 linux,code = <KEY_E>; 92 linux,code = <KEY_E>; 72 pinctrl-0 = <&pinctrl_ 93 pinctrl-0 = <&pinctrl_dhcom_e>; 73 pinctrl-names = "defau 94 pinctrl-names = "default"; 74 wakeup-source; 95 wakeup-source; 75 }; 96 }; 76 }; 97 }; 77 98 78 hdmi-connector { << 79 compatible = "hdmi-connector"; << 80 label = "X28"; << 81 type = "a"; << 82 << 83 port { << 84 hdmi_connector_in: end << 85 remote-endpoin << 86 }; << 87 }; << 88 }; << 89 << 90 led { 99 led { 91 compatible = "gpio-leds"; 100 compatible = "gpio-leds"; 92 101 93 led-0 { 102 led-0 { 94 color = <LED_COLOR_ID_ 103 color = <LED_COLOR_ID_GREEN>; 95 default-state = "off"; 104 default-state = "off"; 96 function = LED_FUNCTIO 105 function = LED_FUNCTION_INDICATOR; 97 function-enumerator = 106 function-enumerator = <0>; 98 gpios = <&gpio4 27 GPI 107 gpios = <&gpio4 27 GPIO_ACTIVE_HIGH>; /* GPIO D */ 99 pinctrl-0 = <&pinctrl_ 108 pinctrl-0 = <&pinctrl_dhcom_d>; 100 pinctrl-names = "defau 109 pinctrl-names = "default"; 101 }; 110 }; 102 111 103 led-1 { 112 led-1 { 104 color = <LED_COLOR_ID_ 113 color = <LED_COLOR_ID_GREEN>; 105 default-state = "off"; 114 default-state = "off"; 106 function = LED_FUNCTIO 115 function = LED_FUNCTION_INDICATOR; 107 function-enumerator = 116 function-enumerator = <1>; 108 gpios = <&gpio5 23 GPI 117 gpios = <&gpio5 23 GPIO_ACTIVE_HIGH>; /* GPIO F */ 109 pinctrl-0 = <&pinctrl_ 118 pinctrl-0 = <&pinctrl_dhcom_f>; 110 pinctrl-names = "defau 119 pinctrl-names = "default"; 111 }; 120 }; 112 121 113 led-2 { 122 led-2 { 114 color = <LED_COLOR_ID_ 123 color = <LED_COLOR_ID_GREEN>; 115 default-state = "off"; 124 default-state = "off"; 116 function = LED_FUNCTIO 125 function = LED_FUNCTION_INDICATOR; 117 function-enumerator = 126 function-enumerator = <2>; 118 gpios = <&gpio1 0 GPIO 127 gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>; /* GPIO G */ 119 pinctrl-0 = <&pinctrl_ 128 pinctrl-0 = <&pinctrl_dhcom_g>; 120 pinctrl-names = "defau 129 pinctrl-names = "default"; 121 }; 130 }; 122 131 123 led-3 { 132 led-3 { 124 color = <LED_COLOR_ID_ 133 color = <LED_COLOR_ID_GREEN>; 125 default-state = "off"; 134 default-state = "off"; 126 function = LED_FUNCTIO 135 function = LED_FUNCTION_INDICATOR; 127 function-enumerator = 136 function-enumerator = <3>; 128 gpios = <&gpio1 5 GPIO 137 gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; /* GPIO I */ 129 pinctrl-0 = <&pinctrl_ 138 pinctrl-0 = <&pinctrl_dhcom_i>; 130 pinctrl-names = "defau 139 pinctrl-names = "default"; 131 }; 140 }; 132 }; 141 }; 133 142 134 reg_3p3vdd: regulator-3p3vdd { /* 3.3 !! 143 reg_avdd: regulator-avdd { /* AUDIO_VDD */ 135 compatible = "regulator-fixed" 144 compatible = "regulator-fixed"; 136 regulator-always-on; 145 regulator-always-on; 137 regulator-min-microvolt = <330 146 regulator-min-microvolt = <3300000>; 138 regulator-max-microvolt = <330 147 regulator-max-microvolt = <3300000>; 139 regulator-name = "3P3VDD"; !! 148 regulator-name = "AUDIO_VDD"; 140 }; << 141 << 142 sound { << 143 compatible = "simple-audio-car << 144 simple-audio-card,name = "SGTL << 145 simple-audio-card,format = "i2 << 146 simple-audio-card,bitclock-mas << 147 simple-audio-card,frame-master << 148 simple-audio-card,widgets = "H << 149 simple-audio-card,routing = "H << 150 << 151 cpu_dai: simple-audio-card,cpu << 152 sound-dai = <&sai3>; << 153 }; << 154 << 155 codec_dai: simple-audio-card,c << 156 sound-dai = <&sgtl5000 << 157 }; << 158 }; 149 }; 159 }; 150 }; 160 151 161 &i2c5 { 152 &i2c5 { 162 i2c-mux@70 { 153 i2c-mux@70 { 163 compatible = "nxp,pca9540"; 154 compatible = "nxp,pca9540"; 164 reg = <0x70>; 155 reg = <0x70>; 165 #address-cells = <1>; 156 #address-cells = <1>; 166 #size-cells = <0>; 157 #size-cells = <0>; 167 158 168 i2cmuxed0: i2c@0 { 159 i2cmuxed0: i2c@0 { 169 #address-cells = <1>; 160 #address-cells = <1>; 170 #size-cells = <0>; 161 #size-cells = <0>; 171 reg = <0>; 162 reg = <0>; 172 163 173 sgtl5000: codec@a { << 174 compatible = " << 175 reg = <0x0a>; << 176 #sound-dai-cel << 177 clocks = <&clk << 178 VDDA-supply = << 179 VDDIO-supply = << 180 }; << 181 << 182 csi2exp: gpio@24 { << 183 compatible = " << 184 reg = <0x24>; << 185 gpio-controlle << 186 #gpio-cells = << 187 gpio-line-name << 188 "CSI2_ << 189 "CSI_# << 190 }; << 191 << 192 typec@3d { 164 typec@3d { 193 compatible = " 165 compatible = "nxp,ptn5150"; 194 reg = <0x3d>; 166 reg = <0x3d>; 195 interrupt-pare 167 interrupt-parent = <&gpio4>; 196 interrupts = < 168 interrupts = <25 IRQ_TYPE_EDGE_FALLING>; 197 pinctrl-names 169 pinctrl-names = "default"; 198 pinctrl-0 = <& 170 pinctrl-0 = <&pinctrl_ptn5150>; 199 171 200 port { !! 172 ports { >> 173 #address-cells = <1>; >> 174 #size-cells = <0>; >> 175 >> 176 port@0 { >> 177 reg = <0>; >> 178 >> 179 ptn5150_in_ep: endpoint { >> 180 remote-endpoint = <&usb_c_0_ss_ep>; >> 181 }; >> 182 }; >> 183 >> 184 port@1 { >> 185 reg = <1>; 201 186 202 ptn515 !! 187 ptn5150_out_ep: endpoint { 203 !! 188 remote-endpoint = <&dwc3_0_ss_ep>; >> 189 }; 204 }; 190 }; 205 }; 191 }; 206 }; 192 }; 207 193 208 power-sensor@40 { 194 power-sensor@40 { 209 compatible = " !! 195 compatible = "ti,ina238"; 210 reg = <0x40>; !! 196 reg = <0x40>; 211 shunt-resistor !! 197 shunt-resistor = <20000>; /* 0.02 R */ 212 ti,shunt-gain !! 198 ti,shunt-gain = <1>; /* Drop cca. 40mV */ 213 }; 199 }; 214 200 215 eeprom_board: eeprom@5 201 eeprom_board: eeprom@54 { 216 compatible = " 202 compatible = "atmel,24c04"; 217 pagesize = <16 203 pagesize = <16>; 218 reg = <0x54>; 204 reg = <0x54>; 219 }; 205 }; 220 << 221 pcieclk: clock@6b { << 222 compatible = " << 223 reg = <0x6b>; << 224 clocks = <&clk << 225 #clock-cells = << 226 }; << 227 }; 206 }; 228 207 229 i2cmuxed1: i2c@1 { /* HDM 208 i2cmuxed1: i2c@1 { /* HDMI DDC I2C */ 230 #address-cells = <1>; 209 #address-cells = <1>; 231 #size-cells = <0>; 210 #size-cells = <0>; 232 reg = <1>; 211 reg = <1>; 233 }; 212 }; 234 }; 213 }; 235 }; 214 }; 236 215 >> 216 ðphy0g { >> 217 reg = <7>; >> 218 }; >> 219 237 &fec { /* Second ethernet */ 220 &fec { /* Second ethernet */ 238 pinctrl-0 = <&pinctrl_fec_rgmii>; 221 pinctrl-0 = <&pinctrl_fec_rgmii>; 239 phy-handle = <ðphypdk>; 222 phy-handle = <ðphypdk>; 240 phy-mode = "rgmii-id"; 223 phy-mode = "rgmii-id"; 241 224 242 mdio { 225 mdio { 243 ethphypdk: ethernet-phy@7 { /* 226 ethphypdk: ethernet-phy@7 { /* Micrel KSZ9131RNXI */ 244 compatible = "ethernet 227 compatible = "ethernet-phy-id0022.1642", 245 "ethernet 228 "ethernet-phy-ieee802.3-c22"; 246 interrupt-parent = <&g 229 interrupt-parent = <&gpio4>; 247 interrupts = <3 IRQ_TY 230 interrupts = <3 IRQ_TYPE_LEVEL_LOW>; 248 pinctrl-0 = <&pinctrl_ 231 pinctrl-0 = <&pinctrl_ethphy1>; 249 pinctrl-names = "defau 232 pinctrl-names = "default"; 250 reg = <7>; 233 reg = <7>; 251 reset-assert-us = <100 234 reset-assert-us = <1000>; 252 /* RESET_N signal rise 235 /* RESET_N signal rise time ~100ms */ 253 reset-deassert-us = <1 236 reset-deassert-us = <120000>; 254 reset-gpios = <&gpio4 237 reset-gpios = <&gpio4 2 GPIO_ACTIVE_LOW>; 255 }; 238 }; 256 }; 239 }; 257 }; 240 }; 258 241 259 &flexcan1 { 242 &flexcan1 { 260 status = "okay"; 243 status = "okay"; 261 }; 244 }; 262 245 263 &hdmi_pvi { << 264 status = "okay"; << 265 }; << 266 << 267 &hdmi_tx { << 268 ddc-i2c-bus = <&i2cmuxed1>; << 269 pinctrl-names = "default"; << 270 pinctrl-0 = <&pinctrl_hdmi>; << 271 status = "okay"; << 272 << 273 ports { << 274 port@1 { << 275 hdmi_tx_out: endpoint << 276 remote-endpoin << 277 }; << 278 }; << 279 }; << 280 }; << 281 << 282 &hdmi_tx_phy { << 283 status = "okay"; << 284 }; << 285 << 286 &lcdif3 { << 287 status = "okay"; << 288 }; << 289 << 290 &pcie_phy { 246 &pcie_phy { 291 clocks = <&pcieclk 1>; !! 247 clocks = <&clk_pcie>; 292 clock-names = "ref"; 248 clock-names = "ref"; 293 fsl,refclk-pad-mode = <IMX8_PCIE_REFCL 249 fsl,refclk-pad-mode = <IMX8_PCIE_REFCLK_PAD_INPUT>; 294 status = "okay"; 250 status = "okay"; 295 }; 251 }; 296 252 297 &pcie { 253 &pcie { 298 fsl,max-link-speed = <3>; 254 fsl,max-link-speed = <3>; 299 reset-gpio = <&gpio1 6 GPIO_ACTIVE_LOW 255 reset-gpio = <&gpio1 6 GPIO_ACTIVE_LOW>; 300 status = "okay"; 256 status = "okay"; 301 }; 257 }; 302 258 303 &sai3 { << 304 pinctrl-names = "default"; << 305 pinctrl-0 = <&pinctrl_sai3>; << 306 assigned-clocks = <&clk IMX8MP_CLK_SAI << 307 assigned-clock-parents = <&clk IMX8MP_ << 308 assigned-clock-rates = <12288000>; << 309 fsl,sai-mclk-direction-output; << 310 status = "okay"; << 311 }; << 312 << 313 &usb_dwc3_0 { 259 &usb_dwc3_0 { 314 usb-role-switch; 260 usb-role-switch; 315 261 316 port { 262 port { 317 dwc3_0_ep: endpoint { !! 263 #address-cells = <1>; >> 264 #size-cells = <0>; >> 265 >> 266 dwc3_0_hs_ep: endpoint@0 { >> 267 reg = <0>; >> 268 remote-endpoint = <&usb_c_0_hs_ep>; >> 269 }; >> 270 >> 271 dwc3_0_ss_ep: endpoint@1 { >> 272 reg = <1>; 318 remote-endpoint = <&pt 273 remote-endpoint = <&ptn5150_out_ep>; 319 }; 274 }; 320 }; 275 }; 321 }; 276 }; 322 277 323 &usb3_1 { 278 &usb3_1 { 324 fsl,disable-port-power-control; 279 fsl,disable-port-power-control; 325 fsl,permanently-attached; 280 fsl,permanently-attached; 326 }; 281 }; 327 282 328 &usb_dwc3_1 { 283 &usb_dwc3_1 { 329 /* This port has USB5734 Hub connected 284 /* This port has USB5734 Hub connected to it, PWR/OC pins are unused */ 330 /delete-property/ pinctrl-names; 285 /delete-property/ pinctrl-names; 331 /delete-property/ pinctrl-0; 286 /delete-property/ pinctrl-0; 332 }; 287 }; 333 288 334 &iomuxc { 289 &iomuxc { 335 /* 290 /* 336 * GPIO_A,B,C,E are connected to butto 291 * GPIO_A,B,C,E are connected to buttons. 337 * GPIO_D,F,G,I are connected to LEDs. 292 * GPIO_D,F,G,I are connected to LEDs. 338 * GPIO_H is connected to USB Hub RESE 293 * GPIO_H is connected to USB Hub RESET_N. 339 * GPIO_M is connected to CLKOUT2. 294 * GPIO_M is connected to CLKOUT2. 340 */ 295 */ 341 pinctrl-0 = <&pinctrl_hog_base 296 pinctrl-0 = <&pinctrl_hog_base 342 &pinctrl_dhcom_h &pinctrl 297 &pinctrl_dhcom_h &pinctrl_dhcom_j &pinctrl_dhcom_k 343 &pinctrl_dhcom_l 298 &pinctrl_dhcom_l 344 &pinctrl_dhcom_int>; 299 &pinctrl_dhcom_int>; 345 300 346 pinctrl_ptn5150: ptn5150grp { 301 pinctrl_ptn5150: ptn5150grp { 347 fsl,pins = < 302 fsl,pins = < 348 MX8MP_IOMUXC_SAI2_TXC_ 303 MX8MP_IOMUXC_SAI2_TXC__GPIO4_IO25 0x40000000 349 >; 304 >; 350 }; 305 }; 351 }; 306 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.