From patchwork Thu Apr 6 13:55: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: 13203376 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 D0302C76196 for ; Thu, 6 Apr 2023 13:56:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238811AbjDFN4B (ORCPT ); Thu, 6 Apr 2023 09:56:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238330AbjDFNz7 (ORCPT ); Thu, 6 Apr 2023 09:55:59 -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 4FD297DB6; Thu, 6 Apr 2023 06:55:57 -0700 (PDT) Received: from jupiter.universe (dyndsl-091-248-189-216.ewe-ip-backbone.de [91.248.189.216]) (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 BA08F66031C6; Thu, 6 Apr 2023 14:55:55 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1680789355; bh=W4pm7BiBZzCNtmBw7yfWi0gmijbJLmhZ0zJHi7gtiZU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X4jqqxFFCSN9jI5by86a3XBG0nvryawKyqbVhlA1I3wXYNx1nbY4x0IBNvyYuZ2Zm GoDEvtydi+xPYNqSFBHa1bveCRN4TpafOEwSFKN8u4+m4BuBLo54NrTle58HU7rzfD Iw5ypr+NbLWrgaDw1EhCd7miLY92LoyxG4iLV+auZv/0YdegvrFjj3J4UeCZo/Dq9v 5h+wMQYLS4ar8V2urjGvmoUaxEpgJx4q8whNRNkWaiGOWVz2TdzFeAhaq1cVQS1EKH I/gnZXP2kGP4WuX1zuLgyfvciGf9kW6KZ1fytxEtKTWu63Ij/8bQclOsRZq/ASDkv3 HEkSBWZUyg5bA== Received: by jupiter.universe (Postfix, from userid 1000) id E7C8A4807E0; Thu, 6 Apr 2023 15:55:52 +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: Thu, 6 Apr 2023 15:55:50 +0200 Message-Id: <20230406135552.23980-2-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230406135552.23980-1-sebastian.reichel@collabora.com> References: <20230406135552.23980-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. Signed-off-by: Sebastian Reichel Reviewed-by: Rob Herring --- .../devicetree/bindings/usb/generic-ohci.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/usb/generic-ohci.yaml b/Documentation/devicetree/bindings/usb/generic-ohci.yaml index a9ba7257b884..e116ed90471e 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,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 additionalProperties: false From patchwork Thu Apr 6 13:55:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 13203375 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 C86EDC7618D for ; Thu, 6 Apr 2023 13:56:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238656AbjDFNz7 (ORCPT ); Thu, 6 Apr 2023 09:55:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236554AbjDFNz6 (ORCPT ); Thu, 6 Apr 2023 09:55:58 -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 4FF4683CE; Thu, 6 Apr 2023 06:55:57 -0700 (PDT) Received: from jupiter.universe (dyndsl-091-248-189-216.ewe-ip-backbone.de [91.248.189.216]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id BF18C66031C7; Thu, 6 Apr 2023 14:55:55 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1680789355; bh=2xzVk10bLnRIinh3EylqLxL0KlAjJyUAKhmLqVYA9wE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DXd0xrj9CIppu2p/zkb3ClUVMn39n7QaID9rYSRVOMk7ei5c0Vw4xvzLNNzxI6zhg +IuFkyi3VmMv/A2uY3dE8nad2U58//ORyHl+iQhc3SBTPliSNVAZciem6uoyLg6FRq Q61OcO3C6Aeb+ivnIsXC4JpktXp2VsvK1JFfQT2CvAMiAWMVA0LpI4/fgJFPxzPjdi 5ILDaW/T122Q1/xykBgnpc+YOeIfmqeNSmZGuf57TFKqwCTLlUiSX1GB47Apq/wf6X +fM0HfJzHpZ7hSetn1WLZ0Vc0nr3WPlN9TV07Fc30Z/gzlYqjZVBClyT3xPvSl0WIu Dx0EymEFvw2Qg== Received: by jupiter.universe (Postfix, from userid 1000) id EA6974807E3; Thu, 6 Apr 2023 15:55:52 +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 Subject: [PATCHv1 2/3] dt-bindings: usb: Add RK3588 EHCI Date: Thu, 6 Apr 2023 15:55:51 +0200 Message-Id: <20230406135552.23980-3-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230406135552.23980-1-sebastian.reichel@collabora.com> References: <20230406135552.23980-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 Signed-off-by: Sebastian Reichel Reviewed-by: Rob Herring --- 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 6 13:55:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 13203377 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 E08D2C77B73 for ; Thu, 6 Apr 2023 13:56:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238820AbjDFN4C (ORCPT ); Thu, 6 Apr 2023 09:56:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238304AbjDFNz7 (ORCPT ); Thu, 6 Apr 2023 09:55:59 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8044E7AA5; Thu, 6 Apr 2023 06:55:57 -0700 (PDT) Received: from jupiter.universe (dyndsl-091-248-189-216.ewe-ip-backbone.de [91.248.189.216]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id CBAC066031C8; Thu, 6 Apr 2023 14:55:55 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1680789355; bh=1HX2q50s8U1vNgOF8gk5ASQbFDGRk4cCN9NGA82a0vU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bTnUmgw7MWxYL0pyLRgfrhcQ2fEF3PHkjduP2JqJ8GNJ0XPO2ooQEup7qxwMpCmHG IY35fggb5rfOa2OQilFH7vZFi5VtqEqQBEKMF5X5Ini/D5aKFeTQx0hmgkdTxV/322 ivW0RHii1JMZ0VmE+m+Kg6KJgP9wFyX32h6ZqqoqAzSRYbObZGvqpO/cwUs+kgfgK3 kYt6CP3V+gjiigUvrnylKZqwYg8icIpffioX5HUpCEsIZE+6xtQEBT3eETEc0kVmDw 0PQo2gg1cVKMgSzYdK3rTIrrKSqz5z0vxls8xNzlMtWjHtDWt9IrRs2SkNzZTO1Sk9 lCBC6l4Q+fZ8w== Received: by jupiter.universe (Postfix, from userid 1000) id EC90C4807EF; Thu, 6 Apr 2023 15:55:52 +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: Thu, 6 Apr 2023 15:55:52 +0200 Message-Id: <20230406135552.23980-4-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230406135552.23980-1-sebastian.reichel@collabora.com> References: <20230406135552.23980-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 {