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: 846252 Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (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 4A0051EBFF5 for ; Wed, 27 Nov 2024 11:01:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732705304; cv=none; b=ZLZyt3QV9w94dcZ7AHKWdoI8Lmzx4k41BkbTVlyZe8Bb3sfl2wfvpm5c7RtwglZr1N/tq8/PNaueSWf46zfR6XUN2hAErBZ+uuG9cgfJq/3TY/hcabYTKUzRAOCVlELLZ+IZvL9fbnHuDWdJmN5cLw7+RH6Q9DF7WYLyV4R2ksY= 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.53 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-f53.google.com with SMTP id a640c23a62f3a-aa532dcb470so266317266b.2 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=sGmRwIxeGuoCqUFRHzqcKdsbgdgtFJRgTaFjCTNaYFcG7UhJQedwh79DoLZpPLDNX4 j1R70/nuqCS6+C3GforI/Yni3f/a7c46ZM/RdAJLfKEoVhbD4nMTZRAL4ZG7CpwYkCwd ZZBjh/E27XvnbnF15zDZETQZ5PSnnEr3GLYkbCMfAmQPNW6ykK+5dR3v9nGZwzef+zgs L6EjeOlyroF7eQxNR4f/by2dKZsmf7Kq1Qfc9DT1Zl6Kmvals7UbH4kFLK5QZYXDnZMO 6PLgldAl+ceSkzntU/S3x0+pw6z9K4WrFQ8C+1Qkl3brS2mpERWTD0r/4z46NnHfS4c+ ieHw== X-Forwarded-Encrypted: i=1; AJvYcCWzAPIF35OlLR/6tIBIaDeMBGpG7FDz6/pIGYFPqei5z+Lt+9P7qW93LY9zQtp+5pHPQCjDh2q7RdhwAQ7i+jAzaw==@vger.kernel.org X-Gm-Message-State: AOJu0YzPnT2dsves2MFTu9fAQ3A2Thwr/ys+eAB3FQZ4Y1s6BU0kvlV+ 24J3HNICfZiW0AM9uVkYTCxZg9fcKOrgnknPUzr4rd4sdZgaUvAho3CdxEumZ/o= X-Gm-Gg: ASbGncunrwsxFozXoRHRLNQ3NChGishqw3cz2awHwoBnbG1N/cE8x831D32YNra0pea tmpUDm8didhyRa5wDeX3BWtKIooA1VUaGwPqvY1Mr4eprx6vN4R75c1b72hZKN9xGyOCLTwEnXL U6e23FxF4KGZ/u//BqAuZYwJ/s0HobYMbdrXdraXjCr+IuZRUbyrLGWFyzc4RWCIlKf63DFu8hz bMhDVg/xu1zRrgIn9OlAAZm7/1KXO9bYxZ8RJ9OQMnmwEndz8uiNzKhuLMZA7Ey0pWG4RZPml4O cHvtCucsYS6Mw+Rza+MQQ6XPt3DblKH6Bw== 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-samsung-soc@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 Reviewed-by: Peter Griffin --- 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: 845893 Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (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 587311EBFFD for ; Wed, 27 Nov 2024 11:01:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732705305; cv=none; b=T8/BUUYcB1GYF0MLHCh8DXNDDshMaRsCQFREWz2Ds/042j3iTkouBmcQS7QbSAdhlL5Hs/J0L9iG9+WlCygYRUmkIOLEyNU3lR2eJ6Vk55d/gkAqwvJ2jtBS4nynR7fDc9m+D4LqN27juI6o0/4QSj9Nfp+u+y6Ut/3Yw6oLwBU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732705305; c=relaxed/simple; bh=hOCe6cJ0obVm8UjxsiUQNLMPtCy8NJeg3v7RzQ3z6+k=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cKb97LJM8DIIQO28d9utFDTi/3GhxFGU+CsTctQBOr/Fy55x3CKbpQA0mleQjev+LbdOqnRc09hc6BLE9ziElH22M77omTGOzFU6+R2GAVRoiR9szpvL7VLIw0p+767bsRr4xbgQ5bCaKqOOSqQUwx/Rv97oFt2DIRCdzpIaYKU= 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.208.42 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-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-5ceb03aaddeso8890145a12.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=S3QCzyE1VXk1RvROzhSZ/k0p9kzI5zWoU6clxGfUUtlNmjBdBERpJYSR/v3bRKv9hZ N3nczNjNOs5a6YcNv8LtPkCar89SwAjCyMuetKPfpTE0/qreCzrbYpwxrwG8KKQUrpmT CcG0uP+7cjE62+N2bzxd/lpwkz0uqT3dargVhP6tm1d1mOrLyjuy1HkP2DdH2V/eXBXU 4JHT/JtJ2AHCwve62UL66Tlr3iLsAzKzEBDATrhI9ewMLW8FWhCKR3rFbNzojSiXpGa1 PX3oN7wCwrmFOT74GvmnpyhQdVxaMneEa4+A8aQl4Xv/YsfnQC+SeGPlbXQQPsnUOhfJ sKZQ== X-Forwarded-Encrypted: i=1; AJvYcCWy0R6zzIOWTrUDLxVqwNQ/i8BqO3AEFMrrb5iCRWCOiL47FRnZQL6raBwLKgdMIUx8ylCwvsDuJRrLErYE0DgcVg==@vger.kernel.org X-Gm-Message-State: AOJu0Yzt887/Dsd40fMDNx1jfHgjDehXl56tKA6gj/fwKMinybeTLEd5 rYxSoKyCHFhX048HeXuR3m/CrKqI7u8iYzwyhiH4MKB0IrOkTnLJDuuCyWvHXNg= X-Gm-Gg: ASbGncskDwO0m/Hfi9e0XG4b921SPS+8XoFkWLtcbHlfR1K58AD3HmoFUmkDFjJd/Tt 5WVVPlWi2PqXbSyg4RAcZyvrFCiEyknbqY/mbfwfz70attmPU4HesSbNewt9yTydVCmMssE262F 5HJDbihlNHNJsg6gIJXFLIKhiawnGIOGi3UImmZwkQwKD0xDNdDxXLOTCKW7k2Sb1u1BHmtNJF2 nd/VpqHU2MOBD1E1lvIeOW2m1+mLD1NPa0ehxS5/tynOC/fboGhOybCth1LwuhjvFidsy/WEvRe wj9VQf+nCssGcnNtV/vWvaSR546kXujpqQ== 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-samsung-soc@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: 845892 Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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 E316D1EC008 for ; Wed, 27 Nov 2024 11:01:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732705306; cv=none; b=BxU4AgVx+eZ2NdXMe3fljL1kCE4UveYWlWStW557rCxrUxXHHPPUFKncivtgqOIfGbNMun3HQXI71l/nQy+tAdR7CO3p4eFk+ACiQVhRgkrg4i/CITFVycUtRQsAxOTtlncbimLqyYodGNZMO325fx/1Kyvy32pflOKBa8ODzBQ= 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.45 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-f45.google.com with SMTP id 4fb4d7f45d1cf-5cfd2978f95so9196959a12.0 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=RYfzsZtH2v+sN/yX5T6wsTsIT8Ks9iQji2BkoomE1GlLzaL4j7wsbhPXPNit0DPODG jZjWCTA+8jAPk3ZgcMu7xS+ZmarJycaHQk6tlsQnc78QjC6XMxYueeJfc3RXAKx3oU9s opy6a5a3jCBjTi4kiK9HRwBjOxNEEt6w0AnIrqdBRlLQYw5PeSlmjXSvlPqlMIO8Q21q kKUwK2GyowlTxxnqYJi8OpxIzcbSz5zMPThlOD66y+3b482bpNj1jO982ZI1l2u3QeyJ r9u/1VtTZ1qKw/upGRyVTk6DwRw28Xe0Tpxfn1xjQB6Szcf8APrVYPLvm+lFJJQ1C0xJ X2zA== X-Forwarded-Encrypted: i=1; AJvYcCUlZP/qOlHsE1MVKlQN/pvHTSI858tjY6sJ0W2kD9VE6G4WKEw8O91d/yhiqBRTGE57bdsXZkOPgNiOSQ9Q+PKbVw==@vger.kernel.org X-Gm-Message-State: AOJu0Yznz9Myb0Huh6qVYj7F0xvi+3bE51Vx8H5FTu5PBjTtc3IVbmNM R6SOMSjGMUGdZNj9WEftWTwkHOIVvSKwyk3FCA0Oo8KmsfTdo/Jw6p61M5TGvpA= X-Gm-Gg: ASbGncv6PcUPeBMSAcPjiW5NXlPLrGpGl6gFjsGWGQwscIsoDtVHTfrcPy69ZDmM1tu UcB1IwqXpRft2fCugd5igmz+JwO4wtFJmqMLviqV9JWCYIU+KJRrjTL3j4ptwOXQdZuDx5Isd8m 4C07KInVPO90de1WeVoHgJlrzDTnkbC2wscb6SjQFIJWjazzUOQiDsFZR+hoRUgNJfYlYW77QGy Ug3tgDPZL1NdEZWVjEMhKGrDU0VwRqEvB5iH+Xb5zpDxVxO9NG7bc25DFbzGJRV1/ao8rCgLPH/ +DZ+Bn+OEi6uqAvPbifrc8/S3FR9i1EPww== 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-samsung-soc@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: 846250 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 BA3A21EE00B for ; Wed, 27 Nov 2024 11:01:44 +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=1732705306; cv=none; b=fD+kMD6gPY5+lTDOUXDwW2M9/1012NN7WL8fgHb4FUcTR2uXr6yJyVqawlb2KHvWVfMidHJXSK3e27cD2rxCl4ab4kQrLqafGlfgev5M/1wA8B/9ArJ9MFM5zu5zeXSbzUb38z2MHJKtxfjiDt443ZGCSCx91U3qKDHQl257GuY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732705306; c=relaxed/simple; bh=Fx6JxYmZAWNFmGBaodns3MA1Cp/zInnAqGQR08vTJZM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Y3adpcxkuqNT+XIxkhyDH2SLyvFEzNJT1lpIOADaweDv8nkD04sjxj4++rudBmQssuETysvSJ9N3jI6iRKQ+XkqUi/V3t5x7WgpkbE3leboskWTHs6v5QAUE1XajWCntvLVeXwOLPze1YNQzI1z5rbWsraIhFynvADMGQQmoOao= 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.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="P1Z0kSbo" Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-5cf9ef18ae9so1194092a12.1 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=hKTJ6246vBJAZ9JjLlBqK7jbi4KEog98BNqbUfC0kJ7BZdBHbaYUDK+hNM+3fneKCr HWquL51O3ZZFh4LuPfsYjlPMYLkMRBs9J8bjT128RTjvzzKDiaZ6PGhZVgb3rJ/yg0As ddT3tMVdBshbQonRFpDV5gvUNf5GZNZRdvnq6ZgsW/EgmxUWQ4n7hyVLrytkz9WoyS02 69tFP0MtRZW9SjxR4rZbuwUue0RWUOrLVUnBgPK6wck7iMeotOk7KB7wFklBIRC6RpkB z3A/yRPrWH140dBb6nkCfuxsapz+Bu8xkZIo2BT5Vfny7uhzp6vUorBbCGyONZZuTvkA DLeA== X-Forwarded-Encrypted: i=1; AJvYcCUI4RKUsXVd/OTtWDnhxFEMP0gULUZN1nSyQPCkGfv5Nwf3UZ5mLnSC8sGHmC7AC1ah4iFus299scYdK5KX+QXPAw==@vger.kernel.org X-Gm-Message-State: AOJu0YwVHTytZlIojffw2pZxfWPqKoE6c//mMa3RfHR1RuUoRGH81I+a iBGiSXNu5D0SjbyK7LRcsPkEi+V9osAZbtoAaBkU8RUPaRxnwfsywRKXEy8yxms= X-Gm-Gg: ASbGncsm66r6UMuioHB9Pz+cpKSNqbVPaBk/gtu67Gg11bxS6SIEOfFSh/jkox2+r3a eHIU3IYo/BVI64oItz4OGWFRYG1STlkhFnTGsaLYLRvgNKA1R47dCxK5JEQB2sZIchgXyF/h6Gp cegoe/AYoLDs42MpvbeQ1Ry8Trvqqrw4CkQDhWNVFcxFp9oqrTZpv/+OjQf2dccOhNdNj9otdy/ kfoACetwHLol2/UsGu/EIVeO3lI9dhr7ZTlxKEIDWT/62/I4cigbCPCphZzez1NixLgt4JEOO4s e64n0HPxLRmi7sI9Zb5M0d2CaqHWRQzfag== 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-samsung-soc@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: 846249 Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (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 990691EE032 for ; Wed, 27 Nov 2024 11:01:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732705308; cv=none; b=e6AyAyfssvs+Y+9AdoHkkcB21IWgZXNlaujrmA6WXlZb6iyfI3KBpqShrz83QZEY+0jqHUaAd6U+Mz9TCCRx5zUGQ45Erm7u1ZvjUepRmHyGMswpBH5xYx1LchS/rWZzcW/ILl/JmSmycvwt8X6qmR2oDATjCV/Kk8oohVwCY0Q= 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.46 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-f46.google.com with SMTP id a640c23a62f3a-a9f1c590ecdso1065382866b.1 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=hcu6RCmAgfJbfRDUf5K0BOpMeMMNfgo2lGhbjiCWu5CAharwfgEqfZhKyBSDrTf+UD d0HxQkTM9GO01qpD2AF083aFK4eDuzicFaMipPtQSgoPu1mSRtqnRN+ZNcbwyu7z6MQO Rt8VbW8v4uzmgIkQcMbRKhHsiS6U8FQTYNd6ER7d5lGmLOeTeKQzTRqLI3GQXjnj5sHe ck5Cr8iCkzevojjVNcmye/wROVRAgArCatka+OSuRR1wwOcJMQat2iJH7ooLsspFRqTB 2A9xkTzjWYqf31SWAgCq9Yj8n5idGaUMNyz+cYn5caFmntDgxqyRx/0LOL7PSrnJ/jxd vb6A== X-Forwarded-Encrypted: i=1; AJvYcCVSTtAszCOV4iYzjaDxFKFYmiyodAzL6eFJ9SXQMQQoIR9Voi/W0b7G5H8IBv56B+mdo9+skq3Y6JSlHglIy67nkQ==@vger.kernel.org X-Gm-Message-State: AOJu0YxHGv04rz8hrrAe2fVyYER9fXrGzQdM9r9IltykHde7QevrxM8v lVxucwruAvbASlQYYagSsmNhP4mL4E4k3omCeufHn1L/8F7HyhPvraWbyvhvAaE= X-Gm-Gg: ASbGncvCGbZnQq0YkGz59yQhhbyRkHNdmTemxVNFOucAXhgyPLyY+u8jEZBM8JiMTJu +OW1CmmkTm2MbVQlLwQN5hSwuQPAAo4zVv/xbXVm3jNe2EXq3uZkAPKWf4c6O8o+e4HhaXE/+Uj 83AG7VjcEucgmHjbyfAdn6DQQEj65zQ00iVOxvpba90/LvtA9bVy5ngnA9EwPTyHmRbm86WYBwc /MWI9nYSqnDu20DY58a95svxfMgCxbP0RWmQM8x40k0AIduqXOWRsRqy157yCcRdsO3QNhwa3Cu TKSoOO3hyibrojskrGTqe2A5hzpMU2so2g== 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-samsung-soc@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: 845891 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 D8DF11EE03B for ; Wed, 27 Nov 2024 11:01:45 +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=1732705308; cv=none; b=P9k7ceXuy97vDd2l096zMLG6/6fqud+1udXSxKTXtnJS75zaYm+Dj2KXmFDGgt5IgJVrAU7075hWwUOzkJZOv0VqU/38vUebBbyc3UfuCCRgkXTzFsHsxnqW5duLWgF36Atx+FDXWZ5trReaL5xpFxfzoGjXu6QMZdGn7Uq2yRc= 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.208.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="Ek/iInXD" Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-5ceb03aaddeso8890195a12.2 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=Cf2TPogwlx+SOnj/kQVcoVin1r2RRQL0uAOHpX7E1cxhd7WE4Lf4FOxwfmfzgjHiRY BvQ7njCw05Ewzs74b46ZYmXwynECrHcloJvOMnxHOME1snFxSMk/5hbfBANGAD+fLH6j ixsXEXZHGJJe8ZW8TvJpTSjRRwiHvWjPMkbJw+4Q+EocC8NFTSsN4RbTUuSYvGx+Bibp bBbSZ8i9M/rFoFOt74A30q5lse82waz5R6VrVrug5ZJ06fFJjzj3DTdkh2gm3mK/zHRo tmKiqEJnX08ls2jWiMFdR28jV5m8QaOe5+fwkN483j8xZmIa3lZIVx7SwBJz4P5KQFRb wRNQ== X-Forwarded-Encrypted: i=1; AJvYcCUmzC8uYaRLwwswrxvEJf5zwNULHfc99X74voQRiuXyIuWiTECl4n23LTjXdPi46nHeakMzuDQyWuAfn7+AKBjzjA==@vger.kernel.org X-Gm-Message-State: AOJu0YwVazUBifSLud1faETnaC1ozb+O2RMORWmFK8GLU5ePtwXi9Bpv y50/mXem2ulL0oeMzEReMMfQIlN4qDf/J7yxTwqjph5UZISIt0Mm85QZMhJNiFg= X-Gm-Gg: ASbGnct2XjO4kYPRLmsk7yzMoJPt69vr2X5PrJnXxQtHeI4wfzjkedPhchKrt0CdDxY G7hWwv6h/zUywaKRMDJsftEuDAPTZEN7WNL+4v4EntWGkujB/Y1h2oAaFu6Lpk2xdFd51Iv7bA2 mHwbyIf6k4G9ud49xb/e92fqWTjK1KlujPNnWlnE8ia6fEWX6D1t9dq7GYV37tY7F0ZVm3QRtE1 rsDEj5Zq9LIFhbCb0n5xRO+BZXyz7t02Qw4Fn+pZ82ergMFaFiVimBOY1PAGbdJ8KuMshc/t0Zt VgRv39j2m9ZWil/XJ6v+VNBuVZKqNrzQeA== 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-samsung-soc@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>;