From patchwork Mon Jul 29 17:47:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 13745513 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 5B71EC3DA4A for ; Mon, 29 Jul 2024 17:49:14 +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=q8A9U9U2zXyxIhJ8IYiTm4hZOre3ql1iZbJoL53+qxY=; b=tQLXx+XTUQDHLKdC5j3dy7UPH8 uqY7DG3E9xgbqXQ8CnD89x8jSSH48VUyUXbZT88z2T/Rn1D7z7l518Cx0w7GZIgs9oLWz5bMNTdPy GACM3z9/mg/YPHwbnsG+KiGEyVOMPEc/NNycQyAqLLBUNNMJHQ06/GOFSm+wly950B7uo/Y4HUv76 CopBY1iqVAXvEfGiTw6klo5CyW8I9eWr08Xr/A9ij3LKVFePebtGDlisPn4NTui9BCCUx8F9mMBcr MiMQKrRH4wYB7+btCrvOs1sQ7WFMlmOdlxK+R48LT7W0RuZSqn3GLH0SzBFaovpZ5P7hy+OOqqhCC VHgQpu5A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYUUb-0000000CFaS-35pi; Mon, 29 Jul 2024 17:49:05 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYUTQ-0000000CFDe-1TqP for linux-arm-kernel@lists.infradead.org; Mon, 29 Jul 2024 17:47:53 +0000 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-4266dc7591fso17748025e9.0 for ; Mon, 29 Jul 2024 10:47:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722275271; x=1722880071; 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=q8A9U9U2zXyxIhJ8IYiTm4hZOre3ql1iZbJoL53+qxY=; b=Qt1mLj02BOok5Z5x8f53nErdgjxWA9Syd5Gt7vlIWs2G/GHtsdspFA6RcYdCtRjE6c TXdS1SGepwxzaMSnnlJB9Fxay7qeZJKbRDUZkENpto8Fog0lPhBp5cQ6z6xO2LkzQjYZ KuEY+k1VXM/6kcqiUU8Uw40YeqNh5ZxtPMLFCOMmtZb7fq55RMeMHfbEYBYEZ0Ajumz3 AEhCzLDYO9FIRZZ6jxS2dzjetzxSQayDpfBqUf8kB9xPcZDnfHCmgF2FVmqiwvm9gmcM RfXJ9yOmVjgLT03GjLdIFr6qRqov1oDBgPCWdP89jd0o8xbQ6W8xm0ndvZIV6f1B/gjK w2+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722275271; x=1722880071; 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=q8A9U9U2zXyxIhJ8IYiTm4hZOre3ql1iZbJoL53+qxY=; b=fmFnRhFI74MBzRMEeYTtAtFTOCRF3oI0RPfng4Rf/LWOVlG27Kh0p3TlLWfsAIFgcw uXXQ5UHoduKlQjnZpqw1HNHiGVHce47g6ghxN7+BF4ipg1sWWzglMWBF3TwH1M+oGW3/ wEM0GdIjBdjaLRjCmomsRVkxJGEspdeFlkiBOKvOtdIZ5Fh82CKmnxExOmnaV6QWavM0 tA25hwNZkxaixn6+99kZBJ+sN4/vOh9sgubqUVKwJmmSRQ+VMxFs9l8FEheS+5kaOe/o 1AwlzHEvt84lnNRvs87eMsuroCPXApURWMJfXw/Dwu/IYc9y6MFTzScMKNsEhr1fD1gC S+wA== X-Forwarded-Encrypted: i=1; AJvYcCVigBtWKRnAXpuuOcyzUAgSmjwjKSGu9L7SiKdtuxoSZK3sp2lPDFQ/tyA9FP+3CooEE0t6+vcdEkRmIJDyz+FQiMltY74Ghk8zCfA1WCpakr7UhzQ= X-Gm-Message-State: AOJu0Yz1AD8yx7GC8gPfA0LvDsg/l/n4C2SEaqHyFod6M1rfOemhE/h1 K6JMgHa0V1UIMV9Rf272s3jNLQGvqw2uiKHTwIPwp2AkeeeDkU3zOl1+Nw== X-Google-Smtp-Source: AGHT+IHPnUSYUUKoKD1giWKdNsD6VWlt+JEHo0COx0IE3UNhdpfTFufcmAo/Dq8KAy3Q7SNPCquEfA== X-Received: by 2002:a05:6000:1187:b0:367:9b22:28cb with SMTP id ffacd0b85a97d-36b5d0cd7fcmr5073453f8f.59.1722275270802; Mon, 29 Jul 2024 10:47:50 -0700 (PDT) Received: from tablet.my.domain ([37.30.0.99]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36b367fc8a7sm12716550f8f.59.2024.07.29.10.47.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jul 2024 10:47:50 -0700 (PDT) From: Artur Weber Date: Mon, 29 Jul 2024 19:47:36 +0200 Subject: [PATCH v3 02/10] dt-bindings: power: supply: max77693: Add maxim,usb-connector property MIME-Version: 1.0 Message-Id: <20240729-max77693-charger-extcon-v3-2-02315a6869d4@gmail.com> References: <20240729-max77693-charger-extcon-v3-0-02315a6869d4@gmail.com> In-Reply-To: <20240729-max77693-charger-extcon-v3-0-02315a6869d4@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 , Krzysztof Kozlowski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1130; i=aweber.kernel@gmail.com; h=from:subject:message-id; bh=yzTgncn3XdYXI4m/F4375wxDu8sKiX7IBaYFauYToLo=; b=owEBbQKS/ZANAwAKAbO7+KEToFFoAcsmYgBmp9W+sawbz8cJ5RE6MNrwl6jBilwZCozFV9tWJ UhRapd0AtSJAjMEAAEKAB0WIQTmYwAOrB3szWrSiQ2zu/ihE6BRaAUCZqfVvgAKCRCzu/ihE6BR aLXqD/9tfY6O+3BaP1LQ5Y1zm9dJLXER6C0JByIsD7IiDknaYifkHoUQgeCtx+xOYkUv6EkH/Jd u0glo9QAhhR33VMkoHNaJmO6ZXxwEpvabNWr8HvAeD+xoKVCjzoURPElsTtJkQPSD7W8Aw0Fz+6 NHxC/xitsseduCLoi+smFnVSFTc/YdmCxCFKJaIvFFKeWlD9i5hC5vh4U0bgxTWB+1NCRPJZmTE lE4ZoQi86w3PjCAFJ2iK1N4RKTtYcGZzMl5P5ijkJz2mYhEXJ/bqrv7UyBdc95AtUC6ymPqRyND 0+17UT8xFVVWp/Di+3JQiaSQBMUoScQBcJunU/OMra2gN+lneZHooOkm5eBgR/YGcUGhJdDyzjl NPB5w9oOtQo89mDsQqiIZzqbzC3mvQW4LGPW4ssdoCVnkyH9dM57Fn66njrf9eQSbmVjTACCFKB lGaatkEadZOPSr8M6aQ9V3svNQz+Rzd3bTpx4XGLbfS9DqoGupLI416BtGe76CL7p12ojxmxa1J /l3bjbIDnPCc7kzW2ZjF+UrT62gekq3NuccuMje3tlLjvNDwsH7LDYQYFKkJbT06ZT05pZuk6en 9pYe8uBO0ydaffRAR4M8jD0OqjGI9p/QVN0xSaIFKmDbJNV5rIy8vm0/B80NlANNPU/H3s91Ves 4OUXGKYFzxD4nnQ== 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-20240729_104752_440228_2564AFC3 X-CRM114-Status: UNSURE ( 9.73 ) X-CRM114-Notice: Please train this message. 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 Allow for specifying a USB connector to use for charger type/OTG cable detection. The way this is done is inspired by the rt5033-charger implementation. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Artur Weber --- Documentation/devicetree/bindings/power/supply/maxim,max77693.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/power/supply/maxim,max77693.yaml b/Documentation/devicetree/bindings/power/supply/maxim,max77693.yaml index 2f4437dafdc0..b70c171bd4b9 100644 --- a/Documentation/devicetree/bindings/power/supply/maxim,max77693.yaml +++ b/Documentation/devicetree/bindings/power/supply/maxim,max77693.yaml @@ -73,6 +73,12 @@ properties: enum: [4300000, 4700000, 4800000, 4900000] default: 4300000 + maxim,usb-connector: + $ref: /schemas/types.yaml#/definitions/phandle + description: + USB connector to use for charger type/OTG cable detection. Phandle + to a USB connector according to usb-connector.yaml. + required: - compatible