From patchwork Thu Apr 13 17:31:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 673584 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 5EA77C77B61 for ; Thu, 13 Apr 2023 17:32:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229786AbjDMRcF (ORCPT ); Thu, 13 Apr 2023 13:32:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229733AbjDMRcB (ORCPT ); Thu, 13 Apr 2023 13:32:01 -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 3A3FA93D2; Thu, 13 Apr 2023 10:31:56 -0700 (PDT) Received: from jupiter.universe (dyndsl-091-248-212-251.ewe-ip-backbone.de [91.248.212.251]) (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 880CE660321C; Thu, 13 Apr 2023 18:31:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1681407114; bh=9fXlimUk4RI4TS7WB7TrWJCQOOCfy/yC4BkqgN4K5Io=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WLjc8D/ZxyFYoW2KaMRAWUO24rFnT65DUuaFIMuaYrrz9TJcMT8ksCfwuwTiR2mtw hpHsdW8HQ4gQPPZS0iVcJrdXPTiOAPVFWSkt5DPmhs5CpvtHfgErci23QQ17lNXF89 xCHU7ixp0UUWSPV3XiGUpH+MLz0e1cdVbK9I40adBfCCn28c6ZaPkds0yuy2GZHLxT ODhaLlujZu1CYo6yhxTwy5uQrEnlSwRDJ3ems2sCA8FSU4S4MPvytnm+QGu6qXSULb Zar9oDkjKQ98MGgtxlIxobznallwOWyjXwscOjKpQGU/4PiKjQYR621Wx+pfazf8y4 ddDRmFDURQNtw== Received: by jupiter.universe (Postfix, from userid 1000) id CA56E4807E3; Thu, 13 Apr 2023 19:31: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, Rob Herring Subject: [PATCHv4 1/3] dt-bindings: usb: Add RK3588 OHCI Date: Thu, 13 Apr 2023 19:31:48 +0200 Message-Id: <20230413173150.71387-2-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230413173150.71387-1-sebastian.reichel@collabora.com> References: <20230413173150.71387-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 | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/usb/generic-ohci.yaml b/Documentation/devicetree/bindings/usb/generic-ohci.yaml index a9ba7257b884..4feb993af53b 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,19 @@ allOf: then: properties: transceiver: false + - if: + properties: + compatible: + contains: + const: rockchip,rk3588-ohci + then: + properties: + clocks: + minItems: 4 + else: + properties: + clocks: + maxItems: 3 additionalProperties: false From patchwork Thu Apr 13 17:31:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 673082 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 400A7C77B6E for ; Thu, 13 Apr 2023 17:32:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230145AbjDMRcF (ORCPT ); Thu, 13 Apr 2023 13:32:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbjDMRcB (ORCPT ); Thu, 13 Apr 2023 13:32:01 -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 3A0DA93D1; Thu, 13 Apr 2023 10:31:56 -0700 (PDT) Received: from jupiter.universe (dyndsl-091-248-212-251.ewe-ip-backbone.de [91.248.212.251]) (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 88231660321D; Thu, 13 Apr 2023 18:31:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1681407114; bh=vx5qz1tLykk+gFOfzAInqySH0JWlq/Ed45YL4bmWhYU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O+9pcEEwgQYm/Z+CfrxlCK6/xkG9KRPxnaK1LAx/r66KWS9XO+BLDMi2eXitADbmE bQj/VrRPFCWKIf0zLBQQ0Ea5nMRr/FAGSPmsWQoO1kH6bLZDT8TuhYJIAltqWPnxUp Y+Sixyy44WR7JPfk3YFmLnKxeFRtvSqpVztWFwSKUmHgt0VW0jVyh/ECAJ9WX8kLlc ezNDpRotD4g/JsyZRbHvsiyHqh5czWaMywLPccF97FAZbrnVn6GYrJtCCaGhcMkiBe XOMZCGAUdrNcDeRD6MDrlBTAOvhY0zM7zk9yJI1r6s9/eQunbhE1iAyXTGY3IVlSPm apkDqMtzokJ5w== Received: by jupiter.universe (Postfix, from userid 1000) id CC8574807EF; Thu, 13 Apr 2023 19:31: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, Krzysztof Kozlowski , Rob Herring Subject: [PATCHv4 2/3] dt-bindings: usb: Add RK3588 EHCI Date: Thu, 13 Apr 2023 19:31:49 +0200 Message-Id: <20230413173150.71387-3-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230413173150.71387-1-sebastian.reichel@collabora.com> References: <20230413173150.71387-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 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 From patchwork Thu Apr 13 17:31:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 673585 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 6486BC77B78 for ; Thu, 13 Apr 2023 17:32:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230009AbjDMRcD (ORCPT ); Thu, 13 Apr 2023 13:32:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229564AbjDMRcB (ORCPT ); Thu, 13 Apr 2023 13:32:01 -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 3B17A93D6; Thu, 13 Apr 2023 10:31:56 -0700 (PDT) Received: from jupiter.universe (dyndsl-091-248-212-251.ewe-ip-backbone.de [91.248.212.251]) (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 994AD6603220; Thu, 13 Apr 2023 18:31:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1681407114; bh=1HX2q50s8U1vNgOF8gk5ASQbFDGRk4cCN9NGA82a0vU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bi+9/zmKoof51M4Dah5MH5BJlj/mFWVpjOAhxNAD5wbB/W60/c9eVDOU7VwhLFzKN 3Uka0tTvR9v7/sV9Y6ow7qtcxRuLMdnlEFoIfMSGUEE1yhUkyYIFDaXpqHYDC2VzqU HFvkRXqupaJG7ciX/eCRC9RCTjvtY8A6D0ZriIJhkD25f4uC1YHEsD+XCPqz298SvV 9D0vV2tsOPkD6muYchswVwwfjkd58Qc7jLg6pIMGK7LGu1jpkgL+By6wyUyZf65t9x acoHhWeLmTYlXDMHdXfAJaaUKz4m+TzQ8kEwsiEY5JllF1lZAk32ooioOHBwVr8t6b KnLFV4xWV10Bw== Received: by jupiter.universe (Postfix, from userid 1000) id CEB824807F0; Thu, 13 Apr 2023 19:31: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: [PATCHv4 3/3] usb: host: ohci-platform: increase max clock number to 4 Date: Thu, 13 Apr 2023 19:31:50 +0200 Message-Id: <20230413173150.71387-4-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230413173150.71387-1-sebastian.reichel@collabora.com> References: <20230413173150.71387-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 {