Opened 3 years ago

Closed 3 years ago

#19700 closed task (not_a_bug)

How to Enable UART in MT7620a

Reported by: EbdWRT Owned by: developers
Priority: highest Milestone:
Component: kernel Version: Trunk
Keywords: mt7620 UART Cc:



I have platform with MT7620. I also use Image Builder to create bin image. Now I whant to enable UART interface in my platform. I think that I must add inode to DT in mt7620.dts file but I do not know what must be the correct syntax. My propozition is below. I also need that UART worked as ttyS0 and console I whant to attached to ttyS1 So:
in file mt7620.dts

chosen {bootargs = "console=ttyS1,15200";};
uart@500 {
			compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
			reg = <0x500 0x100>;

			interrupt-parent = <&intc>;
			interrupts = <5>;

			reg-shift = <2>;

			pinctrl-names = "default";
			pinctrl-0 = <&uartf_pins>;

			status = "ok";

Please tell me wheter above syntax is correct ?

Attachments (0)

Change History (3)

comment:1 Changed 3 years ago by nbd

  • Resolution set to not_a_bug
  • Status changed from new to closed

Please don't use the bug tracker for support questions. Also, you can't rebuild images with modified DTS data using the image builder.

comment:2 Changed 3 years ago by anonymous

  • Resolution not_a_bug deleted
  • Status changed from closed to reopened

Ok I understood but I can't get anywhere answer. You are first person which tell mi something about it. I understod that I must compile form 0 all kernel and OpenWRT ?

comment:3 Changed 3 years ago by nbd

  • Resolution set to not_a_bug
  • Status changed from reopened to closed

Yes, you need to compile from source. Please don't reopen this ticket.

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.