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: 13886887 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 42DD8D609D5 for ; Wed, 27 Nov 2024 11:11:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=VB/ikfiNeJLME2Jkz2PKwShANoRD6KN3KhS7opfVViA=; b=2Oysu8iHTIzq3yGGPN6kq22B7G cE7r9Sx7ygsKLu4ne5BqhDAnQpo9nOXhzZ5lkw+bPxT5KOjxXGyNM4C5bagszxVEfzU8KokCdFDkY yNjCdnUpT3T/NhcezD/pQzYBfvofZAwYuE8nPtqm9+/Df3WBp5RDggWEGDzLf2NPOcx0aXQmfSaLr wBQx5Ztwl34/ZS5yA9SVWLj4/LeNVMZA2QCrS9RWrq/LZK/InNHYq2zldnlJtA518RZV3VwsqBAEk QsOKVgz2V87G0icT8KA9jfmnNxi0k7cfGn4wjZo/HeJjnIaZSQfNwcIw5GhnSv6Y7eak3qLvyZZdv DgZN1P4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tGFwk-0000000Cxl7-2Cy7; Wed, 27 Nov 2024 11:11:02 +0000 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tGFni-0000000Cw16-2zio for linux-arm-kernel@lists.infradead.org; Wed, 27 Nov 2024 11:01:43 +0000 Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-aa532dcb470so266317666b.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=lists.infradead.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=y5bmkp1tnY8Mexgi2r5QcvRMKXBu0WBxEGUE2mXNW+bzVP6wb1O2bfd9sgjhIwSNKL 0VhFiBTxl/pyqxX7RxtB3hEzY/xYigELbrr513MUkckMCLHl0DyZXvTUgq+1oFrGkR7U OVuwqReJHjgsiYgqIzM/D4wmo7waY1L9KlnAX3nOXpyb5XoqII8ZgflfOc0eGsrvDRD3 YkZ1wHwKB6oy1pgP11d695GFomy/bqigoX1YEChrrMcRzi8pmrNxNvWH59SUeGpCmiGk 7W6qSZWXqth6cGtEsKSC9e25P/ucQyrjSyH1xzNgjTsL3RnuiByYAVtkipklbiVNGrww njng== 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=Px0HlBIF1/po3XXWJ1MB6fd2f/cUUq4hVY2hfeBnK8nbN9VUCApp1fIamB+8BSTyR3 N1jvVMHF7jXs6fPGQ3p0w8iKb7Tfift3E4JhtJkm2pjXWSY1h6NOOR5fjqfYQiov7RvM CqfZZgpu8+lAoCEOkwLQ2L5yrK7ENeBNw9nHBPpUAEZeSyoS7uXd3+wYgVcoSImdHgfk X91JU7aQWOnnb3L97Y/TZwTvr/t6plOesd6nJsk5H9nnQ2WWQeWvp0veLAtw442EOZWa ZugdGFQB9i3D6MUt1eMDTlN/G3i9duRpBE0t2qj4kGic6AG+JiCahCKe5j/BEjpwJ8wF k3aA== X-Forwarded-Encrypted: i=1; AJvYcCWWFT5dGn65ypWaPZetW77OAYuJtmx3XLFIf+E0nwtA8EinfG3Bx6RDZjfQ6Nz3T0LhSWv4BlA5hDSBSXtuQP49@lists.infradead.org X-Gm-Message-State: AOJu0YzLj4qLVIKzWgsJyxnkVsFq+mFPu09QPb95Etl8JehZ0KIpQnTf 91oPQWtaW5ZH9EH3FoIh2pwjpV60oiyklSZFV24EN6tDQ0CdgalpqWx7sLMt0/A= X-Gm-Gg: ASbGncvKubBIEsEvMPu4U4PMgbyCB1TUs7HsuhLDXqhkyD5VH0lHuWT6gYrF+eBIeaw nfpITNh93S0zjBz0ExgpXzvez/4LQWfUwzyDXlT6rtWZoKjidKDEUKnMzmt6T9JYNh3jkTWPsSD C5UKn+taLClt1raLgdHJp2WKV9/jeSiPi1ArX6//xAeyzya4Pvc4Fq/4w7/DS2DwVYtzgkDsw2s HGA6KvgXRBO2FPeBeHCKpoiwkmDB1Ipc49Pgdx8f2X7H3pXWtVX00/eSWUM9ujt1qJYH/AknxFE l3bethVB8fVHXpxGF38IwaR/Ehifd1gVqA== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241127_030142_747262_D46EFDDA X-CRM114-Status: UNSURE ( 9.04 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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: 13886888 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1B6C3D609D3 for ; Wed, 27 Nov 2024 11:12:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=NwFISXzC5YdjT7nYyo3FK0ynEMcXmWD+620yv0Db3ss=; b=RmQ89UpU8QrAxe7e1f2Nw7u6qp 61FBzq9kmjSnmcE67SicAJwSRhv6kGl6ZoxQRY5jeMNCZZSiGKOM/mBtJOA4jbaaX4PVcsawXRoMQ 4l7mcpp8ztaCkdowLo59GdpQLby3zNBh9nOXGoG1louoNQmAtxo1SCBa5VRJmiB+3/64MyeupFqx4 3WEa51V6PTukbHPHJ86CNYWDFVtRwk2e3k4mo9F0Ht9AzValXe447Qnf4vQP98Uso4BMOuBV/hkmc +1A1ezDt/aHR4/2z2M5XNDloAgahGOsBWmR50ANCw5Noh6bXCE7zwut+qXIg0ZHobY+R+4j1RWVa4 2cpSiZRg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tGFxh-0000000CxrC-0ujD; Wed, 27 Nov 2024 11:12:01 +0000 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tGFnj-0000000Cw1Q-1ZAD for linux-arm-kernel@lists.infradead.org; Wed, 27 Nov 2024 11:01:44 +0000 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5cec9609303so7919245a12.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=lists.infradead.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=eLpRbu1t5VGGRccDVSKVPlipxHjabqvVjil5vCpGaIkbahff2DJeWgaBj0euqA2cdb PglnCip1hS90ZWrxftag7W3S91GBajR4vB2FFamMUNfCo191TUSvvuyD1mqXe8Vuzt/f JWXeuNA6ppD67f/5l4AFTDrvpfvlyCuotldMQRzMSoj/ar01Ufio2mTPoVQ1hoPibFUu /jg/Gxn9hlr3MxZHTW3EnZCVkkTY3oCFQp5nP3sGkoMn8bauYJlvNeoKBEafRh+WihnT FB93m2bMUDUMdScbrZ2QrOmcv/4g4Bk679YKar/dHlvtpj1AjVX6sdTF3nbVcgLpGx49 VYIw== 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=S6UJWMux45ipOHDE+0FtZOVKkLYDnIBq5DMqEPahWXOLL0OWPaiiRgvoNYMUQSwpx/ H5Qs9JdhdPSc16UA8ZL0Ay9gvNB+ON1ZF0RxnSUnJX/3hdAH1XqK2EsDvxlssnd2zWtt se3VCMNHp0pvDOz/iPKjWBCDTREKAiHHjtuP7KgiKRkAMpKHhVqrdhSAhS55h18JnZzz v6NII8+W8BUhaSKjUfqj+fWNsEywOgc21pTHzq5KpSMd6pc4zDN931mseUGvQKqKwcQq o2PtTc+899eLeVpQ01J5lnLXlBtEtQeotoxr8YT2FTjBJK9fyyzOGI3RljaQp++lQt5Q LtyQ== X-Forwarded-Encrypted: i=1; AJvYcCUAyhdlZsrjkO2z/XRVmBLWDDi934nD965Lj/djh4WtnNwBijN7hp1legUf2ARjI11MvNaA0b+oEUZiZpCLW6E1@lists.infradead.org X-Gm-Message-State: AOJu0YwEpfFS/y7ruHxAH01rZaEdi/76jzVdfYXMy2+9aAWcLHdGv/9h 1hB4ptd05UV+wOoNYbCdxBACY0xHJTsSCQ5fi7FwVxzvGmE4ZM/R0Qb7f7JlhMc= X-Gm-Gg: ASbGnctc0Ivgsi/7VhqsJLtg5WmrKUIxaVdJMSMYC5Vdl+HEsHDjdwBEbdS8txLCeXX XbWMTIX9bquNEBjLjrGwPACEPU7DTjhpkhYf0xHE/HiovDE8MpJIVEX0n2fbcPYWf1nc/AW8bDx ddlEEzhLfi0TJtvTv6Yk1bRamavc9q7IrStuI4T2ZVV5nWzDZ73yPwAe0SeeQoxI8IlWy9UKOgy TnKNRXJ7qJk7Z2uJ1WRVZ0Ek5rY4AWIu4AKhpfumuMhRof3ZMtO+vre7VkDVssiI94MYt3SJSLw 18dmSt1iXKwylNw6kCfjwnw11StBw0IQCw== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241127_030143_407843_9E6451B7 X-CRM114-Status: GOOD ( 10.94 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- 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: 13886899 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4B29CD609D7 for ; Wed, 27 Nov 2024 11:16:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=sFCCGNoly/ihHw+f0V0Z4F6JNgdV9f0RgxXs1v/pmwo=; b=LTuHoszt/Yox3Zw4iCTK6qqMN8 DFJDlm6RhR3GOuu8TkjCjydNOxb3T62GchNBmoWFhPZVybFHjyJP2xGd8d15+VZSAvDewiRexwg2I 7OxdxN1W3uzOIuBsDgU/ux5iy8X71OHMJOxpyxENyghH6IvHNTx04b3auO75e5IzOrIen9j4+MepP QTRcvoplWN5KdzOiAJ5OKC70HuCQqoMKAfvV8F6nxelzwPqG7EU4NULlUeGImNiGdOHP5dsp/o78D BXXA1pMm3Xxpg3muYNCbTDbqJbRhb3BhD7R3Jw3bF6ve/LfvsGskBFp+XeVP3LcDO2kpESu7uorfi 9e7NmEjA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tGG1S-0000000CyRc-3Pox; Wed, 27 Nov 2024 11:15:54 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tGFnn-0000000Cw3b-2OaP for linux-arm-kernel@bombadil.infradead.org; Wed, 27 Nov 2024 11:01:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Sender:Reply-To:Content-ID:Content-Description; bh=sFCCGNoly/ihHw+f0V0Z4F6JNgdV9f0RgxXs1v/pmwo=; b=GMxccAivzQCSbkNapOEz5DeMuT nBpkxKEiy3SvxFT43OslhE+u38i1T2YUjkK6bWFiuvDDTYDFprhxKvQVeSXpdBzjk0JWDKCppMwhz rBxsNcEZ6e9ud+nG/Il/p92txoWmpelbiLmTg/1QUAhmWRduPKBHmcj51msFYSd26XYpGmCLUJKze zztrJxQexX1zaNRPTEsBI1VnAqKgMC9Y+WnQWFlLt+f9FZmt0c1UjvSZnxn8d+eBiMG8qTCFHf3kL uKKaVShZq7EbKcL61r8luiGnqSOl7KYJUeyUsvDeGB0VZVuJqloI2Dick9J/aLZmPa2pAC75SKDO/ 74q6BLoA==; Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by desiato.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tGFnk-00000001P2g-2zYB for linux-arm-kernel@lists.infradead.org; Wed, 27 Nov 2024 11:01:46 +0000 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-5ced377447bso8944950a12.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=lists.infradead.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=W1yABxk4HKbZafnuQKsOzi4kTC62l87JV08raz+SkGYJV3sJfjgo8VbcrlT35cPHUQ C7URF9kDGL2Tojcx5gpAfmQtZSrzD/4H5Fd8C03UrAUGuAcW5IyoWgE6GYh+WdSN04ke BnrHkbCyU788szvWGB5MyxcBZXueIX3KcetX+k2Ja9ltV2172MAWEMWDBGtADc7FXpgf 80m7EeRgDJj8jNQYL3qCscFY8Nt0Mk6Vl7qL6qVuK/xWDLLoVCsBZkeSCGJHpD5rOjrS aAt2zAqGcJCBWkqIRabmZfNjG5R90ZnlmPlhVFxypLMpmeMpO4qDxxjtYoX9KIOokljo eIig== 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=gx2xv5ZCSdTgTaEBZI9ypjXo8cCpe785lt5nT0nZnP1Uf60WtPkL+XUderKCeZEbct +YnIRGSbtQqVbxiBbOXDpuAyd9sw2aDygeGc8u2TE5jFi2qqNpZBeNIQIxDt9tLOGyvX ghywf1LWrjpydNSseMsji8ZQE3nM4uka1Ix4hEtutVDnHfecGHaLq+AY1miwU553exgP BxvAKtjHL0E6kr+iXxV/l6yldZeBPkjC9CKKd9m6QcrvT5mTvOcK1wl6xIKxySI527y8 hKLT4sywQA1FFa43ypsCus8ZUQpsM5k9d+ktaKWpLwhY0aWPknhJ3fqgy2FhMydswPMc ONgQ== X-Forwarded-Encrypted: i=1; AJvYcCWy4vKkFe8FdDNhh0DJNG6f55vdlOiK2hzAyMzc9dMf4m4lqsqTxBdhHeKf/J3wFzu7qERyA4cnQWnijPMAMYnL@lists.infradead.org X-Gm-Message-State: AOJu0YwsL55PLrjD3ynSjLwNvA1PEBP/mAxEX7iPdFzSn5f3U5hw7t41 g1StlxYX0h86O02tdwY832M9YGTI6cwPzPrlsG7We9jBiyXdUJ5NEQ69xGtOKKA= X-Gm-Gg: ASbGncuclC0yk5Tv2Y4Xpf4hoddDy/0mvlLUqZ4xLTIzYzEN8dW719J+yvsG7L3YYn0 pDneeiXy5NFDgIEkPhxt3LM8DJ/0Qy4HG3NZORcxyFYEHGUkCkDnsDej0SIA8tBPK/p+7ZDB7Wi /OueS4zNzCgkfaERfktSjMlsNHBU72vdYqYTrAPK9ZT58kW8RGTZi8SMKTST+IQ4wOzeSebOrdN Hby4MlNIaPcKR/PkCO2UEVo/iSMcXzJBAWLlIN0gVpl72Xtu+xtRLdGfhFvlcq9t+CQe2mbAlfr zoiTMcCeHfwntprf7Z3S5QipR53ln223TA== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241127_110144_890524_18AFCB7D X-CRM114-Status: GOOD ( 12.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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: 13886889 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E84E7D609D6 for ; Wed, 27 Nov 2024 11:13:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=HOjDTz5quesA/57iR2U9/Cgnc4v0qy5hefL79EGSNfA=; b=ReP4ko/GiHOmTIhV1BYzJ9HLMt weHh+FkE4nLPWjR/rkR+scHslpPtiBfvLj+AU5V2x8XaLgWJ7DKAbh4Y68MhApSi96qMw1uGQSc3V uO1anoOD/VunNIh43GVJKEHPzbLa34anPNZYGt/WkxUAX1/81m6Hs9oNGyEoE7RSvh4hzav1H3h2W MtJ3kOlKQGawxpnGUvU0qEQ0AjDWUP5n+R8LDVb9lxVs3rAYLAmBmJ1QfgmR6R6fuILFsKGJv2L8I ioXxTVJ0u68zKMzB+GI7fxSAbLdQ7m3ARKEI3Hb+8Euf/eeoA0b8b2b39ztEwDfqUPo/YYJMS/YKv 2bTW5vuA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tGFyc-0000000Cxzb-3oOJ; Wed, 27 Nov 2024 11:12:58 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tGFnk-0000000Cw2B-1r05 for linux-arm-kernel@lists.infradead.org; Wed, 27 Nov 2024 11:01:45 +0000 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-5cf9ef18ae9so1194090a12.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=lists.infradead.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=sWRoOyKrFhwvNtaJ9BYR3UmffxfHmB11ZzL7Bsk/jIIz5gIe8lhanrK/Ezpjf9DPg9 edgXVHzcl/pvujI4nJzszZeRE94pq3nh4P284EOt6NTf/TfuF6J/YRk0xw067XMIQRCd Mz78xF0emGSVK3zw8jILAJyAJ0sAw5qYdnaWqtymQH6xPonD25dvE/U6Iyo0a22NuArz wVZj0NRTeAmf3n7xo7URhsU39UAV6F0L3GreERHC19dwGjIY2HFHattFeDk6HJMfbqV7 Zusn9Ye5QaqR7T+EYT9yEJ90+GhIsinTMohVs7QF6aGyuQpjgDOeADrNOn3Eem38UqMs 3jRA== 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=d5NaB2+GijG2iNkLtuHhSwYpkE7WLRt9HOFxqdb9BKkRYfQum6K833YDOkwc2muvul Z9UkNt5hbKT/AGHVBmKkWy1sFZvPN9BjtWVhFQhvCgq1qoFx6KXr7N3XxF8SvjkOLcKN VadE+cW+JFCyy4vRbH8fwNtUH6QjMbmk9+zUX6ijhHkKNLux1dvfkUaJragZDfP7zS7A c6NRiY8vMPfeRRJfgYmhx9pubuThwyjoi/jbRX79keGTInL6yt/f8mJfQNQIb6IuErRH VUXDm8lTmqpvfME0PVCAY3e+gLsmSgL/j82QAFRrsTqnMGXRs0m64ZkJ4baD6swlTyG8 4vMA== X-Forwarded-Encrypted: i=1; AJvYcCU9mBUHMjxaKMWb3bxYH+rAcyUAHSQcQN3QK/biKEZr+fiuWcXWxG+frhutJTjb4x1eMpKKXtkH8HLuvi2/cgll@lists.infradead.org X-Gm-Message-State: AOJu0YzygmBf3XVm6Yv/ffOp2XtPCBl2YQ6I2gyjQHuvv8o+KNKhRpXP 7gqbTzBur6SbU2+nfsdjcRodVUCzSHMnxUtD3xFxbKtu9y8BweUKp3B0dmrkSt8= X-Gm-Gg: ASbGncv5DSMC6hvi2A//d+s13CZjXecBHppDbrUEgNFDOYyasrhtlYFhqAftvzeO+gE qbDK5yayrC1pH4OBcZqofbDqjb0QEecqYP4uiEux36sZAlkPbaz7tXCQdhonGltZ8pNG2j8qG5f eNGtHn5BRGQ5rPfz9fylqcibtFgEz737FL5d8hr1Rg/axstW/gnsC+g/zaewD2+TiQ7oWmXUgzk pxvPHiMQ/u+4PydRx8juSeWviWYCZnDxFyTjWvHjh1FAajYrIUgf7tLyiArMoXxZa4ZC5/Cp3O6 X0C8uDCVulrOO/9uMQk6u11Ev7GSBGtcOg== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241127_030144_477622_D1554690 X-CRM114-Status: UNSURE ( 9.33 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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: 13886897 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3562ED609D8 for ; Wed, 27 Nov 2024 11:14:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=lE4wmixBBgayLXBCtLCcMeypgTnpcFbWaBYeAtvt70Q=; b=deVPMnyQ6qiS/YR8T0RpKGsL6t /jGyBkSfNtYCmc4DGnzqxOFriY9DWQFH+ndI6M2GPjxvp0b1E3PvA7f8vGFAA59Dy97vvn5Gn4zgc N0Jn52aqEjFX+itPsLXGori6tHc8BvhFCIFjPKIP35oTTQT05HCdOCb4D+hPx4u/UsG3vhsgJbbvN BvKMWAlhENCtVbHVWii0NHj/vdNsZHWtnLyWTaiIeDjxphFsPCAFfXrMOhTDQmSF8rMfaZl2wMTR3 Ag2qDMvYz2I1N4UrjW7Po6nnW6E3yrpqt3aLuKKB/zZtgGBL1CfnIuswt7/uGTGMI7Pg45243y48V nh5CkV4Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tGFzZ-0000000Cy61-2JPG; Wed, 27 Nov 2024 11:13:57 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tGFnl-0000000Cw2M-02Oe for linux-arm-kernel@lists.infradead.org; Wed, 27 Nov 2024 11:01:46 +0000 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a9ec267b879so952805666b.2 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=1732705304; x=1733310104; darn=lists.infradead.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=tFXwZgeAwHvmgtjYACWrjH+L/RKNXkN6Z22ESKnb9uoiXglifYo9nZmH+GDC+a3dXm 59yHpkxK+PGo5zCqi4Wuzte+OAFEez8ZxTHnSE6bfYzqjWZzG0Y5DZ6ebJX3NLshvZlK lYTdWZkKp+K59mpkhjyOdSkUc22YZ639mPKrxWRY9xLxsocAhqRCHThNQtKKTt7n7Gk7 4pYezCd2lL+yfrkKC6OH1HYihcpj92vV0NyM4BLyag7khTVLdd1iBq5slzqZR+GHR5NZ wOMz0p6R62FTYYUhrtLBUIzNfS+Dnr27oFvIHjFoMWsrMttVBfCevGA5a6gopH+mJJRQ NylA== 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=Wzq/r37T7kvROA9hMCwehPp0A8E4b1sL7keQKZRa0b8lsl+TS+AMJzQoaCBCIG7h1V MMstnujOrWbETUDDd42wGWI/H6CDZPEKXXoVLwGraNPNRNBxKF+GHM+NcmqwhCbih9VX RbM8wePNYCORewgq5zU6OAFHlhoi9v7SIF/S/TYIDaLcyHfH6acvTUI7AUjt49dwqQWd Nhv/KylLUUGcpEy/oS7wdrZufixqGfsNcrR+pzcZibm1riMg4zXT2z7B4LN7fFinLkO6 ClWTqgpTNyjCsZJG1GkLri6VUMRSskqYZPHu6+GZtpucDPYPxxSmdqwE9NiCapWGGd3s CoAg== X-Forwarded-Encrypted: i=1; AJvYcCXBndTPfEQSrbBceduuc9fSXJyF3MpsXJCooMrds8yV8io/FTL9q3redDbYUt1zW1LD9j6Ro2w/U4EO1WmoLA5s@lists.infradead.org X-Gm-Message-State: AOJu0YwapywV8JWr8tXaVpNR3I2lBkV/TpeLpNZmCJokrkZokjGNezkL wyl8QzKE9YW6jbMn+USB3gyR47b+foKgp8p6XudDzXaNon4juYuirrqDPUE5Iu4= X-Gm-Gg: ASbGnctD+NNuZ89WDZI/eAIp7tAYljtkOKSuMG8h7OFEeb8T6j6yiQS6Jnoj6efDJou irGJ19WuJ3EDs2Hl0ghyZgSa2qVxgNxvDUJWO4jZ7ogsNLLY30CfucKvdJM/zs9OHjmbA0m6dWY m/uvtC5X2d7bDX9kXB5MMIKqoPnfy4PY9snQI1U5IZTbV+2t1UZIGySACbzuoMANAnhRi11CV++ kyHmVdktCqdMwUfOmN7KuvKU+UfotqKprXNcfNfIqS8ptERoFUmlTJuDjIQ4ZaSMuEpIvY/K0Gz fD1iVPOXyXsWMBQDathlEF8MM1fVn9S0kg== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241127_030145_058414_B2A81761 X-CRM114-Status: GOOD ( 13.89 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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: 13886898 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 45820D609D7 for ; Wed, 27 Nov 2024 11:15:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=J4erez+OR7MplArQbIopexB2PZBOe/GVnXjpG92loz8=; b=Sxy2Uyt+BRsQr5w8zX8VZZ09jt tlFWWxIflr2cNSth6mE6f6gQkCMPxKXLafgyy848WsywCTPiJLXt6TpMbHl0tunmGr3/15m2km2S+ vzVilB+NvpLj6n7bnFWnQLPZZmXEUFDBCYW46sGgV4hnmSt5QofbketSg4o7/sKelY9YTxfF53gGi dz7YuV5eR4UZN13Zv3frmzgHxy9Sb6owBqxdUEZ6NBaNuXgreuDRbugIanjODDQGCYgS1gUxkiYRR gDoJF/nVa/zy2qbd/67EPMT2Mk2iHHBUK0p4K+JrwsTUEs7hBIgk/u/wKbYUkFaPxTMtaQDmzb6EL ep1nQjag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tGG0V-0000000CyDI-0pjm; Wed, 27 Nov 2024 11:14:55 +0000 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tGFnl-0000000Cw2h-2YX2 for linux-arm-kernel@lists.infradead.org; Wed, 27 Nov 2024 11:01:46 +0000 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-aa55da18f89so400218166b.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=lists.infradead.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=QZViVW59Zv1Cpmj0QWbqE6L2QLCp1SdSq11ziFN41yxIJu4vD++McqLRxZjGNN/GYU OUzYbub8hldoCcPCuR7iI5+zJkvf6CA1/b/zQl8aYu4KNkuYeJX8KHgIf4+3lsOT/78y +DasOSKQgJVFBmrIdTzAev0oZ0JUV+9q28jhgghKOsvLnyNMrf5o0MLMEvKnBvMBbM+x qelpmKfN9zTk2OEv7B3bJshiUVm+xPVTlvsAsDdIimUV745ZPwn7ELXo9Mb1DbXtYSLn /Q8UN9a4+HrnfZ5FH5hiqdT5Z8lnO5KH2KB0dwivhgL+usA/LMLytWbp++/9oinlRmyk 3opQ== 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=dwPo101QOkPWi/jNTJH2z3u9d+nc1LlPo91qsZ+Kk9ZnCIhCo1v6WhMnw+Lw1sPexK 70wtWTlTa4w8pagHrJd9noLGBUSuwXCtfu9/6MkUeqQ7aNReJDoudrkkg6qj56r6LLDw cAZZAcPzmYETELHujYRpCOykDAyJ6eeWCwMig+ZfTPkLw2NmmepSO74ZxnEHW8IkgEj4 9rATCkRjONTl7ET0qhSN0b+6YrDEI2BGVME6TXm0wYEJopTwOfwnMpysNw5VEKrFR7Ji 0VCsOeKH9KXB++IzydZdBvgMmVTYiPbHGmgpE20OFU/BsCdP/KxLyUsRLyn/IoEC9i6A T1DA== X-Forwarded-Encrypted: i=1; AJvYcCUuMaEb1by7nBYt8mMQ5tN5zqgtyqrkQnhtbPd/qE1/WnUNt8EeMA3C9wT7BksHTA6T216K3yDEvpMdRUg7PH1P@lists.infradead.org X-Gm-Message-State: AOJu0YwpGKzsULaBpP3qWksQIUWZTDKZG8VfmIacYWH5TgEBhZiXiUeh 0J7wrJTlJeu0MQyyRVQHvrMudz2H5kiJ2poCOfKf3qJAEELiUF+2b5b6uelAYlM= X-Gm-Gg: ASbGnctE9t8rPJ+RTWzKxCx8Gc5DMi0yL9OFvbR6in8nytSECMvyD8PLZ3/BWxxKLgA yLV9hWROWV5dSOKcZNPZwm1bYHHcFXUEPJHC4meJ2B2dAhHL+6/ZlbrplvROT3V7Y7+IY1JV8fH YgFL1WlttFYSfuhOoPWzDURbQmVVTg1Xv5Zuo20JHDbWgtDHXSHuNk/IqzQ4jli1hsl1scOlm7N w2ByJ/6GYdRJXA8qxW4V8+j9YeI3jxUi4QzGJ9waFnNWqJreyy/5s5hdFF4yuAvezZ8/N07sff8 mJOOsDKbWFsSRM5YRZAEOkbOScmjk4sHng== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241127_030145_644441_30A1237A X-CRM114-Status: GOOD ( 14.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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>;