1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * Copyright (C) 2023 DH electronics GmbH 4*f126890aSEmmanuel Vadot * 5*f126890aSEmmanuel Vadot * DHCOM iMX6ULL variant: 6*f126890aSEmmanuel Vadot * DHCM-iMX6ULL-C080-R051-F0409-SPI-E2-CAN2-SD-RTC-ADC-I-01D2 7*f126890aSEmmanuel Vadot * DHCOR PCB number: 578-200 or newer 8*f126890aSEmmanuel Vadot * DHCOM PCB number: 579-200 or newer 9*f126890aSEmmanuel Vadot * PicoITX PCB number: 487-600 or newer 10*f126890aSEmmanuel Vadot */ 11*f126890aSEmmanuel Vadot/dts-v1/; 12*f126890aSEmmanuel Vadot 13*f126890aSEmmanuel Vadot#include "imx6ull-dhcom-som.dtsi" 14*f126890aSEmmanuel Vadot#include "imx6ull-dhcom-som-cfg-sdcard.dtsi" 15*f126890aSEmmanuel Vadot 16*f126890aSEmmanuel Vadot/ { 17*f126890aSEmmanuel Vadot model = "DH electronics i.MX6ULL DHCOM on PicoITX"; 18*f126890aSEmmanuel Vadot compatible = "dh,imx6ull-dhcom-picoitx", "dh,imx6ull-dhcom-som", 19*f126890aSEmmanuel Vadot "dh,imx6ull-dhcor-som", "fsl,imx6ull"; 20*f126890aSEmmanuel Vadot 21*f126890aSEmmanuel Vadot led { 22*f126890aSEmmanuel Vadot compatible = "gpio-leds"; 23*f126890aSEmmanuel Vadot 24*f126890aSEmmanuel Vadot led-0 { 25*f126890aSEmmanuel Vadot color = <LED_COLOR_ID_YELLOW>; 26*f126890aSEmmanuel Vadot default-state = "off"; 27*f126890aSEmmanuel Vadot function = LED_FUNCTION_INDICATOR; 28*f126890aSEmmanuel Vadot gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>; /* GPIO I */ 29*f126890aSEmmanuel Vadot }; 30*f126890aSEmmanuel Vadot }; 31*f126890aSEmmanuel Vadot}; 32*f126890aSEmmanuel Vadot 33*f126890aSEmmanuel Vadot&fec1 { 34*f126890aSEmmanuel Vadot phy-handle = <&mdio1_phy0>; 35*f126890aSEmmanuel Vadot 36*f126890aSEmmanuel Vadot mdio { 37*f126890aSEmmanuel Vadot #address-cells = <1>; 38*f126890aSEmmanuel Vadot #size-cells = <0>; 39*f126890aSEmmanuel Vadot 40*f126890aSEmmanuel Vadot mdio1_phy0: ethernet-phy@0 { 41*f126890aSEmmanuel Vadot compatible = "ethernet-phy-id0007.c0f0", /* SMSC LAN8710Ai */ 42*f126890aSEmmanuel Vadot "ethernet-phy-ieee802.3-c22"; 43*f126890aSEmmanuel Vadot reg = <0>; 44*f126890aSEmmanuel Vadot clock-names = "rmii-ref"; 45*f126890aSEmmanuel Vadot clocks = <&clks IMX6UL_CLK_ENET_REF>; 46*f126890aSEmmanuel Vadot interrupt-parent = <&gpio5>; 47*f126890aSEmmanuel Vadot interrupts = <5 IRQ_TYPE_LEVEL_LOW>; 48*f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_fec1_phy &pinctrl_snvs_fec1_phy>; 49*f126890aSEmmanuel Vadot pinctrl-names = "default"; 50*f126890aSEmmanuel Vadot reset-assert-us = <500>; 51*f126890aSEmmanuel Vadot reset-deassert-us = <500>; 52*f126890aSEmmanuel Vadot reset-gpios = <&gpio3 23 GPIO_ACTIVE_LOW>; 53*f126890aSEmmanuel Vadot smsc,disable-energy-detect; /* Make plugin detection reliable */ 54*f126890aSEmmanuel Vadot }; 55*f126890aSEmmanuel Vadot }; 56*f126890aSEmmanuel Vadot}; 57*f126890aSEmmanuel Vadot 58*f126890aSEmmanuel Vadot&fec2 { 59*f126890aSEmmanuel Vadot status = "disabled"; 60*f126890aSEmmanuel Vadot}; 61*f126890aSEmmanuel Vadot 62*f126890aSEmmanuel Vadot&gpio4 { 63*f126890aSEmmanuel Vadot gpio-line-names = 64*f126890aSEmmanuel Vadot "", "", "", "", 65*f126890aSEmmanuel Vadot "", "", "", "", 66*f126890aSEmmanuel Vadot "", "", "", "", 67*f126890aSEmmanuel Vadot "", "", "", "", 68*f126890aSEmmanuel Vadot "", "PicoITX-HW2", "PicoITX-HW1", "DHCOM-M", 69*f126890aSEmmanuel Vadot "PicoITX-HW0", "DHCOM-U", "DHCOM-T", "DHCOM-S", 70*f126890aSEmmanuel Vadot "DHCOM-R", "DHCOM-Q", "DHCOM-P", "DHCOM-O", 71*f126890aSEmmanuel Vadot "DHCOM-N", "", "", ""; 72*f126890aSEmmanuel Vadot}; 73*f126890aSEmmanuel Vadot 74*f126890aSEmmanuel Vadot&gpio5 { 75*f126890aSEmmanuel Vadot gpio-line-names = 76*f126890aSEmmanuel Vadot "DHCOM-A", "DHCOM-B", "PicoITX-In2", "PicoITX-Out2", 77*f126890aSEmmanuel Vadot "PicoITX-In1", "", "", "PicoITX-Out1", 78*f126890aSEmmanuel Vadot "DHCOM-G", "DHCOM-H", "", "", 79*f126890aSEmmanuel Vadot "", "", "", "", 80*f126890aSEmmanuel Vadot "", "", "", "", 81*f126890aSEmmanuel Vadot "", "", "", "", 82*f126890aSEmmanuel Vadot "", "", "", "", 83*f126890aSEmmanuel Vadot "", "", "", ""; 84*f126890aSEmmanuel Vadot}; 85*f126890aSEmmanuel Vadot 86*f126890aSEmmanuel Vadot&iomuxc { 87*f126890aSEmmanuel Vadot pinctrl_fec1: fec1-grp { 88*f126890aSEmmanuel Vadot fsl,pins = < 89*f126890aSEmmanuel Vadot MX6UL_PAD_GPIO1_IO07__ENET1_MDC 0x1b0b0 90*f126890aSEmmanuel Vadot MX6UL_PAD_GPIO1_IO06__ENET1_MDIO 0x1b0b0 91*f126890aSEmmanuel Vadot MX6UL_PAD_ENET1_RX_EN__ENET1_RX_EN 0x1b0b0 92*f126890aSEmmanuel Vadot MX6UL_PAD_ENET1_RX_ER__ENET1_RX_ER 0x1b0b0 93*f126890aSEmmanuel Vadot MX6UL_PAD_ENET1_RX_DATA0__ENET1_RDATA00 0x1b0b0 94*f126890aSEmmanuel Vadot MX6UL_PAD_ENET1_RX_DATA1__ENET1_RDATA01 0x1b0b0 95*f126890aSEmmanuel Vadot MX6UL_PAD_ENET1_TX_EN__ENET1_TX_EN 0x1b010 96*f126890aSEmmanuel Vadot MX6UL_PAD_ENET1_TX_DATA0__ENET1_TDATA00 0x1b010 97*f126890aSEmmanuel Vadot MX6UL_PAD_ENET1_TX_DATA1__ENET1_TDATA01 0x1b010 98*f126890aSEmmanuel Vadot MX6UL_PAD_ENET1_TX_CLK__ENET1_REF_CLK1 0x4001b010 99*f126890aSEmmanuel Vadot >; 100*f126890aSEmmanuel Vadot }; 101*f126890aSEmmanuel Vadot}; 102