Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5189585pxv; Wed, 28 Jul 2021 05:27:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJH7kcGwqCN5Y85rFWgbp3AjLDyDp9Mo3yOFqVeFUF++ICbs1CJkwUGn0sIEuiZj7mEvQq X-Received: by 2002:a92:bf11:: with SMTP id z17mr15057253ilh.3.1627475241692; Wed, 28 Jul 2021 05:27:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627475241; cv=none; d=google.com; s=arc-20160816; b=vPXX3jK8HAoebJga4wTPms901I7mfDRbqpQMLzDtFWvduENY3z2OInprGj3Gqa/n68 Zj6zNaXm4SvwokCLGSU2N6qng5Fxi5mcGVlsBia6r0GZj2Jc65S80QsuLDgTFrbR5XaX A30NgKH/3TXLUfOHqhodMA86kBw4pijW0YJDFjAAc/BLRtGTJVwn9jravJWJM62sg2VN QPRjBvxHh8r3B0zA+ZlRGmMevCVZeW8eg2Wu0OCsWDSGiVxeTvrl4Bl5FwRnkHX5y4Uz bxiSqH6SVcwzlDTL7xZWcVyIaxZFEavmLReHmludAkLrjgUu3Y2zk6utdOXfqzZDjObU Y6bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=1cpOBZXZl+X9zh9reb80OTm+Y4W8Zt/c3AvDZt4KISo=; b=LXCsqZBBNDqM0hRHGydaSe+Hw+qOl1HRw0dCGm/F9r/bl0VYb6xOvza8CAnh2yCJsO zN+G44HGZJD43Wecm7daIGkU3vY9mjq7EHGIwc5Gcv+sWk2LhU/lCxnPg8glzhHj6grU TFnNys+/s9nP6YHgnvqQYC4Rd12odGPvj72ceKkBlFCJ29N5MU2LtvQ1IVWCkiKa8Ok7 1Ci/YmYhRhMP4OxbCXjJor5g4s9TrICsPpTN9AU91NourLQCiCE/Q2qFcyKZ0+l0oo/P KGHg4q3B6Eb7vzOlhteRoLRQYdwRSSV6XYtLoABy8tQTF+fWvpPQhNNIoxqrrEKDnNnX N6lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vJXvb2Jm; 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=pass (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 k25si6728502jan.106.2021.07.28.05.27.09; Wed, 28 Jul 2021 05:27:21 -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=pass header.i=@gmail.com header.s=20161025 header.b=vJXvb2Jm; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234944AbhG1M0U (ORCPT + 99 others); Wed, 28 Jul 2021 08:26:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234601AbhG1M0U (ORCPT ); Wed, 28 Jul 2021 08:26:20 -0400 Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC6AAC061757; Wed, 28 Jul 2021 05:26:18 -0700 (PDT) Received: by mail-qt1-x82c.google.com with SMTP id h27so1150693qtu.9; Wed, 28 Jul 2021 05:26:18 -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=1cpOBZXZl+X9zh9reb80OTm+Y4W8Zt/c3AvDZt4KISo=; b=vJXvb2Jmlbm70+yCmjiFIleraKYYYJ+oFk0cRA5lKzzVnAChhB3QFlFl0bUDpkHvfX 53r0RALch+rrgQJM1zkvkguosuCN/W1V2Q9uHeVBjXZD8xK0bO93xihBguGNVexr/Jeh QTCxKj50OMfwF3ak0WF9eXh8Q7RRqC5N+p1zhgGbNU9Bp2WaYBeBsv2EkpyLvdBRsH0W JYino0wZ7Or+Qfw8WYdAnX3tfOVHpjl3rLktWochoOAQovvHx8piGe1m2ESF0ZhDd6gH iMAX7E8FC2NVR9lIfLnEZCboTWg9yatSJoNW85DnzbmYxzlBIKxqtasQKSy/WYXjaFj1 huIA== 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=1cpOBZXZl+X9zh9reb80OTm+Y4W8Zt/c3AvDZt4KISo=; b=ES+ymiLpVH57Mk9eWDbjsulV7zk4yc9XV48ZDXAtCVO6lfKBHwbMHqkFdGQZHsDIOy Hm41AszwujHB2GPUrtgopV/6kRNucD5m3fcJqNUcs2nAzRVraaUDNJ8x9NONMGRXp6+t Q2OxrZb7BRs5xzFEzewURrockoujcv/tOGmw94wJfVO4fFFc5XWip7F0KuMItSDu6Dh7 w7XNFZucDXmkJJv12+gbNc2z+GgqejEPdeOJGfikFYW4hxcOab8HY3kHaIhp9+y1m1Kr xa6/WmspGLDlMeGMkZESmJgud+IDSw1GfGrD/9ZcDA6jvGIq9FTSRQlty2aI0rVeiIHN VtIw== X-Gm-Message-State: AOAM530ab0jISQ7AOId6LdvA0s+kfSVuCyQP9mK3epUp4353b+uZbkY8 /UyfyWJZ/YBK/QJgIQ6p0FA= X-Received: by 2002:a05:622a:1828:: with SMTP id t40mr23729089qtc.276.1627475177902; Wed, 28 Jul 2021 05:26:17 -0700 (PDT) Received: from master-laptop.sparksnet ([2601:153:980:85b1:b58:2ae8:d75f:660a]) by smtp.gmail.com with ESMTPSA id z9sm2842972qtn.54.2021.07.28.05.26.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jul 2021 05:26:17 -0700 (PDT) From: Peter Geis To: Rob Herring , Heiko Stuebner , Kishon Vijay Abraham I , Vinod Koul Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, Peter Geis Subject: [RFC PATCH 0/9] phy-rockchip-inno-usb2: support rk356x usb2phy Date: Wed, 28 Jul 2021 08:25:57 -0400 Message-Id: <20210728122606.697619-1-pgwipeout@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Good Morning, 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. Peter Geis (9): dt-bindings: soc: rockchip: add rk3568-usb2phy-grf dt-bindings: phy: phy-rockchip-inno-usb2: add rk3568 documentation dt-bindings: usb: generic-ohci: increase maximum clocks 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 | 8 +- .../devicetree/bindings/soc/rockchip/grf.yaml | 1 + .../devicetree/bindings/usb/generic-ohci.yaml | 2 +- .../boot/dts/rockchip/rk3566-quartz64-a.dts | 52 ++++ arch/arm64/boot/dts/rockchip/rk356x.dtsi | 97 +++++++ drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 259 ++++++++++++++---- 6 files changed, 360 insertions(+), 59 deletions(-) -- 2.25.1