mirror of
				https://github.com/torvalds/linux.git
				synced 2025-10-31 16:48:26 +02:00 
			
		
		
		
	 72bea132f3
			
		
	
	
		72bea132f3
		
	
	
	
	
		
			
			The PCIe Gen4x2 PHY found in the SM8[456]50 SoCs have a second clock named "PHY_AUX_CLK" which is an input of the Global Clock Controller (GCC) which is muxed & gated then returned to the PHY as an input. Document the clock IDs to select the PIPE clock or the AUX clock, also enforce a second clock-output-names and a #clock-cells value of 1 for the PCIe Gen4x2 PHY found in the SM8[456]50 SoCs. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://lore.kernel.org/r/20240322-topic-sm8x50-upstream-pcie-1-phy-aux-clk-v2-1-3ec0a966d52f@linaro.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			540 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			540 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
 | |
| /*
 | |
|  * Qualcomm QMP PHY constants
 | |
|  *
 | |
|  * Copyright (C) 2022 Linaro Limited
 | |
|  */
 | |
| 
 | |
| #ifndef _DT_BINDINGS_PHY_QMP
 | |
| #define _DT_BINDINGS_PHY_QMP
 | |
| 
 | |
| /* QMP USB4-USB3-DP clocks */
 | |
| #define QMP_USB43DP_USB3_PIPE_CLK	0
 | |
| #define QMP_USB43DP_DP_LINK_CLK		1
 | |
| #define QMP_USB43DP_DP_VCO_DIV_CLK	2
 | |
| 
 | |
| /* QMP USB4-USB3-DP PHYs */
 | |
| #define QMP_USB43DP_USB3_PHY		0
 | |
| #define QMP_USB43DP_DP_PHY		1
 | |
| 
 | |
| /* QMP PCIE PHYs */
 | |
| #define QMP_PCIE_PIPE_CLK		0
 | |
| #define QMP_PCIE_PHY_AUX_CLK		1
 | |
| 
 | |
| #endif /* _DT_BINDINGS_PHY_QMP */
 |