From patchwork Fri Dec 10 20:04:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12695711 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 AF8CBC433F5 for ; Fri, 10 Dec 2021 20:08:09 +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=ijBg6fxGh9oPwB RoShzOcKwMz4ywcGhkur5aReztTa2pO+jCrkZG9T4trFggJODWMreRIrTXw9q0vxCRZgbHxhXmv4Y bTnYyomSmve+1ejVRBiSxxVhHiSJy2SJHVucobP3vXJoEWAIU48Y66/Gw1gi8cvPhcxC1+SC2o2mx OafyEykRZQiyxPgzedbHfsTLdiIvor9c9lLjLXnikF3TytDrfe96Sdm8PxxvLYmjuLhO70rhVvNrh wfifGwEL/JfDpg4O6e7E+CzOgu5p9Ger2SvI3Gl2kQOqCmEo1Db3izRkNNcl23AGTqmtp/bLqwSkG Erab7LG6cNH/bDC+jo+Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvmA7-003ffy-UC; Fri, 10 Dec 2021 20:06:36 +0000 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvm8q-003fAs-Mq for linux-arm-kernel@lists.infradead.org; Fri, 10 Dec 2021 20:05:18 +0000 Received: by mail-pf1-x433.google.com with SMTP id p13so9410182pfw.2 for ; Fri, 10 Dec 2021 12:04:58 -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=Q/0j4b2n1cnd2/EDcxEQl3atzWCUwjieqdansp1ksLFCuLqV8yQTZBiJjvDKr/s0Ql gY7WmJhPAs0J8linWOYYi1Z9SOWANqtrHYjBdjJBUIoYgFynx4u7xv8UPTkJ3A1iYNmU hMFiV5OPxWRof4QNoIJJNznnNkIzXnpT4KDKsK66fKSiyaVVBLrXvUyeXEFm17By7ZEA 6/hvlJ5gPl4ZDAz67qVTa1HFx+dFEllbXuMjTJtMM00LCZkUL+o+l0LjdXnfYoZQyTJb 6aTiNmCp83/YY3L0rA7V7v+S39yaAMpbKfKJZcP2LBJAvwmccRElmKuuJXP1XkVNLTbE Flhg== 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=6M1j1Is81cl3PKIBlri9eP+eBGKJv8Z2eZmvztBDc9NrPFMwixv0ql4CZFinktFgMa 8YuKEhKGjSABYN/OUznf2BTZ8KpI9cRJwYGlRcJRFEhZOaXG/YELita3WaQQzzExA7tF 4gUJfp44jUaJDtN/G6CS1kAXcbLS1KYaC2T0fFRvLOXB9cLbOzDuHCYxyBEgWHvWGXeN AIXJszPdfP+PxegUUMECAQ85YeRfWuZM3tn2ZU7odIIHYLBBgGuDfnSOCnVxtqhy0/tY svo2eXJXp5SAf1STvyQVJaK8hJWxIdlq14A7AKtORcTqn0O6CYWaoYINH6Jk+2Fg6nG1 dV5g== X-Gm-Message-State: AOAM5336vIjhUU5q2m42DbBn3XSYajONZccYZ6owNK5rDuw83iKtLLWz /FBlaYo6E66NbWFVaiEvZAY= X-Google-Smtp-Source: ABdhPJwNMMu4Mn5fZltQrNnEW9dBDYATcLWTwW+KuSXrocRqB1yRieox3c1OaUzyYDIPjtc1o6ZVSQ== X-Received: by 2002:a63:6687:: with SMTP id a129mr39784982pgc.477.1639166698480; Fri, 10 Dec 2021 12:04:58 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id g13sm3474463pjc.39.2021.12.10.12.04.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Dec 2021 12:04:57 -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 v4 1/6] ARM: dts: Cygnus: Fixed iProc PCIe controller properties Date: Fri, 10 Dec 2021 12:04:46 -0800 Message-Id: <20211210200451.3849106-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211210200451.3849106-1-f.fainelli@gmail.com> References: <20211210200451.3849106-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-20211210_120516_782132_CAF56840 X-CRM114-Status: GOOD ( 12.47 ) 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 Fri Dec 10 20:04:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12695706 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 69634C433EF for ; Fri, 10 Dec 2021 20: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=8BtWlZgkQb7Gmvo03yAN6LvA8TBs9RQvAOnwbWGZU8Q=; b=aiGGW4w+9LQ73g MjFj7SffSwTcyHNEIfXOLlZu7O7l91I0PYjOtaCBb15PTdEFxyuFqIpeKA4eQ+pN877gXWDPpnwzF H+iVkot//tPy9xuJf5KzKRQCzft3exdAZCBVuTp4aZfdZxKEKdie2SgiSiJXG4fgSJoJkgDIFPtTE lxKE9OBogS8AvcSVpoS0h7u9k7FVXvhME+o3Pe43DMfRBxZaHUBrWNCeSKxZcptmpPgaR+R20z4TT 5i+NoTtDu220jm1g1jNk6gET7Odwh4xUiMhEmtzImakyWTEb8jNJuZrHJB7vmSUbGkKZ8Nts9Pysm pyj1FGYGsPvCowysw9FA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvm8l-003fFD-Uk; Fri, 10 Dec 2021 20:05:12 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvm8g-003fAu-TN for linux-arm-kernel@lists.infradead.org; Fri, 10 Dec 2021 20:05:08 +0000 Received: by mail-pl1-x634.google.com with SMTP id v19so6968731plo.7 for ; Fri, 10 Dec 2021 12:05:00 -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=Ij0uDbl18r6SrV+rjRUqOUIJqz7Q3dFpbxtYBBnvP4T/ysHlVRTxx6O3FfKh8p9WRg MngUnoacTdcLU/v1H+/w6ztPhQoFPG5jU/Adtqdp0sceZi9TD46PNFDTkKLADPp4CKwP tsFVbSsbo0EIwN6JIY9pySKCOD0yVbDzLzfkVM9eVzA7GAel4BdGa6EXS4X3ubyQEvb+ Q2EbzeYmjRlOPQtxjMN8ZOhpRQg3iByIa9c1MF2LZWkkiOrYCpsF6fPHFLQNJ0YboRJa IDZRBS4jGxlIT/Jb3mJIZ2HPwRNpOfyNToZkpK+WH33EGoylOW33Y5CGYrhmBONpXtM1 YmRA== 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=Q5TgiyEx2fGLhTEuD32ND6El2q+hDCZjBzlt07OTLfdkP0cq+yEfNEdrfquIkMQ6Ti R8YmgUZeR3O4q5QfA6U4PiDbig3Ym3V4LXLQ5bn7utBvZayjuzrTRUtogeImMOiKyA2K PKg6OXSUAr2Mi9E5TnYOQQeoBqzSd4y0TApGJMax3HnlxJItTv2I8Mu8Z+d8Iz1wXt3P 67w+6YKd4tk+Wgy8i3sFIIFBtGVknuqYmHposrnkSouT9NTmUKvxi6xexmlbFzFkNL/M pgpqD9TxdcqhAedXoXcvkaKyHirzvYpuypKVNVcLP7O06VMRwr4EE76HWjqnHUbfjx8P unyg== X-Gm-Message-State: AOAM53070RZa4BnpMNNbj1f893oiQSa+sTAjvi9ivFSiT2iQKPE7/wZX c5Gn5MUf6IjZjEtBSx1OAKY= X-Google-Smtp-Source: ABdhPJwNsc4rBcK3tDzuApXI8p3EnUS0VPylGdf7J1VkqWysvqc1CietawzK6jNOoXFHds4/+JRFVg== X-Received: by 2002:a17:90b:3ecd:: with SMTP id rm13mr25925346pjb.157.1639166700116; Fri, 10 Dec 2021 12:05:00 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id g13sm3474463pjc.39.2021.12.10.12.04.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Dec 2021 12:04:59 -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 v4 2/6] ARM: dts: Cygnus: Update PCIe PHY node unit name(s) Date: Fri, 10 Dec 2021 12:04:47 -0800 Message-Id: <20211210200451.3849106-3-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211210200451.3849106-1-f.fainelli@gmail.com> References: <20211210200451.3849106-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-20211210_120506_980083_41DFF1AD X-CRM114-Status: GOOD ( 11.94 ) 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 Fri Dec 10 20:04:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12695710 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 0F0B0C4332F for ; Fri, 10 Dec 2021 20:07: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=B3bpL7QMhHJI8T9jcZVdk/7EGq/SqY5CRL6wH12iUEc=; b=rMfuEZ9Opzqnz+ LzKIVUwsturT3s4KPL8bzvGCH+XH8PXIR1/YodasYtjzY1cuk0ThO/xnlJHt0oBa6vLk/DIbeKhlB KT81pH2q2adX4EFE6Cf3RZJldEJIRVh1oyaQJyXq3uqOVA/Px6pdPFSiEhQE3U/K5LWDLhmWiHIKp NFx7feiH+mXCLmZ7LuuT6LVylyzLxg6eZiS4VzwwFa79P9mYWZ+9EB+FnmEdFqRrXC6XVY2a458Dj 7tsNm1NqFpr69XdTteqdByblBcwg6Ubbwt2Um/FLvA/DHAKhrUrYDoOYexazXMcEwGcdVS+YHXtM2 JLyphA/6JLcAbwV9nEUw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvm9i-003fUV-16; Fri, 10 Dec 2021 20:06:10 +0000 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvm8m-003fC2-Qg for linux-arm-kernel@lists.infradead.org; Fri, 10 Dec 2021 20:05:14 +0000 Received: by mail-pj1-x102d.google.com with SMTP id x7so7610925pjn.0 for ; Fri, 10 Dec 2021 12:05:02 -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=eYd82nxXj99XAzuy/n2QL3B+R/sx3F/CGh+idNIxBYnBn54ihrA7sXJMhCumODMg3Z HmDbLuaBcEc/WI5hWOJRfKzTU/avFf/WPbkSyUnO38MIpeTvEDlrIQ8ZbW1nyK2JcFjt P84huueaUEFvTFH0kQeryCrP5cycsDPmALR1dCkdJ4ubW2igjoRUiD3l6ERMw+shJP0n mX+6eS23ix7KZkQrxdd1t5X/I1zCIq8bhoweGSrqTZsCbPhMJkT3DgDO3jMlVYoRSP1W SanV1bkuuOkgz6P/52VMjp8t/5wVXBWuwDqRwnTGCtN/dOOAoeCccJUOFWblLfiyX96J 5EzA== 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=Y9uLcAWLqeWI4J70gN9sBQekLApTwSEYZenIMiunPQcgWxTId4/m6ix7r9rUXbtWZX dCSfY2iHdor8MYLZW8tdbTeCsxMlY7Ob0jN69i7jg51K7kXSFjS3UgL9XODrjQua/Nqi b9A/zgrzrN1k26gID5ZnV305grlwS7Tf9gumRz4L42GzWaR26GH4AksVKhcWcU+6zNNU bjqzWk4czrp3lQiSxRE2sxPRF0Hq9m7iqidWK84/ulc3nrz2VqTqbehC5oVrGby42sEF zS0PXSNxmYJYXHs4XFgO/AOQi19ioan/H8J93Fi2ZgusfCtluRVFnPCqyiyZhCdUiQrB goiQ== X-Gm-Message-State: AOAM533z3GwfQpSwzR5sfaQW3wTaXCdhjo/2CE/KqiCjnA/kePkuP6+q 2hTRr3oHBDomFV3yQyJ7Qws= X-Google-Smtp-Source: ABdhPJy2CvSYTDXrKVVt74mgJ83Q8JVCCtw4oYVrg6NcHWl0FTiP1Vb0AKz+Vvz6Hbs+iqRmwKpwMA== X-Received: by 2002:a17:90b:4f86:: with SMTP id qe6mr26450942pjb.224.1639166701791; Fri, 10 Dec 2021 12:05:01 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id g13sm3474463pjc.39.2021.12.10.12.05.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Dec 2021 12:05:01 -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 v4 3/6] ARM: dts: HR2: Fixed iProc PCIe MSI sub-node Date: Fri, 10 Dec 2021 12:04:48 -0800 Message-Id: <20211210200451.3849106-4-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211210200451.3849106-1-f.fainelli@gmail.com> References: <20211210200451.3849106-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-20211210_120512_923214_F0CB7A47 X-CRM114-Status: GOOD ( 12.17 ) 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 Fri Dec 10 20:04:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12695709 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 390F0C433F5 for ; Fri, 10 Dec 2021 20:07:29 +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=YJMijfPW6+Ea41 3FXNyV+obJ9j5KdykTvgSO8KjIkfuw0KoTXykKtJVgIcNN+6LS+vP+aD2YFDHmVFJ/RUvsNelvq+j cG7m4stTQRb+u60AUesINfWGC7xo09Eb8YlZ/1XNuIUXbd5VD8K9rzvO/ccl2kzkwcCnkcU/04qav TSePYbfvHW7nmkt4Jvfnel1GExWRbGZXz4xy4g7hnODEk1KIJQAlab+gsIwNQrjE2rUhEc1zQeXRD M9exa26UCQI03LRQZScbL8cNZC/lTCCB3+YuyYL3MZzpI14dbI7fevkaN0TlmaoG2pJ4mHZNc5h5U FVzRzHsTDsSMlw56SReg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvm9S-003fOg-Pj; Fri, 10 Dec 2021 20:05:54 +0000 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvm8k-003fCS-52 for linux-arm-kernel@lists.infradead.org; Fri, 10 Dec 2021 20:05:11 +0000 Received: by mail-pg1-x533.google.com with SMTP id r138so8911993pgr.13 for ; Fri, 10 Dec 2021 12:05:03 -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=P9PK+g5pd0zUN7vBecpw5kRKHQ4ONdv3uxggvZWCKMk1DeNsbq4AhePgOSAn/qBhZL eMsd6kZtO81nZyzVD6eew1+4VUkymIvPZdsNNIFqCdxorwyl2LXPXOj6d1KsDQIfVGcu SvoaR1DtpNpEJQv/ziyGmY5F37jhzPk4JnUI5oLur0u5/h/D+K1vrJ3rQrwiAj4JnvOM i06TYdLNy28DdnO0d2iH4pMZ6iwdHhYXKKte6OUP3iJXkeGdnchinryksaDlT+VTz2BX 6o04JaH/63H28H8XPHc5YMNN4uaEzTR+KMzcMVWECNvwmkj09btB9va9GbxFQSvCbtcA lV+Q== 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=oLIuH5yUzJ9rFHHQujYt3E2Vkm9yOBMsZwQR7CezATrFkGip9t+wSVEkPWR4ueu8Xi aRzz3dK36ltw/HKMERN4lkmtJonNhGOhL41t0t9MTuxybHMibURediQGIDt+1x1sj6Ji SnQ/FcNCkvgflxcJPg+SwT8EiJ/H01RUKXJXNCxvHv74P7PZ4/QlO/fWCRgmGpzn2O8D xlSYDyUSOgTT1qZse2IVQg9MQTGB2iE+5TqpRzdp3wJ0aoPgqkSQsHURDr1pU9Fstq5t zR2/g43Q+VRXb3asgDVreZo4XZTxWl627w0RDQbN4C/g+gnwWsqmeX3NopIX+b9YWHMS JkgA== X-Gm-Message-State: AOAM5334iPyxBW0WvwcllKxNdK2P3UVh0nIW3MWsOC6cHsVJys23ks5U 9H6dOELBAM9wz+/WfccIFA4= X-Google-Smtp-Source: ABdhPJzLai1LzHaLHJ983CX/T7ku5ydPVdpFfHWVtadiam0qshf38kLWDsCvkH8YA+FI6tdnC6TyFg== X-Received: by 2002:a05:6a00:21c4:b0:4a7:ec46:34b7 with SMTP id t4-20020a056a0021c400b004a7ec4634b7mr19891146pfj.15.1639166703345; Fri, 10 Dec 2021 12:05:03 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id g13sm3474463pjc.39.2021.12.10.12.05.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Dec 2021 12:05:02 -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 v4 4/6] ARM: dts: NSP: Fixed iProc PCIe MSI sub-node Date: Fri, 10 Dec 2021 12:04:49 -0800 Message-Id: <20211210200451.3849106-5-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211210200451.3849106-1-f.fainelli@gmail.com> References: <20211210200451.3849106-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-20211210_120510_218760_75DF7E24 X-CRM114-Status: GOOD ( 11.54 ) 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 Fri Dec 10 20:04:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12695707 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 7E61DC433F5 for ; Fri, 10 Dec 2021 20:07:10 +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=iNXFzoZetGq9F6 kh1wM0OetfL5rMs/KDAtNNFzo0BT+89t3DMiZ4L5koYSYrTqW9OWtgL+4/XWkvlwzgHk6TaIi566e yVKstPMq7GxMfxfV4i6/SZxMwzQB03FdC7vctmc6JzHNhBXvfdtQmjgHOQf3ms/fo45fzzN8pcIYj H+tdxfYBRZ/xfHmV4OYrMH57CUNsf3rGhQ5kQLQUcY8koWxYTGoJHJJJUvyomqudYp465fIJ4vs16 6p5SwDuDjkx80wZYjM4g6v7KpxZz0dqTOWznS9WY1kEAvM/kUtazco2ix1hfx+eEhzFNDlp2Oosda RkjGbcy5kEuFcsVuX0Zw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvm97-003fKl-8b; Fri, 10 Dec 2021 20:05:33 +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 1mvm8h-003fCV-RZ for linux-arm-kernel@lists.infradead.org; Fri, 10 Dec 2021 20:05:10 +0000 Received: by mail-pf1-x430.google.com with SMTP id g19so9394764pfb.8 for ; Fri, 10 Dec 2021 12:05:05 -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=m0C/eGMB6xg3TZlFfjWgn1s+WROFUv583vrLVbOtU+KqhGNvro/JKXX9WmhK4ccHn8 hGuSeGWiNm16B3AzR3D6KU+N2YulzpTZRiT0YlFXE7aK4Ams8NVHJtY+TcPah2RiHH2Q dQ0r5JEKd0/tct2hMUWFnctH/GGp++ooawgFleXvaXmz6xEw8SJTwzaGjK+lcigexdUw HoQWXjFHocGPiK2Nfpv1fvuasK3KCflNG9j9aINcEQLZlv2PiBIsPfDYfERyq3/N0CvH p5n5VN+1oXVi4fqj6f4axkQpSen4OJIS0PerVZofkAe8vHsg/AKx+6DvEx8H/aRWG+GM E9tg== 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=V42DJ4Nqg9ntBgEVljgJlVJK5I/WvC6cwqACcxmt+9prVn7SiblABgbWp4kNX7ZW6Q q6vxWJuxWd3ivJ8KWKx9FuZ2q4sf6QU7Lbysv+t0lu78Y4pZGwdaj4wx+ZXd8UYy4FuB hQ67PXxcH0wvo39ww5SntXv1HdgdEE2ac1eCmbFjMXjlMnNbdx8VfSWgeCE9XHygs49G uZQjehiskLz4it35ctthwqCLr2zHLh+O1oIxohhU9C4zztY+fqNqg8d/awNoNIsQ8Kq9 N7HJrTt2SYUCVPydK7RyfkTsv85Dy08LvNSHTUx2ukOVoBX+9okKZ9avXeNIaQB4sNsp IMQQ== X-Gm-Message-State: AOAM533U4H4hNXDYOQy82n9h34kSNTI6Eb9dK12aDC+Edd37M5xOaR0H nPypNN0EdZqh+q66MNIaeinAS9uuYp0= X-Google-Smtp-Source: ABdhPJzYbi+J6p2BZva0uFe++shfxY9/2Mf/i0zIVSRO+yDzj6P32rzn/PRFBp7JkuVJzJDBmxmDew== X-Received: by 2002:a63:1166:: with SMTP id 38mr40800156pgr.368.1639166704925; Fri, 10 Dec 2021 12:05:04 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id g13sm3474463pjc.39.2021.12.10.12.05.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Dec 2021 12:05:04 -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 v4 5/6] dt-bindings: phy: Convert Cygnus PCIe PHY to YAML Date: Fri, 10 Dec 2021 12:04:50 -0800 Message-Id: <20211210200451.3849106-6-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211210200451.3849106-1-f.fainelli@gmail.com> References: <20211210200451.3849106-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-20211210_120507_933897_C8113AC8 X-CRM114-Status: GOOD ( 17.34 ) 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 Fri Dec 10 20:04:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12695708 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 AB60CC433EF for ; Fri, 10 Dec 2021 20:07:23 +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=elBNXUzMddFt5E NNl6z7TdvIhLr6nfHmktd7JBOMMutu02P3XKkwENE/e06Wpjrw5X3LHvRratJBHDXRU3OvfC9zhtt kRNDW0F/2J+ddh6MC4NFL4ZNM6QthwtDKiKoJdgjhFaZc1WFgxS9PsuTG4inQiuNZ3wCbFCG5G/ZJ /PYrcMq8oZYqltkb4SGpjZPUXllJA/pXxnvYmyK91YQtw+gL/hxyrjMWMj5bm2H8Cl4CSrD+7hDkx ehumA0uq8rKMRY/5gr7PzF7/G1VC6f+Z0whnainJCIDvaLBRY7dMvMQ4d+9e9uOsykfWwadeqgpiR 1QgtouYzLukFC3N/oNmQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvm9H-003fMM-Tg; Fri, 10 Dec 2021 20:05:44 +0000 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvm8h-003fCb-Ox for linux-arm-kernel@lists.infradead.org; Fri, 10 Dec 2021 20:05:10 +0000 Received: by mail-pg1-x534.google.com with SMTP id 200so117915pgg.3 for ; Fri, 10 Dec 2021 12:05:07 -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=kBcr6qVCb565PkdC/VW6sYY7Gh/uTf+sQN0BQOEHsuaFHui5XVnamuL4kYCgcO6DGV 7b7QORhimTSgoOOVbJJvEo2t45rWjSR2EBpb1H5lNrxQCSPCC0/q44nn3vw2Qqxqwl3R 7ZJvMsBjwjTeSSrKOVW0tVXWMJzoNMecbAq3BaE5jGDS7fRUxicW62vmBHmXwGaq5ks8 xiY32v9vRxawA17CpitVHRzOcvYd4H92EFWNKprILpmzQ3+x8y8eNIL9FSziLT6Tbw3T 4SoCkU1RrVKBoPAfs1qbhKUQNR/2ynkpz9TWGMSLftmXJIxNVTW2iYJnwBjlmv30WQFw chrQ== 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=04q49GAHK5eVi1yNdVzn8KuA6YlJGRDLhqUMvvgoWvQ1c0j60TRh8RpqDGWc/QNC9R QQn1m8ek+R5WzPv4ikcSn4NVbrMow6KF3szC24Xq2JoeRrw290justyGaKaLspdeB+cv zfJWdw7NEEJ7Wrsewp6f24UQUueWHq7S/tjf7b5TjgyMjTIMN2fX2MkjT3tqCYmPoHlT vlvQ55NKbXxOZChivPzCfqg+8wSrmi2EV0poCA0bjPI4+htYHLe+/8n4k5d7lvbguMqs lkdVwvS4Nwa8x6Hm8FuMav7l4eOyPzs9x8huklt1/sPLDFumrBCrI9b5sNj5NGCyL/u+ aWaw== X-Gm-Message-State: AOAM532xwqUeCIHeEezZYQ7Q+IVGHZxRguVfOwwSLfzC2+HK9HwiBoma vGZsyVIcSCsKlDKeNUAjsao= X-Google-Smtp-Source: ABdhPJx5mIxkKgqPpXfiuwZ2ttrAUzMLlZOlWL/GE/Er7SMGmVXEbvpMlkXOxDv8MNbDUhP9MO1nzQ== X-Received: by 2002:a65:645a:: with SMTP id s26mr26526339pgv.316.1639166706453; Fri, 10 Dec 2021 12:05:06 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id g13sm3474463pjc.39.2021.12.10.12.05.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Dec 2021 12:05:05 -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 v4 6/6] dt-bindings: pci: Convert iProc PCIe to YAML Date: Fri, 10 Dec 2021 12:04:51 -0800 Message-Id: <20211210200451.3849106-7-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211210200451.3849106-1-f.fainelli@gmail.com> References: <20211210200451.3849106-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-20211210_120507_875631_76448CD0 X-CRM114-Status: GOOD ( 26.48 ) 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"; + }; + };