/* * Device Tree overlay for Waveshare 4.3 inch DSI Touchscreen on BeagleY-AI * */ /dts-v1/; /plugin/; / { compatible = "beagle,am67a-beagley-ai", "ti,j722s"; dsi_frag: fragment@0 { target = <&dsi0>; __overlay__ { #address-cells = <1>; #size-cells = <0>; status = "okay"; port { dsi_out: endpoint { remote-endpoint = <&panel_in>; }; }; }; }; fragment@1 { target-path = "/"; __overlay__ { }; }; i2c_frag: fragment@2 { target = <&i2c2>; __overlay__ { #address-cells = <1>; #size-cells = <0>; status = "okay"; panel: panel_disp1@45 { reg = <0x45>; compatible = "waveshare,4.3inch-panel"; port { panel_in: endpoint { remote-endpoint = <&dsi_out>; }; }; }; touch: goodix@14 { reg = <0x14>; compatible = "goodix,gt911"; touchscreen-size-x = <800>; touchscreen-size-y = <480>; }; touch2: ilitek@41 { compatible = "ilitek,ili251x"; reg = <0x41>; status = "disabled"; }; }; }; /* * The following fragments are modified to match BeagleY-AI I2C configurations * instead of Raspberry Pi's I2C interfaces */ fragment@3 { target = <&i2c0>; __overlay__ { status = "okay"; }; }; fragment@4 { target = <&i2c1>; __overlay__ { status = "okay"; }; }; __overrides__ { 4_3_inch = <&panel>, "compatible=waveshare,4.3inch-panel", <&touch>, "touchscreen-size-x:0=800", <&touch>, "touchscreen-size-y:0=480"; rotation = <&panel>, "rotation:0"; invx = <&touch>,"touchscreen-inverted-x?"; invy = <&touch>,"touchscreen-inverted-y?"; swapxy = <&touch>,"touchscreen-swapped-x-y?"; disable_touch = <&touch>, "status=disabled"; }; };