Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1267096lqa; Mon, 29 Apr 2024 03:36:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVhOrzBkD5hdWNq9909Ub5AIrT14kd9PeS6Wuiwj7MakglwIjejarEITDONPxebDEc/Iqy2ar4JHRK1vMZtXA0ggZmTkcNBzKqd+OMTqg== X-Google-Smtp-Source: AGHT+IH99PSzqDioXcyn5gkoB6IA7s+tozrMGraZ7MUhZT8XoAo7Lmo0zZzTRfLjm9LIvvzFcH96 X-Received: by 2002:a17:906:aeda:b0:a58:7ce0:8ebd with SMTP id me26-20020a170906aeda00b00a587ce08ebdmr5858456ejb.19.1714386983011; Mon, 29 Apr 2024 03:36:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714386982; cv=pass; d=google.com; s=arc-20160816; b=J8HWjo/esi/Lno2bSsvohVywhy5YiTSaToJFwFyzrCkHSehepVJWZn1QKRInAeHQZJ GB1hcVtAd0xWEGYMPVN0tV27LSpnWwCCCeT7sOgQjsPbvKfk4si9IMxzhRsGzojFjrqZ 2q54v7ydNaPGM3zfsQYRtKqGNFAuXOBamdsx/0cgQuwX9YCU6tUC6dpBuYboujGCohGt oxO7D/r2hAev6vC3o3Cxx2XhWbISMEOFSuekfUYdPnZi2jR2VE9fU1fnIzLlb33ALmi5 lAT79ahQA0fs/paiZQQPS8nsVBPm3rjFU/trSW8KKBTBihYn7hpizX0JYCZtQNPgNis5 mwfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=BotRiJuMknWO6A5uoPFQl9tYeRWBO9rg60FRsrEoXKY=; fh=ajUXBl1VER843amMY69+Zp7TVbEnjPlTWh0aNx5KAtA=; b=DlvWk5lS2fSxuVKcscC9D8inGvLy1Vrxt/MBx/2zSxKsUaQZyBsOkah6k1OpHjAKcH 1ylYX8CJBrv8baaDmLTc8LBnXU9BsHxSlZFIXjv2p0CsdtiNQ/W/VvZGYXez0aUiSO/d KVImgGOQL3Zgow1GKbmAxDWynqUa73BYJhNDh8OQfn1eL1aoZ/j4hIuOMYjbP77YJIEn 1SiOeXqTgS7Lc6w6fGUD/QR6qaRLUEPnW/1DY0crH70Xcv9trcDYdiziVlEG3vWloojV YbTxto57QhE3sd6ZVs9m1YCIKlJKbp9cO/+M1nikrXlw5R5d0ZI4PcV8znjmsazc/YAg UC5Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sBED0H0I; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-162064-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162064-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id hs39-20020a1709073ea700b00a55b9ce9762si9760256ejc.499.2024.04.29.03.36.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 03:36:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162064-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sBED0H0I; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-162064-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162064-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 945001F2117C for ; Mon, 29 Apr 2024 10:36:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 239BB3BBFE; Mon, 29 Apr 2024 10:35:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="sBED0H0I" Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 96B4A39FE0 for ; Mon, 29 Apr 2024 10:35:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714386955; cv=none; b=YsaIAky61nVBX9PYWv1eeOjWSPXfv85GBagXJJ473tz9egZnDRkNxDG2bXTtzHPVjoWCP9VlXpW0/SUQvA5aA1jHeHCBT5BZYK/T0z48sUuw8looQWpNX3K/veCr+FzpsxnVMlCTUw0vRO+suA7/TOzl7uzntU414eRvNdwl1SQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714386955; c=relaxed/simple; bh=fts+EqqJEQMrSn2q2Mnm1gRT3XAykdHfEXeGyXOoxD8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=oQ/QFrJ/QJbIlH9FKbsex/fqVfDHZbq277EVRnunGZ0Zc/1lKv5PrQ4VPRf172Oa6P1gLCchAQDzmVjUooWhTFYtj90ihVDpVf85dXET/9SDi3+223REbUzf0RQH8ZmRmhHbNQtKPk9u/TRPFrUQ90IyhJdy6cyoVHtq6eIe/74= 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=sBED0H0I; arc=none smtp.client-ip=209.85.208.41 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 Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-57288691c07so558505a12.3 for ; Mon, 29 Apr 2024 03:35:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714386952; x=1714991752; 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=BotRiJuMknWO6A5uoPFQl9tYeRWBO9rg60FRsrEoXKY=; b=sBED0H0IlFIapE29mdU+pj/yq+rIygRb89s4O6RV91k0Gqmv9F8H11201zr741v4xw /qojsXWw0yU7moG2rcNbPO31+qpq4LWrui22B2/w+SxGTJmmPDvJO2zzy9sO+G3Y/pOM koF8SYMNRG4i1X0ht+1ycsjt5QQmnT9dpDulH+5MSURSd1U9KYMQgBCrxD8AuMFvX1Oy /CCF7eSkTTIxD6qanFa2OUoSHQTlchTS4rVLG56Fm2H7pL3rbSs8oPJGFcUgSOGoTXyd CHiC/LX4MEqLndN8rwO2cf9wqrfL83CQ5m1H2D1i6LbUdtrm45WpIkatb+rM13+8B3FW oy5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714386952; x=1714991752; 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=BotRiJuMknWO6A5uoPFQl9tYeRWBO9rg60FRsrEoXKY=; b=YrNw+uJ8qnSDHFPuaI8khLcWCOXgtqpV2tbEcLXI4aBtEjgTAHSXBiAM3OUtBySllp iJQSOKghVF6XyKZJBnxY+v1y9nwE7n/Y1VjiWcXFYZFUvXwYR2EzMLM33o5YHDdx9W62 Z4ghYRuYLw3sd/J5owWoLqX7Gmr5TkH/M0eC+LjJakrwiXJ5+s5V0D7vAjzpyweX1c/G hkII3S6+HQzbb7BibskM+7cCda71vcQkFL+48Gi5o4pwzgNxwjHu+8/25FvmGCHukPzZ eAqD67DAqGf9x3M2d3uWKIb/VVF1Xhd0Qo6/pCEYpgWriZVsZWoIah2iyLWk958qH1Fr C5cA== X-Forwarded-Encrypted: i=1; AJvYcCXz2xlZUEaU1V0iOkuQNSnS6RqZAS/BAlNE3L7+1+7eTSsqyWESF/wF2/lQiyO3aFZAuEeruUrhUclNS6OMWw9NHpQbGc+i77ZuM2OL X-Gm-Message-State: AOJu0YwTsVfUdf4CRxoAqbx0iWSrpdCe07Oo2gyFCT0tthBoeKlKumXa vDoBnSNbeDo4S+X0Rd5tQ+C1o5vCPRyoUfGvpxK24TiYZqL/HfbFjccrXx1f+sY= X-Received: by 2002:a17:906:fa1a:b0:a52:1e53:febf with SMTP id lo26-20020a170906fa1a00b00a521e53febfmr5597846ejb.69.1714386952083; Mon, 29 Apr 2024 03:35:52 -0700 (PDT) Received: from puffmais.c.googlers.com (8.239.204.35.bc.googleusercontent.com. [35.204.239.8]) by smtp.gmail.com with ESMTPSA id a7-20020a170906670700b00a522bef9f06sm13717707ejp.181.2024.04.29.03.35.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 03:35:51 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Mon, 29 Apr 2024 11:35:50 +0100 Subject: [PATCH v2 2/2] arm64: dts: exynos: gs101-oriole: enable USB on this board Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240429-usb-dts-gs101-v2-2-7c1797c9db80@linaro.org> References: <20240429-usb-dts-gs101-v2-0-7c1797c9db80@linaro.org> In-Reply-To: <20240429-usb-dts-gs101-v2-0-7c1797c9db80@linaro.org> To: Peter Griffin , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar Cc: Tudor Ambarus , Will McVicker , Roy Luo , kernel-team@android.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.12.4 Pixel 6 (Oriole) has a USB-C connector that can act as host or device. The USB role is detected dynamically using a MAX77759 TCPCI controller, but since there is no driver for the MAX77759, the role is defaulted to peripheral, without any endpoints / ports. This allows Oriole to be configured as a gadget, e.g. using configfs. As PMIC regulators are not implemented yet, we rely on USB LDOs being enabled by the bootloader. A placeholder regulator is used for now. Signed-off-by: AndrĂ© Draszik --- v2: fix commit message --- arch/arm64/boot/dts/exynos/google/gs101-oriole.dts | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts index 6be15e990b65..03b2a6fdfdc4 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts +++ b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts @@ -53,6 +53,12 @@ button-power { wakeup-source; }; }; + + /* TODO: Remove this once PMIC is implemented */ + reg_placeholder: regulator-0 { + compatible = "regulator-fixed"; + regulator-name = "placeholder_reg"; + }; }; &ext_24_5m { @@ -106,6 +112,24 @@ &serial_0 { status = "okay"; }; +&usbdrd31 { + status = "okay"; + vdd10-supply = <®_placeholder>; + vdd33-supply = <®_placeholder>; +}; + +&usbdrd31_dwc3 { + dr_mode = "otg"; + usb-role-switch; + role-switch-default-mode = "peripheral"; + maximum-speed = "super-speed-plus"; + status = "okay"; +}; + +&usbdrd31_phy { + status = "okay"; +}; + &usi_uart { samsung,clkreq-on; /* needed for UART mode */ status = "okay"; -- 2.44.0.769.g3c40516874-goog