ramips: dts: rt5350: reset FE and ESW cores together
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3050_8devices_carambola.dts
1 #include "rt3050.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "8devices,carambola", "ralink,rt3050-soc";
8 model = "8devices Carambola";
9
10 chosen {
11 bootargs = "console=ttyS0,115200";
12 };
13
14 flash@1f000000 {
15 compatible = "cfi-flash";
16 reg = <0x1f000000 0x800000>;
17 bank-width = <2>;
18 device-width = <2>;
19
20 partitions {
21 compatible = "fixed-partitions";
22 #address-cells = <1>;
23 #size-cells = <1>;
24
25 partition@0 {
26 label = "u-boot";
27 reg = <0x0 0x30000>;
28 read-only;
29 };
30
31 partition@30000 {
32 label = "u-boot-env";
33 reg = <0x30000 0x10000>;
34 read-only;
35 };
36
37 factory: partition@40000 {
38 label = "factory";
39 reg = <0x40000 0x10000>;
40 read-only;
41
42 nvmem-layout {
43 compatible = "fixed-layout";
44 #address-cells = <1>;
45 #size-cells = <1>;
46
47 eeprom_factory_0: eeprom@0 {
48 reg = <0x0 0x200>;
49 };
50
51 macaddr_factory_28: macaddr@28 {
52 reg = <0x28 0x6>;
53 };
54 };
55 };
56
57 partition@50000 {
58 compatible = "denx,uimage";
59 label = "firmware";
60 reg = <0x50000 0x7b0000>;
61 };
62 };
63 };
64
65 i2c-gpio {
66 compatible = "i2c-gpio";
67 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH &gpio0 2 GPIO_ACTIVE_HIGH>;
68 i2c-gpio,delay-us = <10>;
69 };
70 };
71
72 &state_default {
73 gpio {
74 groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
75 function = "gpio";
76 };
77 };
78
79 &ethernet {
80 nvmem-cells = <&macaddr_factory_28>;
81 nvmem-cell-names = "mac-address";
82 };
83
84 &esw {
85 mediatek,portmap = <0x3f>;
86 };
87
88 &wmac {
89 nvmem-cells = <&eeprom_factory_0>;
90 nvmem-cell-names = "eeprom";
91 };
92
93 &otg {
94 status = "okay";
95 };