From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 40738C4332F for ; Wed, 15 Dec 2021 21:03:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=JLSFoyeIpHYr1cLgkctdUzNFSHq/3AHJV4GoMhVpciw=; b=Z3DmilbgGvajNk gZc+nPKjnuwno/faz7sXQLR3G8gQRqkhXyZI6ui5KheVnuoiWfJl90PQdLhXHxL6frC+YOfaOlmdl F2aYN0+GybHmJK3YUWErllnnCv7kmSGVYyB/P62UhIH1GWtF4sXo2mNK2vQuzpC8yDRr2TIH0c/r+ waBefC0QamH2C/vvvem8DftYYYtZyj9sFKmgAYc14dJVqmF+xGYQZfFRmbZ3qdFVn6snukLHABrhm IkNImvy2QGRLsvfoyUkV6PhlHtlMNcDrmpN6HMjSVZ/IIQUsU46hGt/4DnWBirvvZBX/wcENdCkXH nakmFWPRbHmu25SUuTCg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxbQV-002iXw-Gw; Wed, 15 Dec 2021 21:03:03 +0000 Received: from mail-qt1-x82d.google.com ([2607:f8b0:4864:20::82d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxbQS-002iVs-Nk; Wed, 15 Dec 2021 21:03:02 +0000 Received: by mail-qt1-x82d.google.com with SMTP id l8so23257950qtk.6; Wed, 15 Dec 2021 13:02:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rg/3hN0e0TCpLvswI7fQ10BFOQtPWlta0LiifXq1NbI=; b=m4vnhxHPtB66eBAgJXgtLtT1LXEt8GiBufJHnBQbk/kyJwztY7pNerexrZ8bvsfRTn sZDCZzgeeP+tARmrEhqM7xtYKA25U0DyxIezpPGkudj48aLWgFD/6+ycrY5HjS+9BKK1 Dqek4Vlbw+ID3u0AhVx47wHOIlSJh+z7DC5EALE1qZu2Fy7v3vEJ5U1GU+MyfhTjQr4V 3ZFoYgQvcucjF+wl6JhPVO4AvQKcaGq3mZMyv2G2mC8rAr5lqM/8CTxIPH+0Q9BGfmzl Hf+fMVrKwnjoFpGasxy+dnKBMhLvX0a2rCdw04xKGsSfNPQUMqwyugeruZzORTw7t+Ot 2bvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rg/3hN0e0TCpLvswI7fQ10BFOQtPWlta0LiifXq1NbI=; b=Oze/AHnIzmvBB7shmI5QDBlqfAwTXhnHOVzMA8MTh/lv1r582BG8JHH4Op2ytrPpHJ 0NUro0rqu9Vuf5ZKxYKP1IqFpur659guWpEJVwICmWF+EA8iTqq8BrJw1Yb+7mlxBIWV meRat+kOQ5asesRCX2s0JeHV0MBZvBDQLaA/NO+6CMMrLxM+hOjpbCobxnJ3PRackOmm EaldvqAjCp5LfMuu2JkpqV0+uWMnXx9YbVNtp5Nz3SqUtrcU2mP7WLh/xBd5V3cBz6y1 pQtE4nGqGnlHISNQyBR0AH6byVL6WQr2ytnahb3h0VVdV2p87g3Xa7lqVml4q7MD16e3 PTZw== X-Gm-Message-State: AOAM533NznrYRiO6KUZ0tOY0km3Wb8BGFEC7Flag5TsfLNB3Y5V6FRVB BLdC0JY+LsTa6hTxWLOSo2c= X-Google-Smtp-Source: ABdhPJwAzzADLtXZ0TSEB0cgsuZRavn1+kgANRdz7FqzEtZGT0zjUeqO3qZbwWB7F0PQWd6Y5qbdYQ== X-Received: by 2002:a05:622a:15ca:: with SMTP id d10mr14054429qty.81.1639602177604; Wed, 15 Dec 2021 13:02:57 -0800 (PST) Received: from master-x64.sparksnet (c-98-233-193-225.hsd1.md.comcast.net. [98.233.193.225]) by smtp.gmail.com with ESMTPSA id a20sm1644356qkh.63.2021.12.15.13.02.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Dec 2021 13:02:57 -0800 (PST) From: Peter Geis To: Cc: Peter Geis , Heiko Stuebner , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Michael Riesch , Johan Jonker , Rob Herring , Ondrej Jirman Subject: [PATCH v3 0/8] phy-rockchip-inno-usb2: support rk356x usb2phy Date: Wed, 15 Dec 2021 16:02:44 -0500 Message-Id: <20211215210252.120923-1-pgwipeout@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211215_130300_796842_0B793BB5 X-CRM114-Status: GOOD ( 10.71 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Good Afternoon, This is my series to support the usb2 phy devices on the rk356x. The rk356x phy has a single muxed interrupt and has moved the usb2phy nodes out of the grf and into their own nodes. The phy needs to tie back into the grf for register control, similar to the rv1108. By moving the phys into their own nodes, they now have full #address_cells = 2 register addresses, but they still reside below the 32bit mmio range. This driver series only supports the host configuration for the rk356x. I have have tested it on the following: rk3566 - Pine64 Quartz64 Model A rk3399 - Pine64 Rockpro64 Please provide feedback and comments as you see fit. Tested-by: Michael Riesch Changelog: v3: - adjust usb2phy dt-bindings to filter correctly, thanks Rob and Johan - adjust usb2phy dts names to fix alphetical ordering, thanks Michael - squash "phy: rockchip-inno-usb2: Don't print useless error" thanks Ondrej v2: - correct the order of the usb2phy-grf dt-bindings patch, thanks Johan - correct the conditional requirements of phy-rockchip-inno-usb2, thanks Johan - drop increase generic-ohci clocks patch, thanks Heiko - correct rk356x.dtsi ordering - fix a dtbs-check callout Peter Geis (8): dt-bindings: soc: rockchip: add rk3568-usb2phy-grf dt-bindings: phy: phy-rockchip-inno-usb2: add rk3568 documentation phy: phy-rockchip-inno-usb2: support #address_cells = 2 phy: phy-rockchip-inno-usb2: support standalone phy nodes phy: phy-rockchip-inno-usb2: support muxed interrupts phy: phy-rockchip-inno-usb2: add rk3568 support arm64: dts: rockchip: add usb2 nodes to rk3568 device tree arm64: dts: rockchip: add Quartz64-A usb2 support .../bindings/phy/phy-rockchip-inno-usb2.yaml | 44 ++- .../devicetree/bindings/soc/rockchip/grf.yaml | 1 + .../boot/dts/rockchip/rk3566-quartz64-a.dts | 52 ++++ arch/arm64/boot/dts/rockchip/rk356x.dtsi | 98 +++++++ drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 259 ++++++++++++++---- 5 files changed, 396 insertions(+), 58 deletions(-) -- 2.25.1 -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3B12FC433F5 for ; Wed, 15 Dec 2021 21:03:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ypzRuVF/3AvRYM0OjEzZJ1j+1pxdopGjshfQd8YJw7o=; b=ApA9O49ZUs/U3r BaueowAB7YnjBufNHnlsOcSexnb1+9mTl4jtSjQA2xLxLOVGs3O3eykBMu1f/BG0N8ysmRhEqFmpD wg5BQKyaOiHnsAN7BDhcEuq1BLZ4NXolCgysKJP5IyjBzUA4baCrAem20AuKaI89S1BI4IQnnrz+g pa8zBn1cHpPar0c/Pp3aZu4Nbjx/lMKoIkNg1NizFJURMm78BW4pj7NviLUciUeZfJBtJmNVDrgzZ cKzWArskwYEIUtTUbL8sjeMbDf9BpvkGRt3ooztfPUb3ezm0YahsCog0hWGVId4SVBCS26Oq4dfto 1L/iaAuDZ1agGYfGaYCg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxbQr-002igR-La; Wed, 15 Dec 2021 21:03:25 +0000 Received: from mail-qt1-x82d.google.com ([2607:f8b0:4864:20::82d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxbQS-002iVs-Nk; Wed, 15 Dec 2021 21:03:02 +0000 Received: by mail-qt1-x82d.google.com with SMTP id l8so23257950qtk.6; Wed, 15 Dec 2021 13:02:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rg/3hN0e0TCpLvswI7fQ10BFOQtPWlta0LiifXq1NbI=; b=m4vnhxHPtB66eBAgJXgtLtT1LXEt8GiBufJHnBQbk/kyJwztY7pNerexrZ8bvsfRTn sZDCZzgeeP+tARmrEhqM7xtYKA25U0DyxIezpPGkudj48aLWgFD/6+ycrY5HjS+9BKK1 Dqek4Vlbw+ID3u0AhVx47wHOIlSJh+z7DC5EALE1qZu2Fy7v3vEJ5U1GU+MyfhTjQr4V 3ZFoYgQvcucjF+wl6JhPVO4AvQKcaGq3mZMyv2G2mC8rAr5lqM/8CTxIPH+0Q9BGfmzl Hf+fMVrKwnjoFpGasxy+dnKBMhLvX0a2rCdw04xKGsSfNPQUMqwyugeruZzORTw7t+Ot 2bvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rg/3hN0e0TCpLvswI7fQ10BFOQtPWlta0LiifXq1NbI=; b=Oze/AHnIzmvBB7shmI5QDBlqfAwTXhnHOVzMA8MTh/lv1r582BG8JHH4Op2ytrPpHJ 0NUro0rqu9Vuf5ZKxYKP1IqFpur659guWpEJVwICmWF+EA8iTqq8BrJw1Yb+7mlxBIWV meRat+kOQ5asesRCX2s0JeHV0MBZvBDQLaA/NO+6CMMrLxM+hOjpbCobxnJ3PRackOmm EaldvqAjCp5LfMuu2JkpqV0+uWMnXx9YbVNtp5Nz3SqUtrcU2mP7WLh/xBd5V3cBz6y1 pQtE4nGqGnlHISNQyBR0AH6byVL6WQr2ytnahb3h0VVdV2p87g3Xa7lqVml4q7MD16e3 PTZw== X-Gm-Message-State: AOAM533NznrYRiO6KUZ0tOY0km3Wb8BGFEC7Flag5TsfLNB3Y5V6FRVB BLdC0JY+LsTa6hTxWLOSo2c= X-Google-Smtp-Source: ABdhPJwAzzADLtXZ0TSEB0cgsuZRavn1+kgANRdz7FqzEtZGT0zjUeqO3qZbwWB7F0PQWd6Y5qbdYQ== X-Received: by 2002:a05:622a:15ca:: with SMTP id d10mr14054429qty.81.1639602177604; Wed, 15 Dec 2021 13:02:57 -0800 (PST) Received: from master-x64.sparksnet (c-98-233-193-225.hsd1.md.comcast.net. [98.233.193.225]) by smtp.gmail.com with ESMTPSA id a20sm1644356qkh.63.2021.12.15.13.02.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Dec 2021 13:02:57 -0800 (PST) From: Peter Geis To: Cc: Peter Geis , Heiko Stuebner , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Michael Riesch , Johan Jonker , Rob Herring , Ondrej Jirman Subject: [PATCH v3 0/8] phy-rockchip-inno-usb2: support rk356x usb2phy Date: Wed, 15 Dec 2021 16:02:44 -0500 Message-Id: <20211215210252.120923-1-pgwipeout@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211215_130300_796842_0B793BB5 X-CRM114-Status: GOOD ( 10.71 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Good Afternoon, This is my series to support the usb2 phy devices on the rk356x. The rk356x phy has a single muxed interrupt and has moved the usb2phy nodes out of the grf and into their own nodes. The phy needs to tie back into the grf for register control, similar to the rv1108. By moving the phys into their own nodes, they now have full #address_cells = 2 register addresses, but they still reside below the 32bit mmio range. This driver series only supports the host configuration for the rk356x. I have have tested it on the following: rk3566 - Pine64 Quartz64 Model A rk3399 - Pine64 Rockpro64 Please provide feedback and comments as you see fit. Tested-by: Michael Riesch Changelog: v3: - adjust usb2phy dt-bindings to filter correctly, thanks Rob and Johan - adjust usb2phy dts names to fix alphetical ordering, thanks Michael - squash "phy: rockchip-inno-usb2: Don't print useless error" thanks Ondrej v2: - correct the order of the usb2phy-grf dt-bindings patch, thanks Johan - correct the conditional requirements of phy-rockchip-inno-usb2, thanks Johan - drop increase generic-ohci clocks patch, thanks Heiko - correct rk356x.dtsi ordering - fix a dtbs-check callout Peter Geis (8): dt-bindings: soc: rockchip: add rk3568-usb2phy-grf dt-bindings: phy: phy-rockchip-inno-usb2: add rk3568 documentation phy: phy-rockchip-inno-usb2: support #address_cells = 2 phy: phy-rockchip-inno-usb2: support standalone phy nodes phy: phy-rockchip-inno-usb2: support muxed interrupts phy: phy-rockchip-inno-usb2: add rk3568 support arm64: dts: rockchip: add usb2 nodes to rk3568 device tree arm64: dts: rockchip: add Quartz64-A usb2 support .../bindings/phy/phy-rockchip-inno-usb2.yaml | 44 ++- .../devicetree/bindings/soc/rockchip/grf.yaml | 1 + .../boot/dts/rockchip/rk3566-quartz64-a.dts | 52 ++++ arch/arm64/boot/dts/rockchip/rk356x.dtsi | 98 +++++++ drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 259 ++++++++++++++---- 5 files changed, 396 insertions(+), 58 deletions(-) -- 2.25.1 _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C03A8C433F5 for ; Wed, 15 Dec 2021 21:04:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=M/6G1Sr57pqKMzDFJG2U1+d6Iyl9r0MKjSW221opgAU=; b=dHrKXQFElAF4XD ZzX7YvbSr31xs7n79eq4SHAQAklFBWhyknXJ1CzneodDeqlQpYFVpENjbcjJPlAKgPUcmeBi8vbA7 EdIEmLo9X+8oPncGr3/4rogUEWBZorhnDLhgnTGiQ3EKnoNIFYvD28gMzdPUpJpB4NMt45OVs6gjQ rWQPEU2tANFcGrlTRUOV365BTkflvIBA/JGspz1BnnDpvA5VpzYxFanE+Gkgqft+kFzn7jE/ApuvB BgLZvRNMIWT5bqYwakpUhsPCm4zQ9yNeN9BcwlFOwPPClaewkke6EgjkpaXcizqnXfFQxKM3JDxjz +7sW8HiJw7aYNfN/776g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxbQh-002ide-So; Wed, 15 Dec 2021 21:03:16 +0000 Received: from mail-qt1-x82d.google.com ([2607:f8b0:4864:20::82d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxbQS-002iVs-Nk; Wed, 15 Dec 2021 21:03:02 +0000 Received: by mail-qt1-x82d.google.com with SMTP id l8so23257950qtk.6; Wed, 15 Dec 2021 13:02:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rg/3hN0e0TCpLvswI7fQ10BFOQtPWlta0LiifXq1NbI=; b=m4vnhxHPtB66eBAgJXgtLtT1LXEt8GiBufJHnBQbk/kyJwztY7pNerexrZ8bvsfRTn sZDCZzgeeP+tARmrEhqM7xtYKA25U0DyxIezpPGkudj48aLWgFD/6+ycrY5HjS+9BKK1 Dqek4Vlbw+ID3u0AhVx47wHOIlSJh+z7DC5EALE1qZu2Fy7v3vEJ5U1GU+MyfhTjQr4V 3ZFoYgQvcucjF+wl6JhPVO4AvQKcaGq3mZMyv2G2mC8rAr5lqM/8CTxIPH+0Q9BGfmzl Hf+fMVrKwnjoFpGasxy+dnKBMhLvX0a2rCdw04xKGsSfNPQUMqwyugeruZzORTw7t+Ot 2bvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rg/3hN0e0TCpLvswI7fQ10BFOQtPWlta0LiifXq1NbI=; b=Oze/AHnIzmvBB7shmI5QDBlqfAwTXhnHOVzMA8MTh/lv1r582BG8JHH4Op2ytrPpHJ 0NUro0rqu9Vuf5ZKxYKP1IqFpur659guWpEJVwICmWF+EA8iTqq8BrJw1Yb+7mlxBIWV meRat+kOQ5asesRCX2s0JeHV0MBZvBDQLaA/NO+6CMMrLxM+hOjpbCobxnJ3PRackOmm EaldvqAjCp5LfMuu2JkpqV0+uWMnXx9YbVNtp5Nz3SqUtrcU2mP7WLh/xBd5V3cBz6y1 pQtE4nGqGnlHISNQyBR0AH6byVL6WQr2ytnahb3h0VVdV2p87g3Xa7lqVml4q7MD16e3 PTZw== X-Gm-Message-State: AOAM533NznrYRiO6KUZ0tOY0km3Wb8BGFEC7Flag5TsfLNB3Y5V6FRVB BLdC0JY+LsTa6hTxWLOSo2c= X-Google-Smtp-Source: ABdhPJwAzzADLtXZ0TSEB0cgsuZRavn1+kgANRdz7FqzEtZGT0zjUeqO3qZbwWB7F0PQWd6Y5qbdYQ== X-Received: by 2002:a05:622a:15ca:: with SMTP id d10mr14054429qty.81.1639602177604; Wed, 15 Dec 2021 13:02:57 -0800 (PST) Received: from master-x64.sparksnet (c-98-233-193-225.hsd1.md.comcast.net. [98.233.193.225]) by smtp.gmail.com with ESMTPSA id a20sm1644356qkh.63.2021.12.15.13.02.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Dec 2021 13:02:57 -0800 (PST) From: Peter Geis To: Cc: Peter Geis , Heiko Stuebner , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Michael Riesch , Johan Jonker , Rob Herring , Ondrej Jirman Subject: [PATCH v3 0/8] phy-rockchip-inno-usb2: support rk356x usb2phy Date: Wed, 15 Dec 2021 16:02:44 -0500 Message-Id: <20211215210252.120923-1-pgwipeout@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211215_130300_796842_0B793BB5 X-CRM114-Status: GOOD ( 10.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Good Afternoon, This is my series to support the usb2 phy devices on the rk356x. The rk356x phy has a single muxed interrupt and has moved the usb2phy nodes out of the grf and into their own nodes. The phy needs to tie back into the grf for register control, similar to the rv1108. By moving the phys into their own nodes, they now have full #address_cells = 2 register addresses, but they still reside below the 32bit mmio range. This driver series only supports the host configuration for the rk356x. I have have tested it on the following: rk3566 - Pine64 Quartz64 Model A rk3399 - Pine64 Rockpro64 Please provide feedback and comments as you see fit. Tested-by: Michael Riesch Changelog: v3: - adjust usb2phy dt-bindings to filter correctly, thanks Rob and Johan - adjust usb2phy dts names to fix alphetical ordering, thanks Michael - squash "phy: rockchip-inno-usb2: Don't print useless error" thanks Ondrej v2: - correct the order of the usb2phy-grf dt-bindings patch, thanks Johan - correct the conditional requirements of phy-rockchip-inno-usb2, thanks Johan - drop increase generic-ohci clocks patch, thanks Heiko - correct rk356x.dtsi ordering - fix a dtbs-check callout Peter Geis (8): dt-bindings: soc: rockchip: add rk3568-usb2phy-grf dt-bindings: phy: phy-rockchip-inno-usb2: add rk3568 documentation phy: phy-rockchip-inno-usb2: support #address_cells = 2 phy: phy-rockchip-inno-usb2: support standalone phy nodes phy: phy-rockchip-inno-usb2: support muxed interrupts phy: phy-rockchip-inno-usb2: add rk3568 support arm64: dts: rockchip: add usb2 nodes to rk3568 device tree arm64: dts: rockchip: add Quartz64-A usb2 support .../bindings/phy/phy-rockchip-inno-usb2.yaml | 44 ++- .../devicetree/bindings/soc/rockchip/grf.yaml | 1 + .../boot/dts/rockchip/rk3566-quartz64-a.dts | 52 ++++ arch/arm64/boot/dts/rockchip/rk356x.dtsi | 98 +++++++ drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 259 ++++++++++++++---- 5 files changed, 396 insertions(+), 58 deletions(-) -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 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 D815BC433EF for ; Wed, 15 Dec 2021 21:02:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230005AbhLOVC7 (ORCPT ); Wed, 15 Dec 2021 16:02:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229624AbhLOVC6 (ORCPT ); Wed, 15 Dec 2021 16:02:58 -0500 Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E151C061574; Wed, 15 Dec 2021 13:02:58 -0800 (PST) Received: by mail-qt1-x833.google.com with SMTP id z9so23231299qtj.9; Wed, 15 Dec 2021 13:02:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rg/3hN0e0TCpLvswI7fQ10BFOQtPWlta0LiifXq1NbI=; b=m4vnhxHPtB66eBAgJXgtLtT1LXEt8GiBufJHnBQbk/kyJwztY7pNerexrZ8bvsfRTn sZDCZzgeeP+tARmrEhqM7xtYKA25U0DyxIezpPGkudj48aLWgFD/6+ycrY5HjS+9BKK1 Dqek4Vlbw+ID3u0AhVx47wHOIlSJh+z7DC5EALE1qZu2Fy7v3vEJ5U1GU+MyfhTjQr4V 3ZFoYgQvcucjF+wl6JhPVO4AvQKcaGq3mZMyv2G2mC8rAr5lqM/8CTxIPH+0Q9BGfmzl Hf+fMVrKwnjoFpGasxy+dnKBMhLvX0a2rCdw04xKGsSfNPQUMqwyugeruZzORTw7t+Ot 2bvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rg/3hN0e0TCpLvswI7fQ10BFOQtPWlta0LiifXq1NbI=; b=Qhps5+WjHhCf3dPDg8LF+TWrPAsJUu5aD/AMRiyN0csGo1LrkRRsIIJIs8ilwL5TBR uxdwrJH9d9/NIrL+sDpbIEdDsS9hp7UN4LvfcwQYxLWbtL6t7RJmcozgilUigMnGUwkZ Xoxj7XCwjAUTjWPcpgTZeZwXxkvohE8WI1wAsUnPNuJbdG4ugSwRZH+N+3u9CwHihPmM JEcIe1OAlVALmxnGUX/ymkHXytL7YVmTzzUjC5cOX9MJa2+2UkFlBLTARIo/ykW0dGH/ yk4CpTcZ6FIZvzcWb9QsXpWK1PXbONU/m0e6oLkvxA9Gza1CAuVAdnuN7P9lqz/Cxq8A viMw== X-Gm-Message-State: AOAM5328j6OTeDgo5WoZHznSQGffztUzEpJTiD/WtDT1FQnka9biNVqv cDcszM/AHgQapgLPfzYtq+P/vtt6QMu9WQ== X-Google-Smtp-Source: ABdhPJwAzzADLtXZ0TSEB0cgsuZRavn1+kgANRdz7FqzEtZGT0zjUeqO3qZbwWB7F0PQWd6Y5qbdYQ== X-Received: by 2002:a05:622a:15ca:: with SMTP id d10mr14054429qty.81.1639602177604; Wed, 15 Dec 2021 13:02:57 -0800 (PST) Received: from master-x64.sparksnet (c-98-233-193-225.hsd1.md.comcast.net. [98.233.193.225]) by smtp.gmail.com with ESMTPSA id a20sm1644356qkh.63.2021.12.15.13.02.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Dec 2021 13:02:57 -0800 (PST) From: Peter Geis Cc: Peter Geis , Heiko Stuebner , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Michael Riesch , Johan Jonker , Rob Herring , Ondrej Jirman Subject: [PATCH v3 0/8] phy-rockchip-inno-usb2: support rk356x usb2phy Date: Wed, 15 Dec 2021 16:02:44 -0500 Message-Id: <20211215210252.120923-1-pgwipeout@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Good Afternoon, This is my series to support the usb2 phy devices on the rk356x. The rk356x phy has a single muxed interrupt and has moved the usb2phy nodes out of the grf and into their own nodes. The phy needs to tie back into the grf for register control, similar to the rv1108. By moving the phys into their own nodes, they now have full #address_cells = 2 register addresses, but they still reside below the 32bit mmio range. This driver series only supports the host configuration for the rk356x. I have have tested it on the following: rk3566 - Pine64 Quartz64 Model A rk3399 - Pine64 Rockpro64 Please provide feedback and comments as you see fit. Tested-by: Michael Riesch Changelog: v3: - adjust usb2phy dt-bindings to filter correctly, thanks Rob and Johan - adjust usb2phy dts names to fix alphetical ordering, thanks Michael - squash "phy: rockchip-inno-usb2: Don't print useless error" thanks Ondrej v2: - correct the order of the usb2phy-grf dt-bindings patch, thanks Johan - correct the conditional requirements of phy-rockchip-inno-usb2, thanks Johan - drop increase generic-ohci clocks patch, thanks Heiko - correct rk356x.dtsi ordering - fix a dtbs-check callout Peter Geis (8): dt-bindings: soc: rockchip: add rk3568-usb2phy-grf dt-bindings: phy: phy-rockchip-inno-usb2: add rk3568 documentation phy: phy-rockchip-inno-usb2: support #address_cells = 2 phy: phy-rockchip-inno-usb2: support standalone phy nodes phy: phy-rockchip-inno-usb2: support muxed interrupts phy: phy-rockchip-inno-usb2: add rk3568 support arm64: dts: rockchip: add usb2 nodes to rk3568 device tree arm64: dts: rockchip: add Quartz64-A usb2 support .../bindings/phy/phy-rockchip-inno-usb2.yaml | 44 ++- .../devicetree/bindings/soc/rockchip/grf.yaml | 1 + .../boot/dts/rockchip/rk3566-quartz64-a.dts | 52 ++++ arch/arm64/boot/dts/rockchip/rk356x.dtsi | 98 +++++++ drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 259 ++++++++++++++---- 5 files changed, 396 insertions(+), 58 deletions(-) -- 2.25.1