Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2179696lqb; Mon, 27 May 2024 10:16:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXraRN536Sud3AbXACtzf71DDbfuHz/BOSuJR2stjeAoCVxt+L+HCYny0IvDAepF2IRR5bOc/JUeh1hakLXKUSgbWbNWHz1sG7ipKHQsw== X-Google-Smtp-Source: AGHT+IEKaJ+ulEBpkZL6oHREb0RxfdpSKvyYU5Vmi792K1UmxzAknFxGTfv5edpDxg5/ZNT6mum3 X-Received: by 2002:a17:906:ae82:b0:a5a:5c98:c594 with SMTP id a640c23a62f3a-a626536a7b1mr620607566b.65.1716830201523; Mon, 27 May 2024 10:16:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716830201; cv=pass; d=google.com; s=arc-20160816; b=TnvvTMmwuWBgxcHeUGjWqTZA7K++t88c8djeijP7/q6mBZIsEOZjc1D72R2AlXqmSe JdRBSCnfFjF0SG+dr9Jf7JU4i0dZOs2hIVmoM39CcmriUWkaUIJOBT7AdFuCw3wrGrPX 1xJ7670yoVb1HmRPIjBcxQspwC2TcFfuea4oTWmFUmnnF8rhQv5DG3UwmD2Z9mPQEAw2 Fz/AnW5S6KsVrG+Wwh0kmyWl7Qsr/CsdQDFYGBvPBw5DAB4s5mgSdisvQ68YbsJb7h31 oyhbXdXvnYi4P23mW2BX9LN5JsL41n0MFAVEPvoGk+S5jLhOudW4vNbEvwTb4vZgHGvi diFA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=TkvDacTToPFGii94C+fP7Pa2v9r97CSsT2wThnxyKXg=; fh=pTYNLLksldzC6Dj4xkphubVlLwGjfoat5j17cMptL10=; b=YvzGAVCwOrGr6G26A32jtUyZynRRLghdHrlFQijWqALilkYrPcp7Pk9pYxGIaA1mSR ibRi8SlSAIvmHT8nppibkb7ewu/micCwsY/wsxR3IeUMwwowqnK0XngC4OP+GsHhL6aK nE5UZKZpvejT+z6nRJK+5/z9+zUY1sjK+JxtgBQ2/2MMf2/5Q0JNgxyWMX6bTxYICIbl dKs4DYmPMSnh/5k2OT8ETNwbdV/Gq7Z6M9cv3I8sVECy/aeVKdjtrjFeLCzBDoKM0pCk o+eoaMYx/e0/y/kmVqvOevw1aJmMqyJbdgp9p0VdeM5sTXOgLIIH0OC5hTKXs1n1om3G A2Jg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uLnDTfTp; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-191285-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191285-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cdd1974si407202866b.954.2024.05.27.10.16.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 10:16:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191285-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uLnDTfTp; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-191285-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191285-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 45C3B1F222C8 for ; Mon, 27 May 2024 17:16:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 89DE615EFBA; Mon, 27 May 2024 17:16:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uLnDTfTp" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A1D2B1DA58; Mon, 27 May 2024 17:16:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716830191; cv=none; b=GOHBQI15s9cAP30Wx8lRKOFb8gYcrocEHcet01ODvLctxNH5BC7OeEd6sQzZCWPhpKM2ifvAm3w0Aw2HkMFJ2oKk48tYeIvf4hz6EnYAPAcXDJjjIpDVMstaWgg7DPYoDCCwokFvQvSIg2yu/4gniIBzjOorcF3J3KGFxUhnhEo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716830191; c=relaxed/simple; bh=EjOc56aRyzKFkw2McUibnXXwAFLZ8zW7DftTuyG0EAQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kjjwvtgF/bPcq+6GG43+YdaM3HleLxOaE3qy5vkTVBn6Pa4ifk7N+2T8r/u+Udex9EdbN3BJXiaJJAQC2HcmWtr6FbJSn88diRwti9nj/7+vmSf1A62ksnQdCTpCfaRtTahZf+bV+gHtq/iQeDQeXcPNL+vWFxZkH+LzuGkq2Pc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uLnDTfTp; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A5CBC2BBFC; Mon, 27 May 2024 17:16:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716830190; bh=EjOc56aRyzKFkw2McUibnXXwAFLZ8zW7DftTuyG0EAQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uLnDTfTpXCpxPpnS1b0p2OW/U4+nez++TEk9DGB62hFkWd0WTYihGnPZW8G0oHuaC 3ACt4pJ0uQl2yYk0yj6m/1bUpbxGxuM9xi8XwV6xF2bzfUOWDW3hgGplgDGOX5BbMn ljGhVezYa4ioJybgoZbd80ptWCBkX0fQTC8x5gtEk7QRdKhq8arHWLzSeJ6BYW/3Xt ZK8hXyZhAkCBjsYPYsnOd9Sh8eQKQXRhaWssWk/rUkeyyJqhTFzH3qG7iMnR7xLkNS qk0qGz2VmviprKrdnfW/xyyzSWiJ63/uRVkXhKtNqASuTWQ6MYlLZPl1kWphF7qI0B o94A0Kk4lU/gg== Date: Mon, 27 May 2024 12:16:27 -0500 From: Bjorn Andersson To: Luca Weiss Cc: Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue Subject: Re: [PATCH v2 2/3] arm64: dts: qcom: pm7250b: Add a TCPM description Message-ID: References: <20240329-fp4-tcpm-v2-0-d7f8cd165355@fairphone.com> <20240329-fp4-tcpm-v2-2-d7f8cd165355@fairphone.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240329-fp4-tcpm-v2-2-d7f8cd165355@fairphone.com> On Fri, Mar 29, 2024 at 01:26:20PM GMT, Luca Weiss wrote: > Type-C port management functionality lives inside of the PMIC block on > pm7250b. > > The Type-C port management logic controls orientation detection, > vbus/vconn sense and to send/receive Type-C Power Domain messages. > pm7250b is found in devices where USB Type-C port management is performed in firmware, presumably using this hardware block. As such, it seems reasonable to leave this node disabled and only enable it on the targets that doesn't do this in firmware. Regards, Bjorn > Reviewed-by: Bryan O'Donoghue > Reviewed-by: Konrad Dybcio > Signed-off-by: Luca Weiss > --- > arch/arm64/boot/dts/qcom/pm7250b.dtsi | 39 +++++++++++++++++++++++++++++++++++ > 1 file changed, 39 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/pm7250b.dtsi b/arch/arm64/boot/dts/qcom/pm7250b.dtsi > index 4faed25a787f..0205c2669093 100644 > --- a/arch/arm64/boot/dts/qcom/pm7250b.dtsi > +++ b/arch/arm64/boot/dts/qcom/pm7250b.dtsi > @@ -51,6 +51,45 @@ pm7250b_vbus: usb-vbus-regulator@1100 { > status = "disabled"; > }; > > + pm7250b_typec: typec@1500 { > + compatible = "qcom,pm7250b-typec", "qcom,pm8150b-typec"; > + reg = <0x1500>, > + <0x1700>; > + interrupts = , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + ; > + interrupt-names = "or-rid-detect-change", > + "vpd-detect", > + "cc-state-change", > + "vconn-oc", > + "vbus-change", > + "attach-detach", > + "legacy-cable-detect", > + "try-snk-src-detect", > + "sig-tx", > + "sig-rx", > + "msg-tx", > + "msg-rx", > + "msg-tx-failed", > + "msg-tx-discarded", > + "msg-rx-discarded", > + "fr-swap"; > + vdd-vbus-supply = <&pm7250b_vbus>; > + }; > + > pm7250b_temp: temp-alarm@2400 { > compatible = "qcom,spmi-temp-alarm"; > reg = <0x2400>; > > -- > 2.44.0 >