summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/imx53-kp-hsc.dts
blob: 6e3d71baac0fb3ba7e8411c444fcc965178ad5e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright 2018
 * Lukasz Majewski, DENX Software Engineering, lukma@denx.de
 */

/dts-v1/;
#include "imx53-kp.dtsi"

/ {
	model = "K+P imx53 HSC";
	compatible = "kiebackpeter,imx53-hsc", "fsl,imx53";
};

&fec {
	status = "okay";

	fixed-link { /* RMII fixed link to LAN9303 */
		speed = <100>;
		full-duplex;
	};
};

&i2c3 {
	switch: switch@a {
		compatible = "smsc,lan9303-i2c";
		reg = <0xa>;
		reset-gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
		reset-duration = <400>;

		ports {
			#address-cells = <1>;
			#size-cells = <0>;

			port@0 { /* RMII fixed link to master */
				reg = <0>;
				label = "cpu";
				ethernet = <&fec>;
			};

			port@1 { /* external port 1 */
				reg = <1>;
				label = "lan1";
			};

			port@2 { /* external port 2 */
				reg = <2>;
				label = "lan2";
			};
		};
	};
};
OpenPOWER on IntegriCloud