From patchwork Fri Jan 25 23:45:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 156655 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp938029jaa; Fri, 25 Jan 2019 15:45:37 -0800 (PST) X-Google-Smtp-Source: ALg8bN78MQ+ZZpi99MhnoMdLpfOGD4k5F+jT8aCDkV+o1RvzWDlbZ7FvRDeCGH8YDYIYx3y5kZ7x X-Received: by 2002:a63:e655:: with SMTP id p21mr11674385pgj.70.1548459937917; Fri, 25 Jan 2019 15:45:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548459937; cv=none; d=google.com; s=arc-20160816; b=DWppS0LhXB/Hs9xF2SnhuHrOq0zT2HlJW/LY9g6rgSrCeDU/YXG4VmhrDgZFPdb3jc /TjFObsYT1bvgl6GtCUioYwCB2CAPRnXw9L9B6+CmmAf8tGcqQHqilBWxx46M3h2rbR+ WGVoT6sPu6gz2oCQZfJavRGxD4Z498AxhXFGGjjirsfULYaH0EPIoZSHMeLIX2T6WkkD K6oA82CWcuHVRQBCTsAZAwZPsSlx8uvELZBW8AQ6/teYdAl5YbNywgq/BIwKL8s+ycD3 Awgq68SJKQ+mpo3q5loyVHZzO2b+7Zw3TqiOtkPQRZliR8gEdQHyEiF+kOq58TN1PbQ8 cY+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:message-id:date:subject:cc:from :dkim-signature; bh=WAJkt5pKYVfaSlTbiQyzNhjMJz/17VQ97ZsS8VrSTns=; b=NvpWxjgRaAh1rlYoutfjHvUv491GkQFaOy4xXdO1bVnVr6y/D7hlDfO4Q2EDCjgSRN Rm8dC3u8csVsu3IW9OxLrtb1mzMCU3RbJMLRJmwVEFO0kLlCNprI1MU8ArTmDRzH6lv/ IjKmyeRLwX7uS4s9VhYnum4Da3qAuDec+EeX1WPi35v/uPkznhiWwt0FFOb9VadBr7aD L0FKjWnkX45XFJKT+ts7LvuBoM2XOKSEPH7sSICSdC/MVmIRJK7gddkrj7WxXu+330B6 WoerLbCj7wiJAA+pUHJifJAKFcKatF3VVH7IBy51qS3VQsNNFuvgp9AlSnloxD3NAC/D BnJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=cOF2idGs; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k33si26616066pgb.424.2019.01.25.15.45.37; Fri, 25 Jan 2019 15:45:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=cOF2idGs; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728104AbfAYXpg (ORCPT + 15 others); Fri, 25 Jan 2019 18:45:36 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:39294 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726218AbfAYXpg (ORCPT ); Fri, 25 Jan 2019 18:45:36 -0500 Received: by mail-pf1-f195.google.com with SMTP id r136so5442781pfc.6 for ; Fri, 25 Jan 2019 15:45:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=WAJkt5pKYVfaSlTbiQyzNhjMJz/17VQ97ZsS8VrSTns=; b=cOF2idGsukSeFWXjra3D1geIqOCF4Z/rilqfKCLm/ozpaS8mpxBf1j0z/VErPBW1zq iDshwHN8rUvoughAq7E2/e7jzkFSha0QoBqW98o9oIvqNFHSY3V/0IO8IYwBMiiddWm3 LRPnBL8/93/jYbPvoUytLWMcrNl+GxK2+IVIE= 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; bh=WAJkt5pKYVfaSlTbiQyzNhjMJz/17VQ97ZsS8VrSTns=; b=sy4FEmvVpRfVlgy3IWBHBLNv5/PlPswPcXkcbTq8/NDnSOpi6hXKPL8NedRdQSFPpS Ha1m5Et3P/GN4/VRZ5+sN/xuNg1Hd++Fi6oxGgem2JiwvkEhzstvBV6sQjet+UZUepfw cYEADBsFqx3BwzcrSrXopfr0ZybSunbKjXLc5seO+Zca8LQeV1dkH9ICl388duZpcU96 TBW203apHaTEB7ZOFqnZljqB95Jb61WmGRYtL36FMm436tvAd83g271mYDxBM0nv2vi5 pXfa0L89NCO65g0E+Wuvtk7Ngy9hv1+kbm0QKz4gfHGnK7sKRNPZ1BcJdfvQFqx2YAAf qfuA== X-Gm-Message-State: AJcUukfq27iCSm7S8sCP9E4M70sbO/+hiVUAjLle8i9SrTYyDuwptUUx 4xcPxs6zDn58z1wrIdNE1J4IBg== X-Received: by 2002:a62:4d81:: with SMTP id a123mr13327468pfb.122.1548459935416; Fri, 25 Jan 2019 15:45:35 -0800 (PST) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id y9sm32950302pfi.74.2019.01.25.15.45.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Jan 2019 15:45:34 -0800 (PST) From: Bjorn Andersson Cc: Andy Gross , Bjorn Helgaas , David Brown , Khasim Syed Mohammed , Kishon Vijay Abraham I , Lorenzo Pieralisi , Mark Rutland , Michael Turquette , Niklas Cassel , Rob Herring , Stanimir Varbanov , Stephen Boyd , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH 0/7] QCS404 PCIe PHY and controller Date: Fri, 25 Jan 2019 15:45:02 -0800 Message-Id: <20190125234509.26419-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 To: unlisted-recipients:; (no To-header on input) Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This series adds support for the PCIe controller and PHY found in the Qualcomm platform QCS404. Bjorn Andersson (7): clk: gcc-qcs404: Add PCIe resets dt-bindings: phy: Add binding for Qualcomm PCIe2 PHY phy: qcom: Add Qualcomm PCIe2 PHY driver PCI: qcom: Use clk_bulk API for 2.4.0 controllers dt-bindings: PCI: qcom: Add QCS404 to the binding PCI: qcom: Add QCS404 PCIe controller support arm64: dts: qcom: qcs404: Add PCIe related nodes .../devicetree/bindings/pci/qcom,pcie.txt | 25 +- .../bindings/phy/qcom-pcie2-phy.txt | 40 +++ arch/arm64/boot/dts/qcom/qcs404-evb.dtsi | 25 ++ arch/arm64/boot/dts/qcom/qcs404.dtsi | 67 ++++ drivers/clk/qcom/gcc-qcs404.c | 7 + drivers/pci/controller/dwc/pcie-qcom.c | 108 +++--- drivers/phy/qualcomm/Kconfig | 8 + drivers/phy/qualcomm/Makefile | 1 + drivers/phy/qualcomm/phy-qcom-pcie2.c | 331 ++++++++++++++++++ include/dt-bindings/clock/qcom,gcc-qcs404.h | 7 + 10 files changed, 558 insertions(+), 61 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/qcom-pcie2-phy.txt create mode 100644 drivers/phy/qualcomm/phy-qcom-pcie2.c -- 2.18.0 Reviewed-by: Niklas Cassel Reviewed-by: Niklas Cassel