RockPi-E enabling UART1 and OTG using custom DT overlays


Recommended Posts

I wanted to share 2 custom overlays I've created and tested for the RockPi E to enable UART1 and OTG via the GPIO.

 

Create file rockchip-uart1.dts

/dts-v1/;
/ {
	compatible = "rockchip,rk3328";
	fragment@0 {
		target-path = "/serial@ff120000";
		__overlay__ {
			pinctrl-0 = < 0x23 >;
			status = "okay";
		};
	};
};

 

Create file rockchip-otg.dts

/dts-v1/;
/ {
	compatible = "rockchip,rk3328";
	fragment@0 {
		target-path = "/usb@ff580000";
		__overlay__ {
			dr_mode = "otg";			
		};
	};
};

 

 

Install and enable overlays:
sudo armbian-add-overlay rockchip-uart1.dts
sudo armbian-add-overlay rockchip-otg.dts

Link to post
Share on other sites
Armbian is a community driven open source project. Do you like to contribute your code?

  • Werner featured this topic

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...