dd4b94e2e1dd175db9bf6f7a9b751a42d6d5fcad
[openwrt/staging/rmilecki.git] / package / boot / uboot-mediatek / patches / 015-update-bananapi-bpi-r64-device-tree.patch
1 --- a/arch/arm/dts/mt7622-bananapi-bpi-r64.dts
2 +++ b/arch/arm/dts/mt7622-bananapi-bpi-r64.dts
3 @@ -20,6 +20,7 @@
4
5 aliases {
6 spi0 = &snfi;
7 + ethernet0 = ð
8 };
9
10 memory@40000000 {
11 @@ -27,6 +29,42 @@
12 reg = <0x40000000 0x40000000>;
13 };
14
15 + gpio-keys {
16 + compatible = "gpio-keys";
17 +
18 + reset {
19 + label = "reset";
20 + gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
21 + };
22 +
23 + wps {
24 + label = "wps";
25 + gpios = <&gpio 102 GPIO_ACTIVE_LOW>;
26 + };
27 + };
28 +
29 + leds {
30 + compatible = "gpio-leds";
31 +/*
32 + * red {
33 + * label = "bpi-r64:pio:red";
34 + * gpios = <&gpio 88 GPIO_ACTIVE_HIGH>;
35 + * default-state = "off";
36 + * };
37 + */
38 + green {
39 + label = "bpi-r64:pio:green";
40 + gpios = <&gpio 89 GPIO_ACTIVE_HIGH>;
41 + default-state = "off";
42 + };
43 +
44 + blue {
45 + label = "bpi-r64:pio:blue";
46 + gpios = <&gpio 85 GPIO_ACTIVE_LOW>;
47 + default-state = "off";
48 + };
49 + };
50 +
51 reg_1p8v: regulator-1p8v {
52 compatible = "regulator-fixed";
53 regulator-name = "fixed-1.8V";
54 @@ -139,11 +177,12 @@
55
56 };
57
58 - mmc1_pins_default: mmc1default {
59 + sd0_pins_default: sd0-pins-default {
60 mux {
61 function = "sd";
62 - groups = "sd_0";
63 + groups = "sd_0";
64 };
65 +
66 /* "I2S2_OUT, "I2S4_IN"", "I2S3_IN", "I2S2_IN",
67 * "I2S4_OUT", "I2S3_OUT" are used as DAT0, DAT1,
68 * DAT2, DAT3, CMD, CLK for SD respectively.
69 @@ -164,7 +203,6 @@
70 pins = "TXD3";
71 bias-pull-up;
72 };
73 -
74 };
75 };
76
77 @@ -199,7 +237,7 @@
78 status = "okay";
79 bus-width = <8>;
80 max-frequency = <50000000>;
81 - cap-sd-highspeed;
82 + cap-mmc-highspeed;
83 vmmc-supply = <&reg_3p3v>;
84 vqmmc-supply = <&reg_3p3v>;
85 non-removable;
86 @@ -207,14 +245,15 @@
87
88 &mmc1 {
89 pinctrl-names = "default";
90 - pinctrl-0 = <&mmc1_pins_default>;
91 + pinctrl-0 = <&sd0_pins_default>;
92 status = "okay";
93 bus-width = <4>;
94 - max-frequency = <50000000>;
95 + max-frequency = <20000000>;
96 cap-sd-highspeed;
97 r_smpl = <1>;
98 vmmc-supply = <&reg_3p3v>;
99 vqmmc-supply = <&reg_3p3v>;
100 + cd-gpios = <&gpio 81 GPIO_ACTIVE_LOW>;
101 };
102
103 &watchdog {