6dede02003a4ea658c99f1d7e06f59ccd61e369d
[openwrt/openwrt.git] / target / linux / mediatek / patches-6.1 / 900-dts-mt7622-bpi-r64-aliases-for-dtoverlay.patch
1 --- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
2 +++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
3 @@ -312,7 +312,7 @@
4 /* Attention: GPIO 90 is used to switch between PCIe@1,0 and
5 * SATA functions. i.e. output-high: PCIe, output-low: SATA
6 */
7 - asm_sel {
8 + asmsel: asm_sel {
9 gpio-hog;
10 gpios = <90 GPIO_ACTIVE_HIGH>;
11 output-high;
12 --- /dev/null
13 +++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64-sata.dtso
14 @@ -0,0 +1,31 @@
15 +/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */
16 +
17 +#include <dt-bindings/gpio/gpio.h>
18 +
19 +/dts-v1/;
20 +/plugin/;
21 +
22 +/ {
23 + compatible = "bananapi,bpi-r64", "mediatek,mt7622";
24 +
25 + fragment@0 {
26 + target = <&asmsel>;
27 + __overlay__ {
28 + gpios = <90 GPIO_ACTIVE_LOW>;
29 + };
30 + };
31 +
32 + fragment@1 {
33 + target = <&sata>;
34 + __overlay__ {
35 + status = "okay";
36 + };
37 + };
38 +
39 + fragment@2 {
40 + target = <&sata_phy>;
41 + __overlay__ {
42 + status = "okay";
43 + };
44 + };
45 +};
46 --- /dev/null
47 +++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64-pcie1.dtso
48 @@ -0,0 +1,17 @@
49 +/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */
50 +
51 +#include <dt-bindings/gpio/gpio.h>
52 +
53 +/dts-v1/;
54 +/plugin/;
55 +
56 +/ {
57 + compatible = "bananapi,bpi-r64", "mediatek,mt7622";
58 +
59 + fragment@0 {
60 + target = <&asmsel>;
61 + __overlay__ {
62 + gpios = <90 GPIO_ACTIVE_HIGH>;
63 + };
64 + };
65 +};