1*64285609SMichael Walle// SPDX-License-Identifier: GPL-2.0+
2*64285609SMichael Walle/*
3*64285609SMichael Walle * Device Tree file for the Kontron SMARC-sAL28 board.
4*64285609SMichael Walle *
5*64285609SMichael Walle * This is for the network variant 1 which has one ethernet port. It is
6*64285609SMichael Walle * different than the base variant, which also has one port, but here the
7*64285609SMichael Walle * port is connected via RGMII. This port is not TSN aware.
8*64285609SMichael Walle * None of the  four SerDes lanes are used by the module, instead they are
9*64285609SMichael Walle * all led out to the carrier for customer use.
10*64285609SMichael Walle *
11*64285609SMichael Walle * Copyright (C) 2020 Michael Walle <michael@walle.cc>
12*64285609SMichael Walle *
13*64285609SMichael Walle */
14*64285609SMichael Walle
15*64285609SMichael Walle/dts-v1/;
16*64285609SMichael Walle#include "fsl-ls1028a-kontron-sl28.dts"
17*64285609SMichael Walle#include <dt-bindings/net/qca-ar803x.h>
18*64285609SMichael Walle
19*64285609SMichael Walle/ {
20*64285609SMichael Walle	model = "Kontron SMARC-sAL28 (4 Lanes)";
21*64285609SMichael Walle	compatible = "kontron,sl28-var1", "kontron,sl28", "fsl,ls1028a";
22*64285609SMichael Walle};
23*64285609SMichael Walle
24*64285609SMichael Walle&enetc_port0 {
25*64285609SMichael Walle	status = "disabled";
26*64285609SMichael Walle	/*
27*64285609SMichael Walle	 * Delete both the phy-handle to the old phy0 label as well as
28*64285609SMichael Walle	 * the mdio node with the old phy node with the old phy0 label.
29*64285609SMichael Walle	 */
30*64285609SMichael Walle	/delete-property/ phy-handle;
31*64285609SMichael Walle	/delete-node/ mdio;
32*64285609SMichael Walle};
33*64285609SMichael Walle
34*64285609SMichael Walle&enetc_port1 {
35*64285609SMichael Walle	phy-handle = <&phy0>;
36*64285609SMichael Walle	phy-connection-type = "rgmii-id";
37*64285609SMichael Walle	status = "okay";
38*64285609SMichael Walle
39*64285609SMichael Walle	mdio {
40*64285609SMichael Walle		#address-cells = <1>;
41*64285609SMichael Walle		#size-cells = <0>;
42*64285609SMichael Walle
43*64285609SMichael Walle		phy0: ethernet-phy@4 {
44*64285609SMichael Walle			reg = <0x4>;
45*64285609SMichael Walle			eee-broken-1000t;
46*64285609SMichael Walle			eee-broken-100tx;
47*64285609SMichael Walle			qca,clk-out-frequency = <125000000>;
48*64285609SMichael Walle			qca,clk-out-strength = <AR803X_STRENGTH_FULL>;
49*64285609SMichael Walle			vddio-supply = <&vddh>;
50*64285609SMichael Walle
51*64285609SMichael Walle			vddio: vddio-regulator {
52*64285609SMichael Walle				regulator-name = "VDDIO";
53*64285609SMichael Walle				regulator-min-microvolt = <1800000>;
54*64285609SMichael Walle				regulator-max-microvolt = <1800000>;
55*64285609SMichael Walle			};
56*64285609SMichael Walle
57*64285609SMichael Walle			vddh: vddh-regulator {
58*64285609SMichael Walle				regulator-name = "VDDH";
59*64285609SMichael Walle			};
60*64285609SMichael Walle		};
61*64285609SMichael Walle	};
62*64285609SMichael Walle};
63