xref: /linux/arch/riscv/boot/dts/spacemit/k3-com260.dtsi (revision 67f8bc848ee31831336bd478e57d2f993551902e)
1// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2/*
3 * Copyright (c) 2026 SpacemiT (Hangzhou) Technology Co. Ltd
4 * Copyright (c) 2026 Yixun Lan <dlan@kernel.org>
5 */
6#include <dt-bindings/gpio/gpio.h>
7
8#include "k3.dtsi"
9#include "k3-pinctrl.dtsi"
10
11/ {
12	model = "SpacemiT K3 CoM260 Module";
13	compatible = "spacemit,k3-com260", "spacemit,k3";
14
15	memory@100000000 {
16		device_type = "memory";
17		reg = <0x1 0x00000000 0x4 0x00000000>;
18	};
19
20	reg_5v_sys: regulator-5v-sys {
21		compatible = "regulator-fixed";
22		regulator-name = "P5V0_SYS";
23		regulator-min-microvolt = <5000000>;
24		regulator-max-microvolt = <5000000>;
25		regulator-always-on;
26	};
27};
28
29&i2c2 {
30	pinctrl-names = "default";
31	pinctrl-0 = <&i2c2_1_cfg>;
32	status = "okay";
33
34	eeprom@50 {
35		compatible = "atmel,24c02";
36		pagesize = <8>;
37		reg = <0x50>;
38		read-only;
39		size = <256>;
40		status = "okay";
41
42		nvmem-layout {
43			compatible = "onie,tlv-layout";
44
45			mac-address {
46				#nvmem-cell-cells = <1>;
47			};
48
49			num-macs {
50			};
51
52			product-name {
53			};
54
55			serial-number {
56			};
57		};
58	};
59};
60
61&i2c8 {
62	pinctrl-names = "default";
63	pinctrl-0 = <&i2c8_cfg>;
64	status = "okay";
65
66	pmic@41 {
67		compatible = "spacemit,p1";
68		reg = <0x41>;
69		interrupts = <64 IRQ_TYPE_LEVEL_HIGH>;
70		vin1-supply = <&reg_5v_sys>;
71		vin2-supply = <&reg_5v_sys>;
72		vin3-supply = <&reg_5v_sys>;
73		vin4-supply = <&reg_5v_sys>;
74		vin5-supply = <&reg_5v_sys>;
75		vin6-supply = <&reg_5v_sys>;
76		aldoin-supply = <&reg_5v_sys>;
77		dldoin1-supply = <&buck4>;
78		dldoin2-supply = <&buck4>;
79
80		regulators {
81			buck1: buck1 {
82				regulator-min-microvolt = <1050000>;
83				regulator-max-microvolt = <1050000>;
84				regulator-ramp-delay = <5000>;
85				regulator-always-on;
86			};
87
88			buck2: buck2 {
89				regulator-min-microvolt = <1050000>;
90				regulator-max-microvolt = <1050000>;
91				regulator-ramp-delay = <5000>;
92				regulator-always-on;
93			};
94
95			buck3: buck3 {
96				regulator-min-microvolt = <800000>;
97				regulator-max-microvolt = <800000>;
98				regulator-ramp-delay = <5000>;
99				regulator-always-on;
100			};
101
102			buck4: buck4 {
103				regulator-min-microvolt = <2100000>;
104				regulator-max-microvolt = <2100000>;
105				regulator-ramp-delay = <5000>;
106				regulator-always-on;
107			};
108
109			buck5: buck5 {
110				regulator-min-microvolt = <1800000>;
111				regulator-max-microvolt = <1800000>;
112				regulator-ramp-delay = <5000>;
113				regulator-always-on;
114			};
115
116			buck6: buck6 {
117				regulator-min-microvolt = <500000>;
118				regulator-max-microvolt = <500000>;
119				regulator-ramp-delay = <5000>;
120				regulator-always-on;
121			};
122
123			aldo1: aldo1 {
124				regulator-min-microvolt = <1800000>;
125				regulator-max-microvolt = <3300000>;
126				regulator-always-on;
127				regulator-boot-on;
128			};
129
130			aldo2: aldo2 {
131				regulator-min-microvolt = <1800000>;
132				regulator-max-microvolt = <1800000>;
133				regulator-always-on;
134				regulator-boot-on;
135			};
136
137			aldo3: aldo3 {
138				regulator-min-microvolt = <500000>;
139				regulator-max-microvolt = <3400000>;
140			};
141
142			aldo4: aldo4 {
143				regulator-min-microvolt = <3300000>;
144				regulator-max-microvolt = <3300000>;
145				regulator-always-on;
146				regulator-boot-on;
147			};
148
149			dldo1: dldo1 {
150				regulator-min-microvolt = <1200000>;
151				regulator-max-microvolt = <1200000>;
152				regulator-always-on;
153				regulator-boot-on;
154			};
155
156			dldo2: dldo2 {
157				regulator-min-microvolt = <900000>;
158				regulator-max-microvolt = <900000>;
159				regulator-always-on;
160				regulator-boot-on;
161			};
162
163			dldo3: dldo3 {
164				regulator-min-microvolt = <800000>;
165				regulator-max-microvolt = <800000>;
166				regulator-always-on;
167				regulator-boot-on;
168			};
169
170			dldo4: dldo4 {
171				regulator-min-microvolt = <1800000>;
172				regulator-max-microvolt = <1800000>;
173				regulator-boot-on;
174			};
175
176			dldo5: dldo5 {
177				regulator-min-microvolt = <1800000>;
178				regulator-max-microvolt = <1800000>;
179				regulator-always-on;
180				regulator-boot-on;
181			};
182
183			dldo6: dldo6 {
184				regulator-min-microvolt = <1800000>;
185				regulator-max-microvolt = <1800000>;
186				regulator-always-on;
187				regulator-boot-on;
188			};
189
190			dldo7: dldo7 {
191				regulator-min-microvolt = <1800000>;
192				regulator-max-microvolt = <1800000>;
193				regulator-always-on;
194				regulator-boot-on;
195			};
196		};
197	};
198};
199
200&eth1 {
201	pinctrl-names = "default";
202	pinctrl-0 = <&gmac1_rgmii_0_cfg>, <&gmac1_phy_0_cfg>;
203	phy-mode = "rgmii-id";
204	phy-handle = <&phy1>;
205	status = "okay";
206
207	mdio {
208		phy1: ethernet-phy@1 {
209			compatible = "ethernet-phy-id001c.c916";
210			reg = <1>;
211			reset-gpios = <&gpio 1 5 GPIO_ACTIVE_LOW>;
212			reset-assert-us = <10000>;
213			reset-deassert-us = <50000>;
214		};
215	};
216};
217
218&uart0 {
219	pinctrl-names = "default";
220	pinctrl-0 = <&uart0_0_cfg>;
221	status = "okay";
222};
223