debian
October 16, 2020, 8:58am
1
I want to change mux mode of gpio for
I need multiple GPIOs. So we want to modify dts to modify the mux mode of the gpio pin.
But I don’t know what part to fix in kvim3_linux.dts.
Can you tell me which part I need to modify for gpio mux selectging?
numbqq
October 16, 2020, 9:05am
2
Which PINs you want to use?
debian
October 16, 2020, 11:04am
3
I need PIN29, PIN30, PIN31, PIN32,PIN32, PIN33 of VIM3
But it not GPIO,
I cant write 1 to these GPIO with /sys/class/gpio/gpioxxx .
so i want to change mux seleting fot these gpios.
Thanks
Regards
numbqq
October 17, 2020, 1:49am
4
debian:
I need PIN29, PIN30, PIN31, PIN32,PIN32, PIN33 of VIM3
These PINs are default configured as I2S, if you want to use them as normal GPIOs, you can edit the dts to disable I2S in auge_sound
node.
debian
October 17, 2020, 2:49pm
5
I deleted the auge_sound node with kvim3_linux.dtb and dtb.img and tried status =“disabled” in the auge_sound node.
I also modified kvim3_linux.dtb and also dtb.img. However, either way I can’t set it to gpio. its is not working as gpio.
Could you please tell me how to do it in more detail?
debian
October 18, 2020, 2:09am
6
I have another question.
at VIM3 , there are two dtb file , one is dtb.img , another is kvim3_linux.dtb
Which file should I use?
numbqq
October 19, 2020, 2:22am
7
Hello @Frank
Please help to check this issue.
Frank
October 20, 2020, 7:14am
8
@debian
index 5183c62b27df..f6401be41679 100644
--- a/arch/arm64/boot/dts/amlogic/kvim3_linux.dts
+++ b/arch/arm64/boot/dts/amlogic/kvim3_linux.dts
@@ -571,6 +571,7 @@
auge_sound {
compatible = "amlogic, g12a-sound-card";
aml-audio-card,name = "AML-AUGESOUND";
+ status = "disabled";
//aml-audio-card,aux-devs = <&amlogic_codec>;
/*for audio effect ,eqdrc */
@@ -978,6 +979,7 @@
* 4: spdifout_b;
*/
samesource_sel = <3>;
+ status = "disabled";
};
aml_tdmc: tdmc {
3 Likes
Sunny
February 18, 2021, 8:25am
10
Hello.
I tried to use this solution.
However, we are not finding the file named kvim3_linux.dtb.
I used vim3 board and ubuntu version 20.04.
Thank you.
Frank
February 19, 2021, 12:53am
11
@Sunny Did you use the khadas-vims-4.9.y
branch ?
Sunny
February 19, 2021, 12:58am
12
Not yet…
When I first downloaded Ubuntu, I couldn’t find it, so I’m trying something with the “fenix” on the github.
Frank
February 19, 2021, 1:11am
13
@Sunny
khadas@Khadas:/boot/dtb$ ls
kvim2_linux.dtb kvim3_linux.dtb kvim3l_linux.dtb kvim_linux.dtb overlays
1 Like
Sunny
February 19, 2021, 1:20am
14
Whoops.
There’s a typo…
I like kvim_linux.The dts file could not be found.
I’ve now posted a questionnaire about this.
Please help me.
Frank
February 19, 2021, 1:31am
15
@Sunny If you need to edit the dts file , you should clone fenix and compile first , it will download the linux repo in our github , then you can find the dts in linux dir
1 Like
Sunny
February 19, 2021, 5:32am
16
I tried to compile a fenix, but it failed.
I don’t know what the error is.
Please, I need your help.
khadas:master
← sunny0727:master
opened 02:18AM - 19 Feb 21 UTC
I installed this ubuntu version
“VIM3_Ubuntu-gnome-focal_Linux-4.9_arm64_EMMC_V0.9-20200530.img”
Frank
February 19, 2021, 6:42am
17
@Sunny
You can show the error info in there
Sunny
February 19, 2021, 7:04am
18
Thank you very much for your kindness.
1 Like