1// SPDX-License-Identifier: GPL-2.0+ OR MIT 2/* 3 * Copyright (C) 2024 Kontron Electronics GmbH 4 */ 5 6/dts-v1/; 7 8#include "imx93-kontron-osm-s.dtsi" 9 10/ { 11 model = "Kontron BL i.MX93 OSM-S"; 12 compatible = "kontron,imx93-bl-osm-s", "kontron,imx93-osm-s", "fsl,imx93"; 13 14 aliases { 15 ethernet0 = &fec; 16 ethernet1 = &eqos; 17 gpio0 = &gpio1; 18 gpio1 = &gpio2; 19 i2c0 = &lpi2c1; 20 i2c1 = &lpi2c2; 21 mmc0 = &usdhc1; 22 mmc1 = &usdhc2; 23 serial0 = &lpuart1; 24 serial1 = &lpuart2; 25 serial2 = &lpuart3; 26 serial3 = &lpuart4; 27 serial4 = &lpuart5; 28 serial5 = &lpuart6; 29 serial6 = &lpuart7; 30 spi0 = &lpspi1; 31 spi1 = &lpspi2; 32 spi2 = &lpspi3; 33 spi3 = &lpspi4; 34 spi4 = &lpspi5; 35 spi5 = &lpspi6; 36 spi6 = &lpspi7; 37 spi7 = &lpspi8; 38 }; 39 40 leds { 41 compatible = "gpio-leds"; 42 43 led1 { 44 label = "led1"; 45 gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>; 46 linux,default-trigger = "heartbeat"; 47 }; 48 }; 49 50 pwm-beeper { 51 compatible = "pwm-beeper"; 52 pwms = <&tpm6 1 5000 0>; 53 }; 54 55 reg_vcc_panel: regulator-vcc-panel { 56 compatible = "regulator-fixed"; 57 pinctrl-names = "default"; 58 pinctrl-0 = <&pinctrl_reg_vcc_panel>; 59 gpio = <&gpio2 21 GPIO_ACTIVE_HIGH>; 60 enable-active-high; 61 regulator-max-microvolt = <3300000>; 62 regulator-min-microvolt = <3300000>; 63 regulator-name = "VCC_PANEL"; 64 }; 65}; 66 67&eqos { /* Second ethernet (OSM-S ETH_B) */ 68 pinctrl-names = "default"; 69 pinctrl-0 = <&pinctrl_eqos_rgmii>; 70 phy-mode = "rgmii-id"; 71 phy-handle = <ðphy1>; 72 status = "okay"; 73 74 mdio { 75 compatible = "snps,dwmac-mdio"; 76 #address-cells = <1>; 77 #size-cells = <0>; 78 79 ethphy1: ethernet-phy@1 { 80 compatible = "ethernet-phy-id4f51.e91b"; 81 reg = <1>; 82 reset-assert-us = <10000>; 83 reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; 84 }; 85 }; 86}; 87 88&fec { /* First ethernet (OSM-S ETH_A) */ 89 pinctrl-names = "default"; 90 pinctrl-0 = <&pinctrl_enet_rgmii>; 91 phy-connection-type = "rgmii-id"; 92 phy-handle = <ðphy0>; 93 status = "okay"; 94 95 mdio { 96 #address-cells = <1>; 97 #size-cells = <0>; 98 99 ethphy0: ethernet-phy@1 { 100 compatible = "ethernet-phy-id4f51.e91b"; 101 reg = <1>; 102 reset-assert-us = <10000>; 103 reset-gpios = <&gpio2 18 GPIO_ACTIVE_LOW>; 104 }; 105 }; 106}; 107 108&flexcan1 { 109 status = "okay"; 110}; 111 112&lpi2c2 { 113 status = "okay"; 114 115 gpio_expander_dio: gpio@20 { 116 compatible = "ti,tca6408"; 117 reg = <0x20>; 118 gpio-controller; 119 #gpio-cells = <2>; 120 gpio-line-names = "DIO1_OUT","DIO1_IN", "DIO2_OUT","DIO2_IN", 121 "DIO3_OUT","DIO3_IN", "DIO4_OUT","DIO4_IN"; 122 interrupt-parent = <&gpio4>; 123 interrupts = <28 IRQ_TYPE_EDGE_FALLING>; 124 reset-gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; 125 }; 126}; 127 128&lpspi8 { 129 assigned-clocks = <&clk IMX93_CLK_LPSPI8>; 130 assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD0_DIV2>; 131 assigned-clock-rates = <100000000>; 132 status = "okay"; 133 134 eeram@0 { 135 compatible = "microchip,48l640"; 136 reg = <0>; 137 spi-max-frequency = <20000000>; 138 }; 139}; 140 141&lpuart1 { 142 status = "okay"; 143}; 144 145&lpuart7 { 146 uart-has-rtscts; 147 status = "okay"; 148}; 149 150&lpuart6 { 151 linux,rs485-enabled-at-boot-time; 152 uart-has-rtscts; 153 status = "okay"; 154}; 155 156&tpm6 { 157 status = "okay"; 158}; 159 160&usbotg1 { 161 adp-disable; 162 hnp-disable; 163 srp-disable; 164 disable-over-current; 165 dr_mode = "otg"; 166 usb-role-switch; 167 status = "okay"; 168}; 169 170&usbotg2 { 171 #address-cells = <1>; 172 #size-cells = <0>; 173 disable-over-current; 174 dr_mode = "host"; 175 status = "okay"; 176 177 usb1@1 { 178 compatible = "usb424,2514"; 179 reg = <1>; 180 }; 181}; 182 183&usdhc2 { 184 vmmc-supply = <®_vdd_3v3>; 185 status = "okay"; 186}; 187 188&iomuxc { 189 pinctrl_reg_vcc_panel: regvccpanelgrp { 190 fsl,pins = < 191 MX93_PAD_GPIO_IO21__GPIO2_IO21 0x31e /* PWM_2 */ 192 >; 193 }; 194}; 195