From patchwork Mon Dec 13 19:02:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12695952 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 2E771C433F5 for ; Mon, 13 Dec 2021 20:02:17 +0000 (UTC) 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:References:In-Reply-To: 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: List-Owner; bh=16KhPHA/1OV0B+bWV1lE2tflWb9Uq1tnPcHtyE2cqJI=; b=iY8XrPQ8GRctBG 57LsZhtIPOWUA8qfCpq01PIeLaC9JA7TwmF6DqBCOvGJrf2mCJ+JU6GE6lzDL5bQ/3MHlygs9Dbc/ bUk99a/6LkBy62AaRIMCyURvV9ScdMPcVVdleE7nHUg7c95W8kUYLOjGgtk2870K4B6B63Rv3cta8 G9aIL3pgLnbG8sWPqV9LcXQHzfP6E9m/Yb6Z6y1Sn2/WLivefXyvrw1m3axyTuVi7p1LDgeJ41wpD bjeqBpN4IZ9c2h9JHARnm83uzi2QYw3ZuKFRz2T/UcIhsJOmnb3Ny/Mf0l4b4pugM8njPEm79pvom IW8nSpMggFmrcdVDuDrw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwrV2-00BFCX-U2; Mon, 13 Dec 2021 20:00:41 +0000 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwrUb-00BEtb-5S for linux-arm-kernel@lists.infradead.org; Mon, 13 Dec 2021 20:00:14 +0000 Received: by mail-pj1-x1029.google.com with SMTP id k6-20020a17090a7f0600b001ad9d73b20bso14244544pjl.3 for ; Mon, 13 Dec 2021 12:00:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=AmoK+hw/VDuDSmUiZvkIrRjThwbV3KHs/0+W71eQGM4=; b=BfGQkA2MEDqbzbk0LyDZf6AqU+nW9QooJK1Vn/fWMRPRf0z+lSF2Zj/7K1YvIl3Rs2 IfL5YzBsa/XsKEdtLaZhl/MPj1RJ1yIUwnfXm96wBPhYNan4XSrMVbrPuI9um6wwl7r0 MV6lQr0nFa5WVhkAxZgzTAp6nOe7/4eN+UVOrI1Jh9HDpXPKhH7Tt2axtp2UI6LS/LQC UaXefzUApgvO7IOeUleAgq+0OKoHHelQeG+dnHnEIw0SvcuTDWOp8bikUlQCaz+4BbTs sv/7AjjBU7GYhE6ak8xz5OsIDkh0MQEWxlVIf7tQSF94Putdeb5NNwODdZjxTN+XYLiA duyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=AmoK+hw/VDuDSmUiZvkIrRjThwbV3KHs/0+W71eQGM4=; b=v2Dq6Zze62aQ8WUMAKGawnBmMeD5C862u/I4bkeM8kXHByeN65LCd+gPK5UDgAACQB 3mgPMXleEzqE+/uGc15BOgc5CJ3zi9JuP2/At6ZcSAGrCkA62AEfp4NqybeHhNMOl6Xm 661wB+l77gQrwkz5iQ0tf4EvtWyRA6q82j3kKN1ngqTDD6llC3jwwSnZ9K8ZVNbQ6A8s uSzJZVovxWlQ1dho/fY5v9XufJ311s6JMmPby7fVI92oLCg8dp9bN+Q5N1Qar6+wMtzL wx1jUoVbIacN/b2RzAvUJLGnWtAvXkiKstWaoF3emesQNS1xtfFei7awjN+QdNghqk1f b7Ng== X-Gm-Message-State: AOAM532ldjivsIxfcA6Ud7rhJfJu1Rb3US1x26TWcmPh4MKBlmBS4bgF urlE+E9YbMGadOoRk7/Hau0= X-Google-Smtp-Source: ABdhPJxZFbLjSS9SsXbrP9keog8Ej1sYIgPTr25p84FbEJ3zKlMVAz9SF25WhAf316o+myt8MeL5/Q== X-Received: by 2002:a17:90b:4d08:: with SMTP id mw8mr468152pjb.236.1639425612527; Mon, 13 Dec 2021 12:00:12 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id z14sm13926195pfh.60.2021.12.13.12.00.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Dec 2021 12:00:12 -0800 (PST) From: Florian Fainelli To: devicetree@vger.kernel.org Cc: Florian Fainelli , Bjorn Helgaas , Rob Herring , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM IPROC ARM ARCHITECTURE), linux-pci@vger.kernel.org (open list:PCI SUBSYSTEM), linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM IPROC ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 1/6] ARM: dts: Cygnus: Fixed iProc PCIe controller properties Date: Mon, 13 Dec 2021 11:02:16 -0800 Message-Id: <20211213190221.355678-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211213190221.355678-1-f.fainelli@gmail.com> References: <20211213190221.355678-1-f.fainelli@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211213_120013_250603_36328F20 X-CRM114-Status: GOOD ( 12.27 ) 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 Rename the msi controller unit name to 'msi' to avoid collisions with the 'msi-controller' boolean property. We also need to re-arrange the 'ranges' property to show the two cells as being separate instead of combined since the DT checker is not able to differentiate otherwise. Signed-off-by: Florian Fainelli --- arch/arm/boot/dts/bcm-cygnus.dtsi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/bcm-cygnus.dtsi b/arch/arm/boot/dts/bcm-cygnus.dtsi index 8ecb7861ce10..e73a19409d71 100644 --- a/arch/arm/boot/dts/bcm-cygnus.dtsi +++ b/arch/arm/boot/dts/bcm-cygnus.dtsi @@ -274,8 +274,8 @@ pcie0: pcie@18012000 { #address-cells = <3>; #size-cells = <2>; device_type = "pci"; - ranges = <0x81000000 0 0 0x28000000 0 0x00010000 - 0x82000000 0 0x20000000 0x20000000 0 0x04000000>; + ranges = <0x81000000 0 0 0x28000000 0 0x00010000>, + <0x82000000 0 0x20000000 0x20000000 0 0x04000000>; phys = <&pcie0_phy>; phy-names = "pcie-phy"; @@ -283,7 +283,7 @@ pcie0: pcie@18012000 { status = "disabled"; msi-parent = <&msi0>; - msi0: msi-controller { + msi0: msi { compatible = "brcm,iproc-msi"; msi-controller; interrupt-parent = <&gic>; @@ -309,8 +309,8 @@ pcie1: pcie@18013000 { #address-cells = <3>; #size-cells = <2>; device_type = "pci"; - ranges = <0x81000000 0 0 0x48000000 0 0x00010000 - 0x82000000 0 0x40000000 0x40000000 0 0x04000000>; + ranges = <0x81000000 0 0 0x48000000 0 0x00010000>, + <0x82000000 0 0x40000000 0x40000000 0 0x04000000>; phys = <&pcie1_phy>; phy-names = "pcie-phy"; @@ -318,7 +318,7 @@ pcie1: pcie@18013000 { status = "disabled"; msi-parent = <&msi1>; - msi1: msi-controller { + msi1: msi { compatible = "brcm,iproc-msi"; msi-controller; interrupt-parent = <&gic>; From patchwork Mon Dec 13 19:02:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12695953 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id A7D88C433EF for ; Mon, 13 Dec 2021 20:02:30 +0000 (UTC) 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:References:In-Reply-To: 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: List-Owner; bh=8BtWlZgkQb7Gmvo03yAN6LvA8TBs9RQvAOnwbWGZU8Q=; b=nbjNtrLmWEuIdg 2bP6h5Jxy0oz1P/if/ewHjuavcaZDgrfHqh6q8J7Xpk7RUQz9/9uKjL6P74ulC8psstZfNLWoMxZX 1qYx8t0N8CzxMkHjRrVngl/o1/0g3Z/BNeD7YUeiZzg9cre2eBqXnXlrHvaHucwnYTOnI0mjl323n r1PALiOUkhmzFhJ3TirZrLl5cZrBsobPfzSrvzcEYDRMACyprvXOZaThj6aWh8GjRVsQdQU4xVGXp AEae+y/tDlDHb/PWKBuep+9OQ5EXtKUI7hgpv95/mF16bxEfgD6A6Ys9cl/I8V40XOsSwRJpBM9eI EJrpL5Ew3C1vyqfXu4Vw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwrVJ-00BFKR-U0; Mon, 13 Dec 2021 20:00:58 +0000 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwrUc-00BEuq-KF for linux-arm-kernel@lists.infradead.org; Mon, 13 Dec 2021 20:00:16 +0000 Received: by mail-pg1-x536.google.com with SMTP id d11so6845966pgl.1 for ; Mon, 13 Dec 2021 12:00:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gJQK36BD9v6i9FoL2nXzpTZoKDQwTZYXnXaGqRHg6E8=; b=K0OG6uTL6De5VzSzRtrpbp/M1UzPrJprFbWePRrOJ1PSVM4WDt66GqHE++pSszJEVD zL+B+DWrvfYdqd6Dgo0hWmoEiDw+lb/v4OENI9ZGOceohei/86lfUEgFuFyJRB/24cEW SmbBvZnDr7pIsXBJyjPhoYGo+B+srJ4/uRC9h4Q4J0xdfOED8lUCS42NJfxIM0w4Kwxd v5tHzYCRoOXcFt+orAinFtJfrAswLQdXH/UcmBtHcJZQ7MtnvzMrdutvOz4PRFyBn1z8 35MfmUhwQFuNEWDHQLYEaPqVULDqg7D7RizAF7O+smPNjVP/fm/meJVU7yuhQC7Ce96f J4nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gJQK36BD9v6i9FoL2nXzpTZoKDQwTZYXnXaGqRHg6E8=; b=IC9ewpMTfdBAb1ujUp57+SeCSEbVv6z/IaIRHw636JwVg2NcoVauhp4/zkYGj/2q3G /kKWDOG5K8MLwxa8+UllwmjzghraXZH0xdkDncCuqmlr786j5t3o8ce0Xd7OaMWA2+6i MxLA+4HLjm7+AcgQ+x/ukHPyQKoy/Blw2Kw+xxxJqZj9K5kklq5RtNyrtvgKlVK9R7Zt 2AOgh1kjto2kCEVJOSm9xCp8InVbTV2NyprCvHKTJxP0UqM1iAwZP6GCDWqeFAt+L69i ggTLLHh+cKn5dDSXV0oLlSsxFd4GzSH0oGMuDXGxx9gXdRkembbEqnOL8VmEPKg+jMf9 mwBw== X-Gm-Message-State: AOAM532MKbwMKjCDKGRWCANtFdOlynMiRqDVdlDdptP7j4OGdydsSV8f VC5X1uiTPrJFBDCyz6zbkWA= X-Google-Smtp-Source: ABdhPJx53bDjC+FMM1LdETs/pbj3ZJHVG6bGsfbFWXPp/cSMivgOt3juMzdxKIxIuMzd/WgcG4Jbeg== X-Received: by 2002:a05:6a00:b49:b0:49f:cc01:10ff with SMTP id p9-20020a056a000b4900b0049fcc0110ffmr338110pfo.42.1639425613987; Mon, 13 Dec 2021 12:00:13 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id z14sm13926195pfh.60.2021.12.13.12.00.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Dec 2021 12:00:13 -0800 (PST) From: Florian Fainelli To: devicetree@vger.kernel.org Cc: Florian Fainelli , Bjorn Helgaas , Rob Herring , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM IPROC ARM ARCHITECTURE), linux-pci@vger.kernel.org (open list:PCI SUBSYSTEM), linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM IPROC ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 2/6] ARM: dts: Cygnus: Update PCIe PHY node unit name(s) Date: Mon, 13 Dec 2021 11:02:17 -0800 Message-Id: <20211213190221.355678-3-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211213190221.355678-1-f.fainelli@gmail.com> References: <20211213190221.355678-1-f.fainelli@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211213_120014_729795_AC2D70D5 X-CRM114-Status: GOOD ( 11.77 ) 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 Update the PCIe PHY node unit name and its sub-nodes to help with upcoming changes converting the Cygnus PCIe PHY DT binding to YAML and later the iProc PCIe controller binding to YAML. Signed-off-by: Florian Fainelli --- arch/arm/boot/dts/bcm-cygnus.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/bcm-cygnus.dtsi b/arch/arm/boot/dts/bcm-cygnus.dtsi index e73a19409d71..ad65be871938 100644 --- a/arch/arm/boot/dts/bcm-cygnus.dtsi +++ b/arch/arm/boot/dts/bcm-cygnus.dtsi @@ -112,18 +112,18 @@ otp: otp@301c800 { status = "disabled"; }; - pcie_phy: phy@301d0a0 { + pcie_phy: pcie_phy@301d0a0 { compatible = "brcm,cygnus-pcie-phy"; reg = <0x0301d0a0 0x14>; #address-cells = <1>; #size-cells = <0>; - pcie0_phy: phy@0 { + pcie0_phy: pcie-phy@0 { reg = <0>; #phy-cells = <0>; }; - pcie1_phy: phy@1 { + pcie1_phy: pcie-phy@1 { reg = <1>; #phy-cells = <0>; }; From patchwork Mon Dec 13 19:02:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12695954 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 514D9C433F5 for ; Mon, 13 Dec 2021 20:02:52 +0000 (UTC) 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:References:In-Reply-To: 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: List-Owner; bh=B3bpL7QMhHJI8T9jcZVdk/7EGq/SqY5CRL6wH12iUEc=; b=yh8MtZiGBss+NZ Yhs3VroBM52FG9vJWj+fF1npBgzWqJeegIHSMWCjoicTSMcUTe5Re+OtWk0fpE7wR4AI3+oAG3KvO mfa2IIyNwPVHHvoBXBQmHWlJ+rP2Us9ok/Y42h98976e6COWg6BX7Cxuact0eDadM70dbDDwrqOZ1 J2dDtCoWdfqpmK+I4iypGQ/Hw6KKd/VCJJcdKfh0mTk2UoGACXVD1yqc85r9i73yyp1NXGq0E1H1U Pr7dtcWVje/gZCsXtlFIN0/iGPuKtb28wqqGeo7e+mypAAwAqSThtEsFkcs2yFWxDabUGeeLuHY06 fk6Hs4InyRRbbLi4eZUw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwrVg-00BFaB-As; Mon, 13 Dec 2021 20:01:20 +0000 Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwrUe-00BEwO-FP for linux-arm-kernel@lists.infradead.org; Mon, 13 Dec 2021 20:00:17 +0000 Received: by mail-pg1-x535.google.com with SMTP id f125so15569342pgc.0 for ; Mon, 13 Dec 2021 12:00:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1v15Gl8TJzLJfCjgx7PA4whHDDqL64AFLHw1EUfuQI4=; b=iixQARDtSk/hnynCb+nf6H3vH1Cm6Kj9xlCVLmsA9ylU2hbta+X4HnexkqZW715J7y PElmkZlHwrbsoo5f/cPVVe5gXVueC9oHtwbDLASUIeqPIxlYWsO3tNCrBQWSCcYzY0hw WR6L94TfIgDmk4kW8Nf1jBfuZlq/tr9KE4n/SDW/UGAlBDKqBWjSrPJHPQkOVr/uD4wY lygaWXEMWLHWV5y8uEUR4kbaa3USDon9B/3SxBAyy9cOnovhiOQQrK4OUiFeYAcNWlTE j9jCpLn3UdYWPtm2lNXZpMTHW8tJXKfah5mO6kyVRKtKpoUJ7triVX1YLUW7INIXN3K0 +h1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1v15Gl8TJzLJfCjgx7PA4whHDDqL64AFLHw1EUfuQI4=; b=J9jNZ5u4cqgkWrM6zT+MAS3Snd+6s5ceuAHm3eQHNdpakcR4OMH4LZqmopjY/6NbWw NicueMQ7ljp2mK+Iii92mJBUq72/WiHH7WprZP5ujshT9yotxv0Q1w/oA4cLyClEIVGA xNVBKRd0W2935zpTWYTHTPFoztxv5+D7ci3k7e2MmeIYY7n+3ip91P8Dxgn5dogYVn1z jSXK4P617aVVYYJqEtlBaxpnWU5+WRzTw/jkjbJZVs65N+QjVFtpYK3k+/+whY2HTv7Z kv2Rwo+Ch0uwEhYxGPP10CeHLKfvHTqh1tFNEdnhtGc2FH1hfFVVyth6GNj1WSbPblam B1+Q== X-Gm-Message-State: AOAM530Eopdwl+Bt+jRi22elayZP/k8Ecac6tUS+M87yd5LMKfXkg0is TPVOV/NxkSfcmnG1gJU4ZFLwfiniM9c= X-Google-Smtp-Source: ABdhPJyqRiE3BaxYOaCz2My/zK2+vPXbsf9TRVJhhqR+wuXQFyWdDbqLlc0jY7X+39ePnYL2ReIjKQ== X-Received: by 2002:a63:6ecb:: with SMTP id j194mr562403pgc.46.1639425615626; Mon, 13 Dec 2021 12:00:15 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id z14sm13926195pfh.60.2021.12.13.12.00.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Dec 2021 12:00:15 -0800 (PST) From: Florian Fainelli To: devicetree@vger.kernel.org Cc: Florian Fainelli , Bjorn Helgaas , Rob Herring , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM IPROC ARM ARCHITECTURE), linux-pci@vger.kernel.org (open list:PCI SUBSYSTEM), linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM IPROC ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 3/6] ARM: dts: HR2: Fixed iProc PCIe MSI sub-node Date: Mon, 13 Dec 2021 11:02:18 -0800 Message-Id: <20211213190221.355678-4-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211213190221.355678-1-f.fainelli@gmail.com> References: <20211213190221.355678-1-f.fainelli@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211213_120016_564490_77BBEBFD X-CRM114-Status: GOOD ( 12.07 ) 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 Rename the msi controller unit name to 'msi' to avoid collisions with the 'msi-controller' boolean property. Signed-off-by: Florian Fainelli --- arch/arm/boot/dts/bcm-hr2.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/bcm-hr2.dtsi b/arch/arm/boot/dts/bcm-hr2.dtsi index 84cda16f68a2..33e6ba63a1ee 100644 --- a/arch/arm/boot/dts/bcm-hr2.dtsi +++ b/arch/arm/boot/dts/bcm-hr2.dtsi @@ -318,7 +318,7 @@ pcie0: pcie@18012000 { status = "disabled"; msi-parent = <&msi0>; - msi0: msi-controller { + msi0: msi { compatible = "brcm,iproc-msi"; msi-controller; interrupt-parent = <&gic>; @@ -354,7 +354,7 @@ pcie1: pcie@18013000 { status = "disabled"; msi-parent = <&msi1>; - msi1: msi-controller { + msi1: msi { compatible = "brcm,iproc-msi"; msi-controller; interrupt-parent = <&gic>; From patchwork Mon Dec 13 19:02:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12695955 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 78B9DC433EF for ; Mon, 13 Dec 2021 20:03:12 +0000 (UTC) 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:References:In-Reply-To: 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: List-Owner; bh=7YgLVSRLQhB7KntlP5Xp2CaNhCdRUUezEzk3syCheNQ=; b=FO7sE03pqzHNGK TCBFvWBQ8K0ZAtgIf1F/hRMLpRORS9NjBJ2xljLcdg7QuosfI1dgYWMHKfYGgWFTPNPxXlppuSBzW S1JIs/OJFK0tVeibGUZ4TDAFkp7JSzi0YQOgmGi7pSzbuf6ZHCzgl6Re8oZq4We/254mDWSWo5NRZ 8ll5IpqujwGc/zkCQOEBRgflLOq9n8v/wy5l9bGSH9Xg/TirCPi100UFovSQ8bxGWinVjQgSisJr8 wdV1liMVFkBpK9qXmb3F5LEtoCmd3X6qaEfVTJb+i/PBj0hGFMjv5mIh4Odzt+RXc9m6LMsAOOHau GG67wpNgXiB0W+tzTvIw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwrVx-00BFia-IU; Mon, 13 Dec 2021 20:01:38 +0000 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwrUf-00BExV-Ux for linux-arm-kernel@lists.infradead.org; Mon, 13 Dec 2021 20:00:19 +0000 Received: by mail-pg1-x52e.google.com with SMTP id 133so15478872pgc.12 for ; Mon, 13 Dec 2021 12:00:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6PtQ+iCOtg8wKI/383IxFyqZ9i0rudNbH4n4NHCffbA=; b=JnFbMV0LMmXIzckTtX8Obr1ifAqu/wbl1vW2hpL0SUTxv3UBHRr8236i5XnOPF6sPO /xmaRwSaP2aPJfKYBB5z/JTz/wGYpZo+F2lgH+ZyruYIa2h2aI+Dote8vgXfSLqjSeaW vlhq31tGSbrL2TiIJIL+j52d4lUkYFsfhNaVeCraNz7vYVygddW7/jzYnMOsItfA0pL3 vT+fiwu1Zm2Zuucf6WkiheiR5CPbkbiEmGoJkeaH7Cj1B6aLIJY0vhlyKTxGVYKwinUo ZUuJ1oUlIuIYkeeWVtBKPgGd1kLYOLd9ehD6O2b7a51eU+5vH3pjQYmVSYwfO0vjVdGP dWcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6PtQ+iCOtg8wKI/383IxFyqZ9i0rudNbH4n4NHCffbA=; b=7TYh6FDde9//CkAQoUc5NMUZG+4eJnczrwip4zwnkDvigsrwSgZuvQHRigPlJjyubj NEXOxn/obSotIUChCuDqKq2TXBV0J7vvhxzspsNJue23CnyzIPaClZCGMQBVOUpRKReO pl8NyuCKYyTyyGigF0qZX//t8SxHPMsfYrQlaZD/kd4Y4gtFQaGmnFUeqcNzvDqvnwtK eQQoml/Y7isORpWZ8FFXuGOV7u8jVf+tsB4Er6mdNu7UNlYHkTaegQrxY/A1Uf8eYRL2 H6SbEgPEzF1tPLxFB6ZeVR791c65+UOzX7F3ESQIn7C1r8PvpJWRUp6AlV7FOnQ1fhLY SxXg== X-Gm-Message-State: AOAM533m/SPG2A0CsQbyPRgspa8KYSZxsPiigvzbH3XwRaMOkWBlJ+J4 xfQYPAPg6X4kgpCupn7PzIO7PgO/RSk= X-Google-Smtp-Source: ABdhPJynEU9b7rmrBmSOm+qJmtCAtScHQDgPUp9E4j+THkymCTGx2DxOrNX5I8/MSpzs3G6yoamNsA== X-Received: by 2002:a63:4516:: with SMTP id s22mr564873pga.170.1639425617194; Mon, 13 Dec 2021 12:00:17 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id z14sm13926195pfh.60.2021.12.13.12.00.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Dec 2021 12:00:16 -0800 (PST) From: Florian Fainelli To: devicetree@vger.kernel.org Cc: Florian Fainelli , Bjorn Helgaas , Rob Herring , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM IPROC ARM ARCHITECTURE), linux-pci@vger.kernel.org (open list:PCI SUBSYSTEM), linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM IPROC ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 4/6] ARM: dts: NSP: Fixed iProc PCIe MSI sub-node Date: Mon, 13 Dec 2021 11:02:19 -0800 Message-Id: <20211213190221.355678-5-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211213190221.355678-1-f.fainelli@gmail.com> References: <20211213190221.355678-1-f.fainelli@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211213_120018_053028_A832E921 X-CRM114-Status: GOOD ( 11.44 ) 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 Rename the msi controller unit name to 'msi' to avoid collisions with the 'msi-controller' boolean property. Signed-off-by: Florian Fainelli --- arch/arm/boot/dts/bcm-nsp.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/bcm-nsp.dtsi b/arch/arm/boot/dts/bcm-nsp.dtsi index 1c08daa18858..f242763c3bde 100644 --- a/arch/arm/boot/dts/bcm-nsp.dtsi +++ b/arch/arm/boot/dts/bcm-nsp.dtsi @@ -587,7 +587,7 @@ pcie0: pcie@18012000 { status = "disabled"; msi-parent = <&msi0>; - msi0: msi-controller { + msi0: msi { compatible = "brcm,iproc-msi"; msi-controller; interrupt-parent = <&gic>; @@ -624,7 +624,7 @@ pcie1: pcie@18013000 { status = "disabled"; msi-parent = <&msi1>; - msi1: msi-controller { + msi1: msi { compatible = "brcm,iproc-msi"; msi-controller; interrupt-parent = <&gic>; @@ -661,7 +661,7 @@ pcie2: pcie@18014000 { status = "disabled"; msi-parent = <&msi2>; - msi2: msi-controller { + msi2: msi { compatible = "brcm,iproc-msi"; msi-controller; interrupt-parent = <&gic>; From patchwork Mon Dec 13 19:02:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12695956 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 1D03CC433EF for ; Mon, 13 Dec 2021 20:03:41 +0000 (UTC) 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:References:In-Reply-To: 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: List-Owner; bh=zujdBEJK4lGY95qY+18bHjmXsjC0qWsv/jrrK8fHyiY=; b=BOcvoSBukYHDIv qzAMUEBJu5UDRt8fsX40DouTrMuGpBqNJb7Grcvo98NfboH1ZTGEchNPFrMFSZ/JlwacwiWCZHte1 Pku7LwNKQZCXiRaxoeN5LnxJJmUJVvzkC3iKmK4YN9lerPWfjaaTTFgtfXvD+goLF+jFKji93bOqJ UDyFppCmgfwgQxE4VQF3DDjk0+uudqhJCihPGSk/mzD2Fxu4fkdif/ujzIncbK8WJuOv2EhJmfXMl 23+e6VO/9GcZmtaLbdKb5StcEYmEo0eT4GTSGauP33Y0Hu5BoMl2gfC91LXIs9zfrZQZUSpr0yA6m R6wumOPjEqbCToEuBpPQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwrWQ-00BFyM-KG; Mon, 13 Dec 2021 20:02:07 +0000 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwrUh-00BEyq-FA for linux-arm-kernel@lists.infradead.org; Mon, 13 Dec 2021 20:00:21 +0000 Received: by mail-pf1-x42e.google.com with SMTP id r130so15943861pfc.1 for ; Mon, 13 Dec 2021 12:00:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ew71xhC4xQ/czNjt0atU4xfLjLk+tfPXgytWCNx3psE=; b=oEz7qbA91b7EL32E744DYI2EKQc++9OsqGVl3wqm1nq0ID0SLoU42GOjWGzRF/0TQJ Z5ght3bxwcvCtLUqFvUcGFROCRg3WRX3eMxN4KrRDjytmCLb1HIlDiDBeNTvlbJTpLo7 HKTnZ0HFJg5I8nqCVmJIMPiXKTxFFM4XvDmLt5UyGL0is6YTcYQheeNaj0RvCza5ii1j eN+0ym5RxD3+CxA8DzEwPNFl2sPumhPcsHPVDXQn0D+nRcq3w/W6fCgb2iZ6vfML3gkT v3ZMuFay8tnWobQ9ThS7gJ5Ecgw1o3WMFpy2cfrK9JXmHAYIqu02S8ePYQRAK74TeopK wsqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ew71xhC4xQ/czNjt0atU4xfLjLk+tfPXgytWCNx3psE=; b=qyohsf/IhsGj3yfNYh9avxYj22psqRBgy/k4P+PivNNjcX5/0g3Eex73iuC69L9G95 86rRVfVgddS/gFIhgLJiNOm4DDaSbrs3FRzlCUlJx9h6xG4l9fK4ex6mE9D8Uty25GFD oDVqf9hAjMtnWXzMhlzEcnkYx9xaedIEi4l0OM+54ok6PV7RdAHDa/MHhh+qBfJiZEih 3Yetqp5yzboQQBplbC2p5mL1vL89Ugcy37YlZXTpXuiXHFgza+dBHVom/RdrOcO3QJsy Zd4D0yhuDTursDJgHGgsVUiNmHDBpR+kZrre1CfzZbHSo8PEKFdBpDXYTAiplhLxjShq 541g== X-Gm-Message-State: AOAM532vUxR+xB7qfiH30r6iCp0u2C+bFHf2SKfEvqRJQVjTiMJgGSuw 1yC94el0jEijpJceRI0kzqE= X-Google-Smtp-Source: ABdhPJx13a6C921vXH3bFb4F7WMUph9zGPlAxbnd0ECu/IogJfbntaCuGS9Ewf2nJhUoZioschHSHg== X-Received: by 2002:a63:85c3:: with SMTP id u186mr528580pgd.225.1639425618724; Mon, 13 Dec 2021 12:00:18 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id z14sm13926195pfh.60.2021.12.13.12.00.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Dec 2021 12:00:18 -0800 (PST) From: Florian Fainelli To: devicetree@vger.kernel.org Cc: Florian Fainelli , Bjorn Helgaas , Rob Herring , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM IPROC ARM ARCHITECTURE), linux-pci@vger.kernel.org (open list:PCI SUBSYSTEM), linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM IPROC ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 5/6] dt-bindings: phy: Convert Cygnus PCIe PHY to YAML Date: Mon, 13 Dec 2021 11:02:20 -0800 Message-Id: <20211213190221.355678-6-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211213190221.355678-1-f.fainelli@gmail.com> References: <20211213190221.355678-1-f.fainelli@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211213_120019_556011_6AE250C4 X-CRM114-Status: GOOD ( 17.05 ) 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 Convert the Broadcom Cygnus PCIe PHY Device Tree binding t YAML to help with validation. Signed-off-by: Florian Fainelli --- .../bindings/phy/brcm,cygnus-pcie-phy.txt | 47 ------------ .../bindings/phy/brcm,cygnus-pcie-phy.yaml | 76 +++++++++++++++++++ 2 files changed, 76 insertions(+), 47 deletions(-) delete mode 100644 Documentation/devicetree/bindings/phy/brcm,cygnus-pcie-phy.txt create mode 100644 Documentation/devicetree/bindings/phy/brcm,cygnus-pcie-phy.yaml diff --git a/Documentation/devicetree/bindings/phy/brcm,cygnus-pcie-phy.txt b/Documentation/devicetree/bindings/phy/brcm,cygnus-pcie-phy.txt deleted file mode 100644 index 10efff28b52b..000000000000 --- a/Documentation/devicetree/bindings/phy/brcm,cygnus-pcie-phy.txt +++ /dev/null @@ -1,47 +0,0 @@ -Broadcom Cygnus PCIe PHY - -Required properties: -- compatible: must be "brcm,cygnus-pcie-phy" -- reg: base address and length of the PCIe PHY block -- #address-cells: must be 1 -- #size-cells: must be 0 - -Each PCIe PHY should be represented by a child node - -Required properties For the child node: -- reg: the PHY ID -0 - PCIe RC 0 -1 - PCIe RC 1 -- #phy-cells: must be 0 - -Example: - pcie_phy: phy@301d0a0 { - compatible = "brcm,cygnus-pcie-phy"; - reg = <0x0301d0a0 0x14>; - - pcie0_phy: phy@0 { - reg = <0>; - #phy-cells = <0>; - }; - - pcie1_phy: phy@1 { - reg = <1>; - #phy-cells = <0>; - }; - }; - - /* users of the PCIe phy */ - - pcie0: pcie@18012000 { - ... - ... - phys = <&pcie0_phy>; - phy-names = "pcie-phy"; - }; - - pcie1: pcie@18013000 { - ... - ... - phys = ; - phy-names = "pcie-phy"; - }; diff --git a/Documentation/devicetree/bindings/phy/brcm,cygnus-pcie-phy.yaml b/Documentation/devicetree/bindings/phy/brcm,cygnus-pcie-phy.yaml new file mode 100644 index 000000000000..045699c65779 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/brcm,cygnus-pcie-phy.yaml @@ -0,0 +1,76 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/brcm,cygnus-pcie-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom Cygnus PCIe PHY + +maintainers: + - Ray Jui + - Scott Branden + +properties: + $nodename: + pattern: "^pcie[-|_]phy(@.*)?$" + + compatible: + items: + - const: brcm,cygnus-pcie-phy + + reg: + maxItems: 1 + description: > + Base address and length of the PCIe PHY block + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + "^pcie-phy@[0-9]+$": + type: object + description: > + PCIe PHY child nodes + + properties: + reg: + maxItems: 1 + description: > + The PCIe PHY port number + + "#phy-cells": + const: 0 + + required: + - reg + - "#phy-cells" + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + pcie_phy: pcie_phy@301d0a0 { + compatible = "brcm,cygnus-pcie-phy"; + reg = <0x0301d0a0 0x14>; + #address-cells = <1>; + #size-cells = <0>; + + pcie0_phy: pcie-phy@0 { + reg = <0>; + #phy-cells = <0>; + }; + + pcie1_phy: pcie-phy@1 { + reg = <1>; + #phy-cells = <0>; + }; + }; From patchwork Mon Dec 13 19:02:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12695957 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id BEC91C433EF for ; Mon, 13 Dec 2021 20:04:17 +0000 (UTC) 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:References:In-Reply-To: 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: List-Owner; bh=r/lt9blzm2GHBDhookC7gl2FxIBsqU8yfkKHqjI3mjw=; b=oOgx2oa3jVa2yS eGrU3XThUr9vtmuXw+EDIaELXRPUxWgxzND3ilWqSB1wAkpQTWEp31vbvn4Uh5rbZAJTvZcbLwaZN 9JAIAkN5IVxqvmZplylJWt5722V0zSoMi7zEa8p42LduilEmwehqRkKh2t4GRWvZukRrY/6YOm8r9 +GMzHNqnRS5X89FDwTIMX7dw4fIDycKqIDZvZXKi+GUyxGY36t9oXOM4t+Qzq23Wh6kCoqZUo4ZBk j2mLuimIJf1/8cNHi62G20tHAXBxmZNcISvDSyYRHf7URSIOUhLcbZhuhzKi8jFGg49ONgile2F6p Oaq4nXRi3GMtsKqXBZxw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwrWz-00BGEs-KR; Mon, 13 Dec 2021 20:02:41 +0000 Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwrUj-00BF0D-4j for linux-arm-kernel@lists.infradead.org; Mon, 13 Dec 2021 20:00:23 +0000 Received: by mail-pg1-x52d.google.com with SMTP id l10so4529471pgm.7 for ; Mon, 13 Dec 2021 12:00:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yECn6rr+gUCfFaNpB/KF0gZ790W19hQtIP33eqpyuUo=; b=aWdOTUkA1RW2hQzLoNEVup83VQBI21yHoFAGbGuw1jphGjpF6gSbO5MYxWNbsOT+8P Qjja+fG3bq1vEP49/hzFXndZCKLxeO/adEqz56GA8zMN89y3rJJ72xVXKQK2QnU9Lwfz Vg/LGzyIu74zrLsoJ/3FR2R46PqUDeZLf9IGjkLQheLGtgjNdo7a2MVmEoulG7aggxTi xrlkMGM0NmYlIoKP4eB26vmWza0gQRqkL0uyUqKRnkO8F6LzEmCVFQV/KVD5L0Pt1MQE CWRvbjeAJVfy/wSjqSAlkQuQ2TEVmTVsdLLFWJ3LFc+S+ai4D8rBfjskzbjDxCMQB2x3 /Tng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yECn6rr+gUCfFaNpB/KF0gZ790W19hQtIP33eqpyuUo=; b=Kj4OwhCmXZv5dxri1P49NLFJ76n3Lf8FMOAZ3rc1kU23vMP0tUZ9RN0lRD76+rvqKd BQ6OEDgMJUcm6PREAftkd6SDQA8a8O9lg8ebSVbPWjXqOlEncp7j7yhoKbeN90TOZ6DQ NgCgsBikRg3C+p2ootJ4JoyxFAE1YF6GsS0zGzKMHprzu1RFRsVxnOYYsgWVbRhXXCJp JTJJ12NyOS6McNdLnK8Y0rVxPAhImeskZ1LFE/xot3s/Wub/Jef2YBSoRN32wpTAkCnB 10Dhc6zTJ8h5xQ8Z+nU7XRB/ocmlRzdwSqvOJhq+ivZ3oDj89edbDk3XRD2Eh6+eot0i JzTw== X-Gm-Message-State: AOAM5310Vq2LUlDbGsyGrMRlPt2FcXBKcBqjMfGahVNkb+6R25DJuFUV Bsmf3+RhxGr7lDvCVGCiYpFNaPTfi3U= X-Google-Smtp-Source: ABdhPJwIzMFgKpyHVwH6yk6bK5FROZFKkcG9IXGnk0SfrzGepl6ftVlTHDlI0zd4vZeEGLQcMnI2tQ== X-Received: by 2002:a63:2bc1:: with SMTP id r184mr537266pgr.426.1639425620257; Mon, 13 Dec 2021 12:00:20 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id z14sm13926195pfh.60.2021.12.13.12.00.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Dec 2021 12:00:19 -0800 (PST) From: Florian Fainelli To: devicetree@vger.kernel.org Cc: Florian Fainelli , Bjorn Helgaas , Rob Herring , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM IPROC ARM ARCHITECTURE), linux-pci@vger.kernel.org (open list:PCI SUBSYSTEM), linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM IPROC ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 6/6] dt-bindings: pci: Convert iProc PCIe to YAML Date: Mon, 13 Dec 2021 11:02:21 -0800 Message-Id: <20211213190221.355678-7-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211213190221.355678-1-f.fainelli@gmail.com> References: <20211213190221.355678-1-f.fainelli@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211213_120021_272719_66414857 X-CRM114-Status: GOOD ( 26.29 ) 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 Conver the iProc PCIe controller Device Tree binding to YAML now that all DTS in arch/arm and arch/arm64 have been fixed to be compliant. Signed-off-by: Florian Fainelli --- .../bindings/pci/brcm,iproc-pcie.txt | 133 ------------- .../bindings/pci/brcm,iproc-pcie.yaml | 184 ++++++++++++++++++ 2 files changed, 184 insertions(+), 133 deletions(-) delete mode 100644 Documentation/devicetree/bindings/pci/brcm,iproc-pcie.txt create mode 100644 Documentation/devicetree/bindings/pci/brcm,iproc-pcie.yaml diff --git a/Documentation/devicetree/bindings/pci/brcm,iproc-pcie.txt b/Documentation/devicetree/bindings/pci/brcm,iproc-pcie.txt deleted file mode 100644 index df065aa53a83..000000000000 --- a/Documentation/devicetree/bindings/pci/brcm,iproc-pcie.txt +++ /dev/null @@ -1,133 +0,0 @@ -* Broadcom iProc PCIe controller with the platform bus interface - -Required properties: -- compatible: - "brcm,iproc-pcie" for the first generation of PAXB based controller, -used in SoCs including NSP, Cygnus, NS2, and Pegasus - "brcm,iproc-pcie-paxb-v2" for the second generation of PAXB-based -controllers, used in Stingray - "brcm,iproc-pcie-paxc" for the first generation of PAXC based -controller, used in NS2 - "brcm,iproc-pcie-paxc-v2" for the second generation of PAXC based -controller, used in Stingray - PAXB-based root complex is used for external endpoint devices. PAXC-based -root complex is connected to emulated endpoint devices internal to the ASIC -- reg: base address and length of the PCIe controller I/O register space -- #interrupt-cells: set to <1> -- interrupt-map-mask and interrupt-map, standard PCI properties to define the - mapping of the PCIe interface to interrupt numbers -- linux,pci-domain: PCI domain ID. Should be unique for each host controller -- bus-range: PCI bus numbers covered -- #address-cells: set to <3> -- #size-cells: set to <2> -- device_type: set to "pci" -- ranges: ranges for the PCI memory and I/O regions - -Optional properties: -- phys: phandle of the PCIe PHY device -- phy-names: must be "pcie-phy" -- dma-coherent: present if DMA operations are coherent -- dma-ranges: Some PAXB-based root complexes do not have inbound mapping done - by the ASIC after power on reset. In this case, SW is required to configure -the mapping, based on inbound memory regions specified by this property. - -- brcm,pcie-ob: Some iProc SoCs do not have the outbound address mapping done -by the ASIC after power on reset. In this case, SW needs to configure it - -If the brcm,pcie-ob property is present, the following properties become -effective: - -Required: -- brcm,pcie-ob-axi-offset: The offset from the AXI address to the internal -address used by the iProc PCIe core (not the PCIe address) - -MSI support (optional): - -For older platforms without MSI integrated in the GIC, iProc PCIe core provides -an event queue based MSI support. The iProc MSI uses host memories to store -MSI posted writes in the event queues - -On newer iProc platforms, gicv2m or gicv3-its based MSI support should be used - -- msi-map: Maps a Requester ID to an MSI controller and associated MSI -sideband data - -- msi-parent: Link to the device node of the MSI controller, used when no MSI -sideband data is passed between the iProc PCIe controller and the MSI -controller - -Refer to the following binding documents for more detailed description on -the use of 'msi-map' and 'msi-parent': - Documentation/devicetree/bindings/pci/pci-msi.txt - Documentation/devicetree/bindings/interrupt-controller/msi.txt - -When the iProc event queue based MSI is used, one needs to define the -following properties in the MSI device node: -- compatible: Must be "brcm,iproc-msi" -- msi-controller: claims itself as an MSI controller -- interrupts: List of interrupt IDs from its parent interrupt device - -Optional properties: -- brcm,pcie-msi-inten: Needs to be present for some older iProc platforms that -require the interrupt enable registers to be set explicitly to enable MSI - -Example: - pcie0: pcie@18012000 { - compatible = "brcm,iproc-pcie"; - reg = <0x18012000 0x1000>; - - #interrupt-cells = <1>; - interrupt-map-mask = <0 0 0 0>; - interrupt-map = <0 0 0 0 &gic GIC_SPI 100 IRQ_TYPE_NONE>; - - linux,pci-domain = <0>; - - bus-range = <0x00 0xff>; - - #address-cells = <3>; - #size-cells = <2>; - device_type = "pci"; - ranges = <0x81000000 0 0 0x28000000 0 0x00010000 - 0x82000000 0 0x20000000 0x20000000 0 0x04000000>; - - phys = <&phy 0 5>; - phy-names = "pcie-phy"; - - brcm,pcie-ob; - brcm,pcie-ob-axi-offset = <0x00000000>; - - msi-parent = <&msi0>; - - /* iProc event queue based MSI */ - msi0: msi@18012000 { - compatible = "brcm,iproc-msi"; - msi-controller; - interrupt-parent = <&gic>; - interrupts = , - , - , - , - }; - }; - - pcie1: pcie@18013000 { - compatible = "brcm,iproc-pcie"; - reg = <0x18013000 0x1000>; - - #interrupt-cells = <1>; - interrupt-map-mask = <0 0 0 0>; - interrupt-map = <0 0 0 0 &gic GIC_SPI 106 IRQ_TYPE_NONE>; - - linux,pci-domain = <1>; - - bus-range = <0x00 0xff>; - - #address-cells = <3>; - #size-cells = <2>; - device_type = "pci"; - ranges = <0x81000000 0 0 0x48000000 0 0x00010000 - 0x82000000 0 0x40000000 0x40000000 0 0x04000000>; - - phys = <&phy 1 6>; - phy-names = "pcie-phy"; - }; diff --git a/Documentation/devicetree/bindings/pci/brcm,iproc-pcie.yaml b/Documentation/devicetree/bindings/pci/brcm,iproc-pcie.yaml new file mode 100644 index 000000000000..6ce2c48b660b --- /dev/null +++ b/Documentation/devicetree/bindings/pci/brcm,iproc-pcie.yaml @@ -0,0 +1,184 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/brcm,iproc-pcie.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom iProc PCIe controller with the platform bus interface + +maintainers: + - Ray Jui + - Scott Branden + +allOf: + - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/interrupt-controller/msi-controller.yaml# + +properties: + compatible: + items: + - enum: + # for the first generation of PAXB based controller, used in SoCs + # including NSP, Cygnus, NS2, and Pegasus + - brcm,iproc-pcie + # for the second generation of PAXB-based controllers, used in + # Stingray + - brcm,iproc-pcie-paxb-v2 + # For the first generation of PAXC based controller, used in NS2 + - brcm,iproc-pcie-paxc + # For the second generation of PAXC based controller, used in Stingray + - brcm,iproc-pcie-paxc-v2 + + reg: + maxItems: 1 + description: > + Base address and length of the PCIe controller I/O register space + + interrupt-map: true + + interrupt-map-mask: true + + "#interrupt-cells": + const: 1 + + ranges: + minItems: 1 + maxItems: 2 + description: > + Ranges for the PCI memory and I/O regions + + phys: + maxItems: 1 + + phy-names: + items: + - const: pcie-phy + + bus-range: true + + dma-coherent: true + + "#address-cells": true + + "#size-cells": true + + device_type: true + + brcm,pcie-ob: + type: boolean + description: > + Some iProc SoCs do not have the outbound address mapping done by the + ASIC after power on reset. In this case, SW needs to configure it + + brcm,pcie-ob-axi-offset: + $ref: /schemas/types.yaml#/definitions/uint32 + description: > + The offset from the AXI address to the internal address used by the + iProc PCIe core (not the PCIe address) + + msi: + type: object + properties: + compatible: + items: + - const: brcm,iproc-msi + + msi-parent: true + + msi-controller: true + + brcm,pcie-msi-inten: + type: boolean + description: > + Needs to be present for some older iProc platforms that require the + interrupt enable registers to be set explicitly to enable MSI + +dependencies: + brcm,pcie-ob-axi-offset: [brcm,pcie-ob] + brcm,pcie-msi-inten: [msi-controller] + +required: + - compatible + - reg + - ranges + +if: + properties: + compatible: + contains: + enum: + - brcm,iproc-pcie +then: + required: + - interrupt-map + - interrupt-map-mask + +unevaluatedProperties: false + +examples: + - | + #include + + bus { + #address-cells = <1>; + #size-cells = <1>; + pcie0: pcie@18012000 { + compatible = "brcm,iproc-pcie"; + reg = <0x18012000 0x1000>; + + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0>; + interrupt-map = <0 0 0 0 &gic GIC_SPI 100 IRQ_TYPE_NONE>; + + linux,pci-domain = <0>; + + bus-range = <0x00 0xff>; + + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + ranges = <0x81000000 0 0 0x28000000 0 0x00010000>, + <0x82000000 0 0x20000000 0x20000000 0 0x04000000>; + + phys = <&phy 0 5>; + phy-names = "pcie-phy"; + + brcm,pcie-ob; + brcm,pcie-ob-axi-offset = <0x00000000>; + + msi-parent = <&msi0>; + + /* iProc event queue based MSI */ + msi0: msi { + compatible = "brcm,iproc-msi"; + msi-controller; + interrupt-parent = <&gic>; + interrupts = , + , + , + ; + }; + }; + + pcie1: pcie@18013000 { + compatible = "brcm,iproc-pcie"; + reg = <0x18013000 0x1000>; + + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0>; + interrupt-map = <0 0 0 0 &gic GIC_SPI 106 IRQ_TYPE_NONE>; + + linux,pci-domain = <1>; + + bus-range = <0x00 0xff>; + + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + ranges = <0x81000000 0 0 0x48000000 0 0x00010000>, + <0x82000000 0 0x40000000 0x40000000 0 0x04000000>; + + phys = <&phy 1 6>; + phy-names = "pcie-phy"; + }; + };