Skip to content

Instantly share code, notes, and snippets.

@gustavsl
Last active June 16, 2020 14:47
Show Gist options
  • Save gustavsl/862aef9c75e887f72b555f268b264fb8 to your computer and use it in GitHub Desktop.
Save gustavsl/862aef9c75e887f72b555f268b264fb8 to your computer and use it in GitHub Desktop.
Device Tree Overlay for H-Board v0.3 with Aison display
/dts-v1/;
/plugin/;
#include "/device-tree-overlays/dts-arm32/imx7d-pinfunc.h"
#include "/device-tree-overlays/include/dt-bindings/gpio/gpio.h"
#include "/device-tree-overlays/include/dt-bindings/interrupt-controller/irq.h"
/ {
compatible = "toradex,colibri-imx7";
fragment@0 {
target = <&i2c4>;
__overlay__ {
tdo07: gt911@5d {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_h_board>;
compatible = "goodix,gt911";
reg = <0x5d>;
interrupt-parent = <&gpio1>;
interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
reset-gpios = <&gpio5 16 GPIO_ACTIVE_HIGH>;
status = "okay";
};
};
};
fragment@1 {
target-path = "/panel-dpi";
__overlay__ {
status = "okay";
width-mm = <154>;
height-mm = <86>;
panel-timing {
clock-frequency = <30000000>;
hactive = <800>;
vactive = <480>;
hsync-len = <48>;
hfront-porch = <40>;
hback-porch = <40>;
vsync-len = <3>;
vfront-porch = <13>;
vback-porch = <29>;
};
};
};
fragment@2 {
target-path = "/backlight";
__overlay__ {
pwms = <&pwm4 0 5000000 0>;
enable-gpios = <&gpio2 27 0>;
};
};
fragment@3 {
target = <&iomuxc>;
__overlay__ {
pinctrl_h_board: h-board {
fsl,pins = <
MX7D_PAD_LPSR_GPIO1_IO01__GPIO1_IO1 0x14
MX7D_PAD_SD2_DATA2__GPIO5_IO16 0x14
>;
};
};
};
fragment@4 {
target-path = "/gpio-keys";
__overlay__ {
status = "disabled";
};
};
fragment@5 {
target = <&iomuxc>;
__overlay__{
pinctrl-0 = <&pinctrl_gpio2 &pinctrl_gpio3 &pinctrl_gpio4 &pinctrl_gpio7 &pinctrl_usbc_det>;
};
};
fragment@6 {
target = <&uart3>;
__overlay__ {
status = "okay";
linux,rs485-enabled-at-boot-time;
rs485-rts-active-high;
rs485-rx-during-tx;
rts-gpios = <&gpio5 15 0>;
};
};
fragment@7 {
target = <&i2c4>;
__overlay__ {
rtc: pcf85263@51 {
compatible = "nxp,pcf85263";
reg = <0x51>;
};
};
};
fragment@8 {
target = <&can1>;
__overlay__ {
status = "okay";
};
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment