Skip to contentSkip to conversation

dt-bindings: vendor-prefixes: add asteralabs

PATCH In review Cosmo Chou 3 participants 6 messages Aug 23, 2024 – Aug 26, 2024

Subsystems (4)
lore
Share & tools
lore

Cosmo Chou

author
#0 lore raw

PATCH 1/1 dt-bindings: vendor-prefixes: add asteralabs

Add vendor prefix for Astera Labs, Inc.
https://www.asteralabs.com

---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
index 25158559471c..c734ea4de428 100644
@@ -161,6 +161,8 @@ patternProperties:
     description: ASPEED Technology Inc.
   "^asrock,.*":
     description: ASRock Inc.
+  "^asteralabs,.*":
+    description: Astera Labs, Inc.
   "^asus,.*":
     description: AsusTek Computer Inc.
   "^atheros,.*":
Signature · 1 line
2.34.1
author
#1 lore raw

PATCH 1/1 dt-bindings: trivial-devices: add Astera Labs PT5161L

Add dt-bindings for pt5161l temperature monitoring.

---
 Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/trivial-devices.yaml +2 -0
index 088b23ed2ae6..842eb65e4c03 100644
@@ -47,6 +47,8 @@ properties:
           - adi,lt7182s
             # AMS iAQ-Core VOC Sensor
           - ams,iaq-core
+            # Temperature monitoring of Astera Labs PT5161L PCIe retimer
+          - asteralabs,pt5161l
             # i2c serial eeprom (24cxx)
           - at,24c08
             # ATSHA204 - i2c h/w symmetric crypto module
Signature · 1 line
2.34.1
author
#2 lore raw

PATCH 1/1 hwmon: Add driver for Astera Labs PT5161L retimer

In reply to Cosmo Chou

This driver implements support for temperature monitoring of Astera Labs PT5161L series PCIe retimer chips.

This driver implementation originates from the CSDK available at

The communication protocol utilized is based on the I2C/SMBus standard.

---
 Documentation/hwmon/index.rst   |   1 +
 Documentation/hwmon/pt5161l.rst |  42 ++
 MAINTAINERS                     |   7 +
 drivers/hwmon/Kconfig           |  10 +
 drivers/hwmon/Makefile          |   1 +
 drivers/hwmon/pt5161l.c         | 667 ++++++++++++++++++++++++++++++++
 6 files changed, 728 insertions(+)
 create mode 100644 Documentation/hwmon/pt5161l.rst
 create mode 100644 drivers/hwmon/pt5161l.c
Documentation/hwmon/index.rst +1 -0
index c19f53d9b3ab..c4af2a894c42 100644
@@ -190,6 +190,7 @@ Hardware Monitoring Kernel Drivers
    pmbus
    powerz
    powr1220
+   pt5161l
    pxe1610
    pwm-fan
    q54sj108a2
Documentation/hwmon/pt5161l.rst new file +42 -0

42 lines not on this page · raw message

MAINTAINERS +7 -0
index 8fc0ca8e881c..afe08a63f7a9 100644
@@ -17698,6 +17698,13 @@ F:	fs/pstore/
 F:	include/linux/pstore*
 K:	\b(pstore|ramoops)
 
+PT5161L HARDWARE MONITOR DRIVER
+M:	Cosmo Chou <[email protected]>
+L:	[email protected]
+S:	Maintained
+F:	Documentation/hwmon/pt5161l.rst
+F:	drivers/hwmon/pt5161l.c
+
 PTP HARDWARE CLOCK SUPPORT
 M:	Richard Cochran <[email protected]>
 L:	[email protected]
drivers/hwmon/Kconfig +10 -0
index e4b24ad93961..56260821d658 100644
@@ -1755,6 +1755,16 @@ source "drivers/hwmon/peci/Kconfig"
 
 source "drivers/hwmon/pmbus/Kconfig"
 
+config SENSORS_PT5161L
+	tristate "Astera Labs PT5161L PCIe retimer hardware monitoring"
+	depends on I2C
+	help
+	  If you say yes here you get support for temperature monitoring
+	  on the Astera Labs PT5161L PCIe retimer.
+
+	  This driver can also be built as a module. If so, the module
+	  will be called pt5161l.
+
 config SENSORS_PWM_FAN
 	tristate "PWM fan"
 	depends on (PWM && OF) || COMPILE_TEST
drivers/hwmon/Makefile +1 -0
index e3faee7be51a..f45c31aff009 100644
@@ -184,6 +184,7 @@ obj-$(CONFIG_SENSORS_PC87427)	+= pc87427.o
 obj-$(CONFIG_SENSORS_PCF8591)	+= pcf8591.o
 obj-$(CONFIG_SENSORS_POWERZ)	+= powerz.o
 obj-$(CONFIG_SENSORS_POWR1220)  += powr1220.o
+obj-$(CONFIG_SENSORS_PT5161L)	+= pt5161l.o
 obj-$(CONFIG_SENSORS_PWM_FAN)	+= pwm-fan.o
 obj-$(CONFIG_SENSORS_RASPBERRYPI_HWMON)	+= raspberrypi-hwmon.o
 obj-$(CONFIG_SENSORS_SBTSI)	+= sbtsi_temp.o
drivers/hwmon/pt5161l.c new file +667 -0

667 lines not on this page · raw message

Signature · 1 line
2.34.1
maintainer
#3 lore raw

Re: [PATCH linux dev-6.6] hwmon: Add driver for Astera Labs PT5161L retimer

Quoted 10 lines · Cosmo Chou

This driver implements support for temperature monitoring of Astera Labs PT5161L series PCIe retimer chips.

This driver implementation originates from the CSDK available at

The communication protocol utilized is based on the I2C/SMBus standard.

Please do not send such e-mails to unrelated mailing lists.

Guenter

#4 lore raw

Re: [PATCH linux dev-6.6] hwmon: Add driver for Astera Labs PT5161L retimer

Quoted 8 lines · Guenter Roeck
Quoted 7 lines · Cosmo Chou

This driver implements support for temperature monitoring of Astera Labs PT5161L series PCIe retimer chips.

This driver implementation originates from the CSDK available at

The communication protocol utilized is based on the I2C/SMBus standard.

Quoted 5 lines
Quoted 3 lines

Please do not send such e-mails to unrelated mailing lists.

Right, however, I think Cosmo was just a victim of some git send- email defaults. I expect --suppress-cc=body would have helped.

Andrew

#5 lore raw
In reply to Cosmo Chou

Hi Cosmo,

I've applied this series to openbmc/linux dev-6.6. I'm not sure how you've generated it though as the subject seems to be missing the patch count. Please try to use the one invocation of git format-patch or git send-email for the whole series and don't manually thread it. The way the series has been generated confused b4[1] when I tried to apply it. I've ended up cherry-picking the corresponding commits from upstream.

[1]: https://b4.docs.kernel.org/en/latest/

Also, to avoid bothering upstream reviewers and maintainers with backports, please make sure to provide --suppress-cc=body in your git send-email invocation (if that's what you're using to send patches).

Andrew

Quoted 24 lines · Cosmo Chou

Add vendor prefix for Astera Labs, Inc.
https://www.asteralabs.com

---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
index 25158559471c..c734ea4de428 100644
@@ -161,6 +161,8 @@ patternProperties:
     description: ASPEED Technology Inc.
   "^asrock,.*":
     description: ASRock Inc.
+  "^asteralabs,.*":
+    description: Astera Labs, Inc.
   "^asus,.*":
     description: AsusTek Computer Inc.
   "^atheros,.*":