| 1 |
// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) |
| 2 |
/* |
| 3 |
* Copyright 2021-2025 NXP |
| 4 |
* |
| 5 |
* NXP S32G3 Reference Design Board 3 (S32G-VNP-RDB3) |
| 6 |
*/ |
| 7 |
|
| 8 |
/dts-v1/; |
| 9 |
|
| 10 |
#include "s32g3.dtsi" |
| 11 |
#include "s32gxxxa-rdb.dtsi" |
| 12 |
|
| 13 |
/ { |
| 14 |
model = "NXP S32G3 Reference Design Board 3 (S32G-VNP-RDB3)"; |
| 15 |
compatible = "nxp,s32g399a-rdb3", "nxp,s32g3"; |
| 16 |
|
| 17 |
aliases { |
| 18 |
ethernet0 = &gmac0; |
| 19 |
mmc0 = &usdhc0; |
| 20 |
serial0 = &uart0; |
| 21 |
serial1 = &uart1; |
| 22 |
}; |
| 23 |
|
| 24 |
chosen { |
| 25 |
stdout-path = "serial0:115200n8"; |
| 26 |
}; |
| 27 |
|
| 28 |
/* 4GiB RAM */ |
| 29 |
memory@80000000 { |
| 30 |
device_type = "memory"; |
| 31 |
reg = <0x0 0x80000000 0 0x80000000>, |
| 32 |
<0x8 0x80000000 0 0x80000000>; |
| 33 |
}; |
| 34 |
}; |
| 35 |
|
| 36 |
&uart0 { |
| 37 |
status = "okay"; |
| 38 |
}; |
| 39 |
|
| 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 |
&stm4 { |
| 61 |
status = "okay"; |
| 62 |
}; |
| 63 |
|
| 64 |
&stm5 { |
| 65 |
status = "okay"; |
| 66 |
}; |
| 67 |
|
| 68 |
&stm6 { |
| 69 |
status = "okay"; |
| 70 |
}; |
| 71 |
|
| 72 |
&stm8 { |
| 73 |
status = "okay"; |
| 74 |
}; |
| 75 |
|
| 76 |
&swt0 { |
| 77 |
status = "okay"; |
| 78 |
}; |
| 79 |
|
| 80 |
&i2c4 { |
| 81 |
current-sensor@40 { |
| 82 |
compatible = "ti,ina231"; |
| 83 |
reg = <0x40>; |
| 84 |
shunt-resistor = <1000>; |
| 85 |
}; |
| 86 |
}; |
| 87 |
|
| 88 |
&usdhc0 { |
| 89 |
pinctrl-names = "default", "state_100mhz", "state_200mhz"; |
| 90 |
pinctrl-0 = <&pinctrl_usdhc0>; |
| 91 |
pinctrl-1 = <&pinctrl_usdhc0_100mhz>; |
| 92 |
pinctrl-2 = <&pinctrl_usdhc0_200mhz>; |
| 93 |
bus-width = <8>; |
| 94 |
disable-wp; |
| 95 |
status = "okay"; |
| 96 |
}; |
| 97 |
|
| 98 |
&gmac0 { |
| 99 |
clocks = <&clks 24>, <&clks 19>, <&clks 18>, <&clks 15>; |
| 100 |
clock-names = "stmmaceth", "tx", "rx", "ptp_ref"; |
| 101 |
phy-mode = "rgmii-id"; |
| 102 |
phy-handle = <&rgmiiaphy1>; |
| 103 |
status = "okay"; |
| 104 |
}; |
| 105 |
|
| 106 |
&gmac0mdio { |
| 107 |
/* KSZ 9031 on RGMII */ |
| 108 |
rgmiiaphy1: ethernet-phy@1 { |
| 109 |
reg = <1>; |
| 110 |
}; |
| 111 |
}; |