From patchwork Thu May 30 08:56:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 13679981 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 60119C25B74 for ; Thu, 30 May 2024 08:57:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :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=8mOFxRUJ2VZ0BhAO+i6vbk0LTO1Yl0uSZ8+0cgp4CmI=; b=QGt2jlfGBUX9X9 zdRMT8j26x8A0GFQqZdgCvJPghu5hqkfhiQyCcXPeawJ5SLDhok1lToWe6GNUFsAz8v5o7iXDpTr/ HNfXCNEIKo58CfI6Xw0NmB3iCvZfQXYtOHhs/ctmA4gSYbhZV7wN4mIRTOUHzPU4EIA3diG9UpLI9 3N2Tba+W+Wz/EJknYRf02+dz6c0NEvC/N72hKBw4AzyJ+MS1pIl4LL96sjas5DlfvP49C02tDD60y 4Au9/A+TW3LEeEEnixC0yzl95gYfgdy6VurbdowdadPdX0OqTiBnJ9ljNile9AjkevK8KA0jkka5L KDz9eVyLFUJ6+skZArmQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCbbT-00000006iBz-3TD2; Thu, 30 May 2024 08:57:43 +0000 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCbaU-00000006hdD-3qNe for linux-arm-kernel@lists.infradead.org; Thu, 30 May 2024 08:56:45 +0000 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a59cc765c29so50269066b.3 for ; Thu, 30 May 2024 01:56:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717059401; x=1717664201; 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=a/bTfxUDpLBsxqobZuUMzQ5F6E7SsMJqv3Sv+i++EIs=; b=dcDZYJmvnjD1THbNZn/7C2rfs4uPQqbB10UhJk9h0J1YSqfYBOvWD8atrWh9ds3YI7 OEQ3AD4HQ8MZvz/S2Jg629XUpCD1VaeU3gpf4YXCfRi++if3uj5J/C+99yZx1CEYau0T t2n7EsdibC5SGVAKlyGxn9MXtrP3u09dhdXopflo8koS7VKclWFsb5ypnP+xJvqTxq9t fMxG9/BRLgzou4bAMgMNNXd94XvkCjgmIKe0Q4ZA+09+un7CJlUnxg4hmSd59DxaWsW+ YaIAmJ2WWP5gKsbwVQI2cAfDD9xMOba57jg5J0lwGWs1lUe3BHPAmzb0OXhigatgelzh 7tbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717059401; x=1717664201; 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=a/bTfxUDpLBsxqobZuUMzQ5F6E7SsMJqv3Sv+i++EIs=; b=DGmDN8wEjnEUdR0xbSL9jeJ4vxVfuKAFdZsmqQn4Na2Bs6PtqSsYJb3dcovSXo9yPM An5BfWI1ij6GLF5YCATLE2VgHOTdn4W3EVSCerpVDj1oHoxtKF1tk+TywlgZFt95DjNQ ZAx+xSEYAZG+BfWwdQ4AK4K8qKaJHN+sIqKogVvC74+Egk+lmzhIlAziylMaaC9iZVZC ofHZLPtWuYjQRWP25wPiQa3Lz97d/8TDkS+Pmkm3OB/a383m//h1auT6nqcWDv50942D 7jX2/cPQ5UbGh2V7r3qg8MMoBVm6BDCueO+KTwGrQu2wWUJWR531ymZ9faD849Nd0hZ1 FmcA== X-Forwarded-Encrypted: i=1; AJvYcCUPxugvR2yD0kuNZ3UiI8rMfsT/3ed8mzCBwLm3FcJrnKTdHMDlwQUmdqbR2JQ9IKa4y6dhZvOfCWp5mC+hTUXbwlgPPc+Jklt/rH9R0m8EPNyPstA= X-Gm-Message-State: AOJu0YwLq4abb0WXGO2GWsX0YrB6HohgkhZJ9ehbYLWXh+ECCIvADJGq iM2n+h9mQoN9HCir7iH05PIbtIDgIYY7MzodC6vTngQWrgiZPw5m X-Google-Smtp-Source: AGHT+IG573BZMS5XVV6j5fgOeiWkxgpjXNFMSLM5231icRj+AWqiNBcvUSNKCU/IRhzaVgsi5S3G1g== X-Received: by 2002:a17:906:4087:b0:a5a:896e:d0b4 with SMTP id a640c23a62f3a-a65e8e5d2e3mr98732566b.26.1717059400816; Thu, 30 May 2024 01:56:40 -0700 (PDT) Received: from hex.my.domain (83.8.128.191.ipv4.supernova.orange.pl. [83.8.128.191]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a626cc500a1sm798430166b.125.2024.05.30.01.56.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 01:56:40 -0700 (PDT) From: Artur Weber Date: Thu, 30 May 2024 10:56:01 +0200 Subject: [PATCH RFC 11/11] ARM: dts: samsung: exynos4212-tab3: Add USB connector node MIME-Version: 1.0 Message-Id: <20240530-max77693-charger-extcon-v1-11-dc2a9e5bdf30@gmail.com> References: <20240530-max77693-charger-extcon-v1-0-dc2a9e5bdf30@gmail.com> In-Reply-To: <20240530-max77693-charger-extcon-v1-0-dc2a9e5bdf30@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.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1717059384; l=1216; i=aweber.kernel@gmail.com; s=20231030; h=from:subject:message-id; bh=fjOh0MJjj/plDrKA9K0KZ/bX8+GSDBRzqIWJ4jir1Tw=; b=iWckinN8kfDKXZyUp93fjpuNF22RQGJf7qyhBbbG9wnGN5Ei88ykYtNMZdQQU+5qTudvzUHn/ E8JEI13qHidDkix15SP7eOCW4aOpuH5PjY/ei03qHHTzr6K9AX3aMG+ X-Developer-Key: i=aweber.kernel@gmail.com; a=ed25519; pk=RhDBfWbJEHqDibXbhNEBAnc9FMkyznGxX/hwfhL8bv8= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240530_015644_100721_B3DDCF41 X-CRM114-Status: GOOD ( 12.10 ) 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. 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 b13c135bd944..2e7f7e8f6c3b 100644 --- a/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi +++ b/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi @@ -151,6 +151,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"; @@ -160,6 +171,8 @@ charger { maxim,battery-overcurrent-microamp = <3500000>; maxim,fast-charge-current-microamp = <1800000>; maxim,charge-input-threshold-microvolt = <4300000>; + + maxim,usb-connector = <&usb_conn>; }; }; };