From patchwork Fri Aug 16 08:19:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 13765692 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3B716C3DA4A for ; Fri, 16 Aug 2024 08:27:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=yoRhb00V3b2YHQgd98mtv4KUJ8LC4IwuReaO+Jmg960=; b=nVh8HBme9rbWXp4X7O4kp2m4cM MmFZxiByVRqKx50dDK4i8hkDUwn6w4KH0gyC+lIEAY4MnXVx/yd63w42qxKX5QDm3k1+vNXmwyJOU B8ODPSJ4ZYBNlY2oOwBfeMvNIepo49Re+o6ZzXo4UgixBjhp1eP8+zK2T4de6ZiWsoTgQI7Z6NgFo 0yp5/WmYMOIBGoQ5YVJN1n9+ohAJs5p07p2LNlYz85nyAN2Om9PBz74j2Fw1jqwAo/3G0WwBwmL9H rUZzrK21ItlYXVAFrAfrAta0cF1vN48bxcxMR6jVpmp1hnS3yRvkCFGAwYtuwLJeIsu5tMBdad4s5 CzOe9JHA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sesIo-0000000CH7t-0OlE; Fri, 16 Aug 2024 08:27:18 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sesBJ-0000000CF3z-1PMA for linux-arm-kernel@lists.infradead.org; Fri, 16 Aug 2024 08:19:34 +0000 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-4280c55e488so8835285e9.0 for ; Fri, 16 Aug 2024 01:19:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723796371; x=1724401171; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=yoRhb00V3b2YHQgd98mtv4KUJ8LC4IwuReaO+Jmg960=; b=nG8mfXuWSUzd2mFggPUKdY1Ir//j08HHMbB+mzAm1Jt03uUlHBqIlRp6uY/HMeVae5 xhikhn+++G7Wv/7eKhuj9fGAFT5rhy3Fu7cL2uXit1hUoQ5Pfp74HTE/PIU/ECGECEN3 6VdNr1TkdQZ0UBGB3/oOcPCahC3hvTWM2REuqQbm/WGw7LZEeKuDMuJQhBidxi0ONo63 I4IIn0r4Tjm/+LT2fxWl7x56K0Insq9wwwpQLHFXt5xU2O+lOjBg3n0qMYMXYrkF/yfx CalrWjppwgZjK8M0c14kTLG8KWINqmz7xOK7KFe6lbuTNhoFtoZq41To0DJcvs4DtyZa 7IzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723796371; x=1724401171; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yoRhb00V3b2YHQgd98mtv4KUJ8LC4IwuReaO+Jmg960=; b=apyS12Yqx+mLibGdprmV2pcYJlfpPzrmn+6zJ8Co9t1UarLDI1vfS8JkVp+IBEc9Fg mcgWcLd+BY21l8ypQcoriP54tyQ+LEY55joQzoKllE0WSmejrpl2+Cm//de9wo9Md0fW gN3EqZvUguKf9Y1A6mHHeZ7PCL1Zzfpuinf4zGSeGBEdkBIxp6zQSftk519oMobd5Na9 ygLUFTeVgX/l15/CSJqrqJvqJ8v2znNUGXgv+fFbVoXZOSrxSgqdBmNUroTPFH52CGVl XTLKmuei1Yb9kdJFf4E1VIpoHGlNdSEbSLZmPuYE0pX7q5Ogdtzni9AhnK3SQsIQTgnF dXVQ== X-Forwarded-Encrypted: i=1; AJvYcCX0BOenfbo2cOmtj8bQvZnWTJI4Ssm5WS5mlb2/DDYFdGHWuprHuR7W+cLPEpP86pNOcMOumcaMi2gQAjcVO5SdZ1pjU92jrm0STn5wcWmgTIMhoh8= X-Gm-Message-State: AOJu0YxRpCFQbzVt3AE0SpOFdgryJ1pXM6cRjU6+6943aNCpDuUYnVI1 4PPZNhPxtGD8v4Fm3Me7JtdH/dsVn+DwddYu1hLZgMhBFH+oH34p X-Google-Smtp-Source: AGHT+IF1E656TFpK2w4q5TDlMbLKFRWBD1HiXg+Mtkab768Qqq3+epDpvZYs/3x5inQx5XaV1Rl6FA== X-Received: by 2002:a05:600c:1d0e:b0:426:62a2:34fc with SMTP id 5b1f17b1804b1-429eda1f0ebmr12227085e9.11.1723796371414; Fri, 16 Aug 2024 01:19:31 -0700 (PDT) Received: from tablet.my.domain ([37.30.8.221]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-429ded35991sm69732645e9.21.2024.08.16.01.19.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Aug 2024 01:19:31 -0700 (PDT) From: Artur Weber Date: Fri, 16 Aug 2024 10:19:15 +0200 Subject: [PATCH v4 09/10] ARM: dts: samsung: exynos4212-tab3: Add USB connector node MIME-Version: 1.0 Message-Id: <20240816-max77693-charger-extcon-v4-9-050a0a9bfea0@gmail.com> References: <20240816-max77693-charger-extcon-v4-0-050a0a9bfea0@gmail.com> In-Reply-To: <20240816-max77693-charger-extcon-v4-0-050a0a9bfea0@gmail.com> To: Krzysztof Kozlowski , Chanwoo Choi Cc: Sebastian Reichel , Rob Herring , Conor Dooley , Lee Jones , Krzysztof Kozlowski , Alim Akhtar , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Henrik Grimler , Wolfgang Wiedmeyer , Denis 'GNUtoo' Carikli , Artur Weber X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1292; i=aweber.kernel@gmail.com; h=from:subject:message-id; bh=tVXqBcPeo+G6mj6298MiM54OrNViarOkoHHogiR/EXo=; b=owEBbQKS/ZANAwAKAbO7+KEToFFoAcsmYgBmvwt/QhHtj7N5Zin99gbo1sxWukqNmO5BWXe+w GvTxBPZAJSJAjMEAAEKAB0WIQTmYwAOrB3szWrSiQ2zu/ihE6BRaAUCZr8LfwAKCRCzu/ihE6BR aDsbD/9qil+0jJMgb3pMowZYLtMLmZgqtHPWkr6hQ2Kay5TvaKFioVXLcyKTUksySXmaOYQddep 1iytEBc3dw16bB8xdkfLSM8b4n7ejE2/lnpBEfCghyQoUtlKHwdhiynmeYugiToudvZV9gtMJAx Ev7iFOYcxkZV4coYrUocOCGNi/TfZVGOUAEJy8fQpvjol9kDi6RfjSQyg/KcZd/JL0/qNcxL9y0 wq1Msrcjp+wfGBIztP2EnZNnNVAjjEkUrwywouRkA4KAqSDXoEJ2Y5SxKnc6BwVR6hTGOufkRWE TaBeWEHvhCqY98MOJ3sjbCDl2sbkBEhxxp98BaLD54Z+rF26R20zuBizwmaJGF6BjvT8cBDk7gY 1b1SfGSPJq8Tp5rbkaLC+oLKAfLqF9XYxSt4Dz5hCoOfaPbfhfiCOw6FyngQvBo0m/sayEBTv2X iW7yn36PzJ46x46H4rvk6dQtW/ZtzTCFGq1TIseruNUSuGocsjVj+QnPLe1ESezu68IRhPnwBLX A2GUEovvuyNcyU0Sq6S8ZWbxMt9xdOW5SOwxa7u5etYVn4+R3aN/q8PMlqFDJLx31w9xQpjEWh3 uhemeeA1c4K4YJkXjw6NXUc0cV89x+/WO7ALqQfViGDr0zSvttD0eZ+wQuU1MpSOAVcxJjoIFXF He1o9VwzZ0Z5LWw== X-Developer-Key: i=aweber.kernel@gmail.com; a=openpgp; fpr=E663000EAC1DECCD6AD2890DB3BBF8A113A05168 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240816_011933_413529_BF324460 X-CRM114-Status: GOOD ( 12.32 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add a subnode to the MAX77693 MFD for the MUIC and connect the USB connector node to the charger to allow for charger type/OTG cable detection. Tested-by: Henrik Grimler Signed-off-by: Artur Weber --- arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi b/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi index 3c905bfedd96..7309b4e1cc3d 100644 --- a/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi +++ b/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi @@ -157,6 +157,17 @@ charger_reg: CHARGER { }; }; + muic { + compatible = "maxim,max77693-muic"; + + usb_conn: connector { + compatible = "samsung,usb-connector-11pin", + "usb-b-connector"; + label = "micro-USB"; + type = "micro"; + }; + }; + charger { compatible = "maxim,max77693-charger"; monitored-battery = <&battery>; @@ -166,6 +177,8 @@ charger { maxim,thermal-regulation-celsius = <100>; maxim,battery-overcurrent-microamp = <3500000>; maxim,charge-input-threshold-microvolt = <4300000>; + + maxim,usb-connector = <&usb_conn>; }; }; };