From patchwork Mon Jul 15 12:55:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 13733495 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 DA196C3DA4B for ; Mon, 15 Jul 2024 12:56: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=eGuQaKvthqNvOI+/BVZ1qQqCmj4BP1waMYjE3zo8K2s=; b=dhV77MOYhJeQMWyjeyAhNwEk2+ c8BpHU9eUxwMV/OToVw3bJHN8FEmVfdyfn95iTDHsuS148thuiXvM8YQ21BT5qiXtmWyavfYl+6fl tbOu9erZYft3K+IaWkh18I9NIhotIA+eWKI8YIcUfO1LfgijwgynYwUThecmJRwUtRn4zzSzWP6j+ kQ7/lVrO06QLC2ZC/NJP1BbVOP8CTvyj9BOyf20OuYl9qrKXZczC+OeTZQyhlDTcdguNIILRVErb5 oKLIwMBImsarBK2TuZSjjsflSNKmOJxLuJc6LZiPxiX92lzrTZL4FcGba5B1kmIfLk9C2qbCquw+O ho4x6yag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTLFN-000000076jx-2V2C; Mon, 15 Jul 2024 12:56:05 +0000 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTLEa-000000076RO-1ZpI for linux-arm-kernel@lists.infradead.org; Mon, 15 Jul 2024 12:55:17 +0000 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-58d24201934so220790a12.0 for ; Mon, 15 Jul 2024 05:55:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721048114; x=1721652914; 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=eGuQaKvthqNvOI+/BVZ1qQqCmj4BP1waMYjE3zo8K2s=; b=Mbm7nqzpTfj4bR9gimv7lL1rpKRqpzbc5TLHxy2M+xJwClVdekOTUfx1sgj5V/Aixt ADvv0gGUkq0aq8QaBhRnATZkTO4EUBthtGMZ0uJorTgQSXx35oZnKfSCjlWQF4H866Rm YzoVIXV8OaURvGzhVgtB/1j7UJFU552mJ9a4n1A5vwEKizUUNejUUrDCSYYkW0DT0DBO 91pNusG4w0N0gOBn1+mhjF2Skzeh2pp1Px3akok11sm6MXicZ7K7z5zm1CJzLBS5hEN7 4Vdy6bWMTFUASmZheAgJZ+rR8FgdSuozdMjP57+WPm5MkeiRibAlHVhUfRGH97cgrCX4 0YaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721048114; x=1721652914; 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=eGuQaKvthqNvOI+/BVZ1qQqCmj4BP1waMYjE3zo8K2s=; b=FiefCtfRKKFM1v3xEXsb1BPvBxWMWzctHbnAQALLl9kyfPcHZ7B3hCDH5DwrrCFeEd GWn7v1vxUZ/r/jSnQZAN/EqNo9fUi/5QnAz77OLaW4qMGCQXV7VbXjzQjG2T4VM0NVfX XKAjSbEbLH51JEhbt247VRnnVJpYmcPAafok9lzdwsJKufUgXVn/gBo5EU0upSto4Vmr VMq0eU6S0rdeUBegyI9vD0hjLdjL7+03EaG2SmgM/NViRmvHn/RLUCJAF7dxd8lIQz0p oDa+gxXwzlGRkLS8qqLnklVKyK+yFkpJ5KtceczQjldlRpOkChkJdwqYrq3z9B9ZzvhT m6RA== X-Forwarded-Encrypted: i=1; AJvYcCUJK93WzHHZe6GpZL95Yz7RoWsiF+rVI1JwDFABIYm1XpAWgoClxD3y7IiK85rgKtVZkFIMReZc4QXUEzMqjC8sxuvXH6Gnfq5/lemILczvhV0tB9E= X-Gm-Message-State: AOJu0YwZlQhpE+mTM7xmhKbOxMCjbXspHNNxvmHc1OOjSosx/P5ToYUt 3/WzJuiIdUX5XBjwxUOQGzvdf4OXckeFnWSDi+Cn8OBjtcjgzrlU X-Google-Smtp-Source: AGHT+IF13yLztEYtO3ThN8vyYl93/m4din/5EPKTD6UXsAFnvdhgrZPhA9eeq1XL21Cu8GDzVWSlJw== X-Received: by 2002:a50:ccd1:0:b0:57d:3df:ba2d with SMTP id 4fb4d7f45d1cf-59a71454331mr6318170a12.2.1721048114285; Mon, 15 Jul 2024 05:55:14 -0700 (PDT) Received: from tablet.my.domain (ip-37-248-157-210.multi.internet.cyfrowypolsat.pl. [37.248.157.210]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-59b26f62165sm3333307a12.87.2024.07.15.05.55.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jul 2024 05:55:13 -0700 (PDT) From: Artur Weber Date: Mon, 15 Jul 2024 14:55:04 +0200 Subject: [PATCH v2 2/9] dt-bindings: power: supply: max77693: Add maxim,usb-connector property MIME-Version: 1.0 Message-Id: <20240715-max77693-charger-extcon-v2-2-0838ffbb18c3@gmail.com> References: <20240715-max77693-charger-extcon-v2-0-0838ffbb18c3@gmail.com> In-Reply-To: <20240715-max77693-charger-extcon-v2-0-0838ffbb18c3@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=openpgp-sha256; l=1063; i=aweber.kernel@gmail.com; h=from:subject:message-id; bh=UswaxFgNYGhQxO8i3hDmSgr/CcfH6MewnSR60PWmTJA=; b=owEBbQKS/ZANAwAKAbO7+KEToFFoAcsmYgBmlRwp6OhrSlHrko5KiBUj7b51bE1zw8tFe6qng QWh1+Lw2OKJAjMEAAEKAB0WIQTmYwAOrB3szWrSiQ2zu/ihE6BRaAUCZpUcKQAKCRCzu/ihE6BR aHigEACEj26TJHPcn6IEXY48/4k+ESHRoKR+3480pvLlXXKJQGt16YcfuChAKdYqUYtGo9Vr306 eklbsSUah/1GgSqBzCRD3UV1bFMyKMPA1k1KJIbz7/WHXah5wjo2g5ScP4+kt3mixKtd2N6DAnm 4R1GR5nrZ19SYOzjax9M2FpZmPf3Ql+H2qx+q3GuCnJqC1eTE4ewnYvFWKKsW5qpsvgUiG5GhAE KH6aCTz+YuIeMx1L4TMtveMPW51JEFTJDuwP1nNb68v2vV0t0FSWMHGVLRQRg+b64kXog1hm9fg g3fW3PF05hf6RaAz0kKERzD1F2VC0/lWhPpXvk36oHacyXxljXQl6dRZ/7pWRTc6ppJQW0GnH0H ep6dgNVULP36kORX44a7nPcegyzQJsNt76aLCzFbjGXV/Bt12VOkZP/cEiu55TfT1moN5C8j62F /Zm8nlCujXp678QpsoqkgjwJirdmsrSL0pZWSvm4jOm3fZDq09X5Vi7CPm+Hgarp5REazgOUOFj D7y8kfQ09t1BNukkcK2yI28MhlG2GThj9ZNm8A8E7z/eJPDSHKp/0bkMl53GN74Z6m3JIkKqPZ+ Jc2PDm4WMmF+DNwXmGrjonEWeXv21Mv6AS20sVs3oLNKiFvqtkc9n3FvLX5PmAenh5JxLI5cSIA G8ml3hlQloOqx6A== 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-20240715_055516_477597_8F58F732 X-CRM114-Status: UNSURE ( 9.93 ) 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. 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