From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (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 28CE61F4289 for ; Wed, 26 Mar 2025 16:23:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743006234; cv=none; b=qi54/2qLkB7DaSVxY9NmB+nCdDUYrTjVekFnh73fYYn6TNkrkDstuag6Wv+n05OHk/OSdT+ozVo/o2oBoozOTvYIkbLR/dF4holxAN0ILHfsyv+8hTXOUPkKAaAvERbyj+b4Qr6Uvrh1lBLNduYw5jOL8b6LhmcF/TsNZ97zhpA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743006234; c=relaxed/simple; bh=O/r8gbGACCdKsQpd9YaJGrSlEj//D5Z8hvnF0c8Mbxo=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=hKf6XbuV42H1Pfce7BfeREyfQR/KxsX0lKhCG9g/lt0jigGHe8zwRwze2U59uGHoRZ4pujX1RnYAVEMDKZQMVlysMxoAkd+T21w5IZR42DoWIlsah6W/MNmKikF9pnm44VXH14L2NWs/whnA4vUJUBWg2+WGqXk9yLnnYddfsBY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=thaumatec.com; spf=pass smtp.mailfrom=thaumatec.com; dkim=pass (2048-bit key) header.d=thaumatec-com.20230601.gappssmtp.com header.i=@thaumatec-com.20230601.gappssmtp.com header.b=aaQ1J2Xv; arc=none smtp.client-ip=209.85.218.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=thaumatec.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=thaumatec.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=thaumatec-com.20230601.gappssmtp.com header.i=@thaumatec-com.20230601.gappssmtp.com header.b="aaQ1J2Xv" Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-ac289147833so1041010666b.2 for ; Wed, 26 Mar 2025 09:23:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thaumatec-com.20230601.gappssmtp.com; s=20230601; t=1743006229; x=1743611029; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=fKYanQIfYCncszgpyLAY2Jfcp3L50T71jyYK0/4Yps0=; b=aaQ1J2Xv/kKn9m8lRKyeMZvTwyLiN0Fc61PmVzA9H4mufDlqqtGz5IwOxqRILCrI9+ amfw4dS3kGaMPBJwKnr20qI1rdaeULirbqG7KU01UMTGINRYhRf9RZ5Nzm8YXEkhHK06 I6UTvp5sxlmkPPcpz2JYfaH5at0NxcsxMiFyo6VuqymDPonhj8uKYh7aHQfpGXIdImjs O27PwlMjAoZEj7cBBM5NHnWk6f9hgO8pFsqtBkdy0MuIq9iWRpZLhwCRkn3Ep8S2EzGU +51K7FZRqoVdAjWYxZbQBCOkGtNMGk/1rgsF1tCSZ+Qo1L9FWEn8btuPYhq8oiqs4ZGa YKmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743006229; x=1743611029; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fKYanQIfYCncszgpyLAY2Jfcp3L50T71jyYK0/4Yps0=; b=LrUqUGer0vfSqUeJDY6aP7QU+UOpOKscN+UUzDuSHLIytHHTmnv77b9x0qTvpW2Z9Y lfEk5pk6Bs7qO5VXfV73IU3BTvH8jePwKzDIEslYPfh6sODXsc+2A0A704M8vquK7JbW 2YpNFejD9vyVtqlrKIN87Y+L1qnlV7iyT1lz6jr7yFCSw//cqF1Zou9MBQCvM7zjvJd0 BoZHxFkXSV5ibfR45wTyKbBCJiP+kpISePD00iJTp+pT/j2eE22AYXA8YP+33eMyiQBO Vujfo5hQqPHyOqkHORTPUdPvqrQZuvReXzr9BDCaQb0vdXATR71CVqBNLSSSpstYAadn SHDg== X-Forwarded-Encrypted: i=1; AJvYcCUa1aof/MlVYB3lkS1Z8RmZJPs8iSzfQeNXEWM/8hFkSj01tKxgPw263QVRVCf/OZ8s6XDtCC24wQ8V@vger.kernel.org X-Gm-Message-State: AOJu0YxNso9QVBsHfdohq2713hDkiGOP7oQTUaWljjoHRW1IPUjC3Km3 f91rnsUPhoIBuvQ9oN0UYEdyUAqhlhhh0Z2gtM1C6inmP2dOce7LX5sXbvvwa8w= X-Gm-Gg: ASbGncvT9rmzoVAg2NWKyzqdvXd5ZuiVd+35BkIY2dGXmRPuefBCPmF59UMFj4c48uC JzO/MxhX28dFM0fK6WYQsCgS7VNnLC1cAlvE5wWg+C6uFM8ou5mkki8SpgPIaMJ1BUdte+wf443 5sNfMMFuAzqv6mp+1MHlHfu0VLlXhiqUA1J1SwRuCEl7qL5fZDHb7WA0uWXTZwfhnA4C7V8wOJh Op9uYP8qsKavdAtJIKTZJKKJCRPWwjHgUMyux9vsIBBed9ZzsLcfsypAXaEng2VVly3L2WxEPg8 BrxdEZdUTDj7FQOxeAjR3Bg9sfBLMK4ru1dJiS7P7gzNs0jFKh+t6A/FiA== X-Google-Smtp-Source: AGHT+IHTxPRGm5mNkyz/LXIEUO2w8nqKfRSkk2yHl8zPEU3IqZLbPjnGdEzUK5cPc1Bb6wHgkTIrlA== X-Received: by 2002:a17:906:7949:b0:abf:3cb2:1c04 with SMTP id a640c23a62f3a-ac6fae428c5mr5377966b.9.1743006229345; Wed, 26 Mar 2025 09:23:49 -0700 (PDT) Received: from [127.0.1.1] ([91.90.172.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ac6f0f498ecsm76678866b.135.2025.03.26.09.23.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Mar 2025 09:23:49 -0700 (PDT) From: Lukasz Czechowski Subject: [PATCH 0/5] Fix onboard USB hub instability on RK3399 Puma SoM Date: Wed, 26 Mar 2025 17:22:55 +0100 Message-Id: <20250326-onboard_usb_dev-v1-0-a4b0a5d1b32c@thaumatec.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAN8p5GcC/x3MQQqAIBBA0avIrBPUsKKrRMSUU81GY6QIorsnL d/i/wcyCVOGXj0gdHHmFAtspWDZMW6kORSDM86b2jU6xTmhhOnM8xTo0tgupqmxQ289lOoQWvn +j8P4vh/3hyZEYQAAAA== To: Matthias Kaehlcke , Greg Kroah-Hartman , Benjamin Bara , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Klaus Goger Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Lukasz Czechowski , quentin.schulz@cherry.de, stable@vger.kernel.org X-Mailer: b4 0.13.0 The RK3399 Puma SoM contains the internal Cypress CYUSB3304 USB hub, that shows instability due to improper reset pin configuration. Currently reset pin is modeled as a vcc5v0_host regulator, that might result in too short reset pulse duration. Starting with the v6.6, the Onboard USB hub driver (later renamed to Onboard USB dev) contains support for Cypress HX3 hub family. It can be now used to correctly model the RK3399 Puma SoM hardware. The first commits in this series fix the onboard USB dev driver to support all HX3 hub variants, including the CYUSB3304 found in the RK3399 Puma SoM. This allows to introduce fix for internal USB hub instability on RK3399 Puma, by replacing the vcc5v0_host regulator with cy3304_reset, used inside the hub node. Please be aware that the patch that fixes USB hub instability in arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi can me merged only after updating the Onboard USB dev driver, otherwise the hub will not work. Two last commits in the series disable unrouted USB controllers and PHYs on RK3399 Puma SOM and Haikou carrier board, with no intended functional changes. Signed-off-by: Lukasz Czechowski --- Lukasz Czechowski (3): usb: misc: onboard_usb_dev: fix support for Cypress HX3 hubs dt-bindings: usb: cypress,hx3: Add support for all variants arm64: dts: rockchip: fix internal USB hub instability on RK3399 Puma Quentin Schulz (2): arm64: dts: rockchip: disable unrouted USB controllers and PHY on RK3399 Puma arm64: dts: rockchip: disable unrouted USB controllers and PHY on RK3399 Puma with Haikou .../devicetree/bindings/usb/cypress,hx3.yaml | 6 +++ .../arm64/boot/dts/rockchip/rk3399-puma-haikou.dts | 8 ---- arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi | 43 ++++++++++------------ drivers/usb/misc/onboard_usb_dev.c | 10 ++++- drivers/usb/misc/onboard_usb_dev.h | 6 +++ 5 files changed, 39 insertions(+), 34 deletions(-) --- base-commit: 1e26c5e28ca5821a824e90dd359556f5e9e7b89f change-id: 20250326-onboard_usb_dev-a7c063a8a515 Best regards, -- Lukasz Czechowski