From nobody Tue Feb 10 21:59:59 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF2F8C761A6 for ; Tue, 4 Apr 2023 14:54:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232518AbjDDOx7 (ORCPT ); Tue, 4 Apr 2023 10:53:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231132AbjDDOx4 (ORCPT ); Tue, 4 Apr 2023 10:53:56 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F519E58; Tue, 4 Apr 2023 07:53:55 -0700 (PDT) Received: from jupiter.universe (dyndsl-091-248-190-097.ewe-ip-backbone.de [91.248.190.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id B1293660316A; Tue, 4 Apr 2023 15:53:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1680620033; bh=IZgsXXkUIeK+MqZv4Hy7oH9grr/jB03TfUzCnGkU6tI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZFX5Z5MtuoVFp1ihqnPYgnJvFgAOTjQWXVieK/Fgma1T+WTM0T6VFJoZjIx2k442z qNTBdZHzLeDihhnHvIoQceO8HCmRQ5oXzk/5jFS6bPkBw7jHeVa44EZgP8yqwQ9lmA s1+tFZpfjF4sg1kTh4Qf+KhvhckGAJ6v2lvQ6DekPgznPIwmM9XdTfdRVOnDakfUvU GC5F8khxJj05l38j4uJ6Yfdx641hQdWw8yJBdlXqG4cE5LeuO3vjWGAab3nFanLfUP E20H7YS0+G3Yvt3ulwWisNBBIH6Gnhdzpiz23fSeaZgwpmp6ODTo61iP4qHpUyq2PP f3w42dcYo0DWg== Received: by jupiter.universe (Postfix, from userid 1000) id BAD2F4807E0; Tue, 4 Apr 2023 16:53:51 +0200 (CEST) From: Sebastian Reichel To: Alan Stern , Greg Kroah-Hartman Cc: Rob Herring , Krzysztof Kozlowski , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCHv1 1/3] dt-bindings: usb: Add RK3588 OHCI Date: Tue, 4 Apr 2023 16:53:48 +0200 Message-Id: <20230404145350.45388-2-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230404145350.45388-1-sebastian.reichel@collabora.com> References: <20230404145350.45388-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add compatible for RK3588 OHCI. As far as I know it's fully compatible with generic-ohci. Signed-off-by: Sebastian Reichel --- .../devicetree/bindings/usb/generic-ohci.yaml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/generic-ohci.yaml b/Docu= mentation/devicetree/bindings/usb/generic-ohci.yaml index a9ba7257b884..d84732a100ba 100644 --- a/Documentation/devicetree/bindings/usb/generic-ohci.yaml +++ b/Documentation/devicetree/bindings/usb/generic-ohci.yaml @@ -44,6 +44,7 @@ properties: - hpe,gxp-ohci - ibm,476gtr-ohci - ingenic,jz4740-ohci + - rockchip,rk3588-ohci - snps,hsdk-v1.0-ohci - const: generic-ohci - enum: @@ -68,8 +69,6 @@ properties: maxItems: 2 =20 clocks: - minItems: 1 - maxItems: 3 description: | In case the Renesas R-Car Gen3 SoCs: - if a host only channel: first clock should be host. @@ -147,6 +146,21 @@ allOf: then: properties: transceiver: false + - if: + properties: + compatible: + contains: + const: rockchip,rk3588-ohci + then: + properties: + clocks: + minItems: 4 + maxItems: 4 + else: + properties: + clocks: + minItems: 1 + maxItems: 3 =20 additionalProperties: false =20 --=20 2.39.2 From nobody Tue Feb 10 21:59:59 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 490F8C761A6 for ; Tue, 4 Apr 2023 14:54:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232005AbjDDOyF (ORCPT ); Tue, 4 Apr 2023 10:54:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231644AbjDDOx4 (ORCPT ); Tue, 4 Apr 2023 10:53:56 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98D8A10EA; Tue, 4 Apr 2023 07:53:55 -0700 (PDT) Received: from jupiter.universe (dyndsl-091-248-190-097.ewe-ip-backbone.de [91.248.190.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id B1F71660316C; Tue, 4 Apr 2023 15:53:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1680620034; bh=IikQJ836mxZhL60P2UeGpbmM635QXQAuIZfGvIX+ffE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DretyPAM/9kQgPFkgyScXTFEQw5hvWe4ejl4xR50sqhhfwicebNK/PrBBkp3pQvGI chaHB6nKmVKi6wHid+nHrXg2BZV9e8dqWF3Zb+fHP/qwID6jmkYVuRn6a+UQmPES0V sfJRdATjmSedkmw6/1V5WDesd9gbZxwn0lQg5C72ZwWlVOrzVoNfjjn2SegoeZC9q3 ZFTYG2FwK7qcY+qVrgngCvot8fDTtLqZ2Gn62EMy++3ytgPGft8Ekm7IUsiXHxitvO 9vaEi+0BO2pQHtt8XcYTkb5abCDbxLQdzB/GJqr5/gFW6JcYzicfvRuPXxdrWP4MZ9 +Lk9GUB/A6l2A== Received: by jupiter.universe (Postfix, from userid 1000) id BC3164807E3; Tue, 4 Apr 2023 16:53:51 +0200 (CEST) From: Sebastian Reichel To: Alan Stern , Greg Kroah-Hartman Cc: Rob Herring , Krzysztof Kozlowski , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCHv1 2/3] dt-bindings: usb: Add RK3588 EHCI Date: Tue, 4 Apr 2023 16:53:49 +0200 Message-Id: <20230404145350.45388-3-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230404145350.45388-1-sebastian.reichel@collabora.com> References: <20230404145350.45388-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add compatible for RK3588 EHCI. As far as I know it's fully compatible with generic-ehci. Signed-off-by: Sebastian Reichel Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/usb/generic-ehci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/generic-ehci.yaml b/Docu= mentation/devicetree/bindings/usb/generic-ehci.yaml index 050cfd5acdaa..01bfbc6ded5c 100644 --- a/Documentation/devicetree/bindings/usb/generic-ehci.yaml +++ b/Documentation/devicetree/bindings/usb/generic-ehci.yaml @@ -61,6 +61,7 @@ properties: - ibm,476gtr-ehci - nxp,lpc1850-ehci - qca,ar7100-ehci + - rockchip,rk3588-ehci - snps,hsdk-v1.0-ehci - socionext,uniphier-ehci - const: generic-ehci --=20 2.39.2 From nobody Tue Feb 10 21:59:59 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DFE62C6FD1D for ; Tue, 4 Apr 2023 14:54:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232728AbjDDOyH (ORCPT ); Tue, 4 Apr 2023 10:54:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232112AbjDDOx5 (ORCPT ); Tue, 4 Apr 2023 10:53:57 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 992341710; Tue, 4 Apr 2023 07:53:55 -0700 (PDT) Received: from jupiter.universe (dyndsl-091-248-190-097.ewe-ip-backbone.de [91.248.190.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id C0804660316D; Tue, 4 Apr 2023 15:53:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1680620033; bh=1HX2q50s8U1vNgOF8gk5ASQbFDGRk4cCN9NGA82a0vU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jUI9qaeywsIZnLmWnKxEkPApXZYxim+uOeQ6WpzG00aWD+Awu4SEF2I85svbnviTD LQFSAhJsbp84b9+Ra6e8FuzSGQOvxjCQpDog4paBhKFX/H03FOlnrclFdd6xa7Cx7l ZWZdNVSc+OhPGNnQE9S64TWNypQ3ksWRSSWKCOejNP8supQd3mjSE0CPOWppXlaJ70 U36v7n8UF9YDtUUWh4tqt1nQ3VBQjbpsbyHrM29BNNMvv7/jX8Goufm406zDBDdXe6 MSXQIzyt9m9hH8PkLJb7MIIBvH5k3B5wRI+1iz9Mbdn4jviU8cT/ZeRhad/gJzv4bR bMdFHiEFBUGcA== Received: by jupiter.universe (Postfix, from userid 1000) id BE9464807EF; Tue, 4 Apr 2023 16:53:51 +0200 (CEST) From: Sebastian Reichel To: Alan Stern , Greg Kroah-Hartman Cc: Rob Herring , Krzysztof Kozlowski , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCHv1 3/3] usb: host: ohci-platform: increase max clock number to 4 Date: Tue, 4 Apr 2023 16:53:50 +0200 Message-Id: <20230404145350.45388-4-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230404145350.45388-1-sebastian.reichel@collabora.com> References: <20230404145350.45388-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Rockchip RK3588 OHCI requires 4 clocks to be enabled. Acked-by: Alan Stern Signed-off-by: Sebastian Reichel --- drivers/usb/host/ohci-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ohci-platform.c b/drivers/usb/host/ohci-platf= orm.c index a84305091c43..dec38a845cff 100644 --- a/drivers/usb/host/ohci-platform.c +++ b/drivers/usb/host/ohci-platform.c @@ -33,7 +33,7 @@ #include "ohci.h" =20 #define DRIVER_DESC "OHCI generic platform driver" -#define OHCI_MAX_CLKS 3 +#define OHCI_MAX_CLKS 4 #define hcd_to_ohci_priv(h) ((struct ohci_platform_priv *)hcd_to_ohci(h)->= priv) =20 struct ohci_platform_priv { --=20 2.39.2