Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp183756pxb; Thu, 12 Aug 2021 13:52:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzy49DzO1jXL3EaKCuAPz3zvjekzHZLdlBGmCcsmBvMKo2j7OmzpYw9eQlDybLI0KGNbkMy X-Received: by 2002:aa7:d547:: with SMTP id u7mr7633258edr.28.1628801537646; Thu, 12 Aug 2021 13:52:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628801537; cv=none; d=google.com; s=arc-20160816; b=Iq0aYzdMX5rEHgSsWSTMZDDY1BC3+Xov4BSKVhtajwCpN62RrmCMKofnREQIWyG3Im wJlxG1Z7Wz+AaZ6aaTplGn+eXERarHxMB+l7Nl5Z+muhx5fEIQEu6mrg/SrYonJKKzEs sS9rTPt5N3ssFvXP76jM2bdCv2VbPFVEbbp5umwD6BQn0Y0YlUPfaR8WL8fnYgbxKxlH hsyrLp8YrNoaqrvqdy2zwtKHAJuDItSBMARGbEvUbJOcJzFPM19C5JAivGO0SWB48rb2 VKNWFX9Zu6C0dl/OCGP0i7TZFkUbT/x/VIJ50Fntj8Qh/u22W2yUCXXUMEYzT44uyrBu 9PFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=plMp/LjZg42NsXR6HAsNlOG32rI0PkLKt5n9XUzanC8=; b=WlpFNUHHYLE2mLmC40WVobZB/wg+RL+Iwhf61QmPfEa26xyXEJOrMqR3Oy4iUEJUl6 fFFymThpgYsUevtuLKgRT4xFuHYokjrR4wplo6yZJrI3OJoyJrM9n2ecP+jOM/dy/514 BcNOpop/yLSfy5tAsqE8CL1GhwKDel+bOVXRSMy4XhQL0e8qAKHJgQW4eX8gJX1IQ9/Z LNm26qTKCJ6lJEa5VD0UgXHbSdCelJr9glZcGGVsVFgOmHmrZR+omBrCcwh23AnboFSz SihSKY9f9HPwBzeLwpROv3eDFrUhLnSHHnjR89dZvqIgbPP7kyu36D6EWC5vQPsoGYNN Ta5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=SYWnenti; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j7si3541620eja.129.2021.08.12.13.51.54; Thu, 12 Aug 2021 13:52:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=SYWnenti; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237816AbhHLUmY (ORCPT + 99 others); Thu, 12 Aug 2021 16:42:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234884AbhHLUmX (ORCPT ); Thu, 12 Aug 2021 16:42:23 -0400 Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0D40C061756; Thu, 12 Aug 2021 13:41:57 -0700 (PDT) Received: by mail-qt1-x835.google.com with SMTP id w10so6401316qtj.3; Thu, 12 Aug 2021 13:41:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=plMp/LjZg42NsXR6HAsNlOG32rI0PkLKt5n9XUzanC8=; b=SYWnentim0D4AQARu53t814wnUXhtq4Sb0aZirAUhj4I1gyQ8R4vfPoX3B3JNW203S 9CTS6wKWKKWqBkjDelqRpK46K3F7T5tYup6ijwmPhLfA1sI4+kAAHOF8SZ+mhavdON3E Q7v3RWOgQit45fY92Zlhc3Z1OTmzrymJ8u26CBmwZt/QBuo1Z3yp9hrt20QuOBv7HL6i YTV/onyRQAq9YhIhZss1yxOF/qmZK6A5uf8HK4655djFoPcsQeZjgZg8a9kHVlU/ZLTT 06qrfZn3Fvt/J5ZMN+C2+Kn7Tws3kqnIES0agdtr4B4ZWeRYsKZtRnlV6pOLwGS9zP1b 4E6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=plMp/LjZg42NsXR6HAsNlOG32rI0PkLKt5n9XUzanC8=; b=bcy21QYjQFaZBiMrs6S5QlHmSC6vbYavqy3C8cYW5zjpryvVO1anuO3+rY21JAntkV 7YBy3Q8k7pFVVZwUn95cPDqRhnN1EXL+FxQNrK6tghM/AgV9PbywGRQD1nyQLc3xidkE akWD6mXA0NuUSow3s4Cpfnk9hyLWq2c+NFnfzRqbvtoKBL55EoLoWodRAPapgOzvUfrC jqUjIHx5GTa/6EWGQJreVuBTy99I47YhjsMvxpVkrfjnbkqNthLNHTuyrv4jxRYgPP0l nWQVornwAFtSpYluBKWgA9AR7eS3ARQnF1NwYyGkdEj85wtTQVZFqo26oMMfvWAlTj0b EYCQ== X-Gm-Message-State: AOAM533sqHHYiY6RPQQnrRJrD1r5gTtye4JD88zBYXxT+jyy3gsvhLRD wA0pcJGjVniHiEU1FmH7E48= X-Received: by 2002:a05:622a:154:: with SMTP id v20mr5638983qtw.148.1628800916824; Thu, 12 Aug 2021 13:41:56 -0700 (PDT) Received: from master-laptop.sparksnet ([2601:153:980:85b1:e89f:d077:9161:1bd7]) by smtp.gmail.com with ESMTPSA id m16sm1940361qki.19.2021.08.12.13.41.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Aug 2021 13:41:56 -0700 (PDT) From: Peter Geis Cc: 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, Peter Geis Subject: [PATCH v2 0/8] phy-rockchip-inno-usb2: support rk356x usb2phy Date: Thu, 12 Aug 2021 16:41:08 -0400 Message-Id: <20210812204116.2303617-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: linux-kernel@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. Changelog: 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 | 31 ++- .../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, 383 insertions(+), 58 deletions(-) -- 2.25.1