From patchwork Wed Dec 8 04:04:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12695269 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 4F502C433F5 for ; Wed, 8 Dec 2021 04:06:15 +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=BBpdwSqHzoosHgbsoLSGRH9sZGd+WUDbok5RCHZBTmQ=; b=YnanroVJK7/gNO 8BSCLQIikSD9E/CSBWSW+irNCA8RL09f00Xb8FV48lJIanc4ZgYt3isXwGDeU4KDAoVfgstAYnSGv ZoPp91Ueg08Kt3wUuKnwQwNqfH5LsOON5B2/EaT6vmDtp/WlOoAT7sdlw/zi1O84rW+87BPXG2vp3 KuT0X3maVZYYHcYAiDS32BVWYSi/2H01xLKNp4dEK5jaz5hcuwejzzN8+FUZnlLP2HrYPkiM1MlB7 hRlujKOhxa8Fk0nAYwVqfrVt4JyANf3sp+L2JF2dWUMwWQVkXFN74tSV3QQ5Avw6zJu/pwIkV+kOC 4ZWEsfcsd+BT5diUZBHQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1muoCL-00B8YU-2I; Wed, 08 Dec 2021 04:04:53 +0000 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1muoC7-00B8Qe-DF for linux-arm-kernel@lists.infradead.org; Wed, 08 Dec 2021 04:04:40 +0000 Received: by mail-pf1-x430.google.com with SMTP id z6so1318634pfe.7 for ; Tue, 07 Dec 2021 20:04:39 -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=4HXxSu2gPMhcps5sa6jyk5e2IIZg5iM9c1rXs+VhM6A=; b=iqOfLIN7fCiWY7C+553okIzVz1isalKGAq39L/xo9MHJg+7Xg8sJ3fhzbJUDk62Vzz o7VtgLVuunOQl4Yry45IF+HKpQxT6I5YC4yL11OcqS+WsPPzLPNL0NUJ1Rtyv6x92Qsz D4pUFl2LL1VRH2sGvlpOaDwTpmeSA+R7bkgSMvbfnYjh3Lv7++CQuI5iymiih8ATJsfN 8Jk1x2wFbfbSTs9OAITPBbp4zwLznjL5IoXp3WQd2q+Hf/tRIFtIJEKUipPgu1SMc+JH WzECqubp33RMJX4Rcas2PCtaDv9HDFT99kYm95XueBT4GGhuFSFhM/tzA+Q6xPTioyXi 5uDA== 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=4HXxSu2gPMhcps5sa6jyk5e2IIZg5iM9c1rXs+VhM6A=; b=F+FrqXu5JhyfO3TtFgKkOgPPuXTJQ8ZfI9ruAyIVbz7Nb8IEPVqFxwGrzyaMJg4b5F IUnAKnxMrhjoy6WfOGwS3GIIjTvYdrkj2EanQo1lDaNYdZbquNEMkOBznvImCK835n2q qLz+66gDIkgOI8YRMUv5SCHHYIAEkKgEHlr1bCtpKBmXPHXzGylVgeCfKtlrv3pEeZBl Bl4VEwSueRI/Wkbyo/Xr/Q0pdlV85FNTl+nuOvVSs5mrq2Gz+voX/Ihhnf2fvPaMRZdp sCrlsAKtD8d+F/Jzo3Di1znL3KCLlz1uWKTlkpMnxQq5gVAhYhsuqMA9t4/+Lkl0Ctvm jEYQ== X-Gm-Message-State: AOAM5329j6zkCdKFM/hfQKJQmaI+q+9L4bcjVsAHSSvmLvofPa36yxLy AdTHr+sATHh9TYUfSJO+3eM= X-Google-Smtp-Source: ABdhPJw3Z63ln1wMYmIq8JnnWDgqOMGmdjyelgUJgU/3ubh8JNENwUyXKiDRafZp+CM5D0lKgBcjxQ== X-Received: by 2002:a63:85c3:: with SMTP id u186mr27255326pgd.201.1638936278516; Tue, 07 Dec 2021 20:04:38 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id c18sm1320684pfl.201.2021.12.07.20.04.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Dec 2021 20:04:38 -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 v3 1/6] ARM: dts: Cygnus: Fixed iProc PCIe controller properties Date: Tue, 7 Dec 2021 20:04:27 -0800 Message-Id: <20211208040432.3658355-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211208040432.3658355-1-f.fainelli@gmail.com> References: <20211208040432.3658355-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-20211207_200439_484901_6F1EC46A X-CRM114-Status: GOOD ( 12.79 ) 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 and add the missing 'interrupt-controller' property which is necessary. 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 | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/bcm-cygnus.dtsi b/arch/arm/boot/dts/bcm-cygnus.dtsi index 8ecb7861ce10..d6e2b2ba3a19 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>; @@ -298,6 +298,7 @@ pcie1: pcie@18013000 { compatible = "brcm,iproc-pcie"; reg = <0x18013000 0x1000>; + interrupt-controller; #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 0>; interrupt-map = <0 0 0 0 &gic GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>; @@ -309,8 +310,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 +319,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 Wed Dec 8 04:04:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12695270 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 175FAC433F5 for ; Wed, 8 Dec 2021 04:06:35 +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=Y+RlDd37/bgGsMxMv06tZdYXPLLqRYM8QC+m6zlG8BQ=; b=ZmCYQcbIm+rVlQ WEqHTgjTYlVlPP7sj0F6tyQU8ALetcNItSzSmDtwMtO7TRGdYJmtz8WYusPDpQ434eqd0zNOZgyiC 6FzHhm5rOGiDE33ziXS9IchJX4qi9bCLZ5wMJHP8XEdNKrGAn1PtGs1Xti83IOOlHhgtP1EOayDJH c3w8K/RNJPsNojzwy9l+fMPCChKQke7xj5wqgMaLHL0HkNGYQARiw1uqmmY7txEPUhuoFSaQKktkI 1AHPHRVJzOTkG5mp0k6Lftz6pTfQXWwetcchVyglXVFOyzNWlRTaADjBbhJ2+P1ccc3jwgXMHRrPd 4526t5ao/3Gxgc6Lu6Wg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1muoCW-00B8bV-8h; Wed, 08 Dec 2021 04:05:04 +0000 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1muoC8-00B8RH-Nj for linux-arm-kernel@lists.infradead.org; Wed, 08 Dec 2021 04:04:42 +0000 Received: by mail-pg1-x532.google.com with SMTP id q16so931811pgq.10 for ; Tue, 07 Dec 2021 20:04:40 -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=a9TA9nZ89a//BemP2uNfcdJdyv/5bJCk0Nuq1NhjtJE=; b=EdYzLhY2O7I+PIs0LpAAJf/zEUszq2DAtC8dRvwY9yXaOwKKTdeFd8Sf+tbhtD4Nyo zVwlHYEjeUohtYuGg0FJMWWpFmKdmfR1EkO9wB66LQ9H5OolGCUHCx2Bi3rePRtMsfC/ nXjGXOsMrNrlR82VQZgMxgmthlnU9usTR0sXsXhc2TUAO9wDV3qWF/E7MfF2hBx9zU2R U5UFp7cVAhSgeKnDXU2yXRryEC7xs4kFGKMOv50s4bDcoK7NY6EPJCbAw6xT4KqSNEbG n9Vo6okpuYWlGsNAX6vzFdfC3FIa6Vsm84XdWgvXOkMkaLocoPrOhZfdaqOiso7DKuOl UM1Q== 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=a9TA9nZ89a//BemP2uNfcdJdyv/5bJCk0Nuq1NhjtJE=; b=TN0riOrqM3WlZxAbHDOuI/iODDA7Fmfi8NM0gznEPgVywFZVkfyxkLomTnXiRFm7vH IJcNu3o5tvZZ9FPpKWDjX+BwNOjf6I9Jxc9ntxDtda0aO/w4+DXRDlBqcC44w6jNdoxL aYilkKlNieLFu/NNAsp/0tulxQ+Gq9StJZumOHGM6vl82oWhdhTMgX7Qnybkp6uHBU9l Tc4ygimY//SV1MpsxHenybrM+q3H5tPmUJz9BSgIdaDE+Dg7cubravXaiidyUAVeoEQ9 LFo1UKEJM8rWUY3nIwFx1GAZLnJWRIhWDavkX8ovJN6kyX7IE9t4J+CHdKfVBd9Titis N4Kg== X-Gm-Message-State: AOAM530EJbe0q1B7o3Ka3hbnx/ejR9QSWqq4vOh3jjpxXPvJooMbw0ij K+RIV70Z6cRVhTugwPOygcs= X-Google-Smtp-Source: ABdhPJzGkKR5b+RzpkMH3/mBvr034Po/exe+doSkL1WfXQ54wpUHZ9xmtBGjRpiG2xFzW/3wCcXZQg== X-Received: by 2002:a63:150c:: with SMTP id v12mr27426514pgl.442.1638936279988; Tue, 07 Dec 2021 20:04:39 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id c18sm1320684pfl.201.2021.12.07.20.04.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Dec 2021 20:04:39 -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 v3 2/6] ARM: dts: Cygnus: Update PCIe PHY node unit name(s) Date: Tue, 7 Dec 2021 20:04:28 -0800 Message-Id: <20211208040432.3658355-3-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211208040432.3658355-1-f.fainelli@gmail.com> References: <20211208040432.3658355-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-20211207_200440_834157_4B610EF2 X-CRM114-Status: GOOD ( 11.99 ) 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 d6e2b2ba3a19..8153b60c87b7 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 Wed Dec 8 04:04:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12695271 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 C6B30C433F5 for ; Wed, 8 Dec 2021 04:06:39 +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=qvFlhghgaruxCm ivHykSVcKx/M5qfb2ss+JlLKLFxiIBdcCCA72VogaTbrXQ0AIBgYiFqEoTrL6Iy0yuKqKcEg59a3E XBZHvNlj6aRwSYDLaO+EBzUtuEYOeuc8vYeGrBD/DV3atKEgOELA/KfHMJNkLd83hcUkT9KHRmf2Y jrUT/0nTcUbbSmkKIYGHknHMxyd44xc3K2pDNz39rOhw2W2QvPhP05o/1wm42lxrR1cP4DsyR6s6p g5kXXTooUyVwEstw8YzbbAzuPMMxMLTYgsLCWLIJB9UXGYCvc3l1vwhCvCOubsizZ3Jke9c8pQGi0 kyfCuEl2u3EHmvMeeOUA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1muoCg-00B8dr-Pg; Wed, 08 Dec 2021 04:05:14 +0000 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1muoCA-00B8Sb-4D for linux-arm-kernel@lists.infradead.org; Wed, 08 Dec 2021 04:04:43 +0000 Received: by mail-pg1-x532.google.com with SMTP id r138so919336pgr.13 for ; Tue, 07 Dec 2021 20:04:42 -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=FU1QcCpCE7EGNyFNHu48B9UcmAm3UYXrZkZ7MaZceXZGKkJcGLY67bUXNYtkDe9Zw/ hZJxeySLlkSjRAUKEZLe3xDC+BboqUmaiIQvrkCs/3+oNKsIMiN6h2fn5LnxCwn3rUw/ 3kr9fIiCLyEh6hDFOZmWvNoAUfCjSfVah2qct3XseCiO2AeADtvHP8zKUw4Ias+05cKz Ptc7i82BmQl6OZH6pJs+XMhXhveakvPPZP5F6fXiHx2HeCw+Sa+OdXQZVob8J9aEVmoS wMFib8k576EvJNz2JH7HoZ6tciWsE/HZct24LmRP7z7bpsfgah2Wfy0GRT8L2ZAI5RTQ tp9g== 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=0JpduNYIteaofrcnO0b7gKQv+w99CYnf4DEUXrEw9ujQ2eLr/MYbYgX2gM2pKHIRn1 FNn3CsOPxdt+qpPv+/07aBHMVe1vH6x5dks9AHzdiZ9VfH8WWblFDszuPRXvtwBtfVjv 8rQoEuSRzC6MwXZY9ADPtWKnvr7RUBkOcsCbHvSNC3vDqbf/fl0EclZCs3Bg7pGvMMcW csalc0gLq2wdoAd/IDNBq7W4SpdFDgb+03Rmytxq7EpWdxneT7VyzCYUekJhUZQsuWEN 1L89EMFGyHHsQGOoSVvOK9FwcxVq0SPPjo2e2ic3EdG2/YumuNHeq6JgHfH96/aIqKN2 H9zA== X-Gm-Message-State: AOAM531tOmelVaq/9rMGSc8J83oyzYknmNVC5D3CTuyUNl8LUuQu7+a+ hSaOKYsIHYH9vvr5AerDiHQ= X-Google-Smtp-Source: ABdhPJzh2O808XvLmB994pj/JZZ0i94ctZlVmqhtaGF16YifWsv51Gg/0FN2yWXb5KskySsIbn0SHQ== X-Received: by 2002:a63:81c8:: with SMTP id t191mr27145508pgd.369.1638936281529; Tue, 07 Dec 2021 20:04:41 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id c18sm1320684pfl.201.2021.12.07.20.04.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Dec 2021 20:04:41 -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 v3 3/6] ARM: dts: HR2: Fixed iProc PCIe MSI sub-node Date: Tue, 7 Dec 2021 20:04:29 -0800 Message-Id: <20211208040432.3658355-4-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211208040432.3658355-1-f.fainelli@gmail.com> References: <20211208040432.3658355-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-20211207_200442_215244_0E24E48A X-CRM114-Status: GOOD ( 12.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 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 Wed Dec 8 04:04:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12695272 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 E7E8BC433F5 for ; Wed, 8 Dec 2021 04:06:54 +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=2BbI+fcj6xCIns 8gUzMB0HSak10U2VBYeyJh7mixGT30Np/m3Js9jYyeU4Wi0q3eDU3PKzq5FYmPo+E8NSvoNJNEEit AZvMuh8jsrd9xuVReCD3uVqaKKTf6IATGxsmy8FnkFJpd0nwrmy24OI7DUjmQBfTTjdoaAgVRD+9K 9CbpnGOwB5talM66R8xVGJiw2lma41Bb8jxW68vmABuZgmwIoUHF4FCWqH4XhoRnFFYiWRevDh3io QuopKotmhDUYTYbldtTEEecO5mDku/hQWbfYj1scer2BWBTbMznlYuZwBVVCm0CbZmMJ8Z/6zIpWr HUwn9Ob0WjYE8DX+W2Nw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1muoCs-00B8hE-1D; Wed, 08 Dec 2021 04:05:26 +0000 Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1muoCB-00B8TN-Q6 for linux-arm-kernel@lists.infradead.org; Wed, 08 Dec 2021 04:04:45 +0000 Received: by mail-pj1-x1036.google.com with SMTP id y14-20020a17090a2b4e00b001a5824f4918so3430359pjc.4 for ; Tue, 07 Dec 2021 20:04:43 -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=hiBHP3RLA2HLAaYLJqIfsdqkg/LQ3RY9Gjy0+4n0PnQsg6ccgRNSmdzhVtUDqSZ8kd QqMiTvwyURKDFr/t4rWZxhVPA4nVVwq5PxEpIf77EFetpEx6ATh2mwNSY80dNT0GRefP 1A3V36zjGo4/QsjmRsYxC67yK1sk6S68DFiRJja4niRFx48BcMSKe+eYNx+K1PRrsIhW GUmrWNALFT6ktpZX+noXJxa8u77g1ajAoXVlFJLD8/lFJB8Csn+iz19Gn6Grti4tvvYH zVF4MAUAwRsimQxpIQc5T1AVEo3T0NxYmaDRPla3kUh8njqr7mCNowFK9kmxE806Zb7B YZNQ== 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=64Ic/NdSa8d9E44UiwNX0fn/VAKTRDihlqgIVZgzj3O/yFPVBIY2SZe3E57wQoIt3m XXxOaN17dm7OlQBRUYYT6mSz971YSssF6tDy025ACmLHvclVlHSA7mvfRz6L9rIzkQTB xPskIIplxcjG9A1X6pEsHODn36PGi+ncDq2Ay1OXKB68lAsnNYIoA24HGmQRxckpyP96 e86uFrbZRBRcztEetqFkYd6X86iElw5E2fhp4yYjSsuiU/U940RTqzcOOaOPR9tkv4BI gx2A4nbkUjBQ8mI+dU/YDvgBLfAbID6kp87sgUfYAvtm7UdDO4DucuA0x49GIKhbXfEw +7XA== X-Gm-Message-State: AOAM530bidPftdraou8e1slQKEQ62Sm5Wh8BxXO/bPFnH8qX7CteRPCx x14YN6IZjkK78VmaRMub+EuHMUX+Ugk= X-Google-Smtp-Source: ABdhPJxmAPfb0esNolnSCnGT4tzw+ApkU7E/3KxYmMLFUg/Cq7uItECQ35tWeSoqBDIDX/2iXQRRoA== X-Received: by 2002:a17:90b:4b03:: with SMTP id lx3mr4182432pjb.18.1638936283046; Tue, 07 Dec 2021 20:04:43 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id c18sm1320684pfl.201.2021.12.07.20.04.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Dec 2021 20:04:42 -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 v3 4/6] ARM: dts: NSP: Fixed iProc PCIe MSI sub-node Date: Tue, 7 Dec 2021 20:04:30 -0800 Message-Id: <20211208040432.3658355-5-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211208040432.3658355-1-f.fainelli@gmail.com> References: <20211208040432.3658355-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-20211207_200443_873569_559B797B X-CRM114-Status: GOOD ( 11.66 ) 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 Wed Dec 8 04:04:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12695273 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 B74DFC433F5 for ; Wed, 8 Dec 2021 04:07: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=zujdBEJK4lGY95qY+18bHjmXsjC0qWsv/jrrK8fHyiY=; b=MUKwkEPWV2QXbi iNZ7Q6COfX70+Fa7zjtSCLwnkmunOeOCEirGE524ugmm/kXOKn7GTNfvi4FC+kYxsX4i5F1ZlwMcj pqaKJp8G/E6ctpREWomwoeiMYwhGkasFlUH7V7TQ5rA0k7576JCu5Fr8rR4sr7YL8ZlWoTtStgNPC atCFX87VyDjCxbPBB2feTdeySiKHVkveJ9IPD4vZSOSkJkInON17RtadkjQ3uRhbZzV30B6th1JBP JjfZOFv+yOzBVsfNMiqZ8cUYk6Et32BFUG1I/bMPng8ygMYMRzo+0pCXXUs8oqD4OS9XBHRWtK7bJ Rert5y5F9dxnsWKf12mw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1muoD5-00B8lg-Ne; Wed, 08 Dec 2021 04:05:39 +0000 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1muoCD-00B8UC-BU for linux-arm-kernel@lists.infradead.org; Wed, 08 Dec 2021 04:04:47 +0000 Received: by mail-pf1-x42a.google.com with SMTP id o4so1285031pfp.13 for ; Tue, 07 Dec 2021 20:04:45 -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=FD8jk+RGxtkV5gLd8PNnst18NdpASQ+oqiVppQhVBHHlQjvKC5t0g9/eReu9F0pFwl TQ4L1GlZB51VECXEbj7JfhAE4L7gleM0eF1sZMIQdnLFmAglipuCFlzOZyL/1kUUde7x Deb2XYeje5su0L9LYdejYVIF9L0aE6jl8kPRwl5BO+tdhTQIok31IAzTIhgc7y1JTR03 c2KcYuyD4KJ5AWJn/jYWrJRtaX9E7gCCr+v76lwvox6gmJU31s9cCVhRJD/yFpef06+e Lh3zQNYeyVfJ6jU6pLRbuvLNLRuFwA2UKGzfCO+zrtLZ8xeORH8omTyMxpciRqzwVq5M 0Zqg== 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=MjutjwsuO/QAPJppPG6eUmt7CXA98B+Kv7CUQpWPWhVq0TnrXlUvV/5yHkM9n3b50Y l2TirBsD7Es1UQRrlW97Pwy4sOgzsYpzD4HpRnQeD4+00HyReS4HkOmKMxNBtOXuSbcd zLUhe+anPDgMBa2BtABpR6+xOBHLi+dnCGTHs4tSz/GzXJn+m7KhZQnln75b21/r9njk 03ig36xz9xiBckg2oyNgMqEVL7YHl3k1YHPl4V9x0tFvufCka2T28zX1cfDIePOr1mmc Pcg2USEBubgugl5Mb4DbhiyhvJqzda6VcoiYqLiIEMBFRT6rP0BmCU5gWAhstqKezpMU L2KA== X-Gm-Message-State: AOAM530dvjf6GJbJ6hQaA+/hcVKwk5Zy3uw/q6HqoF+f/Xmi1RzQEAbU cZW8iNNZPJYGMpnxs753e5s= X-Google-Smtp-Source: ABdhPJzfOnYFR8mgGOmbEWPXYM9+Iqwkas0/pMPuHNBApD/gbRwxD7NUtSaQ8YnelpBkf3dFGyYpQA== X-Received: by 2002:a63:4f22:: with SMTP id d34mr26659724pgb.415.1638936284540; Tue, 07 Dec 2021 20:04:44 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id c18sm1320684pfl.201.2021.12.07.20.04.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Dec 2021 20:04:44 -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 v3 5/6] dt-bindings: phy: Convert Cygnus PCIe PHY to YAML Date: Tue, 7 Dec 2021 20:04:31 -0800 Message-Id: <20211208040432.3658355-6-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211208040432.3658355-1-f.fainelli@gmail.com> References: <20211208040432.3658355-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-20211207_200445_439010_4DB96FAC X-CRM114-Status: GOOD ( 17.58 ) 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 Wed Dec 8 04:04:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12695274 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 77427C433F5 for ; Wed, 8 Dec 2021 04:07:45 +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=fa9wBgAi3nidfON8jLmdeNdYDT3WmwKTZEQF935WRyQ=; b=fSPnjcbA3emZ7d LmaVMy0wj+fWJIDGfm7PgKAL+wdmaimTSSSbCQoj5MwlsV//7x79WkxYkM3LNR22qO7U7+OLc5N6m LDG5NpOV/lVSzWH6wac+R3GDdCsIHEcDG+F5GWE+zPkOSAVoiZDUcu943gmcT6xTLdHvENeL71yDa My8ILVkZQxYMJ3f9ly06rEEQyDL5wfbdTQl313EFIgEExgoJIlVgHRUb5nVkaU1Hr7a1UpsEqlg33 dHFJeshQlyItJ+RFKuQtE+sPHR1aiEJU4Ku2ndYV/yN8+zIDc66IHof0eayhi+xtAbMGjcFDFujG2 rcFCyjkLujhJGSHl5I5A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1muoDP-00B8to-3q; Wed, 08 Dec 2021 04:05:59 +0000 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1muoCF-00B8Vf-41 for linux-arm-kernel@lists.infradead.org; Wed, 08 Dec 2021 04:04:49 +0000 Received: by mail-pl1-x62a.google.com with SMTP id m24so678674pls.10 for ; Tue, 07 Dec 2021 20:04:46 -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=g6aBobBZLV580q2x9akXwvTNH0acamOZoRmazf1DKgk=; b=hSI06FZkaUly2AXBn62J71FSc2crmJMa1QQXAsLdw6N5mzwn9NDnlrzDAKLPUnqDvj RyivxOJKFDwsN//IVXQlTDplGg9igbs2Vej59lF5Kry3aoSMcW0sa0cxZM9VrMTEKgDY FEi+KfiEUPF4Aew9/FxUkIUSOZjBCEcaNEqX0GRhDM2AaV1Wg+aPQUDnpkT8QZZQtqny gTr8EfBtpmgiX0uom/GhHgyXvIoxEVNDe+R9H4jHlUsODflyJICyo/LSr4GRPxHjKb8x wnk5NOBVBwDsWPfDPAMvY9L6bP2DyoN1RlA2nkbRDshVrcNeUBU9OP9aKKaKZTTOIpGH MB+A== 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=g6aBobBZLV580q2x9akXwvTNH0acamOZoRmazf1DKgk=; b=WwPWdmEn3IMIp5OqaCL7YfXmwNtVjvvIioiOrYzx76Cl8kW4CzmHcvs19xHDG73Vvz nhvJqzJT42n886jE8msGihEpN+IFCviYPL/5z9aMeo+O+d5TRYD/xV8ZDchN1BQ5v0Zn D8nMwhPkd+keCVFMllRhoz45YXjEdhtmCH9DeMkmqw32K6Usj0XBx6OoyZGndGHCRyQL hnPKHTzkXFVKu71COvTD4TFqzIRfpAVfn6uY2l3sagJqdDDhWEpXMPI82/vipK/YvLIN Wx/i9GPxv6oiQaQop4BWMEHw69t02jn6mvavWLD9nRae4OOCCAWxjqnjvHPP7zKd0WjT a3kQ== X-Gm-Message-State: AOAM532/BC9ZR1b/tF3LSv+bzZbexQZN3uDrCrC4g8H1uZyHpL0NjkBc NaOSITcNdmMZipo2GVIqXIw= X-Google-Smtp-Source: ABdhPJwq1WhNY8jRUICV+NwDPToKXPwn5xZzgPGFjIAeO87p7aWko8jtw5mX3GPhdqRZLrDkcFB0rg== X-Received: by 2002:a17:903:32c7:b0:141:eb39:30b7 with SMTP id i7-20020a17090332c700b00141eb3930b7mr55942027plr.41.1638936286241; Tue, 07 Dec 2021 20:04:46 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id c18sm1320684pfl.201.2021.12.07.20.04.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Dec 2021 20:04:45 -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 v3 6/6] dt-bindings: pci: Convert iProc PCIe to YAML Date: Tue, 7 Dec 2021 20:04:32 -0800 Message-Id: <20211208040432.3658355-7-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211208040432.3658355-1-f.fainelli@gmail.com> References: <20211208040432.3658355-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-20211207_200447_214733_3B938F11 X-CRM114-Status: GOOD ( 26.71 ) 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 | 176 ++++++++++++++++++ 2 files changed, 176 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..a9d21d89a970 --- /dev/null +++ b/Documentation/devicetree/bindings/pci/brcm,iproc-pcie.yaml @@ -0,0 +1,176 @@ +# 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 + + dma-coherent: 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"; + }; + };