dts: ipq6018: Added ethernet support nodes

Change-Id: Ia82de30bd4f92baed1e8723a893954caba3c146c
Signed-off-by: speriaka <speriaka@codeaurora.org>
This commit is contained in:
speriaka 2019-03-12 15:03:07 +05:30
parent 47fdb7070f
commit be3c3916ba
5 changed files with 97 additions and 0 deletions

View file

@ -25,4 +25,39 @@
usb0 = "/xhci@8a00000";
usb1 = "/xhci@7000000";
};
ess-switch {
switch_mac_mode = <PORT_WRAPPER_PSGMII>;
switch_mac_mode1 = <UNUSED>;
switch_mac_mode2 = <PORT_WRAPPER_SGMII_PLUS>;
napa_gpio = <77>;
napa_gpio_cnt = <1>;
malibu_gpio = <75>;
malibu_gpio_cnt = <1>;
port_phyinfo {
port@0 {
phy_address = <0>;
phy_type = <MALIBU_PHY_TYPE>;
};
port@1 {
phy_address = <1>;
phy_type = <MALIBU_PHY_TYPE>;
};
port@2 {
phy_address = <2>;
phy_type = <MALIBU_PHY_TYPE>;
};
port@3 {
phy_address = <3>;
phy_type = <MALIBU_PHY_TYPE>;
};
port@4 {
phy_address = <4>;
phy_type = <MALIBU_PHY_TYPE>;
};
port@5 {
phy_address = <16>;
phy_type = <QCA8081_PHY_TYPE>;
};
};
};
};

View file

@ -25,4 +25,22 @@
pci0 = "/pci@20000000";
usb0 = "/xhci@8a00000";
};
ess-switch {
switch_mac_mode = <PORT_WRAPPER_SGMII_PLUS>;
switch_mac_mode1 = <UNUSED>;
switch_mac_mode2 = <PORT_WRAPPER_SGMII_PLUS>;
napa_gpio = <77>;
napa_gpio_cnt = <1>;
port_phyinfo {
port@0 {
phy_address = <16>;
phy_type = <QCA8081_PHY_TYPE>;
};
port@1 {
phy_address = <20>;
phy_type = <QCA8081_PHY_TYPE>;
};
};
};
};

View file

@ -23,5 +23,22 @@
console = "/serial@78B1000";
usb0 = "/xhci@8a00000";
};
ess-switch {
switch_mac_mode = <PORT_WRAPPER_PSGMII>;
switch_mac_mode1 = <UNUSED>;
switch_mac_mode2 = <UNUSED>;
malibu_gpio = <76>;
malibu_gpio_cnt = <1>;
port_phyinfo {
port@0 {
phy_address = <0>;
phy_type = <MALIBU_PHY_TYPE>;
};
port@1 {
phy_address = <1>;
phy_type = <MALIBU_PHY_TYPE>;
};
};
};
};

View file

@ -13,6 +13,7 @@
#include "skeleton.dtsi"
#include <dt-bindings/qcom/gpio-ipq6018.h>
#include <dt-bindings/qcom/eth-ipq6018.h>
/ {

View file

@ -0,0 +1,26 @@
/*
* Copyright (c) 2019, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef __DT_BINDINGS_IPQ6018_ETH_H__
#define __DT_BINDINGS_IPQ6018_ETH_H__
/* ESS Switch Mac Modes */
#define PORT_WRAPPER_PSGMII 0x0
#define PORT_WRAPPER_SGMII_PLUS 0x6
#define UNUSED 0xFF
/* ETH PHY Types */
#define MALIBU_PHY_TYPE 0x1
#define QCA8081_PHY_TYPE 0x2
#endif