xref: /freebsd/sys/contrib/device-tree/src/arm/rockchip/rv1126-edgeble-neu2-io.dts (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * Copyright (c) 2020 Rockchip Electronics Co., Ltd.
4f126890aSEmmanuel Vadot * Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd.
5f126890aSEmmanuel Vadot */
6f126890aSEmmanuel Vadot
7f126890aSEmmanuel Vadot/dts-v1/;
8f126890aSEmmanuel Vadot#include "rv1126.dtsi"
9f126890aSEmmanuel Vadot#include "rv1126-edgeble-neu2.dtsi"
10f126890aSEmmanuel Vadot
11f126890aSEmmanuel Vadot/ {
12f126890aSEmmanuel Vadot	model = "Edgeble Neu2 IO Board";
13f126890aSEmmanuel Vadot	compatible = "edgeble,neural-compute-module-2-io",
14f126890aSEmmanuel Vadot		     "edgeble,neural-compute-module-2", "rockchip,rv1126";
15f126890aSEmmanuel Vadot
16f126890aSEmmanuel Vadot	aliases {
17f126890aSEmmanuel Vadot		serial2 = &uart2;
18f126890aSEmmanuel Vadot	};
19f126890aSEmmanuel Vadot
20f126890aSEmmanuel Vadot	chosen {
21f126890aSEmmanuel Vadot		stdout-path = "serial2:1500000n8";
22f126890aSEmmanuel Vadot	};
23aa1a8ff2SEmmanuel Vadot
24aa1a8ff2SEmmanuel Vadot	vcc12v_dcin: vcc12v-dcin-regulator {
25aa1a8ff2SEmmanuel Vadot		compatible = "regulator-fixed";
26aa1a8ff2SEmmanuel Vadot		regulator-name = "vcc12v_dcin";
27aa1a8ff2SEmmanuel Vadot		regulator-always-on;
28aa1a8ff2SEmmanuel Vadot		regulator-boot-on;
29aa1a8ff2SEmmanuel Vadot		regulator-min-microvolt = <12000000>;
30aa1a8ff2SEmmanuel Vadot		regulator-max-microvolt = <12000000>;
31aa1a8ff2SEmmanuel Vadot	};
32aa1a8ff2SEmmanuel Vadot
33aa1a8ff2SEmmanuel Vadot	vcc5v0_sys: vcc5v0-sys-regulator {
34aa1a8ff2SEmmanuel Vadot		compatible = "regulator-fixed";
35aa1a8ff2SEmmanuel Vadot		regulator-name = "vcc5v0_sys";
36aa1a8ff2SEmmanuel Vadot		regulator-always-on;
37aa1a8ff2SEmmanuel Vadot		regulator-boot-on;
38aa1a8ff2SEmmanuel Vadot		regulator-min-microvolt = <5000000>;
39aa1a8ff2SEmmanuel Vadot		regulator-max-microvolt = <5000000>;
40aa1a8ff2SEmmanuel Vadot		vin-supply = <&vcc12v_dcin>;
41aa1a8ff2SEmmanuel Vadot	};
42aa1a8ff2SEmmanuel Vadot
43aa1a8ff2SEmmanuel Vadot	v3v3_sys: v3v3-sys-regulator {
44aa1a8ff2SEmmanuel Vadot		compatible = "regulator-fixed";
45aa1a8ff2SEmmanuel Vadot		regulator-name = "v3v3_sys";
46aa1a8ff2SEmmanuel Vadot		regulator-always-on;
47aa1a8ff2SEmmanuel Vadot		regulator-boot-on;
48aa1a8ff2SEmmanuel Vadot		regulator-min-microvolt = <3300000>;
49aa1a8ff2SEmmanuel Vadot		regulator-max-microvolt = <3300000>;
50aa1a8ff2SEmmanuel Vadot		vin-supply = <&vcc5v0_sys>;
51aa1a8ff2SEmmanuel Vadot	};
52f126890aSEmmanuel Vadot};
53f126890aSEmmanuel Vadot
54f126890aSEmmanuel Vadot&gmac {
55f126890aSEmmanuel Vadot	assigned-clocks = <&cru CLK_GMAC_SRC>, <&cru CLK_GMAC_TX_RX>,
56f126890aSEmmanuel Vadot			  <&cru CLK_GMAC_ETHERNET_OUT>;
57f126890aSEmmanuel Vadot	assigned-clock-parents = <&cru CLK_GMAC_SRC_M1>, <&cru RGMII_MODE_CLK>;
58f126890aSEmmanuel Vadot	assigned-clock-rates = <125000000>, <0>, <25000000>;
59f126890aSEmmanuel Vadot	clock_in_out = "input";
60f126890aSEmmanuel Vadot	phy-handle = <&phy>;
61f126890aSEmmanuel Vadot	phy-mode = "rgmii";
62f126890aSEmmanuel Vadot	phy-supply = <&vcc_3v3>;
63f126890aSEmmanuel Vadot	pinctrl-names = "default";
648d13bc63SEmmanuel Vadot	pinctrl-0 = <&rgmiim1_miim &rgmiim1_bus2 &rgmiim1_bus4 &clk_out_ethernetm1_pins>;
65f126890aSEmmanuel Vadot	tx_delay = <0x2a>;
66f126890aSEmmanuel Vadot	rx_delay = <0x1a>;
67f126890aSEmmanuel Vadot	status = "okay";
68f126890aSEmmanuel Vadot};
69f126890aSEmmanuel Vadot
70f126890aSEmmanuel Vadot&mdio {
71f126890aSEmmanuel Vadot	phy: ethernet-phy@0 {
72*0e8011faSEmmanuel Vadot		compatible = "ethernet-phy-id001c.c916";
73f126890aSEmmanuel Vadot		reg = <0x0>;
74f126890aSEmmanuel Vadot		pinctrl-names = "default";
75f126890aSEmmanuel Vadot		pinctrl-0 = <&eth_phy_rst>;
76f126890aSEmmanuel Vadot		reset-assert-us = <20000>;
77f126890aSEmmanuel Vadot		reset-deassert-us = <100000>;
78f126890aSEmmanuel Vadot		reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;
79f126890aSEmmanuel Vadot	};
80f126890aSEmmanuel Vadot};
81f126890aSEmmanuel Vadot
82f126890aSEmmanuel Vadot&pinctrl {
83f126890aSEmmanuel Vadot	ethernet {
84f126890aSEmmanuel Vadot		eth_phy_rst: eth-phy-rst {
85f126890aSEmmanuel Vadot			rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>;
86f126890aSEmmanuel Vadot		};
87f126890aSEmmanuel Vadot	};
88f126890aSEmmanuel Vadot};
89f126890aSEmmanuel Vadot
9084943d6fSEmmanuel Vadot&pwm11 {
9184943d6fSEmmanuel Vadot	status = "okay";
9284943d6fSEmmanuel Vadot};
9384943d6fSEmmanuel Vadot
94f126890aSEmmanuel Vadot&sdmmc {
95f126890aSEmmanuel Vadot	bus-width = <4>;
96f126890aSEmmanuel Vadot	cap-mmc-highspeed;
97f126890aSEmmanuel Vadot	cap-sd-highspeed;
98f126890aSEmmanuel Vadot	card-detect-delay = <200>;
99f126890aSEmmanuel Vadot	pinctrl-names = "default";
100f126890aSEmmanuel Vadot	pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_bus4 &sdmmc0_det>;
101f126890aSEmmanuel Vadot	rockchip,default-sample-phase = <90>;
102f126890aSEmmanuel Vadot	sd-uhs-sdr12;
103f126890aSEmmanuel Vadot	sd-uhs-sdr25;
104f126890aSEmmanuel Vadot	sd-uhs-sdr104;
105f126890aSEmmanuel Vadot	vqmmc-supply = <&vccio_sd>;
106f126890aSEmmanuel Vadot	status = "okay";
107f126890aSEmmanuel Vadot};
108f126890aSEmmanuel Vadot
109f126890aSEmmanuel Vadot&uart2 {
110f126890aSEmmanuel Vadot	status = "okay";
111f126890aSEmmanuel Vadot};
112