From patchwork Thu Jul 29 11:56:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 12408483 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 25DBEC43214 for ; Thu, 29 Jul 2021 11:58:41 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id E8ABE60F46 for ; Thu, 29 Jul 2021 11:58:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E8ABE60F46 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=0RHvWyyK9t/7OdlnF/TYK4U9no24hhk/H9vHeIncNds=; b=aY/Usy4MvfDdhe Rx+AIZdfm5VA5kOISidQpKNT6v6CAM9FTvq5ROSZJJzXgNJo2y8EIuBfouwSaToNMZbuP7RMg/LpA YOxivDDA7C9+0ibkFmDSlJ0boo3vqvhNMECdBx7IptDyEskM5rg4mGhUMaK3Fj4W60TCPBzKr+oPW egW+w+rSq33rHkgUe5mIupemUuzQyxrQTq1N/WJouUq3sNliKLRqN8lY/z6NORDKY2HYjhU0em3bd F8exeAoknu5LTMY3Jqv3C5LUIAf3hjNCOY3u/kqiwJe5Rupl43L/djKzjdKUKa9bOeXDRG4rs2Ws7 tMDMaQazBV9Yw+Leqd4Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m94eW-0041a8-Di; Thu, 29 Jul 2021 11:56:40 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m94eQ-0041X0-IC; Thu, 29 Jul 2021 11:56:37 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6D5B060F22; Thu, 29 Jul 2021 11:56:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627559793; bh=rncMA8vl1pvuHqou4S/RmnWLK3jVEoJLkOEd1M5JIhI=; h=From:To:Cc:Subject:Date:From; b=fLPd42EVOWcLWnoiOJqYIqiQrdQpBsRkPih7KHw2/dYfSsCL/ex6Yw6Ei1ZE4olea qvTcvRh7tHWtGa0rTNg7u1dZ043YkXofUH797NYyzPftgyWuiurqMjsMfOtf7CDiz0 JW3TFrrUD2hVu+Z9ip58s2iQlmOTuGbY7EzlBMER6r3L6vZFd3X+p9zvUpvsmCgzPa Yf+vDpTMG8wYIANpPG9mPD1jZCnt+HrcjXfIVYjIR+Y80z74g/Ylz+oLhPHTEOC5Vw D+vV3WWYfd3cp7yjlsGbcwYuaRQ+3BZtJz0M0N0BDdmjLPa7qjWXCG3WCRTTStSUSj bhaXOB0bWulRw== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1m94eN-004d1p-6f; Thu, 29 Jul 2021 13:56:31 +0200 From: Mauro Carvalho Chehab To: Rob Herring Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , Binghui Wang , Gustavo Pimentel , Jingoo Han , Rob Herring , Xiaowei Song , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-phy@lists.infradead.org Subject: [PATCH 0/5] DT schema changes for HiKey970 PCIe hardware to work Date: Thu, 29 Jul 2021 13:56:23 +0200 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210729_045634_728334_05CCE319 X-CRM114-Status: GOOD ( 10.39 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Rob, After our discussions, I'm opting to submit first the DT bindings for the Kirin 970 PCIe support. Patch 1 is there just because patch 2 needs. You already acked on it. Patch 5 is also there just as an example of the entire stuff added to the DTS file. The core of this series are patches 2 to 4. They contain the conversion of the kirin-pcie.txt file to the DT schema, and adds the needed bindings. Currently, it generates some warnings: Documentation/devicetree/bindings/pci/hisilicon,kirin-pcie.example.dt.yaml: pcie@f5000000: pcie@4,0:compatible: None of ['pciclass,0604'] are valid under the given schema From schema: Documentation/devicetree/bindings/pci/hisilicon,kirin-pcie.yaml Documentation/devicetree/bindings/pci/hisilicon,kirin-pcie.example.dt.yaml: pcie@4,0: reset-gpios: [[4294967295, 1, 0]] is too short Not sure how/where to fix those. Perhaps at the pci-bus.yaml? Please review. Thanks! Mauro Manivannan Sadhasivam (1): arm64: dts: HiSilicon: Add support for HiKey 970 PCIe controller hardware Mauro Carvalho Chehab (4): dt-bindings: PCI: kirin: Fix compatible string dt-bindings: PCI: kirin: convert kirin-pcie.txt to yaml dt-bindings: PCI: kirin: Add support for Kirin970 dt-bindings: phy: Add bindings for HiKey 970 PCIe PHY .../bindings/pci/hisilicon,kirin-pcie.yaml | 145 ++++++++++++++++++ .../devicetree/bindings/pci/kirin-pcie.txt | 50 ------ .../devicetree/bindings/pci/snps,dw-pcie.yaml | 2 +- .../phy/hisilicon,phy-hi3670-pcie.yaml | 86 +++++++++++ MAINTAINERS | 2 +- arch/arm64/boot/dts/hisilicon/hi3670.dtsi | 99 ++++++++++++ 6 files changed, 332 insertions(+), 52 deletions(-) create mode 100644 Documentation/devicetree/bindings/pci/hisilicon,kirin-pcie.yaml delete mode 100644 Documentation/devicetree/bindings/pci/kirin-pcie.txt create mode 100644 Documentation/devicetree/bindings/phy/hisilicon,phy-hi3670-pcie.yaml