summaryrefslogtreecommitdiffstats
path: root/fpga/ebaz4205/src/ebaz4205-board.dtsi
blob: 80733a01aa9218e75ace0a84b73de96cddd2da78 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
/ {
        chosen {
                bootargs = "console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rw";
                stdout-path = "serial0:115200n8";
        };

        aliases {
                ethernet0 = &gem0;
                serial0 = &uart1;
                mmc0 = &sdhci0;
        };

        memory@0 {
                device_type = "memory";
                reg = <0x0 0x10000000>;
        };

        leds {
                compatible = "gpio-leds";

		led-green {
                        label = "led-green";
			gpios = <&gpio0 55 1>;
			default-state = "off";
                        linux,default-trigger = "heartbeat";
		};
		led-red {
                        label = "led-red";
			gpios = <&gpio0 54 1>;
			default-state = "off";
		};
	};

        buttons {
                compatible = "gpio-keys-polled";
                poll-interval = <100>;

                s2-button {
                        gpios = <&gpio0 20 1>;
                        label = "s2-button";
                        default-state = "keep";
                        linux,code = <106>;
                        autorepeat;
                };
                s3-button {
                        gpios = <&gpio0 32 1>;
                        label = "s3-button";
                        default-state = "keep";
                        linux,code = <105>;
                        autorepeat;
                };
        };
};

&clkc {
       fclk-enable = <0xf>;
};

&uart1 {
       status = "okay";
};

&gem0 {
        status = "okay";
        phy-mode = "rgmii-id";
        phy-handle = <&ethernet_phy0>;

        ethernet_phy0: ethernet-phy@0 {
                reg = <0>;
        };
};

&sdhci0 {
        status = "okay";
};

&gpio0 {
        gpio-mask-low = <0x5600>;
};

&mc {
	status = "okay";
	nand0: flash@e1000000 {
                status = "okay";
                nand-ecc-mode = "none";
                nand-bus-width = <8>;
                partitions {
        		compatible = "fixed-partitions";
        		#address-cells = <1>;
        		#size-cells = <1>;
                
                        partition0: partition@0 {
        		         label = "partition0";
                                 reg = <0x0000000 0x1ffffff>;
                        };
                        partition1: partition@2000000 {
        		         label = "partition1";
                                 reg = <0x2000000 0x3ffffff>;
                        };
                        partition2: partition@4000000 {
        		         label = "partition2";
                                 reg = <0x4000000 0x5ffffff>;
                        };
                        partition3: partition@6000000 {
        		         label = "partition3";
                                 reg = <0x6000000 0x7ffffff>;
                        };
                };
        };
};