Skip to content

[Inventec][D6332] Add new platform Inventec D6332 #3769

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from

Conversation

david-xk
Copy link
Contributor

- What I did

  • Add D6332 device files
  • Add D6332 driver files
  • Add D6332 Platform API implementation
  • Modify Makefile, debian rules and add init scripts

- How I did it

  • Add D6332 device files to device/inventec/x86_64-inventec_d6332-r0/
  • Add D6332 driver files to platform/broadcom/sonic-platform-modules-inventec/d6332/modules/
  • Add D6332 Platform API implementation to platform/broadcom/sonic-platform-modules-inventec/d6332/sonic_platform
  • Modify Makefile, debian rules and add init scripts in platform/broadcom/sonic-platform-modules-inventec/

- How to verify it

  • check drivers: lsmod |grep -E "^inv_"
  • check platform eeprom: show platform syseeprom
  • check platform PSUs: show platform psustatus
  • check interface status: show interfaces status
  • check transceiver presence: show interfaces transceiver presence

- Description for the changelog

  • Nov 15, 2019 initial commit
    • Add D6332 device files
    • Add D6332 driver files
    • Add D6332 Platform API implementation
    • Modify Makefile, debian rules and add init scripts

- A picture of a cute animal (not mandatory but encouraged)

1. Add D6332 device files
device/inventec/x86_64-inventec_d6332-r0/INVENTEC-D6332/buffers.json.j2
device/inventec/x86_64-inventec_d6332-r0/INVENTEC-D6332/buffers_defaults_t0.j2
device/inventec/x86_64-inventec_d6332-r0/INVENTEC-D6332/buffers_defaults_t1.j2
device/inventec/x86_64-inventec_d6332-r0/INVENTEC-D6332/pg_profile_lookup.ini
device/inventec/x86_64-inventec_d6332-r0/INVENTEC-D6332/port_config.ini
device/inventec/x86_64-inventec_d6332-r0/INVENTEC-D6332/qos.json.j2
device/inventec/x86_64-inventec_d6332-r0/INVENTEC-D6332/sai.profile
device/inventec/x86_64-inventec_d6332-r0/INVENTEC-D6332/td3-d6332-32x100G.config.bcm
device/inventec/x86_64-inventec_d6332-r0/custom_led.bin
device/inventec/x86_64-inventec_d6332-r0/default_sku
device/inventec/x86_64-inventec_d6332-r0/installer.conf
device/inventec/x86_64-inventec_d6332-r0/led_proc_init.soc
device/inventec/x86_64-inventec_d6332-r0/linkscan_led_fw.bin
device/inventec/x86_64-inventec_d6332-r0/plugins/eeprom.py
device/inventec/x86_64-inventec_d6332-r0/sensors.conf

2. Add D6332 Driver
platform/broadcom/sonic-platform-modules-inventec/d6332/modules/Makefile
platform/broadcom/sonic-platform-modules-inventec/d6332/modules/gpio-ich.c
platform/broadcom/sonic-platform-modules-inventec/d6332/modules/i2c-mux-pca9541.c
platform/broadcom/sonic-platform-modules-inventec/d6332/modules/inv_cpld.c
platform/broadcom/sonic-platform-modules-inventec/d6332/modules/inv_eeprom.c
platform/broadcom/sonic-platform-modules-inventec/d6332/modules/inv_mux.c
platform/broadcom/sonic-platform-modules-inventec/d6332/modules/inv_mux.h
platform/broadcom/sonic-platform-modules-inventec/d6332/modules/inv_platform.c
platform/broadcom/sonic-platform-modules-inventec/d6332/modules/inv_swps.c
platform/broadcom/sonic-platform-modules-inventec/d6332/modules/inv_swps.h
platform/broadcom/sonic-platform-modules-inventec/d6332/modules/io_expander.c
platform/broadcom/sonic-platform-modules-inventec/d6332/modules/io_expander.h
platform/broadcom/sonic-platform-modules-inventec/d6332/modules/lpc_ich.c
platform/broadcom/sonic-platform-modules-inventec/d6332/modules/pmbus.h
platform/broadcom/sonic-platform-modules-inventec/d6332/modules/transceiver.c
platform/broadcom/sonic-platform-modules-inventec/d6332/modules/transceiver.h
platform/broadcom/sonic-platform-modules-inventec/d6332/modules/ucd9000.c

3. Add New Platform API implementation
platform/broadcom/sonic-platform-modules-inventec/d6332/setup.py
platform/broadcom/sonic-platform-modules-inventec/d6332/sonic_platform/__init__.py
platform/broadcom/sonic-platform-modules-inventec/d6332/sonic_platform/chassis.py
platform/broadcom/sonic-platform-modules-inventec/d6332/sonic_platform/eeprom.py
platform/broadcom/sonic-platform-modules-inventec/d6332/sonic_platform/fan.py
platform/broadcom/sonic-platform-modules-inventec/d6332/sonic_platform/platform.py
platform/broadcom/sonic-platform-modules-inventec/d6332/sonic_platform/psu.py
platform/broadcom/sonic-platform-modules-inventec/d6332/sonic_platform/qsfp.py
platform/broadcom/sonic-platform-modules-inventec/d6332/sonic_platform/thermal.py

