xref: /linux/scripts/dtc/include-prefixes/arm/rockchip/rv1126-edgeble-neu2-io.dts (revision c991ed9f57c8025b248e284545c5310e67dc44cf)
1724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2724ba675SRob Herring/*
3724ba675SRob Herring * Copyright (c) 2020 Rockchip Electronics Co., Ltd.
4724ba675SRob Herring * Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd.
5724ba675SRob Herring */
6724ba675SRob Herring
7724ba675SRob Herring/dts-v1/;
8724ba675SRob Herring#include "rv1126.dtsi"
9724ba675SRob Herring#include "rv1126-edgeble-neu2.dtsi"
10724ba675SRob Herring
11724ba675SRob Herring/ {
12724ba675SRob Herring	model = "Edgeble Neu2 IO Board";
13724ba675SRob Herring	compatible = "edgeble,neural-compute-module-2-io",
14724ba675SRob Herring		     "edgeble,neural-compute-module-2", "rockchip,rv1126";
15724ba675SRob Herring
16724ba675SRob Herring	aliases {
17724ba675SRob Herring		serial2 = &uart2;
18724ba675SRob Herring	};
19724ba675SRob Herring
20724ba675SRob Herring	chosen {
21724ba675SRob Herring		stdout-path = "serial2:1500000n8";
22724ba675SRob Herring	};
235d1d164dSJagan Teki
24*c991ed9fSJagan Teki	vcc12v_dcin: vcc12v-dcin-regulator {
25*c991ed9fSJagan Teki		compatible = "regulator-fixed";
26*c991ed9fSJagan Teki		regulator-name = "vcc12v_dcin";
27*c991ed9fSJagan Teki		regulator-always-on;
28*c991ed9fSJagan Teki		regulator-boot-on;
29*c991ed9fSJagan Teki		regulator-min-microvolt = <12000000>;
30*c991ed9fSJagan Teki		regulator-max-microvolt = <12000000>;
31*c991ed9fSJagan Teki	};
32*c991ed9fSJagan Teki
33*c991ed9fSJagan Teki	vcc5v0_sys: vcc5v0-sys-regulator {
34*c991ed9fSJagan Teki		compatible = "regulator-fixed";
35*c991ed9fSJagan Teki		regulator-name = "vcc5v0_sys";
36*c991ed9fSJagan Teki		regulator-always-on;
37*c991ed9fSJagan Teki		regulator-boot-on;
38*c991ed9fSJagan Teki		regulator-min-microvolt = <5000000>;
39*c991ed9fSJagan Teki		regulator-max-microvolt = <5000000>;
40*c991ed9fSJagan Teki		vin-supply = <&vcc12v_dcin>;
41*c991ed9fSJagan Teki	};
42*c991ed9fSJagan Teki
435d1d164dSJagan Teki	v3v3_sys: v3v3-sys-regulator {
445d1d164dSJagan Teki		compatible = "regulator-fixed";
455d1d164dSJagan Teki		regulator-name = "v3v3_sys";
465d1d164dSJagan Teki		regulator-always-on;
475d1d164dSJagan Teki		regulator-boot-on;
485d1d164dSJagan Teki		regulator-min-microvolt = <3300000>;
495d1d164dSJagan Teki		regulator-max-microvolt = <3300000>;
505d1d164dSJagan Teki		vin-supply = <&vcc5v0_sys>;
515d1d164dSJagan Teki	};
52724ba675SRob Herring};
53724ba675SRob Herring
54724ba675SRob Herring&gmac {
55724ba675SRob Herring	assigned-clocks = <&cru CLK_GMAC_SRC>, <&cru CLK_GMAC_TX_RX>,
56724ba675SRob Herring			  <&cru CLK_GMAC_ETHERNET_OUT>;
57724ba675SRob Herring	assigned-clock-parents = <&cru CLK_GMAC_SRC_M1>, <&cru RGMII_MODE_CLK>;
58724ba675SRob Herring	assigned-clock-rates = <125000000>, <0>, <25000000>;
59724ba675SRob Herring	clock_in_out = "input";
60724ba675SRob Herring	phy-handle = <&phy>;
61724ba675SRob Herring	phy-mode = "rgmii";
62724ba675SRob Herring	phy-supply = <&vcc_3v3>;
63724ba675SRob Herring	pinctrl-names = "default";
64724ba675SRob Herring	pinctrl-0 = <&rgmiim1_pins &clk_out_ethernetm1_pins>;
65724ba675SRob Herring	tx_delay = <0x2a>;
66724ba675SRob Herring	rx_delay = <0x1a>;
67724ba675SRob Herring	status = "okay";
68724ba675SRob Herring};
69724ba675SRob Herring
70724ba675SRob Herring&mdio {
71724ba675SRob Herring	phy: ethernet-phy@0 {
72724ba675SRob Herring		compatible = "ethernet-phy-id001c.c916",
73724ba675SRob Herring			     "ethernet-phy-ieee802.3-c22";
74724ba675SRob Herring		reg = <0x0>;
75724ba675SRob Herring		pinctrl-names = "default";
76724ba675SRob Herring		pinctrl-0 = <&eth_phy_rst>;
77724ba675SRob Herring		reset-assert-us = <20000>;
78724ba675SRob Herring		reset-deassert-us = <100000>;
79724ba675SRob Herring		reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;
80724ba675SRob Herring	};
81724ba675SRob Herring};
82724ba675SRob Herring
83724ba675SRob Herring&pinctrl {
84724ba675SRob Herring	ethernet {
85724ba675SRob Herring		eth_phy_rst: eth-phy-rst {
86724ba675SRob Herring			rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>;
87724ba675SRob Herring		};
88724ba675SRob Herring	};
89724ba675SRob Herring};
90724ba675SRob Herring
91724ba675SRob Herring&sdmmc {
92724ba675SRob Herring	bus-width = <4>;
93724ba675SRob Herring	cap-mmc-highspeed;
94724ba675SRob Herring	cap-sd-highspeed;
95724ba675SRob Herring	card-detect-delay = <200>;
96724ba675SRob Herring	pinctrl-names = "default";
97724ba675SRob Herring	pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_bus4 &sdmmc0_det>;
98724ba675SRob Herring	rockchip,default-sample-phase = <90>;
99724ba675SRob Herring	sd-uhs-sdr12;
100724ba675SRob Herring	sd-uhs-sdr25;
101724ba675SRob Herring	sd-uhs-sdr104;
102724ba675SRob Herring	vqmmc-supply = <&vccio_sd>;
103724ba675SRob Herring	status = "okay";
104724ba675SRob Herring};
105724ba675SRob Herring
106724ba675SRob Herring&uart2 {
107724ba675SRob Herring	status = "okay";
108724ba675SRob Herring};
109