Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 1583

Device tree RZ/G2L for SN65DSI83 and backlight

$
0
0

Hello everyone,

we are using a SN64DSI83 as an interface bridge between the MIPI DSI of the RZ/G2L and a LVDS screen. I have posted the device tree file below. However the screen is instantly turned off after uboot exists and we have no idea why. The configuration for the SN65DSI83 seems to be correct, as we message containing the correct screen resolution and DSI clock speed. Do you have any idea why the backlight might not be working?

Best
Christian

/ {

	backlight: pwm-backlight {
		compatible = "pwm-backlight";
		pwms = <&gpt3 0 50000>;
		brightness-levels = <100 99 98 97 96 95 94 93 92 91
				      90 89 88 87 86 85 84 83 82 81
				      80 79 78 77 76 75 74 73 72 71
				      70 69 68 67 66 65 64 63 62 61
				      60 59 58 57 56 55 54 53 52 51
				      50 49 48 47 46 45 44 43 42 41
				      40 39 38 37 36 35 34 33 32 31
				      30 29 28 27 26 25 24 23 22 21
				      20 19 18 17 16 15 14 13 12 11
				      10  9  8  7  6  5  4  3  2  1
				       0>;
		default-brightness-level = <50>;

		status = "okay";
	};

	lvds_panel: lvds { 
		compatible = "panel-lvds";
		data-mapping = "vesa-24";

		ti,width-mm = <197>;
        ti,height-mm = <144>;

		backlight = <&backlight>;

		status = "okay";
		ports {
			port@0 {
				lvds_in: endpoint {
					remote-endpoint = <&bridge_out>;
				};
			};
		};
	};
};&du {
	status = "okay";
};&dsi0 {
	status = "okay";
	#address-cells = <1>;
	#size-cells = <0>;

	ports {
			#address-cells = <1>;
			#size-cells = <0>;

			port@1 {
					dsi0_out: endpoint {
							remote-endpoint = <&bridge_in>;
							data-lanes = <4>;
                            attach-bridge;
					};
			};
	};

};


&i2c1 {
        dsi_lvds_bridge: sn65dsi83@2c {
                compatible = "ti,sn65dsi83";
                reg = <0x2c>;
                ti,dsi-lanes = <4>;
                ti,lvds-format = <1>;
                ti,lvds-bpp = <24>;
                ti,width-mm = <197>;
                ti,height-mm = <144>;
                enable-gpios = <&pinctrl RZG2L_GPIO(5, 2) GPIO_ACTIVE_HIGH>;
				enable-panel-gpios = <&pinctrl RZG2L_GPIO(1, 1) GPIO_ACTIVE_HIGH>;

                status = "okay";

                timings_1024x600_60:display-timings {
					lvds {
							clock-frequency = <51200000>;
							hactive = <1024>;
							vactive = <600>;
							hback-porch = <180>;
							hfront-porch = <140>;
							vback-porch = <15>;
							vfront-porch = <20>;
							hsync-len = <1>;
							vsync-len = <1>;
							hsync-active = <0>;
							vsync-active = <0>;
							de-active = <0>;
							pixelclk-active = <0>;
						};
				};

				ports{
					#address-cells = <1>;
					#size-cells = <0>;

					port@0 {
						reg = <0>;

						bridge_in: endpoint {
							remote-endpoint = <&dsi0_out>;
						};
					};

					port@2 {
						reg = <2>;

						bridge_out: endpoint {
							remote-endpoint = <&lvds_in>;
						};
					};
        		};
		};
};&gpt3 {
	pinctrl-names = "default";
	pinctrl-0 = <&gpt3_pins>;
	channel = "channel_B";
	status = "okay";
};&pinctrl {
	gpt3_pins: gpt3-pins {
		pinmux = <RZG2L_PORT_PINMUX(19, 1, 2)>; /* Channel B */
	};
};

Viewing all articles
Browse latest Browse all 1583

Trending Articles