8010107a65556c0b8859d5f523d2a9345ceb27ed
[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 @@ -27,6 +27,42 @@
4 reg = <0x40000000 0x40000000>;
5 };
6
7 + gpio-keys {
8 + compatible = "gpio-keys";
9 +
10 + reset {
11 + label = "reset";
12 + gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
13 + };
14 +
15 + wps {
16 + label = "wps";
17 + gpios = <&gpio 102 GPIO_ACTIVE_LOW>;
18 + };
19 + };
20 +
21 + leds {
22 + compatible = "gpio-leds";
23 +/*
24 + * red {
25 + * label = "bpi-r64:pio:red";
26 + * gpios = <&gpio 88 GPIO_ACTIVE_HIGH>;
27 + * default-state = "off";
28 + * };
29 + */
30 + green {
31 + label = "bpi-r64:pio:green";
32 + gpios = <&gpio 89 GPIO_ACTIVE_HIGH>;
33 + default-state = "off";
34 + };
35 +
36 + blue {
37 + label = "bpi-r64:pio:blue";
38 + gpios = <&gpio 85 GPIO_ACTIVE_LOW>;
39 + default-state = "off";
40 + };
41 + };
42 +
43 reg_1p8v: regulator-1p8v {
44 compatible = "regulator-fixed";
45 regulator-name = "fixed-1.8V";
46 @@ -139,11 +163,12 @@
47
48 };
49
50 - mmc1_pins_default: mmc1default {
51 + sd0_pins_default: sd0-pins-default {
52 mux {
53 function = "sd";
54 - groups = "sd_0";
55 + groups = "sd_0";
56 };
57 +
58 /* "I2S2_OUT, "I2S4_IN"", "I2S3_IN", "I2S2_IN",
59 * "I2S4_OUT", "I2S3_OUT" are used as DAT0, DAT1,
60 * DAT2, DAT3, CMD, CLK for SD respectively.
61 @@ -164,7 +189,6 @@
62 pins = "TXD3";
63 bias-pull-up;
64 };
65 -
66 };
67 };
68
69 @@ -199,7 +223,7 @@
70 status = "okay";
71 bus-width = <8>;
72 max-frequency = <50000000>;
73 - cap-sd-highspeed;
74 + cap-mmc-highspeed;
75 vmmc-supply = <&reg_3p3v>;
76 vqmmc-supply = <&reg_3p3v>;
77 non-removable;
78 @@ -207,14 +231,15 @@
79
80 &mmc1 {
81 pinctrl-names = "default";
82 - pinctrl-0 = <&mmc1_pins_default>;
83 + pinctrl-0 = <&sd0_pins_default>;
84 status = "okay";
85 bus-width = <4>;
86 - max-frequency = <50000000>;
87 + max-frequency = <20000000>;
88 cap-sd-highspeed;
89 r_smpl = <1>;
90 vmmc-supply = <&reg_3p3v>;
91 vqmmc-supply = <&reg_3p3v>;
92 + cd-gpios = <&gpio 81 GPIO_ACTIVE_LOW>;
93 };
94
95 &watchdog {