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