4. Modify Makefile, debian rules and add init scripts
platform/broadcom/one-image.mk
platform/broadcom/platform-modules-inventec.mk
platform/broadcom/sonic-platform-modules-inventec/debian/control
platform/broadcom/sonic-platform-modules-inventec/debian/platform-modules-d6332.init
platform/broadcom/sonic-platform-modules-inventec/debian/platform-modules-d6332.install
platform/broadcom/sonic-platform-modules-inventec/debian/rules
platform/broadcom/sonic-platform-modules-inventec/systemd/platform-modules-d6332.service

Signed-off-by: David Xiao <[email protected]>
@david-xk
Copy link
Contributor Author

@jleveque Hi Joe, would you please review this PR at your convenience? Thanks a lot.

Copy link
Contributor

@jleveque jleveque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I would just like Guohan to look it over, as well.

@jleveque jleveque requested a review from lguohan January 18, 2020 01:42
@david-xk
Copy link
Contributor Author

@jleveque Hi Joe, thanks a lot for spending time to review this PR, much appreciated. Would you please review another PR #3839 at your convenience? Have a great weekend.

@david-xk
Copy link
Contributor Author

@lguohan Hi Guohan, Joe asked for second review for this PR, would you please take a look at your convenience. Thanks a lot. Best, David

@david-xk
Copy link
Contributor Author

@jleveque Hi Joe, it looks like Guohan hasn't get a chance to look into this PR in past several weeks. Would you please kindly touch base with him and see what should we process this PR. Many thanks. Best, David

@@ -30,6 +30,11 @@ Architecture: amd64
Depends: linux-image-4.9.0-9-2-amd64
Description: kernel modules for platform devices such as fan, led

Package: platform-modules-d6332
Architecture: amd64
Depends: linux-image-4.9.0-9-2-amd64
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4.19 kernel

@@ -30,6 +30,11 @@ Architecture: amd64
Depends: linux-image-4.9.0-9-2-amd64
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4.19 kernel

@@ -0,0 +1,247 @@
/*
* Hardware monitoring driver for UCD90xxx Sequencer and System Health
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not use original kernel driver?

@@ -0,0 +1,8409 @@
#include <linux/slab.h>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use optoe driver.

@@ -0,0 +1,425 @@
/*
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use linux original driver

@@ -0,0 +1,1131 @@
/*
* lpc_ich.c - LPC interface for Intel ICH
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use linux original driver.

@@ -0,0 +1,573 @@
/*
* I2C multiplexer driver for PCA9541 bus master selector
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use linux original driver

@@ -0,0 +1,513 @@
/*
* Intel ICH6-10, Series 5 and 6, Atom C2000 (Avoton/Rangeley) GPIO driver
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use linux original driver.

Copy link
Collaborator

@lguohan lguohan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use linux original driver

@david-xk david-xk closed this Jul 23, 2020
mssonicbld added a commit that referenced this pull request Mar 21, 2025
…atically (#22026)

#### Why I did it
src/sonic-utilities
```
* 6e93f44 - (HEAD -> master, origin/master, origin/HEAD) Add Arista-7060X6-64PE-C224O8, Arista-7060X6-64PE-C256S2 to generic_config_updater (#3804) (18 hours ago) [rick-arista]
* 208474c - Add scope to field validator.[redo PR: 3675] (#3805) (2 days ago) [Xincun Li]
* a363c7f - [SmartSwitch] Extend reboot script for rebooting SmartSwitch (#3566) (6 days ago) [Vasundhara Volam]
* 5e3b132 - [hash] update GH frontend with IPV6_FLOW_LABEL for ECMP/LAG switch hash configuration (#3730) (7 days ago) [Andriy Yurkiv]
* 706f97e - [Techsupport] Add show route-map command to frr dumps in techsupport (#3797) (7 days ago) [Sudharsan Dhamal Gopalarathnam]
* 1ec0540 - Fix the switch level Voq counter to use switch_id Oid instead of counter name for PACKET_INTEGRITY counter (#3769) (7 days ago) [saksarav-nokia]
```
#### How I did it
#### How to verify it
#### Description for the changelog
yanjundeng pushed a commit to yanjundeng/sonic-buildimage that referenced this pull request Apr 23, 2025
…atically (sonic-net#22026)

#### Why I did it
src/sonic-utilities
```
* 6e93f44 - (HEAD -> master, origin/master, origin/HEAD) Add Arista-7060X6-64PE-C224O8, Arista-7060X6-64PE-C256S2 to generic_config_updater (sonic-net#3804) (18 hours ago) [rick-arista]
* 208474c - Add scope to field validator.[redo PR: 3675] (sonic-net#3805) (2 days ago) [Xincun Li]
* a363c7f - [SmartSwitch] Extend reboot script for rebooting SmartSwitch (sonic-net#3566) (6 days ago) [Vasundhara Volam]
* 5e3b132 - [hash] update GH frontend with IPV6_FLOW_LABEL for ECMP/LAG switch hash configuration (sonic-net#3730) (7 days ago) [Andriy Yurkiv]
* 706f97e - [Techsupport] Add show route-map command to frr dumps in techsupport (sonic-net#3797) (7 days ago) [Sudharsan Dhamal Gopalarathnam]
* 1ec0540 - Fix the switch level Voq counter to use switch_id Oid instead of counter name for PACKET_INTEGRITY counter (sonic-net#3769) (7 days ago) [saksarav-nokia]
```
#### How I did it
#### How to verify it
#### Description for the changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants