From 929b60ddc7f8862de4e2cb12ca453e691339e260 Mon Sep 17 00:00:00 2001 From: Nikhil Prakash V Date: Fri, 27 Jul 2018 15:05:22 +0530 Subject: [PATCH] ipq807x: NAPA Support for AC01 Change-Id: I217279d445d1aef486a1ed3f9b5cf52009d1bb18 Signed-off-by: Nikhil Prakash V --- arch/arm/dts/ipq807x-ac01.1.dts | 33 ++++++++++++++++++++++++++++++--- arch/arm/dts/ipq807x-ac01.2.dts | 32 ++++++++++++++++++++++++++++++-- 2 files changed, 60 insertions(+), 5 deletions(-) diff --git a/arch/arm/dts/ipq807x-ac01.1.dts b/arch/arm/dts/ipq807x-ac01.1.dts index 66ea3c0f7b..4fb2aa36c2 100644 --- a/arch/arm/dts/ipq807x-ac01.1.dts +++ b/arch/arm/dts/ipq807x-ac01.1.dts @@ -27,8 +27,35 @@ }; ess-switch { switch_mac_mode = <0x0>; - switch_mac_mode1 = <0xFF>; - switch_mac_mode2 = <0xFF>; + switch_mac_mode1 = <0x6>; + switch_mac_mode2 = <0x6>; + napa_gpio = <25 44>; + napa_gpio_cnt = <2>; + port_phyinfo { + port@0 { + phy_address = <0>; + phy_type = <1>; + }; + port@1 { + phy_address = <1>; + phy_type = <1>; + }; + port@2 { + phy_address = <2>; + phy_type = <1>; + }; + port@3 { + phy_address = <3>; + phy_type = <1>; + }; + port@4 { + phy_address = <24>; + phy_type = <2>; + }; + port@5 { + phy_address = <28>; + phy_type = <2>; + }; + }; }; }; - diff --git a/arch/arm/dts/ipq807x-ac01.2.dts b/arch/arm/dts/ipq807x-ac01.2.dts index 3a44ef01da..6c7d069bf4 100644 --- a/arch/arm/dts/ipq807x-ac01.2.dts +++ b/arch/arm/dts/ipq807x-ac01.2.dts @@ -27,8 +27,36 @@ }; ess-switch { switch_mac_mode = <0x0>; - switch_mac_mode1 = <0xFF>; - switch_mac_mode2 = <0xFF>; + switch_mac_mode1 = <0x6>; + switch_mac_mode2 = <0x6>; + napa_gpio = <25 44>; + napa_gpio_cnt = <2>; + port_phyinfo { + port@0 { + phy_address = <0>; + phy_type = <1>; + }; + port@1 { + phy_address = <1>; + phy_type = <1>; + }; + port@2 { + phy_address = <2>; + phy_type = <1>; + }; + port@3 { + phy_address = <3>; + phy_type = <1>; + }; + port@4 { + phy_address = <24>; + phy_type = <2>; + }; + port@5 { + phy_address = <28>; + phy_type = <2>; + }; + }; }; };