[PATCH v4 0/3] ramips: mt7621-dts: fix dtc warning, links and pinctrl

Arınç ÜNAL arinc.unal at arinc9.com
Sun Feb 13 23:00:37 PST 2022


Hey everyone,

With this patch series:
- Fix dtc warning on switch at 1f node
- Enable flow control on port at 6 node to match the other side, GMAC0.
- Add pinctrl properties on ethernet node on the mt7621.dtsi. Overwrite
pinctrl-0 property without rgmii2_pins on devicetrees which use the rgmii2
pins as GPIO (22 - 33). Give gpio function to rgmii2 pin group on
mt7621_tplink_archer-x6-v3.dtsi which uses GPIO 28.

Now that pinctrl properties are properly defined on the ethernet node,
GMAC1 will start working.

The third patch opens the path to mux PHY 0 or 4 (usually one of it is a
wan port) directly to the second GMAC of the SoC. In a future patch, this
can be done on the majority of the devicetrees to give the wan port its
dedicated 1 Gbps link. I might do that once this series is applied.

Traffic flow on GMAC1 was tested on an mt7621a board with these modes:
External phy <-> GMAC1
PHY 0/4 <-> GMAC1

The patch series was tested on a TP-Link RE650 v1 which rgmii2 pin group is
given gpio function along with some other devicetrees.

Cheers.
Arınç

v4: Fix pinctrl-0 property items to comply with Sander’s suggestion.

v3: Send with less recipients and add Sungbo Eo’s Tested-by tag on the
second patch.

v2: Overwrite pinctrl-0 property for devicetrees which give gpio function
to the rgmii2 pin group.

Arınç ÜNAL (3):
      ramips: mt7621-dts: fix switch at 1f warnings
      ramips: mt7621-dts: enable flow control on port at 6
      ramips: mt7621-dts: add pinctrl properties for ethernet

 target/linux/ramips/dts/mt7621.dtsi                           | 7 ++++---
 target/linux/ramips/dts/mt7621_alfa-network_quad-e4g.dts      | 4 ++++
 target/linux/ramips/dts/mt7621_buffalo_wsr-1166dhp.dts        | 4 ++++
 target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts         | 4 ++++
 target/linux/ramips/dts/mt7621_d-team_pbr-m1.dts              | 4 ++++
 target/linux/ramips/dts/mt7621_firefly_firewrt.dts            | 4 ++++
 target/linux/ramips/dts/mt7621_gnubee_gb-pc1.dts              | 4 ++++
 target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts              | 4 ++++
 target/linux/ramips/dts/mt7621_mediatek_ap-mt7621a-v60.dts    | 4 ++++
 target/linux/ramips/dts/mt7621_mediatek_mt7621-eval-board.dts | 4 ++++
 target/linux/ramips/dts/mt7621_mikrotik_routerboard-m11g.dts  | 4 ++++
 target/linux/ramips/dts/mt7621_mtc_wr1201.dts                 | 4 ++++
 target/linux/ramips/dts/mt7621_netgear_ex6150.dts             | 4 ++++
 target/linux/ramips/dts/mt7621_sercomm_na502.dts              | 4 ++++
 target/linux/ramips/dts/mt7621_telco-electronics_x1.dts       | 4 ++++
 target/linux/ramips/dts/mt7621_tplink_archer-x6-v3.dtsi       | 6 +++++-
 target/linux/ramips/dts/mt7621_tplink_re350-v1.dts            | 4 ++++
 target/linux/ramips/dts/mt7621_tplink_rexx0-v1.dtsi           | 4 ++++
 target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi         | 4 ++++
 target/linux/ramips/dts/mt7621_wavlink_wl-wn531a6.dts         | 4 ++++
 target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi           | 4 ++++
 target/linux/ramips/dts/mt7621_winstars_ws-wn583a6.dts        | 4 ++++
 target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts      | 4 ++++
 target/linux/ramips/dts/mt7621_zbtlink_zbt-wg1602.dtsi        | 4 ++++
 target/linux/ramips/dts/mt7621_zbtlink_zbt-wg2626.dts         | 4 ++++
 target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi        | 4 ++++
 target/linux/ramips/dts/mt7621_zyxel_nr7101.dts               | 4 ++++
 27 files changed, 109 insertions(+), 4 deletions(-)





More information about the openwrt-devel mailing list