From 076f3c4a28b0a39c239ad8d5335f9a75b271a158 Mon Sep 17 00:00:00 2001 From: Nascs Fang Date: Mon, 20 May 2024 11:42:38 +0800 Subject: [PATCH] feat: add i2c7-m3 for rock 5a and rock 5c Signed-off-by: Nascs Fang --- arch/arm64/boot/dts/rockchip/overlays/Makefile | 1 + .../dts/rockchip/overlays/rock-5a-i2c7-m3.dts | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/overlays/rock-5a-i2c7-m3.dts diff --git a/arch/arm64/boot/dts/rockchip/overlays/Makefile b/arch/arm64/boot/dts/rockchip/overlays/Makefile index c29788fa..75bd222a 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/Makefile +++ b/arch/arm64/boot/dts/rockchip/overlays/Makefile @@ -417,6 +417,7 @@ dtb-$(CONFIG_CLK_RK3588) += \ rk3588-w1-gpio3-b3.dtbo \ rk3588-w1-gpio4-b1.dtbo \ rock-5a-allnet-5inch-display.dtbo \ + rock-5a-i2c7-m3.dtbo \ rock-5a-radxa-25w-poe.dtbo \ rock-5a-radxa-display-8hd.dtbo \ rock-5a-rpi-camera-v2.dtbo \ diff --git a/arch/arm64/boot/dts/rockchip/overlays/rock-5a-i2c7-m3.dts b/arch/arm64/boot/dts/rockchip/overlays/rock-5a-i2c7-m3.dts new file mode 100644 index 00000000..4e7fd53e --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/overlays/rock-5a-i2c7-m3.dts @@ -0,0 +1,18 @@ +#include "rk3588-i2c7-m3.dts" + +/ { + metadata { + title = "Enable I2C7-M3 and Disable onboard Audio Jack"; + compatible = "radxa,rock-5a", "radxa,rock-5c"; + description = "Enable I2C7-M3 and Disable onboard Audio Jack. +Onboard audio jack has to be disabled, as the codec is connected to I2C7 on different pins. +Once I2C signal is routed to 40-pin header, the codec is disconnected, thus unusable. +On Radxa ROCK 5A this is SDA pin 11 & SCL pin 13. +On Radxa ROCK 5C this is SDA pin 11 & SCL pin 13. +"; + }; +}; + +&es8316 { + status = "disabled"; +};