xref: /linux/arch/arm64/boot/dts/freescale/imx93-kontron-bl-osm-s.dts (revision 55d0969c451159cff86949b38c39171cab962069)
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	};
18
19	leds {
20		compatible = "gpio-leds";
21
22		led1 {
23			label = "led1";
24			gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
25			linux,default-trigger = "heartbeat";
26		};
27	};
28
29	pwm-beeper {
30		compatible = "pwm-beeper";
31		pwms = <&tpm6 1 5000 0>;
32	};
33
34	reg_vcc_panel: regulator-vcc-panel {
35		compatible = "regulator-fixed";
36		gpio = <&gpio4 3 GPIO_ACTIVE_HIGH>;
37		enable-active-high;
38		regulator-max-microvolt = <3300000>;
39		regulator-min-microvolt = <3300000>;
40		regulator-name = "VCC_PANEL";
41	};
42};
43
44&eqos { /* Second ethernet (OSM-S ETH_B) */
45	pinctrl-names = "default";
46	pinctrl-0 = <&pinctrl_eqos_rgmii>;
47	phy-mode = "rgmii-id";
48	phy-handle = <&ethphy1>;
49	status = "okay";
50
51	mdio {
52		compatible = "snps,dwmac-mdio";
53		#address-cells = <1>;
54		#size-cells = <0>;
55
56		ethphy1: ethernet-phy@1 {
57			compatible = "ethernet-phy-id4f51.e91b";
58			reg = <1>;
59			reset-assert-us = <10000>;
60			reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
61		};
62	};
63};
64
65&fec { /* First ethernet (OSM-S ETH_A) */
66	pinctrl-names = "default";
67	pinctrl-0 = <&pinctrl_enet_rgmii>;
68	phy-connection-type = "rgmii-id";
69	phy-handle = <&ethphy0>;
70	status = "okay";
71
72	mdio {
73		#address-cells = <1>;
74		#size-cells = <0>;
75
76		ethphy0: ethernet-phy@1 {
77			compatible = "ethernet-phy-id4f51.e91b";
78			reg = <1>;
79			reset-assert-us = <10000>;
80			reset-gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
81		};
82	};
83};
84
85&flexcan1 {
86	status = "okay";
87};
88
89&lpi2c2 {
90	status = "okay";
91
92	gpio_expander_dio: gpio@20 {
93		compatible = "ti,tca6408";
94		reg = <0x20>;
95		gpio-controller;
96		#gpio-cells = <2>;
97		gpio-line-names = "DIO1_OUT","DIO1_IN", "DIO2_OUT","DIO2_IN",
98				  "DIO3_OUT","DIO3_IN", "DIO4_OUT","DIO4_IN";
99		interrupt-parent = <&gpio4>;
100		interrupts = <28 IRQ_TYPE_EDGE_FALLING>;
101		reset-gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
102	};
103};
104
105&lpspi8 {
106	assigned-clocks = <&clk IMX93_CLK_LPSPI8>;
107	assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD0_DIV2>;
108	assigned-clock-rates = <100000000>;
109	status = "okay";
110
111	eeram@0 {
112		compatible = "microchip,48l640";
113		reg = <0>;
114		spi-max-frequency = <20000000>;
115	};
116};
117
118&lpuart1 {
119	status = "okay";
120};
121
122&lpuart7 {
123	uart-has-rtscts;
124	status = "okay";
125};
126
127&lpuart6 {
128	linux,rs485-enabled-at-boot-time;
129	uart-has-rtscts;
130	status = "okay";
131};
132
133&tpm6 {
134	status = "okay";
135};
136
137&usbotg1 {
138	#address-cells = <1>;
139	#size-cells = <0>;
140	disable-over-current;
141	dr_mode = "host";
142	status = "okay";
143
144	usb1@1 {
145		compatible = "usb424,2514";
146		reg = <1>;
147	};
148};
149
150&usbotg2 {
151	adp-disable;
152	hnp-disable;
153	srp-disable;
154	disable-over-current;
155	dr_mode = "otg";
156	usb-role-switch;
157	status = "okay";
158};
159
160&usdhc2 {
161	vmmc-supply = <&reg_vdd_3v3>;
162	status = "okay";
163};
164