mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	arm64: dts: renesas: Prepare AA1024XD12 panel .dtsi for overlay support
The Mitsubishi AA1024XD12 panel can be used for R-Car Gen2 and Gen3 boards as an optional external panel. It is described in the arm/boot/dts/r8a77xx-aa104xd12-panel.dtsi file as a direct child of the DT root node. This allows including r8a77xx-aa104xd12-panel.dtsi in board device trees, with other minor modifications, to enable the panel. This is however not how external components should be modelled. Instead of modifying the board device tree to enable the panel, it should be compiled as a DT overlay, to be loaded by the boot loader. Prepare the r8a77xx-aa104xd12-panel.dtsi file for this usage by declaring a panel node only, without hardcoding its path. Overlay sources can then include r8a77xx-aa104xd12-panel.dtsi where appropriate. This change doesn't cause any regression as r8a77xx-aa104xd12-panel.dtsi is currently unused. As overlay support for this panel has only been tested with Gen3 hardware, and Gen2 support will require more development, move the file to arch/arm64/boot/dts/renesas/. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> Link: https://lore.kernel.org/r/20211229193135.28767-2-laurent.pinchart+renesas@ideasonboard.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
This commit is contained in:
		
							parent
							
								
									3896b8f092
								
							
						
					
					
						commit
						79e6820245
					
				
					 2 changed files with 30 additions and 39 deletions
				
			
		|  | @ -1,39 +0,0 @@ | ||||||
| // SPDX-License-Identifier: GPL-2.0 |  | ||||||
| /* |  | ||||||
|  * Common file for the AA104XD12 panel connected to Renesas R-Car boards |  | ||||||
|  * |  | ||||||
|  * Copyright (C) 2014 Renesas Electronics Corp. |  | ||||||
|  */ |  | ||||||
| 
 |  | ||||||
| / { |  | ||||||
| 	panel { |  | ||||||
| 		compatible = "mitsubishi,aa104xd12", "panel-lvds"; |  | ||||||
| 
 |  | ||||||
| 		width-mm = <210>; |  | ||||||
| 		height-mm = <158>; |  | ||||||
| 		data-mapping = "jeida-18"; |  | ||||||
| 
 |  | ||||||
| 		panel-timing { |  | ||||||
| 			/* 1024x768 @65Hz */ |  | ||||||
| 			clock-frequency = <65000000>; |  | ||||||
| 			hactive = <1024>; |  | ||||||
| 			vactive = <768>; |  | ||||||
| 			hsync-len = <136>; |  | ||||||
| 			hfront-porch = <20>; |  | ||||||
| 			hback-porch = <160>; |  | ||||||
| 			vfront-porch = <3>; |  | ||||||
| 			vback-porch = <29>; |  | ||||||
| 			vsync-len = <6>; |  | ||||||
| 		}; |  | ||||||
| 
 |  | ||||||
| 		port { |  | ||||||
| 			panel_in: endpoint { |  | ||||||
| 				remote-endpoint = <&lvds_connector>; |  | ||||||
| 			}; |  | ||||||
| 		}; |  | ||||||
| 	}; |  | ||||||
| }; |  | ||||||
| 
 |  | ||||||
| &lvds_connector { |  | ||||||
| 	remote-endpoint = <&panel_in>; |  | ||||||
| }; |  | ||||||
							
								
								
									
										30
									
								
								arch/arm64/boot/dts/renesas/panel-aa104xd12.dtsi
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								arch/arm64/boot/dts/renesas/panel-aa104xd12.dtsi
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,30 @@ | ||||||
|  | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) | ||||||
|  | /* | ||||||
|  |  * Common file for the AA104XD12 panel connected to Renesas R-Car Gen3 boards. | ||||||
|  |  * | ||||||
|  |  * Copyright (C) 2014 Renesas Electronics Corp. | ||||||
|  |  */ | ||||||
|  | 
 | ||||||
|  | panel { | ||||||
|  | 	compatible = "mitsubishi,aa104xd12", "panel-lvds"; | ||||||
|  | 
 | ||||||
|  | 	width-mm = <210>; | ||||||
|  | 	height-mm = <158>; | ||||||
|  | 	data-mapping = "jeida-18"; | ||||||
|  | 
 | ||||||
|  | 	panel-timing { | ||||||
|  | 		/* 1024x768 @65Hz */ | ||||||
|  | 		clock-frequency = <65000000>; | ||||||
|  | 		hactive = <1024>; | ||||||
|  | 		vactive = <768>; | ||||||
|  | 		hsync-len = <136>; | ||||||
|  | 		hfront-porch = <20>; | ||||||
|  | 		hback-porch = <160>; | ||||||
|  | 		vfront-porch = <3>; | ||||||
|  | 		vback-porch = <29>; | ||||||
|  | 		vsync-len = <6>; | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
|  | 	port { | ||||||
|  | 	}; | ||||||
|  | }; | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Laurent Pinchart
						Laurent Pinchart