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,