Jump to content

[Uart] Unable to connect to ZWave module?


Go to solution Solved by Joda,

Recommended Posts

Posted

Hello,
I have an A64 2GB ( kickstarter ) with the zwave module in Uart on which I installed the latest version of armbian ( Armbian 24.11.1 Bookworm Minimal ) kernel 6.6.62-current-sunxi64
I have activated the Uart2 via armbian-config but I still can not connect via stty or MinOZW

sudo MinOZW /dev/ttyS2

ERROR: Failed to set serial port parameters
ERROR: Failed to open serial port /dev/ttyS2

 

sudo stty -F /dev/ttyS2 115200

Input/output error



can you help me ?

Posted

Hi

 

Providing logs with

 

PASTE_SERVER_HOST=paste.armbian.de armbianmonitor -u

 

 helps with troubleshooting and significantly raises chances that issue gets addressed.

 

 

Posted

this is my armbianEnv
 

verbosity=1

bootlogo=false

console=both

disp_mode=1920x1080p60

overlay_prefix=sun50i-a64

rootdev=UUID=0d77ff8b-5921-4750-b8d9-0f342603cf32

rootfstype=ext4

extraargs=systemd.unified_cgroup_hierarchy=0 apparmor=1 security=apparmor

overlays=uart1 uart2 uart3 uart4

usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u

 

Posted

since the full boot log is missing in armbianmonitor output can you check or provide (like from kern.log) if the uart devices are actually loaded or mentioned during boot?

 

overlay prefix and names looking good.

Posted

No. And I don't know further. Maybe anyone else got an idea.

 

if you have a usb uart adapter you can grab u-boot log output while booting from serial console. It will tell whether the overlays are correctly loaded.

Posted

Hi,

 

2025-02-25T01:22:22.972716+01:00 domotique kernel: [    1.484132] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 156, base_baud = 1500000) is a 16550A
2025-02-25T01:22:22.972742+01:00 domotique kernel: [    1.486026] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 157, base_baud = 1500000) is a 16550A

 

To me it looks like you have only 2 serial ports. I suppose uart2=ttyS1.

I suggest to try with /dev/ttyS1.

 

Posted

hello, I check last weekend the ttyS1 but I don't see it 
 

root@domotique:~# ls -al /dev/ttyS*
crw-rw---- 1 root dialout 4, 64 Mar  1 14:39 /dev/ttyS0
crw-rw---- 1 root dialout 4, 66 Mar  1 14:38 /dev/ttyS2
crw-rw---- 1 root dialout 4, 67 Mar  1 14:38 /dev/ttyS3
crw-rw---- 1 root dialout 4, 68 Mar  1 14:38 /dev/ttyS4
crw-rw---- 1 root dialout 4, 69 Mar  1 14:38 /dev/ttyS5

I check on the documentation and what I understand is ttys1 is reserve for bluetooth 

 

Posted

Hi, can you point the link to the documentation you refer to?

Yes, you might have to disable the bluetooth in order to have the serial port.

Also, can you list the files in /boot/dtb/overlay/ ?

Posted

Hello,

for the ttyS1 ==> 

I don't have overlay folder on /boot/dtb
I have only allwinner:
 

