From patchwork Wed Nov 27 11:01:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13886860 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.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 706F31E5707 for ; Wed, 27 Nov 2024 11:01:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732705304; cv=none; b=tAQdml7KjmrRwfhVH1R2/IryPfTAP17FJfWEPN36RdIX/pbQ3BJMh6Y/CYJc9J9ZpmppCdAOk1aJtv5hFSMDo5NrUw5hJAnVNXwT7qQ5XkvSPxKBQ2/aroZcEaQ34/zimwvvnmLB1MQVXz/2v5MaZdlXRlm6L8/dm2SbB5wJ7eo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732705304; c=relaxed/simple; bh=lozZ7p/MhDuRt6nX+BtkrwBuJHf1C84dqV892qIj6RI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PH0bXIBudb5BoSJljUf8FWQJMbjm9O6IeniEsYFxp6iFHeOfLv8btVs7/qoy6kW8IHqTVh6ccZ5d4NjfJikYl8XibD8/aYZ6f5Td7L8ZOSXi47IlN3BXZTRXNVRCHtzIJT0uDE7U4S6Imev6TTG3mjRQ4xNv6jYVwU000b6d3SQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=jlVqIjaI; arc=none smtp.client-ip=209.85.218.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jlVqIjaI" Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-aa1e6ecd353so442508366b.1 for ; Wed, 27 Nov 2024 03:01:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732705301; x=1733310101; 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=VB/ikfiNeJLME2Jkz2PKwShANoRD6KN3KhS7opfVViA=; b=jlVqIjaIdGwz+w9ViTUCIOrQYfZcRdmM+eCcGyQsn/32+a4NfONrvtQvuxtm0b0RR1 pK2ezWO53I2ZBg1v31KUlH3PunVEFYyk9uqIjT6+mZ0mJRlKiGlsQ5G6AUJ267uU4N+f 6lrsEI+QEWEPpFLhPlkEiSA6R/vzVzqhSbSgl7iSlFkEYEmkwT6u9pguqVk9/LIN+yjj jVrAd7XAppBxCBY1z2Ctfod9gX7bAXy9H+gYRhhc+YqZh4fRPx4ego6sYGwQRgRoAv6E LH9Wwx5BeXti8rhJTdFYKAOO3MBU04ryyOtil320/PXelKyB2W4fdXb6oeWZscrsEJ1a mQnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732705301; x=1733310101; 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=VB/ikfiNeJLME2Jkz2PKwShANoRD6KN3KhS7opfVViA=; b=Ca/LGc+0o4O7EqjSQkzTg4N/il1UE+wRoUK/i8iZvajO4BxPX7gEVmyK9jF5MtHgyK eyjHnHMOPpWa57pjj/Ywgr95Aim8vAs6S3vghuEKkHREc1HvmYoxVRn3Z1TmhMBFc5yz r7wVLOzLcw6FPY7lebnF5yIK7AUjvq5a5hFVt96hpKvPE6YTCL8y4PuRVKTZD8fR8Ink dR4o8YEjvQZ1JqQQOyt+0e5e/XoexSxhRmKfGO7/dUTqJGYE9EEqhlUlwMZSNKhgszMp fgVPiokPL6u5dXH1DUSTMApdzRSODx3Neoby+QzEE85GJkkJ/LV6KwUE8upa+SfVXLrJ +41Q== X-Forwarded-Encrypted: i=1; AJvYcCWc8wwjpp2NOw8KbflMYQsSwaGKZ/jIDHlilwRPGnYOVTBVc0UI6dJfX057y3IpsGM7n8F2SxuxWGQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yy/rcOc80L5cLnL6g9tuXUKqduvn36ppJRP49wnHNOW6+rkZqZn T0fDkFr2HK/CQfBzI+w5x+Qxc90m2UpfuY2gHH4SFsXZFBCATt2QACD+WiX+DPU= X-Gm-Gg: ASbGncunlWtlM8rsa2BOBD3SgzKgUtrYZO1RDtxXgzrNApCeNXKPHSwKLqcj1ac0sE1 aGamFmFPAMtkCWykHD3AqoOKtytvOMYLro6nFcYpmukBf7aAG6XjOm4Z0mO40ib/xcD4lSAbI0F BBZyNdbU8kyqBIbpiNgpi6MGpuJk7sfdrFqv9Yy/o2/Lo2h/AR2fLaBinZQ0eP0Aj6QqATLCDFK fe8K3fmuO8DY1Hh1arLto0MsQAPImpZeVKyVIc0KCcgYOah0GhlvrSstEBCHfmincqGI1MO9Qyw ceNSYx0pkyqFPPcOP/6xroTR6yKEFTCRdw== X-Google-Smtp-Source: AGHT+IFomp5IYrPwtodVx4NfkTQ1BU4IT3aD00OknD9fip4RuVHiqXSHZTCSxH7nkJmeEnB3wrFv4A== X-Received: by 2002:a05:6402:1d55:b0:5d0:88ea:6560 with SMTP id 4fb4d7f45d1cf-5d088ea65a4mr876701a12.31.1732705300646; Wed, 27 Nov 2024 03:01:40 -0800 (PST) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aa50b339612sm693762966b.84.2024.11.27.03.01.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Nov 2024 03:01:40 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Wed, 27 Nov 2024 11:01:39 +0000 Subject: [PATCH 1/6] arm64: defconfig: enable Maxim TCPCI driver Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241127-gs101-phy-lanes-orientation-dts-v1-1-5222d8508b71@linaro.org> References: <20241127-gs101-phy-lanes-orientation-dts-v1-0-5222d8508b71@linaro.org> In-Reply-To: <20241127-gs101-phy-lanes-orientation-dts-v1-0-5222d8508b71@linaro.org> To: Catalin Marinas , Will Deacon , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jagan Sridharan , Alim Akhtar Cc: Peter Griffin , Tudor Ambarus , Sam Protsenko , Will McVicker , Roy Luo , kernel-team@android.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, =?utf-8?q?A?= =?utf-8?q?ndr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 Enable the Maxim max33359 as this is used by the gs101-oriole (Google Pixel 6) board. Signed-off-by: André Draszik --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index d13218d0c30f..5080fe2ce776 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -1121,6 +1121,7 @@ CONFIG_USB_MASS_STORAGE=m CONFIG_TYPEC=m CONFIG_TYPEC_TCPM=m CONFIG_TYPEC_TCPCI=m +CONFIG_TYPEC_TCPCI_MAXIM=m CONFIG_TYPEC_FUSB302=m CONFIG_TYPEC_QCOM_PMIC=m CONFIG_TYPEC_UCSI=m From patchwork Wed Nov 27 11:01:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13886861 Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (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 615841EBFFF for ; Wed, 27 Nov 2024 11:01:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732705306; cv=none; b=fNHJdTKqMLdyu37EJZ9rplioEoKFNnRAbPcZoDTV47aa7n7WRhO/0utrCS+HK5HyAiEWmI5jFeuXdSv3kYL8Pp1dE7pd+KtrFL6M95UAKlSCfGZRrIKCe3FfNic13zUsXG5cf9ONn/qJ74F8Rqxmn8YXmYLDjLZ2ipS0yUkKh08= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732705306; c=relaxed/simple; bh=hOCe6cJ0obVm8UjxsiUQNLMPtCy8NJeg3v7RzQ3z6+k=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BXkEwnAC49PMbfpt65yGvVgRd+DvQEW7owk7gvfC+UG94hwgmE4v4lRxOPFRFXRdvaKhxVcmx31l/0Z77t2qEXPW302o2boOhrkFyFAjUNeP2fALa8viapOZSzKzOh50aS3FbxFVhffs5K5JbZ4kv7b9jChnBKwEwDEpFYaycBk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=xNx8a5+B; arc=none smtp.client-ip=209.85.218.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="xNx8a5+B" Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-aa51d32fa69so703017966b.2 for ; Wed, 27 Nov 2024 03:01:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732705301; x=1733310101; 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=NwFISXzC5YdjT7nYyo3FK0ynEMcXmWD+620yv0Db3ss=; b=xNx8a5+B8CdcMO3gctLMUXALIZb4dMFTo/pN/AH0HMm+ge4EWsvZApqW26HOrfX8V4 AlIQKQECgGIdyQhHNNAIBQ17GB4rvpEhktqearre1KAa4nWgXwc+ZaLA9YyfOk+Qu7uP QwmIbk1TcosBLoxPS2j12an5rqeCcz9iX9G/uJw/Ho8Kv252a6Eynjaa6echUkV1EIQH OP8CJvNOVHDaiiQ28DxgX/zV0YFoMECK2LHo9MJ7gquqKmnfALH6Pg4/oDYVNVSW9Nmy duu4Kg/Prl1oVOnxzHAgeNnlXfsUwD4PYcZG/bMPhrDgfncdSm6VQQA7IYQIjhT7M2f1 tqAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732705301; x=1733310101; 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=NwFISXzC5YdjT7nYyo3FK0ynEMcXmWD+620yv0Db3ss=; b=DqGsV+XHu3/OcqNZcAtViY3NYyZmjRCtALV4lmxYMhMyJlWWtwJ9E4ikB6WjCtMaNx 6SMi7ZiQH3Bgt7YEKiYHPBBjjMoYHEUPPjgDV2VmI+EOpmQ/kegQixBKJWyx3NeR4Ajq Q3a4upF0CkfEAYDe0aoggZI7mGD20CLIY/bQtNGfvj5juRUKjZ2ZPaV7X/xQdUAoSxFN GYiYP8nnPNxaqJ+VC9I9SSeMfYOCzGp+KYtpgPmYMTbstOi6F+EOZgiHwpSqDFqdp4cH 1JC492InKsnTjURZ7vnv15qblT8bG2V8H8z6lUYcV9VA12j/Xx1bJL1Da0Jx+jaKgNb0 wApQ== X-Forwarded-Encrypted: i=1; AJvYcCUodD5evvkj2bjXf0G/13UC1IHw5I8owaCnbU9pOekSygwuFrZxXG7WOp0/xtbnLRVbFjXwDEj3NwA=@vger.kernel.org X-Gm-Message-State: AOJu0Ywb8th+jKRwNghhXcZC5Kr0RmmGfOSaZutE5dKL3S8HC63bd+EB GKBjzAKTyu6flH5vqbJ0J82xwhPcpd/BRfx+pXgdeDKp7Jwug9yKGDJWKE94Ees= X-Gm-Gg: ASbGncvQY1qlmLXgf2c5WPt4V/KjXP9/EOx8z1C4w1V3igSK4JKG6Lh2mwYY8ZbnM4o maQH0h/U4fyRcmy/6c7N0rdg6HQIrFmdc2XUWqLa9vrh/mC7XtWoWha3mMpaKLCFTsOdxd74XpS F6NgEF1HcjTqqAW9waL0CSOtGm7f0y9xq7jLac2KNNCNhDHgZQtSM5s4hEhDeu/Cdi+xA/Ll9+l J2fv8BWdyf4f/7QtF1mrFObmGLae/NMPLa9c1GQW77B12l729jvl3pVxYs9VaroXHIBa5TrQ2Hd S4yTZ7ChgemQuTzZ+iAvcde3VB0RDrnxPw== X-Google-Smtp-Source: AGHT+IE4cyy/cDmo8WquVmKFdo7zSy462eB6By+Kdq+zP9Q+Ss+y6AajJ7PIBc5sONgo2uDxTZPy4A== X-Received: by 2002:a17:906:2922:b0:aa5:639d:7cdb with SMTP id a640c23a62f3a-aa580f0ddfcmr151648066b.22.1732705301452; Wed, 27 Nov 2024 03:01:41 -0800 (PST) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aa50b339612sm693762966b.84.2024.11.27.03.01.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Nov 2024 03:01:40 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Wed, 27 Nov 2024 11:01:40 +0000 Subject: [PATCH 2/6] dt-bindings: usb: max33359: add max77759 flavor Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241127-gs101-phy-lanes-orientation-dts-v1-2-5222d8508b71@linaro.org> References: <20241127-gs101-phy-lanes-orientation-dts-v1-0-5222d8508b71@linaro.org> In-Reply-To: <20241127-gs101-phy-lanes-orientation-dts-v1-0-5222d8508b71@linaro.org> To: Catalin Marinas , Will Deacon , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jagan Sridharan , Alim Akhtar Cc: Peter Griffin , Tudor Ambarus , Sam Protsenko , Will McVicker , Roy Luo , kernel-team@android.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, =?utf-8?q?A?= =?utf-8?q?ndr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 On the surface, Maxim's max77759 appears identical to max33359. It should still have a dedicated compatible, though, as it is a different IC. This will allow for handling differences in case they are discovered in the future. max77759 is used on Google Pixel 6 and Pixel 6 Pro. Add a dedicated compatible to allow for potential differences in the future. Signed-off-by: André Draszik Acked-by: Conor Dooley --- Documentation/devicetree/bindings/usb/maxim,max33359.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/maxim,max33359.yaml b/Documentation/devicetree/bindings/usb/maxim,max33359.yaml index 20b62228371b..e11ede3684d4 100644 --- a/Documentation/devicetree/bindings/usb/maxim,max33359.yaml +++ b/Documentation/devicetree/bindings/usb/maxim,max33359.yaml @@ -13,8 +13,12 @@ description: Maxim TCPCI Type-C PD controller properties: compatible: - enum: - - maxim,max33359 + oneOf: + - enum: + - maxim,max33359 + - items: + - const: maxim,max77759 + - const: maxim,max33359 reg: maxItems: 1 From patchwork Wed Nov 27 11:01:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13886862 Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (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 E71DE1EC009 for ; Wed, 27 Nov 2024 11:01:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732705306; cv=none; b=fMlGV7bJP/iUp30VRXPneyyoOcyr+UrOGG8uPdTNiZQneL1wgP5esFtHzPke2sx7mirSjJLxERh7YUy21OFDMoMPVEMKBbEEejgKM9beqYbfwPTxzf54ehDXmQPRDp57eLZv+02tfh64iTyH75OedEyiPQ0LNwo0gq6MzOeNQ3s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732705306; c=relaxed/simple; bh=wuW9dlmQHK3i/Jcfb0eJR/IK57A7oEJMFzUPWXw07Qg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MI5PMscf+OE9FoxGr+LoBlDXGO3uINwpFPfb+g6gslrHw/EUw2JlU0oewaRDbk/W4hWcTlWuLXtnJP8g973+HF/4D9azccWGHca1ZJMF3e51LSD3AGzaTPA4DsTrLyA/jHBi9edqJy8HUiRm2XV3WWK2DcQivMPyfgIA2J4P1rk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=XvkDYawG; arc=none smtp.client-ip=209.85.208.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="XvkDYawG" Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-5ced377447bso8944952a12.1 for ; Wed, 27 Nov 2024 03:01:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732705302; x=1733310102; 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=sFCCGNoly/ihHw+f0V0Z4F6JNgdV9f0RgxXs1v/pmwo=; b=XvkDYawGO4rLrHjuOYqc9USC/olOKHS/kuwzL+WCClMn0MJZNMsdLdBV9UsdlpJ+VR k7Y/yiMQSafgLrRjR6TY9QSkcPoPbg1Xh6/kEW+CpusbIvHPPvo5FfuzQLGsBTjyQWw2 8J1v5O8qutOM1weFjrexJNNAwTsr+WpmPydiQJmoqlKExoqHzTiP+yTvUiU+2qWUJQAQ p0Mn3lMQABa8ds7dgIpAQoCSNmnEPWtnKdEC2YaIOGU+unIW9wsYEWR6+/ftyBXzhylo 5wNgj9vv6Mfy7YYGU4OGXmvRSPqpoxFG/ILn82gJwazAuHJPZExOoG4p2+hjqFmBtggK h7AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732705302; x=1733310102; 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=sFCCGNoly/ihHw+f0V0Z4F6JNgdV9f0RgxXs1v/pmwo=; b=f6YxNgrS5r4BYAo/JlpbS0cymtLIqwE0gRiBSEUI27mZTPPxM6xImqtMm33KlJF/+x n2qeHLwgOsy25r50Ms8QYSVh9a0y9PtRt1CUG/xCPmAmsFALw+aSsLcN0j0hPFjwv7l/ i3381+O90/eYomRrTUCi5VEYyHGX8v5U/dtfpon66JuLDTcn54w7afhMwBJwQ2RTOQPA vOFtY5C52o9QrWVS9YqLsJfaqerVw+mB+JvhkoWRW8jFLHFvMXpV0ZgjQU9IT0sjldeD XvZvWTJWTx4Ql+zyTqmfRUShRo1b/wlhvg9I3hHLjHxFnptTj8IrBZXxdTVbedu0eTeh Fyjw== X-Forwarded-Encrypted: i=1; AJvYcCVitYG+Yv4dmRmBvUaq/VB91EjSiWZoJf83Lsr+9i4oORvKGbicYnOXogfWqJcAfSNH4h4Wc0fV0Pc=@vger.kernel.org X-Gm-Message-State: AOJu0Yzrjwg72puXiJLDZ8sgqbIT0/2kQPAHvWLAf+7X4IUeUoz8nj7M tU976SA8agjQnfUgtC/234rvunPp3yAjMP5FM9dJ3+g8QQAht6Rwgmq50kWJpbI= X-Gm-Gg: ASbGnctXyj6nRxoPsktxR32yXc0trJgHTaSfGoQmk/CCm4bApJTRV/M2TmfsJqgN0ZI SN/FqdzPbMAXyZgtUD+h9JUyMe5D6hjI6FE8VvTD8tslNaYKtVXm7xTpvmgzD/cJvlT5nPMn9nO 1ILStw8rRbC2EHaLyPVqLk+qH0Ww3RocXdaGsHz+Gpu6vgFeKfalo3uDOsMVMCOuwBMCnMDbpyJ WyHB4ZacKW+gaNLIyAtqE0bD8PUmNI5av14RyY12fj9jv9fA9CL4y3fbMJXdz9momi8McI5KtYi vxRdWUiQQ2ro6innVgUwQO4jqqMMW2PUUg== X-Google-Smtp-Source: AGHT+IGf8PRBbpu00lqdlanskxanZwbdL0mBeUOVNbWHJwrX3n9oj1hwGayugKGWxCGG58SnT8c/lQ== X-Received: by 2002:a05:6402:2807:b0:5cf:4687:b816 with SMTP id 4fb4d7f45d1cf-5d080c64a93mr2444477a12.31.1732705302188; Wed, 27 Nov 2024 03:01:42 -0800 (PST) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aa50b339612sm693762966b.84.2024.11.27.03.01.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Nov 2024 03:01:41 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Wed, 27 Nov 2024 11:01:41 +0000 Subject: [PATCH 3/6] arm64: dts: exynos: gs101: phy region for exynos5-usbdrd is larger Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241127-gs101-phy-lanes-orientation-dts-v1-3-5222d8508b71@linaro.org> References: <20241127-gs101-phy-lanes-orientation-dts-v1-0-5222d8508b71@linaro.org> In-Reply-To: <20241127-gs101-phy-lanes-orientation-dts-v1-0-5222d8508b71@linaro.org> To: Catalin Marinas , Will Deacon , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jagan Sridharan , Alim Akhtar Cc: Peter Griffin , Tudor Ambarus , Sam Protsenko , Will McVicker , Roy Luo , kernel-team@android.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, =?utf-8?q?A?= =?utf-8?q?ndr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 Turns out there are some additional registers in the phy region, update the DT accordingly. Signed-off-by: André Draszik --- arch/arm64/boot/dts/exynos/google/gs101.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi index 302c5beb224a..18d4e7852a1a 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi @@ -1267,7 +1267,7 @@ cmu_hsi0: clock-controller@11000000 { usbdrd31_phy: phy@11100000 { compatible = "google,gs101-usb31drd-phy"; - reg = <0x11100000 0x0100>, + reg = <0x11100000 0x0200>, <0x110f0000 0x0800>, <0x110e0000 0x2800>; reg-names = "phy", "pcs", "pma"; From patchwork Wed Nov 27 11:01:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13886863 Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (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 BE3081EE00F for ; Wed, 27 Nov 2024 11:01:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732705307; cv=none; b=bapZ2bwO/WdgxLaj8gNg6Ubzq/SW70L8N9ZTq2cucT/pHC4+0Tmnk+O+c5pwWBz3qyCiSgxWtRXEdoAqhueqH+xfOjAXCbGDtsdls6u/VcJ0zo9shlDgILWGdUzcZpeYEYZFrcFYy8z4ia4pi3YX6ayrw2XyiwGgP3B/2b1cRI4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732705307; c=relaxed/simple; bh=Fx6JxYmZAWNFmGBaodns3MA1Cp/zInnAqGQR08vTJZM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DL5gqO1s9nXp3ZnzbJZGrfqqP5Q28LSNWVNozq3Mw62KLQwnYS2euxyiXjuLr10YrV6oKzaGRjLiJf2mWCVPw7rR7pu34I0vpq8enVexGGR6aVHpfGrMIq6Fmm72nwVuGybC4CKx71Mz9nThY0X66JV+YCUQjIEq+23wY3d/Z/M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=P1Z0kSbo; arc=none smtp.client-ip=209.85.208.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="P1Z0kSbo" Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-5cfcb7183deso1197895a12.0 for ; Wed, 27 Nov 2024 03:01:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732705303; x=1733310103; 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=HOjDTz5quesA/57iR2U9/Cgnc4v0qy5hefL79EGSNfA=; b=P1Z0kSbo2mZaFm+sR7yUylpf7IO3m/SFtHR3GgHKgAZ5df+7O1HsypqJ6Jq6hVc6e+ ixwJbebmPt4arP9UlrvR4wfFEucyB3LZji58ZDMeZ5OZ8/qjiRrYFooQLaSgS4N5BzaE N2LfQaTRfeDHoru099SXdt9d8nRmwLXFy/9kctIJwGcys5QQdKH7lhHYQG12WJveEpdu rvmC07krAEOpp/CjiF3z9mEA1Y8DP/+vtHfKujoTDhxKM22RSv8THMLeJA35YCWc+fG2 lHd7mKImA6tzGGeSGez10MJl3Si27rKZFoAeOGCV4YThNKjosIui6+/9Wvkvk3lmrCgb LJVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732705303; x=1733310103; 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=HOjDTz5quesA/57iR2U9/Cgnc4v0qy5hefL79EGSNfA=; b=Y9Rg8FydbMn27AW9P9lxF3qWvIDgs5rhjfCvdsmS6mj9ark34IYn68EkxHxoZQW49z u39HqyNA+JtDwmNtnyq5GYC8eERqIY/+yCor1zOOPbqdQ+JhP5p4cLO3h5e+Df5qKfpk EBmJIWcRJiua6JmDeqOptkAc/cTwbS0SBZAe2pZURnPptFu6wxjdDCTx+jFgSVA9V6Ut WpnoqxwuuJOP02LrWcx9wcvQQiTSAfnbEa6zcFBgIUVAMAaL93w7DOub5xxTkh8aFZ4d P678jVLDr3DKYe0FPQkQ+BfQuDI5UOWTd1UqxaN/yUwQRsEzl5JmWyTQqVn8qJO24fdx CnVA== X-Forwarded-Encrypted: i=1; AJvYcCUWX2qfuYOTN7UbvEm0sCI8irvKSDCaE2xNHOvJbNcxFeha7Vg++jsrMa7c/cc/WN6T3aSiz2gMRwc=@vger.kernel.org X-Gm-Message-State: AOJu0YxRry6Iai784t/AK0sp4K7B4hGLeX4FtszHE+TxZ2yxcFLxsPI9 iR2egMrZDhTCkMKopmuvelqHBpEqUJ7GwJB5OBTObGM+qoEfQREp25UqX55IwTg= X-Gm-Gg: ASbGncusH4X4vxOSCvDHVKSehA8WbU4PuSMVw05ou3+uq/w4XMJ2cg7pV5MiOB2L86g RgfX4FHiVp6pR/1mBRZMsrafaJWAiWluKtdTwjscZwin+EaDc0edHkju/G1aysqNmtLQpq7dsSL 25SmGDiGgPmQskmoYR05n36/GbsnmEcQtAY5/CeJ10qY3at1XrZOLkiWT+6y7vBbohTuzwBi3tE fP0CU/Dd33mez3ZYE5kmzmVh7hjh9hi63ONUMeTWnDjJBJ82qVjudYi07ve3eyVm6/VM6SsB5m8 ZdtKjmTSbRtf9j3SLxZh7lDGIXP3+PpfrA== X-Google-Smtp-Source: AGHT+IHB5KUzcTjH16njBBTQ0xCVSadda6wBBW1QR/hMzlosFVnEKcI8ZmV5cmxHoXIIbnCGjXeWgg== X-Received: by 2002:a17:906:318b:b0:aa5:1cdf:7bfd with SMTP id a640c23a62f3a-aa57fa99a0fmr256898166b.7.1732705302951; Wed, 27 Nov 2024 03:01:42 -0800 (PST) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aa50b339612sm693762966b.84.2024.11.27.03.01.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Nov 2024 03:01:42 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Wed, 27 Nov 2024 11:01:42 +0000 Subject: [PATCH 4/6] arm64: dts: exynos: gs101: enable snps,dis_rxdet_inp3_quirk for DWC3 Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241127-gs101-phy-lanes-orientation-dts-v1-4-5222d8508b71@linaro.org> References: <20241127-gs101-phy-lanes-orientation-dts-v1-0-5222d8508b71@linaro.org> In-Reply-To: <20241127-gs101-phy-lanes-orientation-dts-v1-0-5222d8508b71@linaro.org> To: Catalin Marinas , Will Deacon , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jagan Sridharan , Alim Akhtar Cc: Peter Griffin , Tudor Ambarus , Sam Protsenko , Will McVicker , Roy Luo , kernel-team@android.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, =?utf-8?q?A?= =?utf-8?q?ndr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 This is required for the DWC3 core to reliably detect the connected phy's Vbus state. Signed-off-by: André Draszik --- arch/arm64/boot/dts/exynos/google/gs101.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi index 18d4e7852a1a..ab016fe9b99a 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi @@ -1302,6 +1302,7 @@ usbdrd31_dwc3: usb@0 { interrupts = ; phys = <&usbdrd31_phy 0>, <&usbdrd31_phy 1>; phy-names = "usb2-phy", "usb3-phy"; + snps,dis_rxdet_inp3_quirk; status = "disabled"; }; }; From patchwork Wed Nov 27 11:01:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13886864 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 9084A1EE02F for ; Wed, 27 Nov 2024 11:01:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732705308; cv=none; b=jpzYJz1uHDkkl6X60NBYKV0dlVthl0UpJuWI6swDzcuQugUFBp6pRoFGdy+wB8mmd389FXYebXIjwoBo1I5kTMF2eNsWiOhE+A4FBhs96eBdr4cLcUOnAKistRE5j+eTnjODMtEHeP7uOZUZoVAC6Q+8Hnw3/mVAkJ9GclFRJ60= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732705308; c=relaxed/simple; bh=kck+d2QOFZ1QTUsEEtVgD4V3qv1m6CMUYhFTMP5YqAc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GuG7mS5bcAqnEJBDFlIk9wZf09EJ6o501VF20jbyf3QUYwwYpzphAIXQQYfUxmANyqD+trb0tW/jymV+JgC9qT7SaINmXeQmRe4+Qh+p6jxfv4+MOYNAb/DZSuBiUyy6I8j2Anvgov8+nWJzURATQyL3arW8NW6vgNIS+jyqMgM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=q9rQRz9L; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="q9rQRz9L" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-aa54adcb894so418987966b.0 for ; Wed, 27 Nov 2024 03:01:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732705304; x=1733310104; 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=lE4wmixBBgayLXBCtLCcMeypgTnpcFbWaBYeAtvt70Q=; b=q9rQRz9LMmRiOkxpsDiUxa6F76ChZFOH+HPoGkGkGMCPSrAxQANlE6hLz/oRH0vEVn wyt8hCNUmyklQpNRqkjlVgktGCWbtbalfyAQnbn4auXWAxzTrpukRyD0fvEiH4iGyndw gpKZxhgT1C54Wfrd0LR38xkNIHA+4IAtR64OK5y4xE6MDoSW2584lvSp3r9yEXN3H+3A t7/ATUoMToFvw801jVIVPhS8AkVkKrLIvJTdLq5dv+jMZIB77ygKAI4qbGvI328R0bOT hYmkiOqisgemTYUwO66KxfqbD1H58SW9n53HDyVUEUQS1XNC58SHMeU5+Vv32/rpE5gn ioyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732705304; x=1733310104; 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=lE4wmixBBgayLXBCtLCcMeypgTnpcFbWaBYeAtvt70Q=; b=UrcuonmV2it4GtZoDPibYLRGM6EbkrktCk1ekfaZTtAKn5kz35KFIwaGZ3ryAbkc85 wsF56RWm/hQeNZdDYkp9mJWarR1XAe3zb0EBAq6NC9gejTy9aJBJHpy6JYEIudZHx7c+ Tgzph8Jekun2xRSBBqhQPhOSjRlo6gxO8dXgyF/KkttuGFmm7+Q9n5uLxDHuQNCyJLYa DwKEn+DhrFJ0CnXGb57bTv3WBBE4bDfwVi34FkQheuHdYOrDucFz5thTq98tWlvENHFg 6dfOaEbZnIzu5D6/lbOWxn+SOor8PPcX6BE+hWToVw7e4yxXReci8DUsGlh2I4A7kUdb BJDw== X-Forwarded-Encrypted: i=1; AJvYcCWb8ZHfXHUxuSlyB5i9GlmwTWAdwX2urhX6QAAwfKbqjynRbTql33u37YwLa0dis+hUUFXEZ7zGh20=@vger.kernel.org X-Gm-Message-State: AOJu0YzlzlZTq1thjQRY+Q+SmOBz6o0r7NuTiU9WuSY+Q3VXqPHCnfVa 9EsIwr7qLbLORYtFOGZXYuA4cXTJmPqM+ciQ+m5Hqua0MzGYISFbNPIZJktCdXY= X-Gm-Gg: ASbGncvHFkr/55hC/jZhss3xe792DJKLC6WUh8pCQ7uK5RSKEv6IkhKqkxu0vZbuTPX n2ZwgcMAQyoBR50Kj8uo9Ht+m9j+N+b4ljxEzbfneR9kmomFLeN0x3JivDPzk3HzXhWEi8EUKEF WD/HbPCd4SEVQhDKh0BbiHc9KMeeENA9etsxPGQ9bgB4inJsygoKojwN3NQBa61fQV/qFZ7iI3+ XD1X/jtGVOatq+h03dRXVsK7nPNJzRvjhqLK6BI17lgl9NITxrNXtFD8UHHM0CTqzmRicB6pK18 WQ/fR7GLf5ieXC7rcsGNkoZEdHmTTC6DyA== X-Google-Smtp-Source: AGHT+IEjfWpzgWvuf2PuWauL4irDzBBYokZtNaKPDwP8hTNSrJiLJvviKNCQ2xOU0CW7rCVG+Drreg== X-Received: by 2002:a17:906:2192:b0:aa5:e01:1471 with SMTP id a640c23a62f3a-aa5810330a4mr150052566b.37.1732705303655; Wed, 27 Nov 2024 03:01:43 -0800 (PST) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aa50b339612sm693762966b.84.2024.11.27.03.01.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Nov 2024 03:01:43 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Wed, 27 Nov 2024 11:01:43 +0000 Subject: [PATCH 5/6] arm64: dts: exynos: gs101-oriole: enable Maxim max77759 TCPCi Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241127-gs101-phy-lanes-orientation-dts-v1-5-5222d8508b71@linaro.org> References: <20241127-gs101-phy-lanes-orientation-dts-v1-0-5222d8508b71@linaro.org> In-Reply-To: <20241127-gs101-phy-lanes-orientation-dts-v1-0-5222d8508b71@linaro.org> To: Catalin Marinas , Will Deacon , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jagan Sridharan , Alim Akhtar Cc: Peter Griffin , Tudor Ambarus , Sam Protsenko , Will McVicker , Roy Luo , kernel-team@android.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, =?utf-8?q?A?= =?utf-8?q?ndr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 On Pixel 6 (and Pro), a max77759 companion PMIC for USB Type-C applications is used, which contains five functional blocks (at distinct I2C addresses): * top * charger * fuel gauge * TCPCi * GPIO The TCPCi is required to detect and handle connector orientation in Pixel's USB PHY driver, and to configure the USB controller's role (host vs device). Signed-off-by: André Draszik --- arch/arm64/boot/dts/exynos/google/gs101-oriole.dts | 99 ++++++++++++++++++++++ 1 file changed, 99 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts index 387fb779bd29..5f7be0cb7418 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts +++ b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts @@ -10,6 +10,7 @@ #include #include +#include #include "gs101-pinctrl.h" #include "gs101.dtsi" @@ -90,6 +91,84 @@ eeprom: eeprom@50 { &hsi2c_12 { status = "okay"; /* TODO: add the devices once drivers exist */ + + usb-typec@25 { + compatible = "maxim,max77759", "maxim,max33359"; + reg = <0x25>; + interrupts-extended = <&gpa8 2 IRQ_TYPE_LEVEL_LOW>; + pinctrl-0 = <&typec_int>; + pinctrl-names = "default"; + + connector { + compatible = "usb-c-connector"; + label = "USB-C"; + data-role = "dual"; + power-role = "dual"; + self-powered; + try-power-role = "sink"; + op-sink-microwatt = <2600000>; + new-source-frs-typec-current = ; + slow-charger-loop; + /* + * max77759 operating in reverse boost mode (0xA) can + * source up to 1.5A while extboost can only do ~1A. + * Since extboost is the primary path, advertise 900mA. + */ + source-pdos = ; + sink-pdos = ; + sink-vdos = ; + sink-vdos-v1 = ; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + usbc0_orien_sw: endpoint { + remote-endpoint = <&usbdrd31_phy_orien_switch>; + }; + }; + + port@1 { + reg = <1>; + + usbc0_role_sw: endpoint { + remote-endpoint = <&usbdrd31_dwc3_role_switch>; + }; + }; + }; + }; + }; }; &pinctrl_far_alive { @@ -106,6 +185,13 @@ key_volup: key-volup-pins { samsung,pin-pud = ; samsung,pin-drv = ; }; + + typec_int: typec-int-pins { + samsung,pins = "gpa8-2"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; }; &pinctrl_gpio_alive { @@ -142,9 +228,16 @@ &usbdrd31_dwc3 { role-switch-default-mode = "peripheral"; maximum-speed = "super-speed-plus"; status = "okay"; + + port { + usbdrd31_dwc3_role_switch: endpoint { + remote-endpoint = <&usbc0_role_sw>; + }; + }; }; &usbdrd31_phy { + orientation-switch; /* TODO: Update these once PMIC is implemented */ pll-supply = <®_placeholder>; dvdd-usb20-supply = <®_placeholder>; @@ -153,6 +246,12 @@ &usbdrd31_phy { vdda-usbdp-supply = <®_placeholder>; vddh-usbdp-supply = <®_placeholder>; status = "okay"; + + port { + usbdrd31_phy_orien_switch: endpoint { + remote-endpoint = <&usbc0_orien_sw>; + }; + }; }; &usi_uart { From patchwork Wed Nov 27 11:01:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13886865 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 350A01EC001 for ; Wed, 27 Nov 2024 11:01:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732705308; cv=none; b=ecHZK2GQnX/A7obVCsXG/i61un4d3RRpbKRRK0YiRRSVkPoiN543OiIOx67VOVjLM3eRUyVYPpczU0Z/kcDGMTJjAqkbcCEZmYakwgxxbHQf7/esdIMpe/ANmOPEPofIKBa0NHONrnNZAjNjQSVYu3YS3E4poW8dD6futD6nkK4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732705308; c=relaxed/simple; bh=bBXu9c7nBHpZKJ9tgZ+XFFWkeWIErIUAUyFvGXzCs78=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Yw70S28xG4CAMuIk1S8tkP09M99HSKsYhB/lPMlPklRl0pMuhyXlAqqzm+bHrpQ+qmi0dXNRoUmhNqO28xwVthK1cfpwFxKCAYHy8r4Br/THLPcOQHzNvWxF/+UEyTe4aCqF2+ML6mwfed6kkMNMlF0S6QuwmkEBVsLrf5+1bW8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Ek/iInXD; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Ek/iInXD" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-aa52bb7beceso554640066b.3 for ; Wed, 27 Nov 2024 03:01:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732705304; x=1733310104; 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=J4erez+OR7MplArQbIopexB2PZBOe/GVnXjpG92loz8=; b=Ek/iInXDPa10EYC1+Qwd3jtui+ru3GP9vYb8vVBcViImFE4VyJYb8MKXaFZppA8yJ1 8eiExOfBdu5rGv7QyTEIarZNhXrPbIJ7o8jPWGxpCojessVj7wyZABVEjYLqVlEENfj1 8LhINXCnnb4lh6wzp8Wa4MjYCae9Yp7Ll9UwP44P4qAa4BO4+xldb/vkotwtWtpPgPye 2Oh65X+IKpHQ6cUnk7G4mjMKBof4PaMwrCA7VL0IuoeTJVt9iXYextPiAv6ZKTjAhSo7 hinCcVd2qr1V5CkAOR1UYRgZb4CW4PzCNKgqBCk0vWhi5tEJkrsa9hgG2xoEQMM3FAcK SxJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732705304; x=1733310104; 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=J4erez+OR7MplArQbIopexB2PZBOe/GVnXjpG92loz8=; b=N8JlNmFgbqUzRo3xT9ESMs1iJzOqXAejmx7NRs0us3j5klgtVFh0OOdXQ5zTARH8Fz LmXlZMYYfKRaJJ59Xw6t6nrlX3UBRN5stctoB2NooGkzUhUQBUMdO8XFwxX3zsr9vAsp VcQ8zW7NfzICtclEUc+6GLIHzcnMn3bWiUaPH/UtlRrcRH+0exBhqqGpvHemo++BuLSX E0xOGscR2CMhkjy43aOPX+4N3RimNQtUe124jPYLh1X24nRBArN73wOFQgTjsq1OAyiH +udmjrBY+g3e7wYcxvHrvVMlrEE7ANgM0m2XrQVEkhew/z7Sf3Y66DGiDyKRDLelcbXF /+9g== X-Forwarded-Encrypted: i=1; AJvYcCXyNnTJd415Gw0UxjGamPdZuoYvl6QqrWqOX1kUmfpejfG0wjIhecExKnjY55VQjT75SRSXf1DY8Zo=@vger.kernel.org X-Gm-Message-State: AOJu0YxUmaL7l6vSn4PvceepKQwZ2Jvs/SnL6wBObNrpl1W3Ewq7Cx0D oVRXg2pZEpUv4BldwWPOdptuTeXaQLU9m4h4EhE5hsR72VW2daFDWhsMdnQkSdI= X-Gm-Gg: ASbGnct+VnuqsC6tqCxwQsNKBWGuBebggSi8CAWHx4h0BRaHaOppWQmiBCzMI1ig7Dd Vd3dtpgtMXA16vPUGKLTVkPn0FqtEjj9I876TtEQLOqmoqgX478UhXIqSiegq6ANInShp3x597S Ggy8J4Ez+ibgLC5a/g1zokNcHmFwVDC9vd8xsx2aB+V71zw7L6c/ghzQERGPO5pxg+1acYnAGRM IxuKx4xhfykN5f1MwFkSMaTIloj0SvUd8mgNdMQuXYZYQqytDcKwh9nbffdmpch++I6QSeykfRM xDgN6rCJ0xyds+G2/Knnedj3n+hfNMNnHw== X-Google-Smtp-Source: AGHT+IGqpdrPnW3Rg6CugXIox+EqlkbBd+gvIfh6uKjWCcF5TRZPn4bamon8RUhLocSTA4S61CGyGQ== X-Received: by 2002:a17:906:18a1:b0:aa5:3663:64be with SMTP id a640c23a62f3a-aa581028c94mr151558766b.43.1732705304136; Wed, 27 Nov 2024 03:01:44 -0800 (PST) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aa50b339612sm693762966b.84.2024.11.27.03.01.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Nov 2024 03:01:43 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Wed, 27 Nov 2024 11:01:44 +0000 Subject: [PATCH 6/6] arm64: dts: exynos: gs101-oriole: add pd-disable and typec-power-opmode Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241127-gs101-phy-lanes-orientation-dts-v1-6-5222d8508b71@linaro.org> References: <20241127-gs101-phy-lanes-orientation-dts-v1-0-5222d8508b71@linaro.org> In-Reply-To: <20241127-gs101-phy-lanes-orientation-dts-v1-0-5222d8508b71@linaro.org> To: Catalin Marinas , Will Deacon , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jagan Sridharan , Alim Akhtar Cc: Peter Griffin , Tudor Ambarus , Sam Protsenko , Will McVicker , Roy Luo , kernel-team@android.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, =?utf-8?q?A?= =?utf-8?q?ndr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 When the serial console is enabled, we need to disable power delivery since serial uses the SBU1/2 pins and appears to confuse the TCPCI, resulting in endless interrupts. For now, change the DT such that the serial console continues working. Note1: We can not have both typec-power-opmode and new-source-frs-typec-current active at the same time, as otherwise DT binding checks complain. Note2: When using a downstream DT, the Pixel boot-loader will modify the DT accordingly before boot, but for this upstream DT it doesn't know where to find the TCPCI node. The intention is for this commit to be reverted once an updated Pixel boot-loader becomes available. Signed-off-by: André Draszik --- arch/arm64/boot/dts/exynos/google/gs101-oriole.dts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts index 5f7be0cb7418..ef9ccd149b6f 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts +++ b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts @@ -107,7 +107,6 @@ connector { self-powered; try-power-role = "sink"; op-sink-microwatt = <2600000>; - new-source-frs-typec-current = ; slow-charger-loop; /* * max77759 operating in reverse boost mode (0xA) can @@ -146,6 +145,12 @@ VDO_DFP(DFP_VDO_VER1_1, 0, 0, 0x18d1) VDO_CERT(0x0) VDO_PRODUCT(0x4ee1, 0x0)>; + /* + * Until bootloader is updated to set those two when + * console is enabled, we disable PD here. + */ + pd-disable; + typec-power-opmode = "default"; ports { #address-cells = <1>;