mirror of
				https://github.com/torvalds/linux.git
				synced 2025-10-31 16:48:26 +02:00 
			
		
		
		
	ARM: dts: samsung: exynos4412-midas: add USB connector and USB OTG
Add full description of USB-MUIC (MAX77693 MUIC) and MUIC-MHL connections, along with proper USB connector and OTG mode for DWC2 USB controller. This fixes dtc W=1 warnings: Warning (graph_child_address): /i2c-mhl/hdmi-bridge@39/ports: graph node has single child node 'port@0', #address-cells/#size-cells are not necessary Cc: Marek Szyprowski <m.szyprowski@samsung.com> Cc: replicant@osuosl.org Cc: phone-devel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht Cc: Martin Jücker <martin.juecker@gmail.com> Cc: Henrik Grimler <henrik@grimler.se> Cc: Artur Weber <aweber.kernel@gmail.com> Tested-by: Henrik Grimler <henrik@grimler.se> Link: https://lore.kernel.org/r/20230723142417.97734-1-krzysztof.kozlowski@linaro.org Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
This commit is contained in:
		
							parent
							
								
									7562d91450
								
							
						
					
					
						commit
						57f706bf73
					
				
					 1 changed files with 49 additions and 1 deletions
				
			
		|  | @ -182,6 +182,38 @@ pmic@66 { | ||||||
| 			pinctrl-0 = <&max77693_irq>; | 			pinctrl-0 = <&max77693_irq>; | ||||||
| 			reg = <0x66>; | 			reg = <0x66>; | ||||||
| 
 | 
 | ||||||
|  | 			muic { | ||||||
|  | 				compatible = "maxim,max77693-muic"; | ||||||
|  | 
 | ||||||
|  | 				connector { | ||||||
|  | 					compatible = "samsung,usb-connector-11pin", | ||||||
|  | 						     "usb-b-connector"; | ||||||
|  | 					label = "micro-USB"; | ||||||
|  | 					type = "micro"; | ||||||
|  | 
 | ||||||
|  | 					ports { | ||||||
|  | 						#address-cells = <1>; | ||||||
|  | 						#size-cells = <0>; | ||||||
|  | 
 | ||||||
|  | 						port@0 { | ||||||
|  | 							reg = <0>; | ||||||
|  | 
 | ||||||
|  | 							muic_to_usb: endpoint { | ||||||
|  | 								remote-endpoint = <&usb_to_muic>; | ||||||
|  | 							}; | ||||||
|  | 						}; | ||||||
|  | 
 | ||||||
|  | 						port@3 { | ||||||
|  | 							reg = <3>; | ||||||
|  | 
 | ||||||
|  | 							muic_to_mhl: endpoint { | ||||||
|  | 								remote-endpoint = <&mhl_to_muic>; | ||||||
|  | 							}; | ||||||
|  | 						}; | ||||||
|  | 					}; | ||||||
|  | 				}; | ||||||
|  | 			}; | ||||||
|  | 
 | ||||||
| 			regulators { | 			regulators { | ||||||
| 				esafeout1_reg: ESAFEOUT1 { | 				esafeout1_reg: ESAFEOUT1 { | ||||||
| 					regulator-name = "ESAFEOUT1"; | 					regulator-name = "ESAFEOUT1"; | ||||||
|  | @ -287,6 +319,14 @@ mhl_to_hdmi: endpoint { | ||||||
| 						remote-endpoint = <&hdmi_to_mhl>; | 						remote-endpoint = <&hdmi_to_mhl>; | ||||||
| 					}; | 					}; | ||||||
| 				}; | 				}; | ||||||
|  | 
 | ||||||
|  | 				port@1 { | ||||||
|  | 					reg = <1>; | ||||||
|  | 
 | ||||||
|  | 					mhl_to_muic: endpoint { | ||||||
|  | 						remote-endpoint = <&muic_to_mhl>; | ||||||
|  | 					}; | ||||||
|  | 				}; | ||||||
| 			}; | 			}; | ||||||
| 		}; | 		}; | ||||||
| 	}; | 	}; | ||||||
|  | @ -545,8 +585,16 @@ hdmi_to_mhl: endpoint { | ||||||
| &hsotg { | &hsotg { | ||||||
| 	vusb_d-supply = <&ldo15_reg>; | 	vusb_d-supply = <&ldo15_reg>; | ||||||
| 	vusb_a-supply = <&ldo12_reg>; | 	vusb_a-supply = <&ldo12_reg>; | ||||||
| 	dr_mode = "peripheral"; | 	dr_mode = "otg"; | ||||||
|  | 	role-switch-default-mode = "peripheral"; | ||||||
|  | 	usb-role-switch; | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
|  | 
 | ||||||
|  | 	port { | ||||||
|  | 		usb_to_muic: endpoint { | ||||||
|  | 			remote-endpoint = <&muic_to_usb>; | ||||||
|  | 		}; | ||||||
|  | 	}; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| &i2c_0 { | &i2c_0 { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Krzysztof Kozlowski
						Krzysztof Kozlowski