From patchwork Mon May 22 16:29:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 685298 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 8AB79C7EE23 for ; Mon, 22 May 2023 16:30:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232851AbjEVQ3r (ORCPT ); Mon, 22 May 2023 12:29:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232736AbjEVQ3o (ORCPT ); Mon, 22 May 2023 12:29:44 -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 93225FA; Mon, 22 May 2023 09:29:42 -0700 (PDT) Received: from jupiter.universe (dyndsl-091-248-208-162.ewe-ip-backbone.de [91.248.208.162]) (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 1957F660574E; Mon, 22 May 2023 17:29:41 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1684772981; bh=j75Fix14GedNdNrwK2bcD4ZQfvMbaum/N3+IZtFmhEY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OX6aF2uih1iaaBUnPEMBC08XwCCSTO6pSkKXqT0+iZlpjCL89pXmHK0OyBqwdW0wy NmzFFcSzWZ1KGLWpAO5ZvZ6cYtK814Mq3I/GW2mL2P3zrJ0u/kdfo6GSL0NsTa/8rr O+xR6KC6DazP8IV8fSXNa4AHClCDw6sdMyB2oAdocBRXX+FJi1Gekn6gS5dObKYyZZ oimyBbb+wlB2n7QG3ht4h78F0u5F67xzyMVV7zVF5GNJFctJ7rzrBoxm6rzH/QH0+C vo34kUVpfHo0F2eI+lhNiLgFPUGeRVTU+D6AKs7869tI4/gRosaM0gZ/9TBRtyvgoJ 9SNfA8lQJX5uQ== Received: by jupiter.universe (Postfix, from userid 1000) id F11254807E0; Mon, 22 May 2023 18:29:37 +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, Rob Herring Subject: [PATCH v5 1/3] dt-bindings: usb: Add RK3588 OHCI Date: Mon, 22 May 2023 18:29:35 +0200 Message-Id: <20230522162937.53190-2-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230522162937.53190-1-sebastian.reichel@collabora.com> References: <20230522162937.53190-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Add compatible for RK3588 OHCI. As far as I know it's fully compatible with generic-ohci. Reviewed-by: Rob Herring Signed-off-by: Sebastian Reichel --- .../devicetree/bindings/usb/generic-ohci.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/usb/generic-ohci.yaml b/Documentation/devicetree/bindings/usb/generic-ohci.yaml index d06d1e7d8876..be268e23ca79 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: @@ -69,7 +70,7 @@ properties: clocks: minItems: 1 - maxItems: 3 + maxItems: 4 description: | In case the Renesas R-Car Gen3 SoCs: - if a host only channel: first clock should be host. @@ -147,6 +148,20 @@ allOf: then: properties: transceiver: false + - if: + properties: + compatible: + contains: + const: rockchip,rk3588-ohci + then: + properties: + clocks: + minItems: 4 + else: + properties: + clocks: + minItems: 1 + maxItems: 3 unevaluatedProperties: false From patchwork Mon May 22 16:29:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 684866 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 9C055C7EE2E for ; Mon, 22 May 2023 16:30:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232893AbjEVQ3u (ORCPT ); Mon, 22 May 2023 12:29:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232739AbjEVQ3o (ORCPT ); Mon, 22 May 2023 12:29:44 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECFFBE9; Mon, 22 May 2023 09:29:42 -0700 (PDT) Received: from jupiter.universe (dyndsl-091-248-208-162.ewe-ip-backbone.de [91.248.208.162]) (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 1E9BA6606E6C; Mon, 22 May 2023 17:29:41 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1684772981; bh=0urNWz7mMhMsKpDQYbBX0PiKNPzp7YARQwGpKuF6yjg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HeEnHndkbhXAMgTvkCMKd59pduF/rqtgAbi12tyL5aueZMUodnS6h/fr+0XLMNc+v AdN10xrdsv6k54d3jIHYqXZABTHBsLELoiX1F4YFLSAGN8UxK7qZo9EAu4Nh1ATkUM gcEglVMVrTbsNCfeoq/usutmGM+7UI0f9sc9nxV09ekQbvUqMXs4iUV/eP5kiUZJpd vU31x4YK2/qFPn9WPtuHeSCfG3F6/pfITi7++dXe7C7s2y4mmjsLO4A8cCLQgMfUd9 rPDYeKyprPPJ0anGNe73O7yT4CLqs8cCepF36WaZb+hZt9EKxINfW/qr2idoy9NGZW 3aIzkpw2Ui0Xg== Received: by jupiter.universe (Postfix, from userid 1000) id F2FE34807E1; Mon, 22 May 2023 18:29:37 +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, Krzysztof Kozlowski , Rob Herring Subject: [PATCH v5 2/3] dt-bindings: usb: Add RK3588 EHCI Date: Mon, 22 May 2023 18:29:36 +0200 Message-Id: <20230522162937.53190-3-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230522162937.53190-1-sebastian.reichel@collabora.com> References: <20230522162937.53190-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Add compatible for RK3588 EHCI. As far as I know it's fully compatible with generic-ehci. Acked-by: Krzysztof Kozlowski Reviewed-by: Rob Herring Signed-off-by: Sebastian Reichel --- Documentation/devicetree/bindings/usb/generic-ehci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/generic-ehci.yaml b/Documentation/devicetree/bindings/usb/generic-ehci.yaml index 9445764bd8de..b956bb5fada7 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 From patchwork Mon May 22 16:29:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 685299 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 4BF6AC77B75 for ; Mon, 22 May 2023 16:30:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232791AbjEVQ3p (ORCPT ); Mon, 22 May 2023 12:29:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231705AbjEVQ3n (ORCPT ); Mon, 22 May 2023 12:29:43 -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 93C87FD; Mon, 22 May 2023 09:29:42 -0700 (PDT) Received: from jupiter.universe (dyndsl-091-248-208-162.ewe-ip-backbone.de [91.248.208.162]) (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 19BB86606E69; Mon, 22 May 2023 17:29:41 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1684772981; bh=1HX2q50s8U1vNgOF8gk5ASQbFDGRk4cCN9NGA82a0vU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oaPx0EhgcFiHTivfUTtRHXyJJAVDBWnJB5LLpwgonb20/EG1BrnvXhiJqb6wCQcKx bWB22JIM4FIJoEI967zS2RMZA73/MGvlCEKbvKlpOwH+W2TD31amZSe2S45BYAx5MS HtB7qHlXtKkdBTLWR7pYLkTu4ck0vCBC61oBxDWA67uSNYHLFy2Dr6O6YRh5+2Yp31 LehxydzsZZK35Lbd9UUGAIPRKOr18oy0OndoSsDUcijxBbS7MoD5q+GgWKD6dxFKCb 0mcV/LRqBAwRKA0nk8j7cS8fG4mWaWjjKugS+FT6lms+ijLLhuRWgpoQ2X03QGjK9k yEdwbayadnlyw== Received: by jupiter.universe (Postfix, from userid 1000) id 004304807E2; Mon, 22 May 2023 18:29:37 +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: [PATCH v5 3/3] usb: host: ohci-platform: increase max clock number to 4 Date: Mon, 22 May 2023 18:29:37 +0200 Message-Id: <20230522162937.53190-4-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230522162937.53190-1-sebastian.reichel@collabora.com> References: <20230522162937.53190-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org 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-platform.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" #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) struct ohci_platform_priv {