ShiboSoftwareDev/linux-gameboy-advance

Restores PCB assembly metadata by assigning part numbers and 3D CAD models, removing test-point bodies, and validating top-side SMT solder-paste features without altering copper or pads.

Version
1.0.17
License
unset
Stars
0

firmware/display-bsp-example.dtsi

/* Example for an F1C100S kernel/BSP that exposes tcon0 and a DPI panel port.
 * The board routes RGB666 (SoC D2..7, D10..15 and D18..23), HSYNC, VSYNC,
 * DE and DOTCLK to J_LCD. The ILI9488 must also be initialized over its
 * PE7..PE10 control bus by U-Boot or a board-specific panel driver.
 *
 * The porch/clock values below are conservative bring-up values, not a
 * substitute for the exact ER-TFT035IPS-6 order-code datasheet. Validate
 * polarity and timings on the purchased panel before freezing an image.
 */
#include <dt-bindings/display/media-bus-format.h>

/ {
	panel: panel {
		compatible = "panel-dpi";
		width-mm = <49>;
		height-mm = <74>;
		data-mapping = "rgb666";
		bus-format = <MEDIA_BUS_FMT_RGB666_1X18>;

		panel-timing {
			clock-frequency = <9000000>;
			hactive = <320>;
			vactive = <480>;
			hfront-porch = <10>;
			hback-porch = <20>;
			hsync-len = <10>;
			vfront-porch = <8>;
			vback-porch = <8>;
			vsync-len = <2>;
			hsync-active = <0>;
			vsync-active = <0>;
			de-active = <1>;
			pixelclk-active = <1>;
		};

		port {
			panel_input: endpoint {
				remote-endpoint = <&tcon0_out_lcd>;
			};
		};
	};
};

&tcon0 {
	status = "okay";

	ports {
		port@1 {
			tcon0_out_lcd: endpoint {
				remote-endpoint = <&panel_input>;
			};
		};
	};
};