diff mbox

[OpenWrt-Devel] ramips:Fix mt7612 support for Xiaomi Mini.

Message ID 1423228901-4864-1-git-send-email-gch981213@gmail.com
State Superseded
Headers show

Commit Message

Chuanhong Guo Feb. 6, 2015, 1:21 p.m. UTC
Sorry,I forgot another simple problem of this device tree in the previus patch.
The "pcie0" part in pcie@10140000 should be defined as "pcie-bridge".
And 2ghz should be disabled on this router.
I think the problem should be fixed now.Roger,Please test this patch:D

Signed-off-by: 郭传鈜 <gch981213@gmail.com>
---
 target/linux/ramips/dts/XIAOMI-MIWIFI-MINI.dts | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Comments

Chuanhong Guo Feb. 6, 2015, 1:32 p.m. UTC | #1
The title should be [PATCH,v2] right...Shall I send it again?

2015-02-06 21:21 GMT+08:00 郭传鈜 <gch981213@gmail.com>:

> Sorry,I forgot another simple problem of this device tree in the previus
> patch.
> The "pcie0" part in pcie@10140000 should be defined as "pcie-bridge".
> And 2ghz should be disabled on this router.
> I think the problem should be fixed now.Roger,Please test this patch:D
>
> Signed-off-by: 郭传鈜 <gch981213@gmail.com>
> ---
>  target/linux/ramips/dts/XIAOMI-MIWIFI-MINI.dts | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/target/linux/ramips/dts/XIAOMI-MIWIFI-MINI.dts
> b/target/linux/ramips/dts/XIAOMI-MIWIFI-MINI.dts
> index fda3325..6f57f39 100644
> --- a/target/linux/ramips/dts/XIAOMI-MIWIFI-MINI.dts
> +++ b/target/linux/ramips/dts/XIAOMI-MIWIFI-MINI.dts
> @@ -97,11 +97,12 @@
>         pcie@10140000 {
>                 status = "okay";
>
> -               pcie0 {
> +               pcie-bridge {
>                         mt76@0,0 {
>                                 reg = <0x0000 0 0 0 0>;
>                                 device_type = "pci";
> -                               mediatek,mtd-eeprom = <&factory 0x8000>;
> +                               mediatek,mtd-eeprom = <&factory 32768>;
> +                               mediatek,2ghz = <0>;
>                         };
>                 };
>         };
> --
> 2.1.0
>
>
diff mbox

Patch

diff --git a/target/linux/ramips/dts/XIAOMI-MIWIFI-MINI.dts b/target/linux/ramips/dts/XIAOMI-MIWIFI-MINI.dts
index fda3325..6f57f39 100644
--- a/target/linux/ramips/dts/XIAOMI-MIWIFI-MINI.dts
+++ b/target/linux/ramips/dts/XIAOMI-MIWIFI-MINI.dts
@@ -97,11 +97,12 @@ 
 	pcie@10140000 {
 		status = "okay";
 
-		pcie0 {
+		pcie-bridge {
 			mt76@0,0 {
 				reg = <0x0000 0 0 0 0>;
 				device_type = "pci";
-				mediatek,mtd-eeprom = <&factory 0x8000>;
+				mediatek,mtd-eeprom = <&factory 32768>;
+				mediatek,2ghz = <0>;
 			};
 		};
 	};