From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.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 0CBF6266B47 for ; Fri, 25 Apr 2025 15:18:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745594329; cv=none; b=Q+AyF08UeARPRquMHAYHXhXEIontfr3KNYj7ejVNewVKlLOp3gspp09Z5JtPXClhuxkn4G1POT99QsRs/mqTGbXpMjjVBZggrBMfFVnG/JdCaAY+H6V6riq5DyAWUKKAKt9L9Bwrf57ljenROo2zcX+4RHr638EyDETHojeO6aI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745594329; c=relaxed/simple; bh=oNHQdseGba9iDo9kIAZ1Ni9JcRGkmGb+Y7y0dTTMQw8=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=J6eRkRmz9ew48a7Ve8vWJhm1h4akZXF8yzrtU2UYHVQC/Muec0k+AQ5vaeBGSvcaE0maLg6roNE3OkQ13yjwwbWtc/mfVeNlD7UlJJR3Pwuzmxs/qZCES7WOrKc9JzApKIidsURtxRtKl8z586LluoJtbESGHso0yvZTIdwg5d4= 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=PR1frhJw; arc=none smtp.client-ip=209.85.218.45 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="PR1frhJw" Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-ac34257295dso394101266b.2 for ; Fri, 25 Apr 2025 08:18:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thaumatec-com.20230601.gappssmtp.com; s=20230601; t=1745594325; x=1746199125; 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=3ghCaB0hzHCWB/lFbG9vF6MwKWZS9AGmGkqVTq/KrfM=; b=PR1frhJw27AALlQ/efJfVbTpeGPFq1KnIDmhbIe2ehkALQq+crll5mo1a2Nhaj4KiC zgimTKLMt5Hfnl0c74V//6UWlq50ElZ0WWQJeoAaqxPuJj5uKGfGxFxirh/cFFZRAMy2 mzMAi2iYGcA8uEdLksoaCwuqCi4Pbt7WVachXVUGWqHNeffQLHZn6QQlRdXeMSrQgiJT 6yJLclQTs3jHQI9yDmUFIvtEC0RvLlS1r9q/byyXDL0eH+9TiXV+2iORuv6npib25mxt KZR9neugJ6qISukWkAbTHQeU19IMk+Thy2m1j2rP8W6qnf7yRw3fol9NBHRf2XXC79NH 4hhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745594325; x=1746199125; 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=3ghCaB0hzHCWB/lFbG9vF6MwKWZS9AGmGkqVTq/KrfM=; b=VWEsfVikKoBiKAXdq/uZatU9j7mqjNO31zHK7g9+Vt3i6RcLSlD/WplmwaNMnOhxYe bB3NGpbwZI5Jf1Y4yiLMa6aiA1S1zW7ek/5g4kmqWwkZCNTW6FjWlcEjNlzRkR5glUyy PkAwT7N+uCEM+NQUxLo2iVQHs/qdOqBTACKaBBeOavRuwbQty3CdgD/KrcL+OeUaCSnz J0s9nwoBOeYiuejNQ0xUiOIMw1stsPGLTQgr3K8qOPUjybKwz/s4e3p0BTUSNfRFN0+s 3kVpnil/DpZDVuvBSokeMWf/bDASNQcMqaXFUU2DEpAlLhW9Yq4our4aRqNspnT7RWKZ kFKQ== X-Forwarded-Encrypted: i=1; AJvYcCXdrh/y+c3+BQoIjv8ff8OA/0DdQG3bM6ZW1mPEU7VdedWCX0jSuVhvfzMe2AwsVE+1Qlp5N18Ahwln@vger.kernel.org X-Gm-Message-State: AOJu0Ywf0M3CrW9+zs0wsVyeXqTmnxwmT/cY3OQnUuv9Pzlgx826mloL jVaoyVa6WBA0Ik4F/GDwPujBRO5x0zhRIaM9oc1CKCgRo1C/JYgVmdXxNRl0q8A= X-Gm-Gg: ASbGncsx//hQur5s3HKbnkcLUjnWo4X8VffwiKSx0WEsRxr7pVrTu36K7znbQYnGKsw 4CeACccbACdnss/fQVr5aP1tEUe197hQSIhzOnKPnF36TZA9nvQvEoX4igLmCBcCc+P1EpKEovy edF5z/OENblo78M1e/RQQjgFHSLFfErxesn8tIIokQHTKMi16F3H8GxQaPKxCH/bFJuk8A9rTQ4 lzUMo7WonzCAYbzPN6lQib2ijIJoAEvPWYZTBJdc/NfHG7zYWgwPv8fIV0JpwH8ne8rsb7ha6AT IZXc19IPc1piNqHjCd1m8411HUzujt0G13AZ/foOqfMOkKZ4rHdTPzfyd0wSMKcKizaN X-Google-Smtp-Source: AGHT+IHZJ81zFkmLlmOHjq8b1Drpt97ks2gb1lVoqv7+XTRItZNdJHhWhZeKg3aZUqr8AUurmOKZUQ== X-Received: by 2002:a17:907:6d27:b0:ac6:edd3:e466 with SMTP id a640c23a62f3a-ace710b0b78mr299551666b.19.1745594325144; Fri, 25 Apr 2025 08:18:45 -0700 (PDT) Received: from [127.0.1.1] ([185.164.142.188]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ace6e59649fsm151099766b.85.2025.04.25.08.18.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Apr 2025 08:18:44 -0700 (PDT) From: Lukasz Czechowski Subject: [PATCH v2 0/5] Fix onboard USB hub instability on RK3399 Puma SoM Date: Fri, 25 Apr 2025 17:18:05 +0200 Message-Id: <20250425-onboard_usb_dev-v2-0-4a76a474a010@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=H4sIAK6nC2gC/3WOzW7DIBAGX8XiXCrAQLBPfY8qipYfxyvVdgLYa hXl3bt2Dj31+CF2Zh6spIypsL55sJw2LLjMNNRbw8II8zVxjLSZEsqIVlm+zH6BHC9r8ZeYNg6 nIGwLDow0jK5uOQ34fRA/z7RHLHXJP4dgk/vr/6xNcsFBewEmSt+q8FFHWCeoKbyHZWLn50uQ0 32l0vqy/IVS947W0vBYucc54nzlROdEx5A4QW5Q0X+lwqVzw4lUTnrdb2pv91COPxPWvnGtBg3 WdbbrRCdACxultcqLFoYBnJfGRNJR1fMXyU7UBEcBAAA= X-Change-ID: 20250326-onboard_usb_dev-a7c063a8a515 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 , stable@vger.kernel.org, Quentin Schulz X-Mailer: b4 0.14.2 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. This series depends on the patch: Link: https://lore.kernel.org/linux-usb/20250418-dt-binding-usb-device-compatibles-v2-1-b3029f14e800@cherry.de/ ("dt-bindings: usb: usb-device: relax compatible pattern to a contains") Signed-off-by: Lukasz Czechowski --- Changes in v2: - Removed additional entries from onboard_dev_match table and updated dt-bindings list, as suggested by Krzysztof and Conor. Fallback compatible entry in SoM's dtsi file is used instead. - Added vdd-supply and vdd2-supply entries to onboard hub nodes to satisfy bindings checks. - Changed the default cy3304-reset pin configuration to pcfg_output_high. - Added dependency to: change-id: 20250415-dt-binding-usb-device-compatibles-188f7b0a81b4 - Link to v1: https://lore.kernel.org/r/20250326-onboard_usb_dev-v1-0-a4b0a5d1b32c@thaumatec.com --- 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 | 19 +++++++-- .../arm64/boot/dts/rockchip/rk3399-puma-haikou.dts | 8 ---- arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi | 48 +++++++++++----------- drivers/usb/misc/onboard_usb_dev.c | 10 ++++- 4 files changed, 48 insertions(+), 37 deletions(-) --- base-commit: 834a4a689699090a406d1662b03affa8b155d025 change-id: 20250326-onboard_usb_dev-a7c063a8a515 prerequisite-change-id: 20250415-dt-binding-usb-device-compatibles-188f7b0a81b4:v2 prerequisite-patch-id: f5b90f95302ac9065fbbe5244cc7845c2a772ab6 Best regards, -- Lukasz Czechowski