root@domotique:~# ls -al /boot/dtb/allwinner/
total 2888
drwxr-xr-x 3 root root  4096 Mar  1 14:37 .
drwxr-xr-x 3 root root  4096 Mar  1 14:37 ..
drwxr-xr-x 2 root root 12288 Mar  1 14:37 overlay
-rw-r--r-- 1 root root 14088 Feb 26 21:14 sun50i-a100-allwinner-perf1.dtb
-rw-r--r-- 1 root root 41557 Feb 26 21:14 sun50i-a64-amarula-relic.dtb
-rw-r--r-- 1 root root 41882 Feb 26 21:14 sun50i-a64-bananapi-m64.dtb
-rw-r--r-- 1 root root 40750 Feb 26 21:14 sun50i-a64-nanopi-a64.dtb
-rw-r--r-- 1 root root 40197 Feb 26 21:14 sun50i-a64-oceanic-5205-5inmfd.dtb
-rw-r--r-- 1 root root 40744 Feb 26 21:14 sun50i-a64-olinuxino-1G.dtb
-rw-r--r-- 1 root root 42171 Feb 26 21:14 sun50i-a64-olinuxino-1Ge16GW.dtb
-rw-r--r-- 1 root root 42137 Feb 26 21:14 sun50i-a64-olinuxino-1Ge4GW.dtb
-rw-r--r-- 1 root root 40954 Feb 26 21:14 sun50i-a64-olinuxino-1Gs16M.dtb
-rw-r--r-- 1 root root 40900 Feb 26 21:14 sun50i-a64-olinuxino-2Ge8G.dtb
-rw-r--r-- 1 root root 42041 Feb 26 21:14 sun50i-a64-olinuxino.dtb
-rw-r--r-- 1 root root 42455 Feb 26 21:14 sun50i-a64-olinuxino-emmc.dtb
-rw-r--r-- 1 root root 42575 Feb 26 21:14 sun50i-a64-orangepi-win.dtb
-rw-r--r-- 1 root root 41503 Feb 26 21:14 sun50i-a64-pine64.dtb
-rw-r--r-- 1 root root 41553 Feb 26 21:14 sun50i-a64-pine64-lts.dtb
-rw-r--r-- 1 root root 41629 Feb 26 21:14 sun50i-a64-pine64-plus.dtb
-rw-r--r-- 1 root root 43455 Feb 26 21:14 sun50i-a64-pinebook.dtb
-rw-r--r-- 1 root root 54389 Feb 26 21:14 sun50i-a64-pinephone-1.0.dtb
-rw-r--r-- 1 root root 54416 Feb 26 21:14 sun50i-a64-pinephone-1.1.dtb
-rw-r--r-- 1 root root 54715 Feb 26 21:14 sun50i-a64-pinephone-1.2b.dtb
-rw-r--r-- 1 root root 54427 Feb 26 21:14 sun50i-a64-pinephone-1.2.dtb
-rw-r--r-- 1 root root 44752 Feb 26 21:14 sun50i-a64-pinetab.dtb
-rw-r--r-- 1 root root 44784 Feb 26 21:14 sun50i-a64-pinetab-early-adopter.dtb
-rw-r--r-- 1 root root 41433 Feb 26 21:14 sun50i-a64-sopine-baseboard.dtb
-rw-r--r-- 1 root root 42618 Feb 26 21:14 sun50i-a64-teres-i.dtb
-rw-r--r-- 1 root root 37413 Feb 26 21:14 sun50i-h313-tanix-tx1.dtb
-rw-r--r-- 1 root root 40110 Feb 26 21:14 sun50i-h313-x96q-lpddr3.dtb
-rw-r--r-- 1 root root 33770 Feb 26 21:14 sun50i-h5-bananapi-m2-plus.dtb
-rw-r--r-- 1 root root 34211 Feb 26 21:14 sun50i-h5-bananapi-m2-plus-v1.2.dtb
-rw-r--r-- 1 root root 32413 Feb 26 21:14 sun50i-h5-emlid-neutis-n5-devboard.dtb
-rw-r--r-- 1 root root 32650 Feb 26 21:14 sun50i-h5-libretech-all-h3-cc.dtb
-rw-r--r-- 1 root root 31308 Feb 26 21:14 sun50i-h5-libretech-all-h3-it.dtb
-rw-r--r-- 1 root root 33245 Feb 26 21:14 sun50i-h5-libretech-all-h5-cc.dtb
-rw-r--r-- 1 root root 34882 Feb 26 21:14 sun50i-h5-nanopi-k1-plus.dtb
-rw-r--r-- 1 root root 32150 Feb 26 21:14 sun50i-h5-nanopi-m1-plus2.dtb
-rw-r--r-- 1 root root 31847 Feb 26 21:14 sun50i-h5-nanopi-neo2.dtb
-rw-r--r-- 1 root root 31839 Feb 26 21:14 sun50i-h5-nanopi-neo2-v1.1.dtb
-rw-r--r-- 1 root root 32090 Feb 26 21:14 sun50i-h5-nanopi-neo-core2.dtb
-rw-r--r-- 1 root root 32669 Feb 26 21:14 sun50i-h5-nanopi-neo-plus2.dtb
-rw-r--r-- 1 root root 32987 Feb 26 21:14 sun50i-h5-nanopi-r1s-h5.dtb
-rw-r--r-- 1 root root 32687 Feb 26 21:14 sun50i-h5-orangepi-pc2.dtb
-rw-r--r-- 1 root root 32710 Feb 26 21:14 sun50i-h5-orangepi-prime.dtb
-rw-r--r-- 1 root root 30401 Feb 26 21:14 sun50i-h5-orangepi-zero-plus2.dtb
-rw-r--r-- 1 root root 31940 Feb 26 21:14 sun50i-h5-orangepi-zero-plus.dtb
-rw-r--r-- 1 root root 42648 Feb 26 21:14 sun50i-h616-bigtreetech-cb1-emmc.dtb
-rw-r--r-- 1 root root 42395 Feb 26 21:14 sun50i-h616-bigtreetech-cb1-manta.dtb
-rw-r--r-- 1 root root 42587 Feb 26 21:14 sun50i-h616-bigtreetech-cb1-sd.dtb
-rw-r--r-- 1 root root 42371 Feb 26 21:14 sun50i-h616-bigtreetech-pi.dtb
-rw-r--r-- 1 root root 41523 Feb 26 21:14 sun50i-h616-orangepi-zero2.dtb
-rw-r--r-- 1 root root 40136 Feb 26 21:14 sun50i-h616-x96-mate.dtb
-rw-r--r-- 1 root root 43383 Feb 26 21:14 sun50i-h618-bananapi-m4-berry.dtb
-rw-r--r-- 1 root root 41208 Feb 26 21:14 sun50i-h618-bananapi-m4-zero.dtb
-rw-r--r-- 1 root root 39526 Feb 26 21:14 sun50i-h618-longanpi-3h.dtb
-rw-r--r-- 1 root root 43298 Feb 26 21:14 sun50i-h618-orangepi-zero2w.dtb
-rw-r--r-- 1 root root 40929 Feb 26 21:14 sun50i-h618-orangepi-zero3.dtb
-rw-r--r-- 1 root root 39205 Feb 26 21:14 sun50i-h618-transpeed-8k618-t.dtb
-rw-r--r-- 1 root root 41675 Feb 26 21:14 sun50i-h64-remix-mini-pc.dtb
-rw-r--r-- 1 root root 39303 Feb 26 21:14 sun50i-h6-beelink-gs1.dtb
-rw-r--r-- 1 root root 36421 Feb 26 21:14 sun50i-h6-inovato-quadra.dtb
-rw-r--r-- 1 root root 38912 Feb 26 21:14 sun50i-h6-orangepi-3.dtb
-rw-r--r-- 1 root root 39056 Feb 26 21:14 sun50i-h6-orangepi-3-lts.dtb
-rw-r--r-- 1 root root 38643 Feb 26 21:14 sun50i-h6-orangepi-lite2.dtb
-rw-r--r-- 1 root root 38172 Feb 26 21:14 sun50i-h6-orangepi-one-plus.dtb
-rw-r--r-- 1 root root 39055 Feb 26 21:14 sun50i-h6-pine-h64.dtb
-rw-r--r-- 1 root root 39082 Feb 26 21:14 sun50i-h6-pine-h64-model-b.dtb
-rw-r--r-- 1 root root 36193 Feb 26 21:14 sun50i-h6-tanix-tx6.dtb
-rw-r--r-- 1 root root 35970 Feb 26 21:14 sun50i-h6-tanix-tx6-mini.dtb
-rw-r--r-- 1 root root 42815 Feb 26 21:14 sun50i-h700-anbernic-rg35xx-2024.dtb
-rw-r--r-- 1 root root 45114 Feb 26 21:14 sun50i-h700-anbernic-rg35xx-h.dtb
-rw-r--r-- 1 root root 43609 Feb 26 21:14 sun50i-h700-anbernic-rg35xx-plus.dtb
-rw-r--r-- 1 root root 43965 Feb 26 21:14 sun50i-h700-anbernic-rg35xx-sp.dtb

 

