1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 OR X11 2f126890aSEmmanuel Vadot/* 3f126890aSEmmanuel Vadot * Device Tree Source for TQ-Systems TQMa7D board on MBa7 carrier board. 4f126890aSEmmanuel Vadot * 5f126890aSEmmanuel Vadot * Copyright (C) 2016 TQ-Systems GmbH 6f126890aSEmmanuel Vadot * Author: Markus Niebel <Markus.Niebel@tq-group.com> 7f126890aSEmmanuel Vadot * Copyright (C) 2019 Bruno Thomsen <bruno.thomsen@gmail.com> 8f126890aSEmmanuel Vadot */ 9f126890aSEmmanuel Vadot 10f126890aSEmmanuel Vadot/dts-v1/; 11f126890aSEmmanuel Vadot 12f126890aSEmmanuel Vadot#include "imx7d-tqma7.dtsi" 13f126890aSEmmanuel Vadot#include "imx7-mba7.dtsi" 14f126890aSEmmanuel Vadot 15f126890aSEmmanuel Vadot/ { 16f126890aSEmmanuel Vadot model = "TQ-Systems TQMa7D board on MBa7 carrier board"; 17f126890aSEmmanuel Vadot compatible = "tq,imx7d-mba7", "tq,imx7d-tqma7", "fsl,imx7d"; 18f126890aSEmmanuel Vadot}; 19f126890aSEmmanuel Vadot 20f126890aSEmmanuel Vadot&fec2 { 21f126890aSEmmanuel Vadot pinctrl-names = "default"; 22f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_enet2>; 23f126890aSEmmanuel Vadot phy-mode = "rgmii-id"; 24f126890aSEmmanuel Vadot phy-supply = <®_fec2_pwdn>; 25f126890aSEmmanuel Vadot phy-handle = <ðphy2_0>; 26f126890aSEmmanuel Vadot fsl,magic-packet; 27f126890aSEmmanuel Vadot status = "okay"; 28f126890aSEmmanuel Vadot 29f126890aSEmmanuel Vadot mdio { 30f126890aSEmmanuel Vadot #address-cells = <1>; 31f126890aSEmmanuel Vadot #size-cells = <0>; 32f126890aSEmmanuel Vadot 33f126890aSEmmanuel Vadot ethphy2_0: ethernet-phy@0 { 34f126890aSEmmanuel Vadot compatible = "ethernet-phy-ieee802.3-c22"; 35f126890aSEmmanuel Vadot reg = <0>; 36*01950c46SEmmanuel Vadot pinctrl-names = "default"; 37*01950c46SEmmanuel Vadot pinctrl-0 = <&pinctrl_enet2_phy>; 38f126890aSEmmanuel Vadot ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_50_NS>; 39f126890aSEmmanuel Vadot ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_50_NS>; 40f126890aSEmmanuel Vadot ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; 41f126890aSEmmanuel Vadot ti,clk-output-sel = <DP83867_CLK_O_SEL_OFF>; 42*01950c46SEmmanuel Vadot reset-gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; 43*01950c46SEmmanuel Vadot reset-assert-us = <1000>; 44*01950c46SEmmanuel Vadot reset-deassert-us = <500>; 45f126890aSEmmanuel Vadot }; 46f126890aSEmmanuel Vadot }; 47f126890aSEmmanuel Vadot}; 48f126890aSEmmanuel Vadot 49*01950c46SEmmanuel Vadot&gpio2 { 50*01950c46SEmmanuel Vadot pcie-dis-hog { 51*01950c46SEmmanuel Vadot gpio-hog; 52*01950c46SEmmanuel Vadot gpios = <29 GPIO_ACTIVE_HIGH>; 53*01950c46SEmmanuel Vadot output-high; 54*01950c46SEmmanuel Vadot line-name = "pcie-dis"; 55*01950c46SEmmanuel Vadot }; 56*01950c46SEmmanuel Vadot 57*01950c46SEmmanuel Vadot pcie-rst-hog { 58*01950c46SEmmanuel Vadot gpio-hog; 59*01950c46SEmmanuel Vadot gpios = <12 GPIO_ACTIVE_HIGH>; 60*01950c46SEmmanuel Vadot output-high; 61*01950c46SEmmanuel Vadot line-name = "pcie-rst"; 62*01950c46SEmmanuel Vadot }; 63*01950c46SEmmanuel Vadot}; 64*01950c46SEmmanuel Vadot 65f126890aSEmmanuel Vadot&iomuxc { 66f126890aSEmmanuel Vadot pinctrl-names = "default"; 67*01950c46SEmmanuel Vadot pinctrl-0 = <&pinctrl_hog_mba7_1>, <&pinctrl_hog_pcie>; 68f126890aSEmmanuel Vadot 69f126890aSEmmanuel Vadot pinctrl_enet2: enet2grp { 70*01950c46SEmmanuel Vadot fsl,pins = 71*01950c46SEmmanuel Vadot <MX7D_PAD_SD2_CD_B__ENET2_MDIO 0x02>, 72*01950c46SEmmanuel Vadot <MX7D_PAD_SD2_WP__ENET2_MDC 0x00>, 73*01950c46SEmmanuel Vadot <MX7D_PAD_EPDC_GDSP__ENET2_RGMII_TXC 0x71>, 74*01950c46SEmmanuel Vadot <MX7D_PAD_EPDC_SDCE2__ENET2_RGMII_TD0 0x71>, 75*01950c46SEmmanuel Vadot <MX7D_PAD_EPDC_SDCE3__ENET2_RGMII_TD1 0x71>, 76*01950c46SEmmanuel Vadot <MX7D_PAD_EPDC_GDCLK__ENET2_RGMII_TD2 0x71>, 77*01950c46SEmmanuel Vadot <MX7D_PAD_EPDC_GDOE__ENET2_RGMII_TD3 0x71>, 78*01950c46SEmmanuel Vadot <MX7D_PAD_EPDC_GDRL__ENET2_RGMII_TX_CTL 0x71>, 79*01950c46SEmmanuel Vadot <MX7D_PAD_EPDC_SDCE1__ENET2_RGMII_RXC 0x79>, 80*01950c46SEmmanuel Vadot <MX7D_PAD_EPDC_SDCLK__ENET2_RGMII_RD0 0x79>, 81*01950c46SEmmanuel Vadot <MX7D_PAD_EPDC_SDLE__ENET2_RGMII_RD1 0x79>, 82*01950c46SEmmanuel Vadot <MX7D_PAD_EPDC_SDOE__ENET2_RGMII_RD2 0x79>, 83*01950c46SEmmanuel Vadot <MX7D_PAD_EPDC_SDSHR__ENET2_RGMII_RD3 0x79>, 84*01950c46SEmmanuel Vadot <MX7D_PAD_EPDC_SDCE0__ENET2_RGMII_RX_CTL 0x79>; 85*01950c46SEmmanuel Vadot }; 86*01950c46SEmmanuel Vadot 87*01950c46SEmmanuel Vadot pinctrl_enet2_phy: enet2phygrp { 88*01950c46SEmmanuel Vadot fsl,pins = 89f126890aSEmmanuel Vadot /* Reset: SION, 100kPU, SRE_FAST, DSE_X1 */ 90*01950c46SEmmanuel Vadot <MX7D_PAD_EPDC_BDR0__GPIO2_IO28 0x40000070>, 91f126890aSEmmanuel Vadot /* INT/PWDN: SION, 100kPU, HYS, SRE_FAST, DSE_X1 */ 92*01950c46SEmmanuel Vadot <MX7D_PAD_EPDC_PWR_STAT__GPIO2_IO31 0x40000078>; 93*01950c46SEmmanuel Vadot }; 94*01950c46SEmmanuel Vadot 95*01950c46SEmmanuel Vadot pinctrl_hog_pcie: hogpciegrp { 96*01950c46SEmmanuel Vadot fsl,pins = 97*01950c46SEmmanuel Vadot /* #pcie_rst */ 98*01950c46SEmmanuel Vadot <MX7D_PAD_SD2_CLK__GPIO5_IO12 0x70>, 99*01950c46SEmmanuel Vadot /* #pcie_dis */ 100*01950c46SEmmanuel Vadot <MX7D_PAD_EPDC_BDR1__GPIO2_IO29 0x70>; 101f126890aSEmmanuel Vadot }; 102f126890aSEmmanuel Vadot 103f126890aSEmmanuel Vadot pinctrl_pcie: pciegrp { 104*01950c46SEmmanuel Vadot fsl,pins = 105f126890aSEmmanuel Vadot /* #pcie_wake */ 106*01950c46SEmmanuel Vadot <MX7D_PAD_EPDC_PWR_COM__GPIO2_IO30 0x70>; 107f126890aSEmmanuel Vadot }; 108f126890aSEmmanuel Vadot}; 109f126890aSEmmanuel Vadot 110f126890aSEmmanuel Vadot&iomuxc_lpsr { 111f126890aSEmmanuel Vadot pinctrl_usbotg2: usbotg2grp { 112*01950c46SEmmanuel Vadot fsl,pins = 113*01950c46SEmmanuel Vadot <MX7D_PAD_LPSR_GPIO1_IO06__USB_OTG2_OC 0x5c>, 114*01950c46SEmmanuel Vadot <MX7D_PAD_LPSR_GPIO1_IO07__GPIO1_IO7 0x59>; 115f126890aSEmmanuel Vadot }; 116f126890aSEmmanuel Vadot}; 117f126890aSEmmanuel Vadot 118f126890aSEmmanuel Vadot&pcie { 119f126890aSEmmanuel Vadot pinctrl-names = "default"; 120f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_pcie>; 121f126890aSEmmanuel Vadot /* 1.5V logically from 3.3V */ 122f126890aSEmmanuel Vadot /* probe deferral not supported */ 123f126890aSEmmanuel Vadot /* pcie-bus-supply = <®_mpcie_1v5>; */ 124f126890aSEmmanuel Vadot reset-gpio = <&gpio5 12 GPIO_ACTIVE_LOW>; 125*01950c46SEmmanuel Vadot status = "disabled"; 126f126890aSEmmanuel Vadot}; 127f126890aSEmmanuel Vadot 128f126890aSEmmanuel Vadot&usbotg2 { 129f126890aSEmmanuel Vadot pinctrl-names = "default"; 130f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_usbotg2>; 131f126890aSEmmanuel Vadot vbus-supply = <®_usb_otg2_vbus>; 132*01950c46SEmmanuel Vadot disable-over-current; 133f126890aSEmmanuel Vadot dr_mode = "host"; 134f126890aSEmmanuel Vadot status = "okay"; 135f126890aSEmmanuel Vadot}; 136