Message ID | 20240121-msm8976-dt-v2-1-7b186a02dc72@somainline.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-32216-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp2265266dyb; Sun, 21 Jan 2024 14:43:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IEp3ZBfI+4q0tuMJNPv3A5Ey3zedwOpssu+DCtxm2V6dmcfS8wNR1jVkD+QPVcZ2WWTGRJu X-Received: by 2002:a05:600c:45c5:b0:40e:52d7:a951 with SMTP id s5-20020a05600c45c500b0040e52d7a951mr1297269wmo.244.1705876980499; Sun, 21 Jan 2024 14:43:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705876980; cv=pass; d=google.com; s=arc-20160816; b=FWY/2X041Is4Zb82h9DJCK6ZxLFJsaaVXF4vc8cqpsFQsi8N6HYImOG9HxFvHAI2fv TLRpylHxpOsVA1eJ7OCvLb3Sab5jaNEHfYphIa6EWcEP+THaIHQI5fE+a5o4MKX4//Gf VDufJr2BV64a+tyW+SNGnHW991BjST7UrONKHKciMkpQCGPgAq8Zo+UPPsKv7b3yTv9p bZMPgrQNMmp4dDRJD7B/a2rPfn+CRMh3RNJPEtvGbXTpzNj/oHC/cbDlUEH1ZdnaaDvR 8hAY/5wf9s81gjmGx4UxosVD4WEDtapt2capWSXBNQ0X6DrZ/EZKXxmm1e5NJMA+ZuoT PXkg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from; bh=gHIgJlLFZirWHoF84rjiFuNTuyEDRjwOQSvTXcDniMk=; fh=gyQ+468lTOuRNBtkqerqTuKvvguTTOfYUz/OQb7wqjU=; b=EBvCUnF5a4ilk+dzgUK4jIW3C32EiM0ZMHqRrJKqiefTAJY+jx+YKnxeXqryZ45viu +bMWXrzBYs//XahvGqehTVH6/lO/hrvS5xnejjAQRSVFHb+owG9UY1+EAErHR0dpy9wK MW0AJEUCgGCmx+C7cUv1SR030caUOLgLKo7blKkW1TwS0FyTEsnE6wpe76LV40pgj7PB Yyzj8K2DEkKpHs7XAfBrWTEgr3fgPniX7B9Zxrg8HnorPm5yjkWe8EHiUmh4OqE8Voxj JwtVaTQ1HCFXp2xIqkFJLLvN5DQ+f9WoTcjPj9Z9r0z3PEprARZC8MRdQi6OU0yeWDMJ YCtA== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=somainline.org); spf=pass (google.com: domain of linux-kernel+bounces-32216-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32216-ouuuleilei=gmail.com@vger.kernel.org" Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id x6-20020a05640226c600b0055c104274f7si1291929edd.82.2024.01.21.14.43.00 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 14:43:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32216-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=somainline.org); spf=pass (google.com: domain of linux-kernel+bounces-32216-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32216-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 23F021F21912 for <ouuuleilei@gmail.com>; Sun, 21 Jan 2024 22:43:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 61C0339FC5; Sun, 21 Jan 2024 22:41:45 +0000 (UTC) Received: from relay03.th.seeweb.it (relay03.th.seeweb.it [5.144.164.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 99C0E383A7 for <linux-kernel@vger.kernel.org>; Sun, 21 Jan 2024 22:41:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.144.164.164 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705876903; cv=none; b=jkyKWE2tOIixlZWs7DgrAk6yOw+yE/cEpoeGi9EweJuJNg7bKA4jupXoGU8zwF8enKryISiBuoPgaaQjlfQyucvgMdrS2F/45ctKnojQomYS9ozKzv2K6g90vkQiHJdFNFYKVCU1wXL8y3DRw9ZmQHwwxhV9p8ctcZNubI5r9w0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705876903; c=relaxed/simple; bh=v0gMRoyQDCC1TKIVZdeJRib9E5iuXMlTlBxUT/A1zTQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZG9JZ7Eo1o5fB4+vffTLv4+iSSIGBJTVTvT2TCLtmCwJ8Cf15UFjtVvZuuZ0UQXAUTV42ObQ8CQaI7Y0DtlVMEfm1k6LqozTdwnjOVLvsahy7V03SBZefYNuzFXFg832PiejO4cD4/asnzoAPkAWJJdsMQI2zAQSVdyKnirIsXw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=somainline.org; spf=pass smtp.mailfrom=somainline.org; arc=none smtp.client-ip=5.144.164.164 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=somainline.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=somainline.org Received: from Marijn-Arch-PC.localdomain (94-211-6-86.cable.dynamic.v4.ziggo.nl [94.211.6.86]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 24B0020332; Sun, 21 Jan 2024 23:33:40 +0100 (CET) From: Marijn Suijten <marijn.suijten@somainline.org> Date: Sun, 21 Jan 2024 23:33:38 +0100 Subject: [PATCH v2 1/6] arm64: dts: qcom: pmi8950: Add USB vbus and id sensing nodes Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240121-msm8976-dt-v2-1-7b186a02dc72@somainline.org> References: <20240121-msm8976-dt-v2-0-7b186a02dc72@somainline.org> In-Reply-To: <20240121-msm8976-dt-v2-0-7b186a02dc72@somainline.org> To: Bjorn Andersson <andersson@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org> Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Luca Weiss <luca@z3ntu.xyz>, Adam Skladowski <a39.skl@gmail.com>, Konrad Dybcio <konrad.dybcio@linaro.org>, Martin Botka <martin.botka@somainline.org>, Jami Kettunen <jami.kettunen@somainline.org>, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Marijn Suijten <marijn.suijten@somainline.org>, AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org> X-Mailer: b4 0.12.4 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788741660653569241 X-GMAIL-MSGID: 1788741660653569241 |
Series |
arm64: dts: qcom: msm8956-loire: SDCard and USB support
|
|
Commit Message
Marijn Suijten
Jan. 21, 2024, 10:33 p.m. UTC
USB sensing is performed on the PMIC, exposed as extcon nodes for use in the relevant USB (otg) driver nodes as the hardware itself is not able to sense USB presence (5V vbus) nor the role (ID pin). Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org> --- arch/arm64/boot/dts/qcom/pmi8950.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
Comments
On 21.01.2024 23:33, Marijn Suijten wrote: > USB sensing is performed on the PMIC, exposed as extcon nodes for use in > the relevant USB (otg) driver nodes as the hardware itself is not able > to sense USB presence (5V vbus) nor the role (ID pin). > > Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org> > Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org> > --- I hope the USB_ID thing won't mess with a possible future charger impl Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Konrad
diff --git a/arch/arm64/boot/dts/qcom/pmi8950.dtsi b/arch/arm64/boot/dts/qcom/pmi8950.dtsi index 1029f3b1bb9a..49e97ebdbb3c 100644 --- a/arch/arm64/boot/dts/qcom/pmi8950.dtsi +++ b/arch/arm64/boot/dts/qcom/pmi8950.dtsi @@ -12,6 +12,20 @@ pmic@2 { #address-cells = <1>; #size-cells = <0>; + pmi8950_usb_id: usb-id@1100 { + compatible = "qcom,pm8941-misc"; + reg = <0x1100>; + interrupts = <0x2 0x11 0x3 IRQ_TYPE_NONE>; + interrupt-names = "usb_id"; + }; + + pmi8950_usb_vbus: usb-detect@1300 { + compatible = "qcom,pm8941-misc"; + reg = <0x1300>; + interrupts = <0x2 0x13 0x2 IRQ_TYPE_NONE>; + interrupt-names = "usb_vbus"; + }; + pmi8950_vadc: adc@3100 { compatible = "qcom,spmi-vadc"; reg = <0x3100>;