Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Marek Behún | 5837168 | 2017-06-09 19:28:42 +0200 | [diff] [blame] | 2 | /* |
Marek Behún | d63726e | 2022-06-01 17:17:06 +0200 | [diff] [blame] | 3 | * Copyright (C) 2017 Marek Behún <kabel@kernel.org> |
Marek Behún | 5837168 | 2017-06-09 19:28:42 +0200 | [diff] [blame] | 4 | */ |
5 | |||||
6 | / { | ||||
7 | aliases { | ||||
8 | i2c0 = &i2c0; | ||||
9 | i2c1 = &i2cmux; | ||||
10 | spi0 = &spi0; | ||||
11 | }; | ||||
12 | }; | ||||
13 | |||||
14 | &i2c0 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 15 | bootph-all; |
Marek Behún | 5837168 | 2017-06-09 19:28:42 +0200 | [diff] [blame] | 16 | |
17 | i2cmux: i2cmux@70 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 18 | bootph-all; |
Marek Behún | 5837168 | 2017-06-09 19:28:42 +0200 | [diff] [blame] | 19 | |
20 | i2c@0 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 21 | bootph-all; |
Marek Behún | 5837168 | 2017-06-09 19:28:42 +0200 | [diff] [blame] | 22 | }; |
23 | |||||
24 | i2c@1 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 25 | bootph-all; |
Marek Behún | 5837168 | 2017-06-09 19:28:42 +0200 | [diff] [blame] | 26 | }; |
27 | |||||
28 | i2c@5 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 29 | bootph-all; |
Marek Behún | 5837168 | 2017-06-09 19:28:42 +0200 | [diff] [blame] | 30 | |
Pali Rohár | 9300f6c | 2022-04-08 16:30:15 +0200 | [diff] [blame] | 31 | crypto@64 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 32 | bootph-all; |
Marek Behún | 5837168 | 2017-06-09 19:28:42 +0200 | [diff] [blame] | 33 | }; |
34 | }; | ||||
35 | }; | ||||
36 | }; | ||||
37 | |||||
Marek Mojík | 8f3b5b3 | 2023-12-19 10:55:55 +0100 | [diff] [blame] | 38 | &mdio { |
39 | switch@10 { | ||||
40 | mdio { | ||||
41 | #address-cells = <1>; | ||||
42 | #size-cells = <0>; | ||||
43 | |||||
44 | sw_phy0: ethernet-phy@0 { | ||||
45 | reg = <0x0>; | ||||
46 | }; | ||||
47 | |||||
48 | sw_phy1: ethernet-phy@1 { | ||||
49 | reg = <0x1>; | ||||
50 | }; | ||||
51 | |||||
52 | sw_phy2: ethernet-phy@2 { | ||||
53 | reg = <0x2>; | ||||
54 | }; | ||||
55 | |||||
56 | sw_phy3: ethernet-phy@3 { | ||||
57 | reg = <0x3>; | ||||
58 | }; | ||||
59 | |||||
60 | sw_phy4: ethernet-phy@4 { | ||||
61 | reg = <0x4>; | ||||
62 | }; | ||||
63 | }; | ||||
64 | ports { | ||||
65 | ports@0 { | ||||
66 | phy-handle = <&sw_phy0>; | ||||
67 | phy-mode = "internal"; | ||||
68 | }; | ||||
69 | ports@1 { | ||||
70 | phy-handle = <&sw_phy1>; | ||||
71 | phy-mode = "internal"; | ||||
72 | }; | ||||
73 | ports@2 { | ||||
74 | phy-handle = <&sw_phy2>; | ||||
75 | phy-mode = "internal"; | ||||
76 | }; | ||||
77 | ports@3 { | ||||
78 | phy-handle = <&sw_phy3>; | ||||
79 | phy-mode = "internal"; | ||||
80 | }; | ||||
81 | ports@4 { | ||||
82 | phy-handle = <&sw_phy4>; | ||||
83 | phy-mode = "internal"; | ||||
84 | }; | ||||
85 | }; | ||||
86 | }; | ||||
87 | }; | ||||
88 | |||||
Rogier Stam | e0e10d4 | 2022-02-09 00:27:00 +0100 | [diff] [blame] | 89 | #ifdef CONFIG_ENV_IS_IN_SPI_FLASH |
Marek Behún | 5837168 | 2017-06-09 19:28:42 +0200 | [diff] [blame] | 90 | &spi0 { |
Pali Rohár | 6458dea | 2022-07-27 14:47:38 +0200 | [diff] [blame] | 91 | flash@0 { |
Marek Behún | 3e83efa | 2021-07-15 19:21:01 +0200 | [diff] [blame] | 92 | partitions { |
93 | partition@0 { | ||||
94 | reg = <0x0 CONFIG_ENV_OFFSET>; | ||||
95 | }; | ||||
96 | |||||
97 | partition@f0000 { | ||||
98 | reg = <CONFIG_ENV_OFFSET CONFIG_ENV_SIZE>; | ||||
99 | label = "u-boot-env"; | ||||
100 | }; | ||||
101 | }; | ||||
Marek Behún | 5837168 | 2017-06-09 19:28:42 +0200 | [diff] [blame] | 102 | }; |
103 | }; | ||||
Rogier Stam | e0e10d4 | 2022-02-09 00:27:00 +0100 | [diff] [blame] | 104 | #endif |
Marek Behún | 5837168 | 2017-06-09 19:28:42 +0200 | [diff] [blame] | 105 | |
Pali Rohár | 75c3658 | 2022-08-03 13:00:51 +0200 | [diff] [blame] | 106 | #include "mvebu-u-boot.dtsi" |