Jump to content

Joks

Members
  • Posts

    2
  • Joined

  • Last visited

Recent Profile Visitors

914 profile views
  1. [sOLVED] Hi, I just solved my problem(try to enable uart for ttyS3) line i have modified was the good one: serial@01c28c00 { compatible = "snps,dw-apb-uart"; reg = <0x1c28c00 0x400>; interrupts = <0x0 0x3 0x4>; reg-shift = <0x2>; reg-io-width = <0x4>; clocks = <0x5 0x41>; resets = <0x5 0x34>; dmas = <0xf 0x9 0xf 0x9>; dma-names = "rx", "tx"; status = "okay"; /*"Disabled" to "okay"*/ pinctrl-names = "default"; pinctrl-0 = <0x13>; linux,phandle = <0x36>; phandle = <0x36>; }; but defaults pins of "sun8i-h3-orangepi-pc.dts" wasn't: root@orangepipc:/boot/dtb# cat sun8i-h3-orangepi-pc.dts | grep uart3 -A -6 uart3 { allwinner,pins = "PG13", "PG14"; allwinner, function = "uart3"; allwinner,drive = <0x0>; allwinner,pull = <0x0>; linux,phandle = <0x12>; phandle = <0x12>; }; This is the original file, i change "PG13" to "PA13" and "PG14" to "PA14" and its works perfectly. Hope this will help.
  2. Hi, I have a orange pi pc plus, and i want to use a PN532 NFC module with Uart. At first, i need to enable uart and i have found this docs : https://docs.armbian.com/Hardware_Allwinner/ , but i think i miss something. My kernel version is 4.9.0, so i follow Vanilla kernel (Device Tree) explanations. What i understand is i need to modify "sun8i-h3-orangepi-pc-plus.dtb" in /boot/dtb. I try to do it, but i surely do something wrong, because my pi didn't boot anymore, so i flash the sd card. Before remaking any modification i prefer to be certain, do i really need to modify this files? And in particular this lines? /*Part of the files (Uart0 and Uart1) without any changes*/ serial@01c28000 { compatible = "snps,dw-apb-uart"; reg = <0x1c28000 0x400>; interrupts = <0x0 0x0 0x4>; reg-shift = <0x2>; reg-io-width = <0x4>; clocks = <0x5 0x3e>; resets = <0x5 0x31>; dmas = <0xe 0x6 0xe 0x6>; dma-names = "rx", "tx"; status = "okay"; pinctrl-names = "default"; pinctrl-0 = <0xf>; linux,phandle = <0x33>; phandle = <0x33>; }; -- serial@01c28400 { compatible = "snps,dw-apb-uart"; reg = <0x1c28400 0x400>; interrupts = <0x0 0x1 0x4>; reg-shift = <0x2>; reg-io-width = <0x4>; clocks = <0x5 0x3f>; resets = <0x5 0x32>; dmas = <0xe 0x7 0xe 0x7>; dma-names = "rx", "tx"; status = "disabled"; /*Line i have modify in my first try, "disabled" to "okay"*/ pinctrl-names = "default"; pinctrl-0 = <0x10>; linux,phandle = <0x34>; phandle = <0x34>; }; Thanks,
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines