Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp2992rdb; Sun, 21 Jan 2024 14:42:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IHfCO5b6qhif7ZC2rYEM8lNQ/Hfos9Fips4RpDCmB40mrXtrOhHZi7qfqjfOB26IEq8j15I X-Received: by 2002:a05:600c:468b:b0:40e:490f:a5c2 with SMTP id p11-20020a05600c468b00b0040e490fa5c2mr1251431wmo.31.1705876936947; Sun, 21 Jan 2024 14:42:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705876936; cv=pass; d=google.com; s=arc-20160816; b=I8rgg01Zij7PDUEzqEmMmAR82AJy4oleK3HBkuAwdO5FbYeQh7jePM8CLhTTtvCAPd gatqnvQgkt6uEhMmVwAsdcarXopfUWfQVJX2phF7BoZDFHHa6gv9hdATXRK18xfIOpT6 pufvjUqRxXbjpRJIMMPYtLV5cOvwo1zsvc743QxpEFJbzz/VgBRZqgLkNUjgGVquy0Z9 fs45g54BwsPKK13fHWXR3NfUjB/0J2k+ZyYGwmxgBg19p5UKnwJMBnhOCrFUKgaM5gts CcaZzwZHxWaLg0SqR808XXXln222/TUMfxyXNRtZ+Jvxkf0dgO5xp7EZc1EQ8kBv3KK2 e6Cg== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32216-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id fj8-20020a0564022b8800b00559cd2878cdsi5315152edb.14.2024.01.21.14.42.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 14:42:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32216-linux.lists.archive=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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32216-linux.lists.archive=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 B03A81F21108 for ; Sun, 21 Jan 2024 22:42:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C3A03986C; Sun, 21 Jan 2024 22:41:44 +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 ; 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 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: List-Subscribe: List-Unsubscribe: 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 , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Luca Weiss , Adam Skladowski , Konrad Dybcio , Martin Botka , Jami Kettunen , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Marijn Suijten , AngeloGioacchino Del Regno X-Mailer: b4 0.12.4 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 Reviewed-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/qcom/pmi8950.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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>; -- 2.43.0