From patchwork Thu Jul 9 18:11:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1474 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 4B1373F062 for ; Thu, 9 Jul 2020 20:11:19 +0200 (CEST) Received: by mail-pj1-f70.google.com with SMTP id 8sf2281601pjk.5 for ; Thu, 09 Jul 2020 11:11:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594318277; cv=pass; d=google.com; s=arc-20160816; b=XVFNtTJTAr9yX5Rh4Ysl71yAhytZGlWP1NIsOT5S263f8PUpJvvYKlYBqsVg1Z0naF KaPkvYayWmu2fnGKApquQFo23FYsodb3ojBCxD19GhLlAscjKy8Aq7Ujjv4SNwoxv/5X Jxr8qoXEUB9O44A7SdTcfYKFCui0fWngJecxr9zVRqPX6lFSJfXRFJg9pko0vP7d3VBh qPzGdEI1VKmG8vnJ+HLvXTDpwc7RDVI5QoE9LuXOZGNagWh9ne5NQTC1MiVaNDWAqyiw 9LqdSmmKzhDkLXfndgLsNzXuHxP8UEHmRKppFFqChB4AMp9P8AM/VyX0terJFcGhJfP7 G4Lw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=o18eOXIUaHJczbtNoTjSPVjhU5S5aofRxryQnzval+g=; b=AWkGJ590J86a9dYgkYcOqNyX8A1rcBJHJIbGvIPlloZXJ+Yf+HgfNJAMixKhKoCqLS jcJ0S+XdlloQs1igvDqqivqtNoJKAEUu8kePw5jQSks/aKclQ6YkpARNA/xmVMVEQFcN TBM/iCUOffvlWV5rQ+tJUPcaeYm5WQjdVUEVW3Oii3VihQ5sGJV+9wQ/qxoJXBynaCIR eOcT/hsWJtZdVRq3rOwXw+uNdqj48ZoH3WWinR5p6g+jFLfBwCrgOhAc/mmXe0SUQ+56 DSWeiuvyCNNH7S3DJDqAE7nyEVsLfKvVPPvCnRfalgSDW1koj0Y+tnXSWw6wEFTGdTW5 Xd2A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=r3oS48CB; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=o18eOXIUaHJczbtNoTjSPVjhU5S5aofRxryQnzval+g=; b=KH7HCf4NRP8kK1Fgl/t8xktXPUcEUMM3GMXd++/A6h87sByscA0vCVW74S6ovpNaSj FRejLyhE5EoSRjQtXSKcTzeICXj6GT5/asmCxfjxUdJ+DKkM2scXmPUOalD2hJyI8RMx CszTWaGmB4KIN93v30fo8TKw/lDejlqhRnzLM= 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 :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=o18eOXIUaHJczbtNoTjSPVjhU5S5aofRxryQnzval+g=; b=NHMWOL+BgXz7aJeYTG4VzZQm2HKoJmJ9Ie7IKBaZh2GfMxmlGr7gRx9rYlU9Ct6lWa LUPuopiyl1N0AOn5tpqHEEvcScLmp4Hs+CaD2iRklWOOlARUdZ3pfOSJLIH0JibIOaZ4 NPRXhQclVwbRwfcVqJEZXDiWcyEyYIUnheI+kWo0pP/bg/MlTObE0Y+l1wK2MI+X0yMJ 1EF6vJp926jS7A5Ktrjfa2rY9XYcC7/yD970Y/st4Sg6rcX3w+vszj1cDySdfg3drlfl IGsCACiZLrFjGopS1BM4qgd6f3WeegS6jby8xT54g/VPJQ1ABCdbxjGdUUtyOoFF0BLE 018w== X-Gm-Message-State: AOAM533AvvHHHyN4Vnr5lpLfF3Wd6TO09X5O9bl3+zRWmYNrS7IsvK16 8gv8mBbX+JKvmm8QUmOu/1ePhiOO X-Google-Smtp-Source: ABdhPJxVo1xysk/it5GJzwCVHcruXRuZb9ouascCAmTYgcVTevd77242At8qgaRvZg8Sw4ERbbDZ6A== X-Received: by 2002:a17:90a:f2c3:: with SMTP id gt3mr1458204pjb.92.1594318277075; Thu, 09 Jul 2020 11:11:17 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90b:384c:: with SMTP id nl12ls2959798pjb.2.canary-gmail; Thu, 09 Jul 2020 11:11:16 -0700 (PDT) X-Received: by 2002:a17:90a:c70e:: with SMTP id o14mr1516996pjt.70.1594318276536; Thu, 09 Jul 2020 11:11:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594318276; cv=none; d=google.com; s=arc-20160816; b=lAJ3B0WW859qL6aBNS/FP+QdDL+r7R6CC7Qr96ACnvlpAmh2aHl0DFf46LNm1C0ZGA A5PMloKSU+X2Ca9RAsJRK1A17Qc99R0F+y6rdmHcO2YHaY2rFJxkRmPttVzBG1zYM2Il xbVcCSIfi34koOl8/qONVi0NgQBdrEl7Bdfn8MWDO2ghQKeewijWLXCLAX/9zHAuowHu L8b9bau+Q8uoNsoRvxxyV0eMS8ZdoS51f5nVw8f9jxcrGfEi2QeM87sXeiGPDB2yJAz+ OxQCpXcvF2Q9Hv2M90cNxli6cH5WTDSBN29w58JmtpI1ZLUWiVYSBcwmJqXKVx156qPj 4XlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=cic0wxXiYXiOPc+UzoZJ5hm7v6XXi2j205H0lFwF3Dk=; b=IgCMLXazHV+sFTjRGZ01ThBsw4rRTQNfQVw5Av9yiDdCy277x5EQrQWhMPq5w0T7Ug Zd6MXNNf8EiNIg/UEa4ELT7VtvF3zo3Jnf2pC1wx+Pf7GpjhFvWWMfDEGcSqyNmq5FWu CcNH/xijcHNJ4+WhWFkJCFVub72V/HPGhNxaRctYpLx1wlulmlLAhQE7XbBpzO+FK3PK 1X9TmD098sXg+XlPTQDRf4pnIWC3+R2qUGcepSbvPYxZIR5jgaaZ5xNqBkpBNE3dYdGk Gxt/5pivr9rWlK6HgAhEekyqCMynW5HeBcOaaEVkLw5qe5+iG4X/2bp/39tbLwwuQQ2F oVxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=r3oS48CB; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id o71sor4485280pfg.91.2020.07.09.11.11.15 for (Google Transport Security); Thu, 09 Jul 2020 11:11:15 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a65:4507:: with SMTP id n7mr53447251pgq.180.1594318275214; Thu, 09 Jul 2020 11:11:15 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:a05e:bc35:5722:db76]) by smtp.gmail.com with ESMTPSA id x3sm3450696pfn.154.2020.07.09.11.11.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 11:11:14 -0700 (PDT) From: Jagan Teki To: Kever Yang , Philipp Tomsich , Simon Glass , Shawn Lin Cc: Suniel Mahesh , U-Boot-Denx , linux-rockchip@lists.infradead.org, linux-amarula , Jagan Teki Subject: [PATCH 0/3] phy: rockchip: Add PCIe phy driver Date: Thu, 9 Jul 2020 23:41:00 +0530 Message-Id: <20200709181103.89870-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=r3oS48CB; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This series add PCIe PHY driver for rockchip platform. Tested on ROC-RK3399-PC and RockPi 4. Any inputs? Jagan. Jagan Teki (3): phy: Add Rockchip PCIe PHY driver pci: rockchip: Switch to generic-phy pci: rockchip: Drop legacy PHY driver drivers/pci/Kconfig | 1 + drivers/pci/Makefile | 2 +- drivers/pci/pcie_rockchip.c | 95 +++++++- drivers/pci/pcie_rockchip.h | 141 ------------ drivers/pci/pcie_rockchip_phy.c | 205 ----------------- drivers/phy/rockchip/Kconfig | 7 + drivers/phy/rockchip/Makefile | 1 + drivers/phy/rockchip/phy-rockchip-pcie.c | 271 +++++++++++++++++++++++ 8 files changed, 364 insertions(+), 359 deletions(-) delete mode 100644 drivers/pci/pcie_rockchip.h delete mode 100644 drivers/pci/pcie_rockchip_phy.c create mode 100644 drivers/phy/rockchip/phy-rockchip-pcie.c