Posted

I don't think there exists  an overlay to disable the bluetooth for your board.

 

Are you able to follow the steps in the forum post you sent and do it yourself?

 

You might need to:

- Install the device-tree-compiler if not present

apt install device-tree-compiler

- Go in your boot dtb directory

cd /boot/dtb/allwinner/

- I will assume your booted dtb is sun50i-a64-pine64-plus.dtb. If not, you might try the same with sun50i-a64-pine64.dtb and sun50i-a64-pine64-lts.dtb. Backup the file:

cp sun50i-a64-pine64-plus.dtb sun50i-a64-pine64-plus.dtb.backup

- Generate the dts (ignore warnings)

dtc -I dtb -O dts -o sun50i-a64-pine64-plus.dts sun50i-a64-pine64-plus.dtb

- Edit the obtained dts file and remove the bluetooth section :

bluetooth {
        compatible = "realtek,rtl8723bs-bt";
        reset-gpios = <0x36 0x00 0x04 0x01>;
        device-wake-gpios = <0x36 0x00 0x05 0x00>;
        host-wake-gpios = <0x36 0x00 0x06 0x00>;
        firmware-postfix = "pine64";
};

- Generate the dtb out of dts (ignore warnings):

dtc -I dts -O dtb -o sun50i-a64-pine64-plus.dtb sun50i-a64-pine64-plus.dts

