Asimov

Members
  • Content Count

    8
  • Joined

  • Last visited

About Asimov

  • Rank
    Newbie

Recent Profile Visitors

192 profile views
  1. Asimov

    Pine A64 MIPI DSI mainline

    Hi Learnincurve , I have a banana pi M2U and a SOM with R40 or A40i that I tried to run mipi_dsi over there but at this moment is not working ... I will try to download or clone the github from amarula and understand what change to run mipi_dsi on the Core R40 that have the same register that A31 and A64... If I run the mipi_dsi I post here how to do that... Best Regards Diego
  2. I can enable bananpi M2 ultra sound (headphone and mic on pcb) You must add this on the dtsi file. dma: dma-controller@01c02000 { compatible = "allwinner,sun8i-h3-dma"; reg = <0x01c02000 0x1000>; interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>; clocks = <&ccu CLK_BUS_DMA>; resets = <&ccu RST_BUS_DMA>; #dma-cells = <1>; }; codec: codec@01c22c00 { #sound-dai-cells = <0>; compatible = "allwinner,sun8i-h3-codec"; reg = <0x01c22c00 0x300>; interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>; clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_CODEC>; clock-names = "apb", "codec"; resets = <&ccu RST_BUS_CODEC>; dmas = <&dma 19>, <&dma 19>; dma-names = "rx", "tx"; allwinner,codec-analog-controls = <&codec_analog>; allwinner,audio-routing = "Headphone", "HP", "LINEIN", "Line In", "MIC1", "MBIAS", "MIC1", "Mic", "MIC2", "HBIAS", "MIC2", "Headset Mic"; status = "okay"; }; codec_analog: codec-analog@01c22f00 { compatible = "allwinner,sun8i-a23-codec-analog"; reg = <0x01c22f00 0x4>; }; Then modules that must be loaded are sun8i_codec_analog 24576 1 sun4i_codec 32768 3 snd_soc_core 118784 2 sun4i_codec,sun8i_codec_analog snd_pcm_dmaengine 16384 1 snd_soc_core snd_pcm 65536 2 snd_pcm_dmaengine,snd_soc_core snd_timer 24576 1 snd_pcm snd 45056 3 snd_timer,snd_soc_core,snd_pcm soundcore 16384 1 snd to test the player execute that to check the sound $ aplay /usr/share/sounds/alsa/Front_Center.wav then execute $ alsamixer to control the volumen and gain To enable mic do that. 1) open alsamixer; 2) press "tab" to switch to capture; 3) press "bar" on the first capture channel; "L_____R" red sign should appear; 4) select by arrow key MIC as the source of the first input source; 2) record a test file: arecord -f cd -D hw:0,0 -d 10 test.wav play it back to test i.e.: mplayer test.wav Thats all ... best regards Asimov
  3. Asimov

    bananapi M2 ULTRA

    Hi Constantius I can enable bananpi M2 ultra sound (headphone and mic on pcb) You must add this on the dtsi file. dma: dma-controller@01c02000 { compatible = "allwinner,sun8i-h3-dma"; reg = <0x01c02000 0x1000>; interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>; clocks = <&ccu CLK_BUS_DMA>; resets = <&ccu RST_BUS_DMA>; #dma-cells = <1>; }; codec: codec@01c22c00 { #sound-dai-cells = <0>; compatible = "allwinner,sun8i-h3-codec"; reg = <0x01c22c00 0x300>; interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>; clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_CODEC>; clock-names = "apb", "codec"; resets = <&ccu RST_BUS_CODEC>; dmas = <&dma 19>, <&dma 19>; dma-names = "rx", "tx"; allwinner,codec-analog-controls = <&codec_analog>; allwinner,audio-routing = "Headphone", "HP", "LINEIN", "Line In", "MIC1", "MBIAS", "MIC1", "Mic", "MIC2", "HBIAS", "MIC2", "Headset Mic"; status = "okay"; }; codec_analog: codec-analog@01c22f00 { compatible = "allwinner,sun8i-a23-codec-analog"; reg = <0x01c22f00 0x4>; }; Then modules that must be loaded are sun8i_codec_analog 24576 1 sun4i_codec 32768 3 snd_soc_core 118784 2 sun4i_codec,sun8i_codec_analog snd_pcm_dmaengine 16384 1 snd_soc_core snd_pcm 65536 2 snd_pcm_dmaengine,snd_soc_core snd_timer 24576 1 snd_pcm snd 45056 3 snd_timer,snd_soc_core,snd_pcm soundcore 16384 1 snd to test the player execute that to check the sound $ aplay /usr/share/sounds/alsa/Front_Center.wav then execute $ alsamixer to control the volumen and gain and to enable mic do that. 1) open alsamixer; 2) press "tab" to switch to capture; 3) press "bar" on the first capture channel; "L_____R" red sign should appear; 4) select by arrow key MIC as the source of the first input source; 2) record a test file: arecord -f cd -D hw:0,0 -d 10 test.wav play it back to test i.e.: mplayer test.wav Thats all ... best regards Asimov
  4. Hi, I get code from a link https://www.spinics.net/lists/arm-kernel/msg593451.html from maxime ripard that enable the MIPI.DSI on A33, i get kernel 4.18.5 and modify that i need to compile the driver and components but the bind is not working yet. Someone enable the mipi-dsi component on R40??? thanks Asimov
  5. I have a Custom SOM with A40i because we change from R40 to this core and the kernel that I use is 4.14 Stable or development on 4.18... and itś working ok... I don't change anything to run kernel on A40i because is the same (pin to pin compatible) with R40...
  6. Asimov

    Driver for ksz8863

    Hi Igor... I have the Core R40 and connect the ksz8863 to that... I use this chip in SMI mode but I dont know how to add the device in the dtsi and dsi file (devicetree) I have the kernel 4.13 and 4.14... The chip is supported by micrel on the kernel ... Do you have and example of setting for devicetree...?? thanks for all .. best regards. Diego
  7. I can compile the kernel 4.14 for H3 , modify the device tree and then put this to my bananapi M2 ultra with R40 Core and can enable the HDMI connector success. I get an image on the screen on my monitor. But now I can enable the LCD (RGB pinouts port H) to get image on my display 7" but I do not know how to do on the device tree file to enable a PANEL or something more . Someone have a device tree file that have enable the LCD (RGB ouput) to take an example to know how to do that because on the web almost all the people usually use the hdmi connector. Thanks at all ... PD: I get success on R40 to modify the SPI, smartcard, ethernet drivers and have an Ubuntu 16.4 running (desktop) on the Bananapi M2 Ultra. Then I will explain how to do that.
  8. I put the log of the console... I can compile a linux 4.11 and ubuntu 16.04.3 server with the packet from ARMBIAN... thats greats... but i had to correct some files to compile OK!!! Ubuntu 16.04.3 LTS bananapim2ultra ttyS0 bananapim2ultra login: root Password: Last login: Mon Nov 13 20:47:13 UTC 2017 on ttyS0 ____ ____ _ __ __ ____ _ _ _ _ | __ ) __ _ _ __ __ _ _ __ __ _ | _ \(_) | \/ |___ \ | | | | | |_ | _ \ / _` | '_ \ / _` | '_ \ / _` | | |_) | | | |\/| | __) | | | | | | __| | |_) | (_| | | | | (_| | | | | (_| | | __/| | | | | |/ __/ | |_| | | |_ |____/ \__,_|_| |_|\__,_|_| |_|\__,_| |_| |_| |_| |_|_____| \___/|_|\__| _ __ __ _ | '__/ _` | | | | (_| | |_| \__,_| Welcome to ARMBIAN 5.34 user-built Ubuntu 16.04.3 LTS 4.11.0-rc8-next-20170427-sunxi System load: 0.18 0.18 0.09 Up time: 3 min Memory usage: 1 % of 2017MB IP: Usage of /: 63% of 1.6G root@bananapim2ultra:~#