From patchwork Fri Aug 16 08:19:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 13765685 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 EEC67C531DC for ; Fri, 16 Aug 2024 08:21:28 +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=i5GGelLjYWwSvPbwd1YOlnT/u3Ig9vn8D+D3f7YMN/w=; b=48kiAdSN6GHJoqHkohGUBLGWr6 26lBY0xDLxBA+dXXslrlSMEaE3bqrAYUPLNh5Lcf19kbkiuJ/FkB/4Aiudi9cL4Lgvw4D6W2Qbz7o q1FAc5GXaIsbJ8zJjtIxOJP5zxVtUzcV414U6sBiPFQSiI7mO0iO4vWFFp0+5mYltEvwlZ3XDyFhu HSyW2WuRvk5mEqEFfU9YUw7po4TQvP3ZfR4IpruxBa/LvPetT5zBPVP+VG73bume417a5B7agPhCL iziB4H0WtDhj2eyreaJjWSAMZe58e350ffjsvx4mTLj11a4UE6KIy+r+owB8BW0AeWz2Za9rn/Nsh DfnLWOFw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sesD2-0000000CFY6-0kxx; Fri, 16 Aug 2024 08:21:20 +0000 Received: from mail-wm1-f48.google.com ([209.85.128.48]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sesB5-0000000CEys-1u0M for linux-arm-kernel@lists.infradead.org; Fri, 16 Aug 2024 08:19:20 +0000 Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-428141be2ddso11552885e9.2 for ; Fri, 16 Aug 2024 01:19:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723796357; x=1724401157; 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=i5GGelLjYWwSvPbwd1YOlnT/u3Ig9vn8D+D3f7YMN/w=; b=OmCbg9ZYQcDxWlruaAf7axYbd0MwyfgHH2nZ65PqahsouUR6tEH7sz/KXB7R2aOyZg hj4SMmbz+xWpWWSVAIHg1+StWgw3q/Sg4ZKcz6YMVXzSY1HUXSdwHNSVh41kmd4BRQKi 4WPwghX2+jIGRDMxgIRs38CT23p9eUP3lb/bgD/iZM5gJunHvHMoZe36PQoYmUXGfftO sj3tdfOCbBgDqiVVMC7qL6+4UEM+hkk94F59EOJM1Nwe4ubZx6Hy1C2sPwV03vwjhKyY 3ywfdBG6YmPMwsqFBRVZUGC+lU/JD5br6AKjTJxR4qDMKchuU4g23JyVfFQKtX3aGuQL 3qng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723796357; x=1724401157; 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=i5GGelLjYWwSvPbwd1YOlnT/u3Ig9vn8D+D3f7YMN/w=; b=HzKWFOMkuAvjGeA2e7HahCELCV3wC4sASj8HqKPxiSxE0dB1n83oU57GWF3RmmAJhy jZXbj4tnSzjHB8Dh4U508pNhS7peTVBVgXcXxoyksyeks/RLCwNyj3XhK0aSOhrBEIj9 fY7duq/1lkXu7i8D+mzRkKH2XG8LD+TmDfEpBCm98ZkIae7VwBTJNs828mrT8MprnWL8 144x+cRQsmdU422FOmQviNTbqgqHMOeG9vbDScK/4Rb9ANmDPMa8ENYJYgj1cA1IjcAh tIevRAMHRJ1Y9fjZiPUImOPCiqHcTdAXYoJGJ6udji/Q4csXZKn/ZAOgeA/hmYje8Rsl +1/A== X-Forwarded-Encrypted: i=1; AJvYcCX5uv+5nl8krwO3juNzVpz2GLdukHjRRBf3A8wsgP/jRQGkvGfp52IhOyBK6cEw0R+bh7kK5Ny2wpibS6vJjf1npYTViXyKcK35BO9t7wkrjGffgaM= X-Gm-Message-State: AOJu0YwgJ9nOrHXvstcVpIeHYBwxzb8og2qaJKJsFv6PAVOeTu19iQqO LQBVRDA6S4n+CmLCiRiFdxYDY/g6mMGjUPW9WYfQC/TOQ1towYg8 X-Google-Smtp-Source: AGHT+IG+Uz/T5oTdVQui1Mq2wyi/zZtWBpLViG8h7lZW49iHDcyaQtP7H3xLp1xh2IZsa0WBRX1u7A== X-Received: by 2002:a05:600c:470a:b0:428:3b5:816b with SMTP id 5b1f17b1804b1-429ed785f71mr11868585e9.3.1723796357298; Fri, 16 Aug 2024 01:19:17 -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.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Aug 2024 01:19:16 -0700 (PDT) From: Artur Weber Date: Fri, 16 Aug 2024 10:19:08 +0200 Subject: [PATCH v4 02/10] dt-bindings: power: supply: max77693: Add maxim,usb-connector property MIME-Version: 1.0 Message-Id: <20240816-max77693-charger-extcon-v4-2-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 , Krzysztof Kozlowski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1177; i=aweber.kernel@gmail.com; h=from:subject:message-id; bh=oLtK+rl/xh8MKLhG48HPNKV+158PkAGnfAvRTrZidfU=; b=owEBbQKS/ZANAwAKAbO7+KEToFFoAcsmYgBmvwt9+Ha/AoAqXfYc3dWFaQW09z6DS7oTYtY3C y7Bk1Eh+/GJAjMEAAEKAB0WIQTmYwAOrB3szWrSiQ2zu/ihE6BRaAUCZr8LfQAKCRCzu/ihE6BR aLbGD/9ytkW76lJ1Y7PNFfIEcx6RH2wKgUqiNbsDfsbHinrY/kozgUOSEKfCTr+HZ9BWSsS+H8s tavLYd+CwYoof3p64J90xQI9+XCWJ1sX3ICvkjtxIRP1mJfDa+hWZ9eyIGUuNHRoGOKiF2eWBva DLzkqq8HbQX3p8oGjAMKiHpKMAjvAzyVaxgppnmrKcgJCW25A2JEC4Fzmo2qtPpwBd6I4Nl3sqr dud6O+x8QqifYgQo2OmROqAalbg9nBT2m66uyhqWJgnhKiWeWeh7SI/+xHNxpRHDWo8XyuQNVnD bRJ7vK4otQmVmer807sptQVk34GFzzi5DiMdeeyr3K1OlvZ4RpFjCj31/V+/eEBm6/+PHwcGfsY c4ilvB7SSHr2Fah/unnXj0g0gdq0GcAPRF/qM4ph1qNyn0dDpLZ93O98CzUzUSNBOOgt0Vn8wRW 3Dy3rscTo6cjoNXkYqQnFB/BvCSIdXyVeHRZ0PgeJ8wid3AZwH2ueClPInXcRvKlGSiF3bdHWeT 1aILGfsrr2Oxnso3aACavX8q+mpnwZfepOWFVmGHm6/NYFzzrjRSZIzyLizm46n68aMPHkbOjUE S6hLSwYhdIG1XhcVaKITS3rJaM2f3s3YZmLTSifS4zQdZDkaEh2cz8xMwyB0Vjdze3pWr0zU9kR otFxrpN+LOjxwcw== 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_011919_533581_0536F120 X-CRM114-Status: UNSURE ( 9.68 ) 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 Tested-by: Henrik Grimler 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