OSDN Git Service

ARM: dts: aspeed: mtmitchell: Add MCTP
authorChanh Nguyen <chanh@os.amperecomputing.com>
Tue, 20 Jun 2023 09:25:37 +0000 (16:25 +0700)
committerJoel Stanley <joel@jms.id.au>
Thu, 10 Aug 2023 12:03:53 +0000 (21:33 +0930)
Enable MCTP driver on I2C3 bus for MCTP transaction

Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com>
Link: https://lore.kernel.org/r/20230620092537.20007-4-chanh@os.amperecomputing.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts

index c122fc4..0715cb9 100644 (file)
@@ -4,6 +4,7 @@
 /dts-v1/;
 
 #include "aspeed-g6.dtsi"
+#include <dt-bindings/i2c/i2c.h>
 #include <dt-bindings/gpio/aspeed-gpio.h>
 
 / {
 
 &i2c3 {
        status = "okay";
+       bus-frequency = <1000000>;
+       multi-master;
+       mctp-controller;
+
+       mctp@10 {
+               compatible = "mctp-i2c-controller";
+               reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>;
+       };
 };
 
 &i2c4 {