1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2020 PHYTEC Messtechnik GmbH 4 * Author: Teresa Remmet <t.remmet@phytec.de> 5 */ 6 7/dts-v1/; 8 9#include <dt-bindings/leds/leds-pca9532.h> 10#include <dt-bindings/pwm/pwm.h> 11#include "imx8mp-phycore-som.dtsi" 12 13/ { 14 model = "PHYTEC phyBOARD-Pollux i.MX8MP"; 15 compatible = "phytec,imx8mp-phyboard-pollux-rdk", 16 "phytec,imx8mp-phycore-som", "fsl,imx8mp"; 17 18 chosen { 19 stdout-path = &uart1; 20 }; 21 22 reg_usdhc2_vmmc: regulator-usdhc2 { 23 compatible = "regulator-fixed"; 24 pinctrl-names = "default"; 25 pinctrl-0 = <&pinctrl_reg_usdhc2_vmmc>; 26 regulator-name = "VSD_3V3"; 27 regulator-min-microvolt = <3300000>; 28 regulator-max-microvolt = <3300000>; 29 gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>; 30 enable-active-high; 31 startup-delay-us = <100>; 32 off-on-delay-us = <12000>; 33 }; 34}; 35 36&eqos { 37 pinctrl-names = "default"; 38 pinctrl-0 = <&pinctrl_eqos>; 39 phy-mode = "rgmii-id"; 40 phy-handle = <ðphy0>; 41 status = "okay"; 42 43 mdio { 44 compatible = "snps,dwmac-mdio"; 45 #address-cells = <1>; 46 #size-cells = <0>; 47 48 ethphy0: ethernet-phy@1 { 49 compatible = "ethernet-phy-ieee802.3-c22"; 50 reg = <0x1>; 51 ti,rx-internal-delay = <DP83867_RGMIIDCTL_1_50_NS>; 52 ti,tx-internal-delay = <DP83867_RGMIIDCTL_1_50_NS>; 53 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; 54 ti,clk-output-sel = <DP83867_CLK_O_SEL_OFF>; 55 enet-phy-lane-no-swap; 56 }; 57 }; 58}; 59 60&i2c2 { 61 clock-frequency = <400000>; 62 pinctrl-names = "default", "gpio"; 63 pinctrl-0 = <&pinctrl_i2c2>; 64 pinctrl-1 = <&pinctrl_i2c2_gpio>; 65 sda-gpios = <&gpio5 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 66 scl-gpios = <&gpio5 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 67 status = "okay"; 68 69 eeprom@51 { 70 compatible = "atmel,24c02"; 71 reg = <0x51>; 72 pagesize = <16>; 73 }; 74 75 leds@62 { 76 compatible = "nxp,pca9533"; 77 reg = <0x62>; 78 79 led-1 { 80 type = <PCA9532_TYPE_LED>; 81 }; 82 83 led-2 { 84 type = <PCA9532_TYPE_LED>; 85 }; 86 87 led-3 { 88 type = <PCA9532_TYPE_LED>; 89 }; 90 }; 91}; 92 93&snvs_pwrkey { 94 status = "okay"; 95}; 96 97/* debug console */ 98&uart1 { 99 pinctrl-names = "default"; 100 pinctrl-0 = <&pinctrl_uart1>; 101 status = "okay"; 102}; 103 104/* SD-Card */ 105&usdhc2 { 106 assigned-clocks = <&clk IMX8MP_CLK_USDHC2>; 107 assigned-clock-rates = <200000000>; 108 pinctrl-names = "default", "state_100mhz", "state_200mhz"; 109 pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_pins>; 110 pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_pins>; 111 pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_pins>; 112 cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; 113 vmmc-supply = <®_usdhc2_vmmc>; 114 bus-width = <4>; 115 status = "okay"; 116}; 117 118&iomuxc { 119 pinctrl_eqos: eqosgrp { 120 fsl,pins = < 121 MX8MP_IOMUXC_ENET_MDC__ENET_QOS_MDC 0x2 122 MX8MP_IOMUXC_ENET_MDIO__ENET_QOS_MDIO 0x2 123 MX8MP_IOMUXC_ENET_RD0__ENET_QOS_RGMII_RD0 0x90 124 MX8MP_IOMUXC_ENET_RD1__ENET_QOS_RGMII_RD1 0x90 125 MX8MP_IOMUXC_ENET_RD2__ENET_QOS_RGMII_RD2 0x90 126 MX8MP_IOMUXC_ENET_RD3__ENET_QOS_RGMII_RD3 0x90 127 MX8MP_IOMUXC_ENET_RXC__CCM_ENET_QOS_CLOCK_GENERATE_RX_CLK 0x90 128 MX8MP_IOMUXC_ENET_RX_CTL__ENET_QOS_RGMII_RX_CTL 0x90 129 MX8MP_IOMUXC_ENET_TD0__ENET_QOS_RGMII_TD0 0x16 130 MX8MP_IOMUXC_ENET_TD1__ENET_QOS_RGMII_TD1 0x16 131 MX8MP_IOMUXC_ENET_TD2__ENET_QOS_RGMII_TD2 0x16 132 MX8MP_IOMUXC_ENET_TD3__ENET_QOS_RGMII_TD3 0x16 133 MX8MP_IOMUXC_ENET_TX_CTL__ENET_QOS_RGMII_TX_CTL 0x16 134 MX8MP_IOMUXC_ENET_TXC__CCM_ENET_QOS_CLOCK_GENERATE_TX_CLK 0x16 135 MX8MP_IOMUXC_SAI1_MCLK__GPIO4_IO20 0x10 136 >; 137 }; 138 139 pinctrl_i2c2: i2c2grp { 140 fsl,pins = < 141 MX8MP_IOMUXC_I2C2_SCL__I2C2_SCL 0x400001c2 142 MX8MP_IOMUXC_I2C2_SDA__I2C2_SDA 0x400001c2 143 >; 144 }; 145 146 pinctrl_i2c2_gpio: i2c2gpiogrp { 147 fsl,pins = < 148 MX8MP_IOMUXC_I2C2_SCL__GPIO5_IO16 0x1e2 149 MX8MP_IOMUXC_I2C2_SDA__GPIO5_IO17 0x1e2 150 >; 151 }; 152 153 pinctrl_reg_usdhc2_vmmc: regusdhc2vmmcgrp { 154 fsl,pins = < 155 MX8MP_IOMUXC_SD2_RESET_B__GPIO2_IO19 0x40 156 >; 157 }; 158 159 pinctrl_uart1: uart1grp { 160 fsl,pins = < 161 MX8MP_IOMUXC_UART1_RXD__UART1_DCE_RX 0x40 162 MX8MP_IOMUXC_UART1_TXD__UART1_DCE_TX 0x40 163 >; 164 }; 165 166 pinctrl_usdhc2_pins: usdhc2-gpiogrp { 167 fsl,pins = < 168 MX8MP_IOMUXC_SD2_CD_B__GPIO2_IO12 0x1c4 169 >; 170 }; 171 172 pinctrl_usdhc2: usdhc2grp { 173 fsl,pins = < 174 MX8MP_IOMUXC_SD2_CLK__USDHC2_CLK 0x190 175 MX8MP_IOMUXC_SD2_CMD__USDHC2_CMD 0x1d0 176 MX8MP_IOMUXC_SD2_DATA0__USDHC2_DATA0 0x1d0 177 MX8MP_IOMUXC_SD2_DATA1__USDHC2_DATA1 0x1d0 178 MX8MP_IOMUXC_SD2_DATA2__USDHC2_DATA2 0x1d0 179 MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d0 180 MX8MP_IOMUXC_GPIO1_IO04__USDHC2_VSELECT 0xc0 181 >; 182 }; 183 184 pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp { 185 fsl,pins = < 186 MX8MP_IOMUXC_SD2_CLK__USDHC2_CLK 0x194 187 MX8MP_IOMUXC_SD2_CMD__USDHC2_CMD 0x1d4 188 MX8MP_IOMUXC_SD2_DATA0__USDHC2_DATA0 0x1d4 189 MX8MP_IOMUXC_SD2_DATA1__USDHC2_DATA1 0x1d4 190 MX8MP_IOMUXC_SD2_DATA2__USDHC2_DATA2 0x1d4 191 MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d4 192 MX8MP_IOMUXC_GPIO1_IO04__USDHC2_VSELECT 0xc0 193 >; 194 }; 195 196 pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp { 197 fsl,pins = < 198 MX8MP_IOMUXC_SD2_CLK__USDHC2_CLK 0x196 199 MX8MP_IOMUXC_SD2_CMD__USDHC2_CMD 0x1d6 200 MX8MP_IOMUXC_SD2_DATA0__USDHC2_DATA0 0x1d6 201 MX8MP_IOMUXC_SD2_DATA1__USDHC2_DATA1 0x1d6 202 MX8MP_IOMUXC_SD2_DATA2__USDHC2_DATA2 0x1d6 203 MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d6 204 MX8MP_IOMUXC_GPIO1_IO04__USDHC2_VSELECT 0xc0 205 >; 206 }; 207}; 208