From c067fb796a31492b024b50fef4fe6d0d70ae26e5 Mon Sep 17 00:00:00 2001 From: carbon Date: Tue, 18 Jun 2024 17:23:36 +0800 Subject: [PATCH] saving the duo256m LED pin Duo256M's LED pin is PWR_GPIO2, it is defined as the mute pin of dac in cv181x_asic_qfn.dtsi, so the mute pin of the dac is defined as an unused pin to release the LED pin. Signed-off-by: carbon --- .../dts_arm64/sg2002_milkv_duo256m_glibc_arm64_sd.dts | 4 ++++ .../dts_riscv/sg2002_milkv_duo256m_musl_riscv64_sd.dts | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/build/boards/cv181x/sg2002_milkv_duo256m_glibc_arm64_sd/dts_arm64/sg2002_milkv_duo256m_glibc_arm64_sd.dts b/build/boards/cv181x/sg2002_milkv_duo256m_glibc_arm64_sd/dts_arm64/sg2002_milkv_duo256m_glibc_arm64_sd.dts index 412c54ec9..123d533a7 100644 --- a/build/boards/cv181x/sg2002_milkv_duo256m_glibc_arm64_sd/dts_arm64/sg2002_milkv_duo256m_glibc_arm64_sd.dts +++ b/build/boards/cv181x/sg2002_milkv_duo256m_glibc_arm64_sd/dts_arm64/sg2002_milkv_duo256m_glibc_arm64_sd.dts @@ -12,3 +12,7 @@ }; }; +&dac { + mute-gpio-r = <&porte 1 GPIO_ACTIVE_LOW>; +}; + diff --git a/build/boards/cv181x/sg2002_milkv_duo256m_musl_riscv64_sd/dts_riscv/sg2002_milkv_duo256m_musl_riscv64_sd.dts b/build/boards/cv181x/sg2002_milkv_duo256m_musl_riscv64_sd/dts_riscv/sg2002_milkv_duo256m_musl_riscv64_sd.dts index 8ee56e9e9..69b1625d3 100644 --- a/build/boards/cv181x/sg2002_milkv_duo256m_musl_riscv64_sd/dts_riscv/sg2002_milkv_duo256m_musl_riscv64_sd.dts +++ b/build/boards/cv181x/sg2002_milkv_duo256m_musl_riscv64_sd/dts_riscv/sg2002_milkv_duo256m_musl_riscv64_sd.dts @@ -7,3 +7,8 @@ / { model = "Milk-V Duo256M"; }; + +&dac { + mute-gpio-r = <&porte 1 GPIO_ACTIVE_LOW>; +}; +