-Reboot and check if /dev/ttyS1 is present

Posted
root@domotique:/boot/dtb/allwinner/overlay# ls -al 
total 392
drwxr-xr-x 2 root root 12288 Mar  1 14:37 .
drwxr-xr-x 3 root root  4096 Mar  3 17:16 ..
-rw-r--r-- 1 root root  3998 Feb 26 21:14 README.sun50i-a64-overlays
-rw-r--r-- 1 root root  4737 Feb 26 21:14 README.sun50i-h5-overlays
-rw-r--r-- 1 root root  3821 Feb 26 21:14 sun50i-a64-fixup.scr
-rw-r--r-- 1 root root   794 Feb 26 21:14 sun50i-a64-i2c0.dtbo
-rw-r--r-- 1 root root   496 Feb 26 21:14 sun50i-a64-i2c1.dtbo
-rw-r--r-- 1 root root  2364 Feb 26 21:14 sun50i-a64-pine64-7inch-lcd.dtbo
-rw-r--r-- 1 root root   778 Feb 26 21:14 sun50i-a64-pps-gpio.dtbo
-rw-r--r-- 1 root root  1173 Feb 26 21:14 sun50i-a64-spi-add-cs1.dtbo
-rw-r--r-- 1 root root   668 Feb 26 21:14 sun50i-a64-spi-jedec-nor.dtbo
-rw-r--r-- 1 root root   808 Feb 26 21:14 sun50i-a64-spi-spidev.dtbo
-rw-r--r-- 1 root root   506 Feb 26 21:14 sun50i-a64-uart1.dtbo
-rw-r--r-- 1 root root   963 Feb 26 21:14 sun50i-a64-uart2.dtbo
-rw-r--r-- 1 root root   804 Feb 26 21:14 sun50i-a64-uart3.dtbo
-rw-r--r-- 1 root root   963 Feb 26 21:14 sun50i-a64-uart4.dtbo
-rw-r--r-- 1 root root   777 Feb 26 21:14 sun50i-a64-w1-gpio.dtbo
-rw-r--r-- 1 root root   339 Feb 26 21:14 sun50i-h5-analog-codec.dtbo
-rw-r--r-- 1 root root   384 Feb 26 21:14 sun50i-h5-cir.dtbo
-rw-r--r-- 1 root root   477 Feb 26 21:14 sun50i-h5-cpu-clock-1.0GHz-1.1v.dtbo
-rw-r--r-- 1 root root   477 Feb 26 21:14 sun50i-h5-cpu-clock-1.2GHz-1.3v.dtbo
-rw-r--r-- 1 root root   897 Feb 26 21:14 sun50i-h5-cpu-clock-1.3GHz-1.3v.dtbo
-rw-r--r-- 1 root root  4191 Feb 26 21:14 sun50i-h5-fixup.scr
-rw-r--r-- 1 root root  1020 Feb 26 21:14 sun50i-h5-gpio-regulator-1.3v.dtbo
-rw-r--r-- 1 root root   374 Feb 26 21:14 sun50i-h5-i2c0.dtbo
-rw-r--r-- 1 root root   374 Feb 26 21:14 sun50i-h5-i2c1.dtbo
-rw-r--r-- 1 root root   374 Feb 26 21:14 sun50i-h5-i2c2.dtbo
-rw-r--r-- 1 root root   778 Feb 26 21:14 sun50i-h5-pps-gpio.dtbo
-rw-r--r-- 1 root root   862 Feb 26 21:14 sun50i-h5-pwm.dtbo
-rw-r--r-- 1 root root  1040 Feb 26 21:14 sun50i-h5-spdif-out.dtbo
-rw-r--r-- 1 root root  1177 Feb 26 21:14 sun50i-h5-spi-add-cs1.dtbo
-rw-r--r-- 1 root root   804 Feb 26 21:14 sun50i-h5-spi-jedec-nor.dtbo
-rw-r--r-- 1 root root   804 Feb 26 21:14 sun50i-h5-spi-spidev.dtbo
-rw-r--r-- 1 root root   502 Feb 26 21:14 sun50i-h5-uart1.dtbo
-rw-r--r-- 1 root root   794 Feb 26 21:14 sun50i-h5-uart2.dtbo
-rw-r--r-- 1 root root   798 Feb 26 21:14 sun50i-h5-uart3.dtbo
-rw-r--r-- 1 root root   504 Feb 26 21:14 sun50i-h5-usbhost0.dtbo
-rw-r--r-- 1 root root   504 Feb 26 21:14 sun50i-h5-usbhost1.dtbo
-rw-r--r-- 1 root root   504 Feb 26 21:14 sun50i-h5-usbhost2.dtbo
-rw-r--r-- 1 root root   504 Feb 26 21:14 sun50i-h5-usbhost3.dtbo
-rw-r--r-- 1 root root   777 Feb 26 21:14 sun50i-h5-w1-gpio.dtbo
-rw-r--r-- 1 root root   314 Feb 26 21:14 sun50i-h616-bananapi-m4-pg-15-16-i2c4.dtbo
-rw-r--r-- 1 root root   314 Feb 26 21:14 sun50i-h616-bananapi-m4-pg-17-18-i2c3.dtbo
-rw-r--r-- 1 root root   315 Feb 26 21:14 sun50i-h616-bananapi-m4-pg-6-7-uart1.dtbo
-rw-r--r-- 1 root root   533 Feb 26 21:14 sun50i-h616-bananapi-m4-pg-8-9-rts-cts-uart1.dtbo
-rw-r--r-- 1 root root   315 Feb 26 21:14 sun50i-h616-bananapi-m4-ph-2-3-uart5.dtbo
-rw-r--r-- 1 root root   315 Feb 26 21:14 sun50i-h616-bananapi-m4-pi-13-14-uart4.dtbo
-rw-r--r-- 1 root root   539 Feb 26 21:14 sun50i-h616-bananapi-m4-pi-15-16-rts-cts-uart4.dtbo
-rw-r--r-- 1 root root   314 Feb 26 21:14 sun50i-h616-bananapi-m4-pi-5-6-i2c0.dtbo
-rw-r--r-- 1 root root   314 Feb 26 21:14 sun50i-h616-bananapi-m4-pi-7-8-i2c1.dtbo
-rw-r--r-- 1 root root  1358 Feb 26 21:14 sun50i-h616-bananapi-m4-sdio-wifi-bt.dtbo
-rw-r--r-- 1 root root   843 Feb 26 21:14 sun50i-h616-bananapi-m4-spi1-cs0-cs1-spidev.dtbo
-rw-r--r-- 1 root root   678 Feb 26 21:14 sun50i-h616-bananapi-m4-spi1-cs0-spidev.dtbo
-rw-r--r-- 1 root root   314 Feb 26 21:14 sun50i-h616-bananapi-m4-spi1-cs1-spidev.dtbo
-rw-r--r-- 1 root root  4203 Feb 26 21:14 sun50i-h616-fixup.scr
-rw-r--r-- 1 root root   269 Feb 26 21:14 sun50i-h616-gpu.dtbo
-rw-r--r-- 1 root root   513 Feb 26 21:14 sun50i-h616-i2c0-pi.dtbo
-rw-r--r-- 1 root root   391 Feb 26 21:14 sun50i-h616-i2c1-pi.dtbo
-rw-r--r-- 1 root root   344 Feb 26 21:14 sun50i-h616-i2c2-ph.dtbo
-rw-r--r-- 1 root root   513 Feb 26 21:14 sun50i-h616-i2c2-pi.dtbo
-rw-r--r-- 1 root root   344 Feb 26 21:14 sun50i-h616-i2c3-pg.dtbo
-rw-r--r-- 1 root root   344 Feb 26 21:14 sun50i-h616-i2c3-ph.dtbo
-rw-r--r-- 1 root root   344 Feb 26 21:14 sun50i-h616-i2c4-pg.dtbo
-rw-r--r-- 1 root root   344 Feb 26 21:14 sun50i-h616-i2c4-ph.dtbo
-rw-r--r-- 1 root root   268 Feb 26 21:14 sun50i-h616-ir.dtbo
-rw-r--r-- 1 root root   396 Feb 26 21:14 sun50i-h616-light.dtbo
-rw-r--r-- 1 root root   339 Feb 26 21:14 sun50i-h616-mcp2515.dtbo
-rw-r--r-- 1 root root   661 Feb 26 21:14 sun50i-h616-spidev0_0.dtbo
-rw-r--r-- 1 root root   661 Feb 26 21:14 sun50i-h616-spidev1_0.dtbo
-rw-r--r-- 1 root root   661 Feb 26 21:14 sun50i-h616-spidev1_1.dtbo
-rw-r--r-- 1 root root   661 Feb 26 21:14 sun50i-h616-spidev1_2.dtbo
-rw-r--r-- 1 root root   808 Feb 26 21:14 sun50i-h616-spi-spidev.dtbo
-rw-r--r-- 1 root root   616 Feb 26 21:14 sun50i-h616-tft35_spi.dtbo
-rw-r--r-- 1 root root   413 Feb 26 21:14 sun50i-h616-uart2-pg.dtbo
-rw-r--r-- 1 root root   487 Feb 26 21:14 sun50i-h616-uart2-pg-rts-cts.dtbo
-rw-r--r-- 1 root root   413 Feb 26 21:14 sun50i-h616-uart2-ph.dtbo
-rw-r--r-- 1 root root   487 Feb 26 21:14 sun50i-h616-uart2-ph-rts-cts.dtbo
-rw-r--r-- 1 root root   410 Feb 26 21:14 sun50i-h616-uart5.dtbo
-rw-r--r-- 1 root root   272 Feb 26 21:14 sun50i-h616-ws2812.dtbo
-rw-r--r-- 1 root root  3844 Feb 26 21:14 sun50i-h6-fixup.scr
-rw-r--r-- 1 root root   374 Feb 26 21:14 sun50i-h6-i2c0.dtbo
-rw-r--r-- 1 root root   374 Feb 26 21:14 sun50i-h6-i2c1.dtbo
-rw-r--r-- 1 root root   374 Feb 26 21:14 sun50i-h6-i2c2.dtbo
-rw-r--r-- 1 root root   671 Feb 26 21:14 sun50i-h6-pwm.dtbo
-rw-r--r-- 1 root root   268 Feb 26 21:14 sun50i-h6-ruart.dtbo
-rw-r--r-- 1 root root  1177 Feb 26 21:14 sun50i-h6-spi-add-cs1.dtbo
-rw-r--r-- 1 root root   804 Feb 26 21:14 sun50i-h6-spi-jedec-nor.dtbo
-rw-r--r-- 1 root root   657 Feb 26 21:14 sun50i-h6-spi-spidev1.dtbo
-rw-r--r-- 1 root root   808 Feb 26 21:14 sun50i-h6-spi-spidev.dtbo
-rw-r--r-- 1 root root   502 Feb 26 21:14 sun50i-h6-uart1.dtbo
-rw-r--r-- 1 root root   798 Feb 26 21:14 sun50i-h6-uart2.dtbo
-rw-r--r-- 1 root root   798 Feb 26 21:14 sun50i-h6-uart3.dtbo
-rw-r--r-- 1 root root   773 Feb 26 21:14 sun50i-h6-w1-gpio.dtbo

 

