| 1 |
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT |
| 2 |
/* |
| 3 |
* Copyright (c) 2021 SUSE LLC |
| 4 |
* Copyright 2019-2021, 2024 NXP |
| 5 |
*/ |
| 6 |
|
| 7 |
/dts-v1/; |
| 8 |
|
| 9 |
#include "s32g2.dtsi" |
| 10 |
#include "s32gxxxa-rdb.dtsi" |
| 11 |
|
| 12 |
/ { |
| 13 |
model = "NXP S32G2 Reference Design Board 2 (S32G-VNP-RDB2)"; |
| 14 |
compatible = "nxp,s32g274a-rdb2", "nxp,s32g2"; |
| 15 |
|
| 16 |
aliases { |
| 17 |
ethernet0 = &gmac0; |
| 18 |
serial0 = &uart0; |
| 19 |
serial1 = &uart1; |
| 20 |
}; |
| 21 |
|
| 22 |
chosen { |
| 23 |
stdout-path = "serial0:115200n8"; |
| 24 |
}; |
| 25 |
|
| 26 |
/* 4GiB RAM */ |
| 27 |
memory@80000000 { |
| 28 |
device_type = "memory"; |
| 29 |
reg = <0x0 0x80000000 0 0x80000000>, |
| 30 |
<0x8 0x80000000 0 0x80000000>; |
| 31 |
}; |
| 32 |
}; |
| 33 |
|
| 34 |
/* UART (J2) to Micro USB port */ |
| 35 |
&uart0 { |
| 36 |
status = "okay"; |
| 37 |
}; |
| 38 |
|
| 39 |
/* UART (J1) to Micro USB port */ |
| 40 |
&uart1 { |
| 41 |
status = "okay"; |
| 42 |
}; |
| 43 |
|
| 44 |
&stm0 { |
| 45 |
status = "okay"; |
| 46 |
}; |
| 47 |
|
| 48 |
&stm1 { |
| 49 |
status = "okay"; |
| 50 |
}; |
| 51 |
|
| 52 |
&stm2 { |
| 53 |
status = "okay"; |
| 54 |
}; |
| 55 |
|
| 56 |
&stm3 { |
| 57 |
status = "okay"; |
| 58 |
}; |
| 59 |
|
| 60 |
&swt0 { |
| 61 |
status = "okay"; |
| 62 |
}; |
| 63 |
|
| 64 |
&usdhc0 { |
| 65 |
pinctrl-names = "default", "state_100mhz", "state_200mhz"; |
| 66 |
pinctrl-0 = <&pinctrl_usdhc0>; |
| 67 |
pinctrl-1 = <&pinctrl_usdhc0_100mhz>; |
| 68 |
pinctrl-2 = <&pinctrl_usdhc0_200mhz>; |
| 69 |
disable-wp; |
| 70 |
/* Remove no-1-8-v to enable higher speed modes for SD card. |
| 71 |
* However, this is not enough to enable HS400 or HS200 modes for eMMC. |
| 72 |
* In this case, the position of the resistor R797 must be changed |
| 73 |
* from A to B before removing the property. |
| 74 |
* If the property is removed without changing the resistor position, |
| 75 |
* HS*00 may be enabled, but the interface might be unstable because of |
| 76 |
* the wrong VCCQ voltage applied to the eMMC. |
| 77 |
*/ |
| 78 |
no-1-8-v; |
| 79 |
status = "okay"; |
| 80 |
}; |
| 81 |
|
| 82 |
&gmac0 { |
| 83 |
clocks = <&clks 24>, <&clks 19>, <&clks 18>, <&clks 15>; |
| 84 |
clock-names = "stmmaceth", "tx", "rx", "ptp_ref"; |
| 85 |
phy-mode = "rgmii-id"; |
| 86 |
phy-handle = <&rgmiiaphy1>; |
| 87 |
status = "okay"; |
| 88 |
}; |
| 89 |
|
| 90 |
&gmac0mdio { |
| 91 |
/* KSZ 9031 on RGMII */ |
| 92 |
rgmiiaphy1: ethernet-phy@1 { |
| 93 |
reg = <1>; |
| 94 |
}; |
| 95 |
}; |