Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp966666lqp; Fri, 22 Mar 2024 01:03:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWXYF07QrgNho1ZeCJAbRqisa2J4mn9NUeJQ7LSuTKdVBICY0qbdxYdzMkhWXwDV4NyFgZskau2mPypgJBx+CdV3ln2lI2S3ddPPC6R+Q== X-Google-Smtp-Source: AGHT+IEBvwTky8hwhfGEKovrGSt558YakgQhSZftol3JSoHRIiGDVGycv9MGMyjHIdLMMF0pjtgG X-Received: by 2002:a05:620a:248c:b0:78a:39da:d3e with SMTP id i12-20020a05620a248c00b0078a39da0d3emr1387279qkn.18.1711094622729; Fri, 22 Mar 2024 01:03:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711094622; cv=pass; d=google.com; s=arc-20160816; b=bfBysw965kAJvK08Cre+lSU6q71JMBl3HxcEcVCqfFE5mQbaDzDYY5H3nYkUVuaaGg 2ieqNxMcB6eX+v9+Mgt93N536ly67vWDiV8CWP9ESwApyzRswc0f/2TkE2J4cKx7R7dA H2vCYlFnwlyXbzFi2icDhQH1SF2kjPInwQkuROeS5ZqSlN2pEwWsnCYeHfCBR3CBAR83 1IK8vs5rZy2woLRe+5rrIZTMmki9t4PUJFurCy7Hx5bUOPHxyRczZJtCYM2N2V4ejTpE ojPK4WGIfuyoGHxUrgVaRh/bkCtgqjf49nhZd2Ri/xzrqJuR8yuUsmjv+oNbPetfUDXL n6sQ== 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:dkim-signature; bh=5pRYK0AY0UI9ndhzyuHsQHi/IsO1+vFhpELF3E3mlVU=; fh=I3MUDRUy76kDlP8Na9+Bllao1KlMnBm33+iz1t8crlo=; b=zQsWMbiF1tqsithoQ1fftnSLg8j7iIm/jIauVhYS65aucp6eZKIXQiwxT3fBP2aXOJ gDnm0DXoyHvLSH1orlleG20HxX1jeQ5yA5w4PCRQ4JIoeW3cFh8wAwhXlXd+WxA3JHK+ ID9GllGylJrT10Qd5PVZ7nn8m7eR5K/bqKvhOixQ8PSyEJfLLgzWTiN4ufsG/u5cxluk hT5c1JZ1cbXvxsxL2ivMxPAtrFVCWDankoBRateUOS9a+ANh4dUN954tBxI8fknfkJnJ 8oMKIM4cUBydpxi7Q7TxfuiC/gtBCzUZeeP3MrY8LQllMBg15gr5nhbhR6S5yAFc5B3k ubOQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=1LUDboFm; arc=pass (i=1 spf=pass spfdomain=fairphone.com dkim=pass dkdomain=fairphone.com dmarc=pass fromdomain=fairphone.com); spf=pass (google.com: domain of linux-kernel+bounces-111096-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111096-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id du48-20020a05620a47f000b00789f3536aaesi1532835qkb.529.2024.03.22.01.03.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 01:03:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111096-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=1LUDboFm; arc=pass (i=1 spf=pass spfdomain=fairphone.com dkim=pass dkdomain=fairphone.com dmarc=pass fromdomain=fairphone.com); spf=pass (google.com: domain of linux-kernel+bounces-111096-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111096-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 62C151C236E1 for ; Fri, 22 Mar 2024 08:03:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2BCEC2E648; Fri, 22 Mar 2024 08:01:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="1LUDboFm" Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C4CA1CD14 for ; Fri, 22 Mar 2024 08:01:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711094517; cv=none; b=UJKkS8PIxg4G8yIWVA8+vZf7NIIKNtI6A2N1+e8AoZYMb/7sy3or4rtLI5LCPfsVGvJn41gSUx5rp0VusstZop7gH9W7tN8RL87d9sN+Kq/VxRhdH0VxkYLDWcH0ra20s91XQCawdcaJp2DNLa8gkPdLrpZ2DI1AUtdGoHUrKcU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711094517; c=relaxed/simple; bh=eRAUypiy6NxphUecfUcmOhK6/zjL6KugszpYnn8ELYQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Q5M+QAmVCGmfM3J6o3kIR4PoBjKJxu22X1MV7Ck8RIOFYZefQBEOSeHdzg6Y3qOiEDbFbg2OUixHVy69ZxLhdRTr71Ib3d/nFSjfMPgbicrc7/hA/FN9XuFDDKrjbcxgd3v0s3vLOZwwaTs20ItGXkUMK6HwbIwdR56aZ8hD4xs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com; spf=pass smtp.mailfrom=fairphone.com; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b=1LUDboFm; arc=none smtp.client-ip=209.85.208.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-563cb3ba9daso2018894a12.3 for ; Fri, 22 Mar 2024 01:01:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1711094512; x=1711699312; darn=vger.kernel.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=5pRYK0AY0UI9ndhzyuHsQHi/IsO1+vFhpELF3E3mlVU=; b=1LUDboFmd4Ic28Ky6iPYlJn0azhrckoKdyX2wp/ppC6JY1Ote+xGYlIKLgMOHsAGp0 RSNpjl1GLtkpX2QIeTx5Ds6VHHTk+llHV6QFQOEFvIE4Yhg0ljJ6r7dCi4P7t7yjnyuo H7gzTn7acIg+/azmTkeyhAA0E+CM9f6/zh0B12lfY9bY5OsEFK6ViFQpSFx/dyxWsFRy 2jHEMNzy9EI47DNJGTij8IkZxICIX/3wbjKp1z4W9RFsqNsbdvq7abWWOa7IDGta17yG nlW8gEo4gTwq6PLYrhilWe4QkR0vqHjgGJ+DVKsd0Opu0AFbcix+F/W48JXxL9RsC8tY XdJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711094512; x=1711699312; 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=5pRYK0AY0UI9ndhzyuHsQHi/IsO1+vFhpELF3E3mlVU=; b=ZBQAcw1N40fscXGFDXzzQlWnJAfp7wAfMStLrcfjUsKLVQE9qOB+NHM9gdB9lQ6LxW PiTtOB2Mxe+4wB3RaBuxeoDaYNcTOCfZE1mmWffbC3eI4iY8rDt8waafxu5FDMjqs747 H7nGA7nWdjByk082ok1+5MW7LQJvD0J680zXL89sDiXEnsGcE+j/bPLiX5QRBfWJXi0w eDfsGwUa42SbXJsGU86fjiZWNvtffxOHrOJrnKmbm54jS8LIM/ZdElJ4YBHGAMsRG2m/ 7HIG++/H6pBPy3Rgm9H4LDS5ND8DK3wTysl3r6+yoojmPLixeYlpBuGu2FSynJ+mYhvV Q4WA== X-Forwarded-Encrypted: i=1; AJvYcCVFwhcGyHpoiFO5rbXPaLx4ozHuaX0QEWXez/9WRtrfgTFII8ljwUXFbd03EMwRrp2AKbYjUuAAvNVijb2xu627Hsg3CaLT9fkDyj2N X-Gm-Message-State: AOJu0YzWjlbjt/xREsdqBPY2TCsJJNxUxG5abCmjEjCGYTRqUSQ62eIH AMcLl3DkARo93Ku7AxYHASXUkI4aiTAPnhlUzWoVvKS2ymSgJUx9SSAk5K1gOaM= X-Received: by 2002:a50:a6d0:0:b0:56b:9162:8e6 with SMTP id f16-20020a50a6d0000000b0056b916208e6mr1069232edc.18.1711094512569; Fri, 22 Mar 2024 01:01:52 -0700 (PDT) Received: from otso.luca.vpn.lucaweiss.eu (046125249120.public.t-mobile.at. [46.125.249.120]) by smtp.gmail.com with ESMTPSA id p29-20020a056402501d00b00568c613570dsm739889eda.79.2024.03.22.01.01.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 01:01:52 -0700 (PDT) From: Luca Weiss Date: Fri, 22 Mar 2024 09:01:35 +0100 Subject: [PATCH 4/5] arm64: dts: qcom: pm7250b: Add a TCPM description 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: <20240322-fp4-tcpm-v1-4-c5644099d57b@fairphone.com> References: <20240322-fp4-tcpm-v1-0-c5644099d57b@fairphone.com> In-Reply-To: <20240322-fp4-tcpm-v1-0-c5644099d57b@fairphone.com> To: Bjorn Andersson , Konrad Dybcio , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Wesley Cheng , Bryan O'Donoghue , Greg Kroah-Hartman Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, Luca Weiss X-Mailer: b4 0.13.0 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. 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 91a046b3529c..d9abac052afe 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 { reg = <0x1100>; }; + 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