Posted

hello,

I try to remove the bluetooth and recreate the dtb but I still have the error on ttyS2 
I also try to add fdtfile=sun50i-a64-pine64.dtb on /boot/armbianEnv.txt.
With this new configuration /dev/ttyS2 work but a lost end0 .....

 

cordially

 

Posted (edited)

ok so when execute this command
 

dtc -I fs /sys/firmware/devicetree/base/

I can see 

model = "Pine64+";
serial-number = "92c000bac9dd6a14";
#size-cells = <0x01>;
interrupt-parent = <0x01>;
compatible = "pine64,pine64-plus\0allwinner,sun50i-a64";

so I think I can update sun50i-a64-pine64.dtb with the ethernet configuration from Pine64+

Edited by Joda
  • Solution
Posted

ok it's working 

I make a diff between pine64 and pine64+

root@domotique:~# diff pine64.txt pine64+.txt 
5c5
< 	model = "Pine64";
---
> 	model = "Pine64+";
9c9
< 	compatible = "pine64,pine64\0allwinner,sun50i-a64";
---
> 	compatible = "pine64,pine64-plus\0allwinner,sun50i-a64";
202c202
< 				phandle = <0x40>;
---
> 				phandle = <0x7b>;
261c261
< 				phandle = <0x7b>;
---
> 				phandle = <0x40>;
282c282
< 				phandle = <0xb2>;
---
> 				phandle = <0x37>;
303,308d302
< 			uart2-rts-cts-pins {
< 				function = "uart2";
< 				pins = "PB2\0PB3";
< 				phandle = <0xb3>;
< 			};
< 
1102a1097
> 						regulator-enable-ramp-delay = <0x186a0>;
1365c1360
< 			pinctrl-0 = <0xb2>;
---
> 			pinctrl-0 = <0x37>;
1371c1366
< 			status = "okay";
---
> 			status = "disabled";
1848d1842
< 		uart2_rts_cts_pins = "/soc/pinctrl@1c20800/uart2-rts-cts-pins";

 

I think we just need to add 

 			uart2-rts-cts-pins {
 				function = "uart2";
 				pins = "PB2\0PB3";
 				phandle = <0xb3>;
 			};
                  
 		uart2_rts_cts_pins = "/soc/pinctrl@1c20800/uart2-rts-cts-pins";

@Werner do you think it's possible to add this to the uart2 overlay ?

 

cordially

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines