[PATCH v3 0/2] realtek: add support for Panasonic Switch-M8eG PN28080K

INAGAKI Hiroshi musashino.open at gmail.com
Wed Mar 9 04:52:12 PST 2022


This is a continuation of the PR in GitHub[1] and v1 patch series.

This patch series adds support for Panasonic Switch-M8eG PN28080K.

Panasonic Switch-M*eG PN28xx0K series has the following models:

- Switch-M8eG PN28080K (RTL8380M, 8 + 1 SFP)
  -  1-9 : RTL8380M (SoC)
- Switch-M16eG PN28160K (RTL8382M?, 14 + 2 combo)
  - ?
- Switch-M24eG PN28240K (RTL8382M, 22 + 2 combo)
  -  1-8 : RTL8218B
  -  9-16: RTL8382M (SoC)
  - 17-24: RTL8218FB
- Switch-M48eG PN28480K (RTL8393M, 44 + 4 combo)
  -  1-40: RTL8218B
  - 41-48: RTL8218FB

(Note: I don't have a Switch-M16eG PN28160K and the hardware specification
 is unknown)

These models have the many common parts, so 2nd commit creates a dtsi for
This series.

Note:

- "Switch-M*eG" is a model name and "PN28xx0K" is a model number.
  Each model has two model number, "PN28xx0" and "PN28xx0K". But the
  first one (PN28xx0) is a Broadcom SoC based hardware.

- This series uses the VxWorks-based kernel in stock firmware.

[1]: https://github.com/openwrt/openwrt/pull/4209

v1 -> v2:

- drop 5.4 changes
- add interrupt-related properties to the nodes of PCA9539 and PCA9555
  - use "gpio-keys" instead of "gpio-keys-polled"
- update/remove comments in mtd partitions
- use "led-*" scheme and add color/function properties for each node of
  LEDs
- drop unnecessary default values from gpio-restart node

v2 -> v3:

- move interrupt related properties in PCA9539 to device dts
- move child i2c bus definitions in PCA9545 to device dts
- use actual SoC name "rtl8380" in second compatible of root

INAGAKI Hiroshi (2):
  realtek: enable pca953x driver for target
  realtek: add support for Panasonic Switch-M8eG PN28080K

 .../rtl8380_panasonic_m8eg-pn28080k.dts       | 133 ++++++++++++
 .../rtl83xx_panasonic_mxxeg-pn28xx0k.dtsi     | 198 ++++++++++++++++++
 target/linux/realtek/image/rtl838x.mk         |  10 +
 target/linux/realtek/rtl838x/config-5.10      |   3 +
 4 files changed, 344 insertions(+)
 create mode 100644 target/linux/realtek/dts-5.10/rtl8380_panasonic_m8eg-pn28080k.dts
 create mode 100644 target/linux/realtek/dts-5.10/rtl83xx_panasonic_mxxeg-pn28xx0k.dtsi

-- 
2.34.1.windows.1




More information about the openwrt-devel mailing list