Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp608950pxb; Mon, 16 Aug 2021 12:57:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJStfarVE9EKtzBpvLC+638ZdOKQTmD6/EtW8THg8Z/aKNvRjKEbQM01JpiUMv3rPeiXHh X-Received: by 2002:a17:906:34c8:: with SMTP id h8mr178121ejb.124.1629143832937; Mon, 16 Aug 2021 12:57:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629143832; cv=none; d=google.com; s=arc-20160816; b=n/rHq79kyCc+uRWdvou1Stmo+8TJdkdTjoNIlheak7Hu7HhrhsBEokzQ6895j2I/uP kTGOyzECebe/R9/TrMTOJtJPgdQ5h0QuT4Yv841H5kawhWUVVb6Bc8PxAdFJEWM61Gl5 KtVzp7Nv9J/6sJNgeIqKi1OyoMSTZw7xJNbYHTB9qWJMivUhRZX/GOWU3R9ulzJSWFtD mzSg8PtP+1Rbgv/EX976gk/kFmoLlLD7PzSdUoymJH9iaC6WIpJuP0Q6fRQ8SelzEWEn TJbB96JK5N44KWwkUZYg7YOca3/sL5H8ZdvsnNNzav2vvshVavQw0vcia6qiS7alEHgH owUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Qn3uJzqqbyfb22sJLxUpCIswaUAX0PVkkqR4R/nu8P0=; b=VVRFNLe8+8OsE7sD3FMtD0C+rcgQlE90yHMH1uBMm0Da6BjxtZ8omZ0UUkJNqWdkdG MKsXmqM0PjIh5Y9W50OE6kHKPifwSQCfeVidow051UFGS1+QhJy06Ql1ROHpKXzsLRKZ eq7PGtqtJD0K2sK1KFoXakQjU2hedcCpwVvbFtiJIQ4Xwn2zhD3okrQ8g6rKv51Zkglc 00XBSAf9VqV/sh/iVW7N29vUA1hW6/nALS9XcKrvmso5PMx6v+6qDGq7ZogogsZFRStD f7INgGRYWyOGiOG8mlEmLkh2DGOGR+08XBPfr/OYJ9kynE1TJuYJGSNjVvR0VFyK2DH3 KnfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q+tPPhty; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e25si52363edv.258.2021.08.16.12.56.48; Mon, 16 Aug 2021 12:57:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q+tPPhty; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231834AbhHPTyG (ORCPT + 99 others); Mon, 16 Aug 2021 15:54:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:45116 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231551AbhHPTyB (ORCPT ); Mon, 16 Aug 2021 15:54:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D844060FDA; Mon, 16 Aug 2021 19:53:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629143609; bh=caLJfVCBrhHltvej9gDHMlPcVZp5tUN5o8tTf2UDPNc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q+tPPhtyI67B8799IQbsPrgjH5wg6OQNU5dFbMxi4ewmqnbvS6PYkkDRdP1ERu2Rk TuBxHDmN7pT/7XP7oi8nzbEVKaSEqIq6xbR3KFnZp8nwS8wnLUp+HzbfFPErM1fYxu Fe1Ml0C69ADkFQPv1QjlKo33hH5tOpPUH7oFs+sf93qNqaAEFpFgZSAYFcQPFXaDLB TH95jMG2La4yLViekw/nlJC/QD14MqotwBukFuX3OE67WJJ5irvqUdNVtVLM9LEL4o 8+74piwgH+EEyPmy8woP4pZDcUHgabNr3ZohvAAgJ32LQUX4MEw0p77u4RSblcuc3M EHhHvfX4peYBQ== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mFifn-003CT1-Oy; Mon, 16 Aug 2021 21:53:27 +0200 From: Mauro Carvalho Chehab To: Rob Herring Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , Binghui Wang , Bjorn Helgaas , Xiaowei Song , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH v2 2/2] dt-bindings: PCI: kirin: fix HiKey970 example Date: Mon, 16 Aug 2021 21:53:26 +0200 Message-Id: <19e33efca23c7cd8644a5fd6ecb62fddc47ff108.1629143524.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The given example doesn't produce all of_nodes at sysfs. Update it to reflect what's actually working. Signed-off-by: Mauro Carvalho Chehab --- .../bindings/pci/hisilicon,kirin-pcie.yaml | 63 ++++++++++--------- 1 file changed, 35 insertions(+), 28 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/hisilicon,kirin-pcie.yaml b/Documentation/devicetree/bindings/pci/hisilicon,kirin-pcie.yaml index d05deebe9dbb..5617a1b46d1e 100644 --- a/Documentation/devicetree/bindings/pci/hisilicon,kirin-pcie.yaml +++ b/Documentation/devicetree/bindings/pci/hisilicon,kirin-pcie.yaml @@ -97,7 +97,6 @@ examples: <0x0 0xfc180000 0x0 0x1000>, <0x0 0xf5000000 0x0 0x2000>; reg-names = "dbi", "apb", "config"; - msi-parent = <&its_pcie>; #address-cells = <3>; #size-cells = <2>; device_type = "pci"; @@ -116,43 +115,51 @@ examples: <0x0 0 0 4 &gic GIC_SPI 285 IRQ_TYPE_LEVEL_HIGH>; reset-gpios = <&gpio7 0 0>; hisilicon,clken-gpios = <&gpio27 3 0>, <&gpio17 0 0>, <&gpio20 6 0>; - - pcie@0 { // Lane 0: PCIe switch: Bus 1, Device 0 - reg = <0 0 0 0 0>; + pcie@0,0 { // Lane 0: PCIe switch: Bus 1, Device 0 + reg = <0x80 0 0 0 0>; compatible = "pciclass,0604"; device_type = "pci"; #address-cells = <3>; #size-cells = <2>; ranges; - pcie@1,0 { // Lane 4: M.2 - reg = <0x800 0 0 0 0>; + + pcie@0,0 { // Lane 0: upstream + reg = <0 0 0 0 0>; compatible = "pciclass,0604"; device_type = "pci"; - reset-gpios = <&gpio3 1 0>; - clkreq-gpios = <&gpio27 3 0 >; - #address-cells = <3>; - #size-cells = <2>; - ranges; - }; - pcie@5,0 { // Lane 5: Mini PCIe - reg = <0x2800 0 0 0 0>; - compatible = "pciclass,0604"; - device_type = "pci"; - reset-gpios = <&gpio27 4 0 >; - clkreq-gpios = <&gpio17 0 0 >; - #address-cells = <3>; - #size-cells = <2>; - ranges; - }; - pcie@7,0 { // Lane 6: Ethernet - reg = <0x3800 0 0 0 0>; - compatible = "pciclass,0604"; - device_type = "pci"; - reset-gpios = <&gpio25 2 0 >; - clkreq-gpios = <&gpio20 6 0 >; #address-cells = <3>; #size-cells = <2>; ranges; + + pcie@1,0 { // Lane 4: M.2 + reg = <0x0800 0 0 0 0>; + compatible = "pciclass,0604"; + device_type = "pci"; + reset-gpios = <&gpio3 1 0>; + #address-cells = <3>; + #size-cells = <2>; + ranges; + }; + + pcie@5,0 { // Lane 5: Mini PCIe + reg = <0x2800 0 0 0 0>; + compatible = "pciclass,0604"; + device_type = "pci"; + reset-gpios = <&gpio27 4 0 >; + #address-cells = <3>; + #size-cells = <2>; + ranges; + }; + + pcie@7,0 { // Lane 6: Ethernet + reg = <0x03800 0 0 0 0>; + compatible = "pciclass,0604"; + device_type = "pci"; + reset-gpios = <&gpio25 2 0 >; + #address-cells = <3>; + #size-cells = <2>; + ranges; + }; }; }; }; -- 2.31.1