Chris Packham | 5cd63ec | 2018-05-30 20:14:35 +1200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /dts-v1/; |
| 3 | |
| 4 | #include "kirkwood.dtsi" |
| 5 | #include "kirkwood-6281.dtsi" |
| 6 | |
| 7 | / { |
| 8 | model = "Allied Telesis SBx81LIFKW Board"; |
| 9 | compatible = "atl,SBx81LIFKW", "marvell,kirkwood-88f6281", |
| 10 | "marvell,kirkwood"; |
| 11 | |
| 12 | memory { |
| 13 | device_type = "memory"; |
| 14 | reg = <0x00000000 0x08000000>; /* 128 MB */ |
| 15 | }; |
| 16 | |
| 17 | chosen { |
| 18 | bootargs = "console=ttyS0,115200n8 earlyprintk"; |
| 19 | stdout-path = &uart0; |
| 20 | }; |
| 21 | |
| 22 | aliases { |
| 23 | ethernet0 = ð0; |
| 24 | i2c0 = &i2c0; |
| 25 | spi0 = &spi0; |
| 26 | }; |
| 27 | |
| 28 | dsa { |
| 29 | compatible = "marvell,dsa"; |
| 30 | #address-cells = <2>; |
| 31 | #size-cells = <0>; |
| 32 | dsa,ethernet = <ð0>; |
| 33 | dsa,mii-bus = <&mdio>; |
| 34 | status = "okay"; |
| 35 | |
| 36 | switch@0 { |
| 37 | #address-cells = <1>; |
| 38 | #size-cells = <0>; |
| 39 | reg = <1 0>; |
| 40 | |
| 41 | port@0 { |
| 42 | reg = <0>; |
| 43 | label = "internal0"; |
| 44 | }; |
| 45 | port@1 { |
| 46 | reg = <1>; |
| 47 | label = "internal1"; |
| 48 | }; |
| 49 | port@8 { |
| 50 | reg = <8>; |
| 51 | label = "internal8"; |
| 52 | phy-mode = "rgmii-id"; |
| 53 | fixed-link { |
| 54 | speed = <1000>; |
| 55 | full-duplex; |
| 56 | }; |
| 57 | }; |
| 58 | port@9 { |
| 59 | reg = <9>; |
| 60 | label = "internal9"; |
| 61 | phy-mode = "rgmii-id"; |
| 62 | fixed-link { |
| 63 | speed = <1000>; |
| 64 | full-duplex; |
| 65 | }; |
| 66 | }; |
| 67 | port@10 { |
| 68 | reg = <10>; |
| 69 | label = "cpu"; |
| 70 | }; |
| 71 | }; |
| 72 | }; |
Chris Packham | e0e3c84 | 2022-08-04 21:06:23 +1200 | [diff] [blame^] | 73 | |
| 74 | gpio-leds { |
| 75 | compatible = "gpio-leds"; |
| 76 | |
| 77 | ledn { |
| 78 | label = "status:ledn"; |
| 79 | gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>; |
| 80 | }; |
| 81 | |
| 82 | ledp { |
| 83 | label = "status:ledp"; |
| 84 | gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; |
| 85 | }; |
| 86 | }; |
Chris Packham | 5cd63ec | 2018-05-30 20:14:35 +1200 | [diff] [blame] | 87 | }; |
| 88 | |
| 89 | &spi0 { |
| 90 | status = "okay"; |
| 91 | |
| 92 | flash@0 { |
| 93 | #address-cells = <1>; |
| 94 | #size-cells = <1>; |
Neil Armstrong | a009fa7 | 2019-02-10 10:16:20 +0000 | [diff] [blame] | 95 | compatible = "st,m25p128", "jedec,spi-nor"; |
Chris Packham | 5cd63ec | 2018-05-30 20:14:35 +1200 | [diff] [blame] | 96 | reg = <0>; |
| 97 | spi-max-frequency = <50000000>; |
| 98 | mode = <0>; |
| 99 | |
| 100 | partition@u-boot { |
| 101 | reg = <0x00000000 0x00c00000>; |
| 102 | label = "u-boot"; |
| 103 | }; |
| 104 | partition@u-boot-env { |
| 105 | reg = <0x00c00000 0x00040000>; |
| 106 | label = "u-boot-env"; |
| 107 | }; |
| 108 | partition@unused { |
| 109 | reg = <0x00100000 0x00f00000>; |
| 110 | label = "unused"; |
| 111 | }; |
| 112 | }; |
| 113 | }; |
| 114 | |
| 115 | &i2c0 { |
| 116 | status = "okay"; |
| 117 | |
| 118 | eeprom@52 { |
| 119 | compatible = "atmel,24c04"; |
| 120 | reg = <0x52>; |
| 121 | }; |
| 122 | }; |
| 123 | |
| 124 | &uart0 { |
| 125 | status = "okay"; |
| 126 | }; |
| 127 | |
| 128 | &mdio { |
| 129 | status = "okay"; |
| 130 | }; |
| 131 | |
| 132 | ð0 { |
| 133 | status = "okay"; |
| 134 | |
| 135 | ethernet0-port@0 { |
| 136 | speed = <1000>; |
| 137 | duplex = <1>; |
| 138 | }; |
| 139 | }; |
| 140 | |
| 141 | &pciec { |
| 142 | status = "okay"; |
| 143 | }; |
| 144 | |
| 145 | &pcie0 { |
| 146 | status = "okay"; |
| 147 | }; |