1*01950c46SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2*01950c46SEmmanuel Vadot/* 3*01950c46SEmmanuel Vadot * Copyright (C) 2023 PHYTEC Messtechnik GmbH 4*01950c46SEmmanuel Vadot * Author: Wadim Egorov <w.egorov@phytec.de>, Christoph Stoidner <c.stoidner@phytec.de> 5*01950c46SEmmanuel Vadot * Copyright (C) 2024 Mathieu Othacehe <m.othacehe@gmail.com> 6*01950c46SEmmanuel Vadot * 7*01950c46SEmmanuel Vadot * Product homepage: 8*01950c46SEmmanuel Vadot * https://www.phytec.eu/en/produkte/system-on-modules/phycore-imx-91-93/ 9*01950c46SEmmanuel Vadot */ 10*01950c46SEmmanuel Vadot 11*01950c46SEmmanuel Vadot#include <dt-bindings/leds/common.h> 12*01950c46SEmmanuel Vadot 13*01950c46SEmmanuel Vadot#include "imx93.dtsi" 14*01950c46SEmmanuel Vadot 15*01950c46SEmmanuel Vadot/{ 16*01950c46SEmmanuel Vadot model = "PHYTEC phyCORE-i.MX93"; 17*01950c46SEmmanuel Vadot compatible = "phytec,imx93-phycore-som", "fsl,imx93"; 18*01950c46SEmmanuel Vadot 19*01950c46SEmmanuel Vadot reserved-memory { 20*01950c46SEmmanuel Vadot ranges; 21*01950c46SEmmanuel Vadot #address-cells = <2>; 22*01950c46SEmmanuel Vadot #size-cells = <2>; 23*01950c46SEmmanuel Vadot 24*01950c46SEmmanuel Vadot linux,cma { 25*01950c46SEmmanuel Vadot compatible = "shared-dma-pool"; 26*01950c46SEmmanuel Vadot reusable; 27*01950c46SEmmanuel Vadot alloc-ranges = <0 0x80000000 0 0x40000000>; 28*01950c46SEmmanuel Vadot size = <0 0x10000000>; 29*01950c46SEmmanuel Vadot linux,cma-default; 30*01950c46SEmmanuel Vadot }; 31*01950c46SEmmanuel Vadot }; 32*01950c46SEmmanuel Vadot 33*01950c46SEmmanuel Vadot leds { 34*01950c46SEmmanuel Vadot compatible = "gpio-leds"; 35*01950c46SEmmanuel Vadot pinctrl-names = "default"; 36*01950c46SEmmanuel Vadot pinctrl-0 = <&pinctrl_leds>; 37*01950c46SEmmanuel Vadot 38*01950c46SEmmanuel Vadot led-0 { 39*01950c46SEmmanuel Vadot color = <LED_COLOR_ID_GREEN>; 40*01950c46SEmmanuel Vadot function = LED_FUNCTION_HEARTBEAT; 41*01950c46SEmmanuel Vadot gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; 42*01950c46SEmmanuel Vadot linux,default-trigger = "heartbeat"; 43*01950c46SEmmanuel Vadot }; 44*01950c46SEmmanuel Vadot }; 45*01950c46SEmmanuel Vadot}; 46*01950c46SEmmanuel Vadot 47*01950c46SEmmanuel Vadot/* Ethernet */ 48*01950c46SEmmanuel Vadot&fec { 49*01950c46SEmmanuel Vadot pinctrl-names = "default"; 50*01950c46SEmmanuel Vadot pinctrl-0 = <&pinctrl_fec>; 51*01950c46SEmmanuel Vadot phy-mode = "rmii"; 52*01950c46SEmmanuel Vadot phy-handle = <ðphy1>; 53*01950c46SEmmanuel Vadot fsl,magic-packet; 54*01950c46SEmmanuel Vadot assigned-clocks = <&clk IMX93_CLK_ENET_TIMER1>, 55*01950c46SEmmanuel Vadot <&clk IMX93_CLK_ENET_REF>, 56*01950c46SEmmanuel Vadot <&clk IMX93_CLK_ENET_REF_PHY>; 57*01950c46SEmmanuel Vadot assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1_DIV2>, 58*01950c46SEmmanuel Vadot <&clk IMX93_CLK_SYS_PLL_PFD1_DIV2>, 59*01950c46SEmmanuel Vadot <&clk IMX93_CLK_SYS_PLL_PFD1_DIV2>; 60*01950c46SEmmanuel Vadot assigned-clock-rates = <100000000>, <50000000>, <50000000>; 61*01950c46SEmmanuel Vadot status = "okay"; 62*01950c46SEmmanuel Vadot 63*01950c46SEmmanuel Vadot mdio: mdio { 64*01950c46SEmmanuel Vadot clock-frequency = <5000000>; 65*01950c46SEmmanuel Vadot #address-cells = <1>; 66*01950c46SEmmanuel Vadot #size-cells = <0>; 67*01950c46SEmmanuel Vadot 68*01950c46SEmmanuel Vadot ethphy1: ethernet-phy@1 { 69*01950c46SEmmanuel Vadot compatible = "ethernet-phy-ieee802.3-c22"; 70*01950c46SEmmanuel Vadot reg = <1>; 71*01950c46SEmmanuel Vadot }; 72*01950c46SEmmanuel Vadot }; 73*01950c46SEmmanuel Vadot}; 74*01950c46SEmmanuel Vadot 75*01950c46SEmmanuel Vadot/* eMMC */ 76*01950c46SEmmanuel Vadot&usdhc1 { 77*01950c46SEmmanuel Vadot pinctrl-names = "default"; 78*01950c46SEmmanuel Vadot pinctrl-0 = <&pinctrl_usdhc1>; 79*01950c46SEmmanuel Vadot bus-width = <8>; 80*01950c46SEmmanuel Vadot non-removable; 81*01950c46SEmmanuel Vadot status = "okay"; 82*01950c46SEmmanuel Vadot}; 83*01950c46SEmmanuel Vadot 84*01950c46SEmmanuel Vadot/* Watchdog */ 85*01950c46SEmmanuel Vadot&wdog3 { 86*01950c46SEmmanuel Vadot status = "okay"; 87*01950c46SEmmanuel Vadot}; 88*01950c46SEmmanuel Vadot 89*01950c46SEmmanuel Vadot&iomuxc { 90*01950c46SEmmanuel Vadot pinctrl_fec: fecgrp { 91*01950c46SEmmanuel Vadot fsl,pins = < 92*01950c46SEmmanuel Vadot MX93_PAD_ENET2_MDC__ENET1_MDC 0x50e 93*01950c46SEmmanuel Vadot MX93_PAD_ENET2_MDIO__ENET1_MDIO 0x502 94*01950c46SEmmanuel Vadot MX93_PAD_ENET2_RD0__ENET1_RGMII_RD0 0x57e 95*01950c46SEmmanuel Vadot MX93_PAD_ENET2_RD1__ENET1_RGMII_RD1 0x57e 96*01950c46SEmmanuel Vadot MX93_PAD_ENET2_RXC__ENET1_RX_ER 0x5fe 97*01950c46SEmmanuel Vadot MX93_PAD_ENET2_RX_CTL__ENET1_RGMII_RX_CTL 0x57e 98*01950c46SEmmanuel Vadot MX93_PAD_ENET2_TD0__ENET1_RGMII_TD0 0x50e 99*01950c46SEmmanuel Vadot MX93_PAD_ENET2_TD1__ENET1_RGMII_TD1 0x50e 100*01950c46SEmmanuel Vadot MX93_PAD_ENET2_TX_CTL__ENET1_RGMII_TX_CTL 0x50e 101*01950c46SEmmanuel Vadot MX93_PAD_ENET2_TD2__ENET1_TX_CLK 0x4000050e 102*01950c46SEmmanuel Vadot >; 103*01950c46SEmmanuel Vadot }; 104*01950c46SEmmanuel Vadot 105*01950c46SEmmanuel Vadot pinctrl_leds: ledsgrp { 106*01950c46SEmmanuel Vadot fsl,pins = < 107*01950c46SEmmanuel Vadot MX93_PAD_I2C1_SDA__GPIO1_IO01 0x31e 108*01950c46SEmmanuel Vadot >; 109*01950c46SEmmanuel Vadot }; 110*01950c46SEmmanuel Vadot 111*01950c46SEmmanuel Vadot pinctrl_usdhc1: usdhc1grp { 112*01950c46SEmmanuel Vadot fsl,pins = < 113*01950c46SEmmanuel Vadot MX93_PAD_SD1_CLK__USDHC1_CLK 0x179e 114*01950c46SEmmanuel Vadot MX93_PAD_SD1_CMD__USDHC1_CMD 0x1386 115*01950c46SEmmanuel Vadot MX93_PAD_SD1_DATA0__USDHC1_DATA0 0x138e 116*01950c46SEmmanuel Vadot MX93_PAD_SD1_DATA1__USDHC1_DATA1 0x1386 117*01950c46SEmmanuel Vadot MX93_PAD_SD1_DATA2__USDHC1_DATA2 0x138e 118*01950c46SEmmanuel Vadot MX93_PAD_SD1_DATA3__USDHC1_DATA3 0x1386 119*01950c46SEmmanuel Vadot MX93_PAD_SD1_DATA4__USDHC1_DATA4 0x1386 120*01950c46SEmmanuel Vadot MX93_PAD_SD1_DATA5__USDHC1_DATA5 0x1386 121*01950c46SEmmanuel Vadot MX93_PAD_SD1_DATA6__USDHC1_DATA6 0x1386 122*01950c46SEmmanuel Vadot MX93_PAD_SD1_DATA7__USDHC1_DATA7 0x1386 123*01950c46SEmmanuel Vadot MX93_PAD_SD1_STROBE__USDHC1_STROBE 0x179e 124*01950c46SEmmanuel Vadot >; 125*01950c46SEmmanuel Vadot }; 126*01950c46SEmmanuel Vadot}; 127