Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1284631iob; Wed, 4 May 2022 19:53:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsSWFIOWshY1tf5TCF3pJHn3nsU21Z9IEFZGeYeMEtG0WCL9ZPfLyXqDQcBp/z8T2abMG2 X-Received: by 2002:a17:907:9485:b0:6db:331:591e with SMTP id dm5-20020a170907948500b006db0331591emr23227816ejc.478.1651719238113; Wed, 04 May 2022 19:53:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651719238; cv=none; d=google.com; s=arc-20160816; b=lHCVhLvAAMtGNWz33PyQv/03xaPg8o5VF69bbAAjlLLpLMoBdB5Ly1Da4nj2lFU6Em Yt82aQAckX/kZAcS4bLxxBXDVpHaU2U5Rqc63WTCAaVQgSGRAyp7APRpYbzI4J8C8RLE IWwdaB3VcK4XvfoN7WAV4B9p7m8+CNjH8Ulsur90Zbivt2w9rG9gAWfI6eb/QqnwfRWO OsE+v3+baRemQP+JhCP6ciiIKMt6s5k6yP4li78l9kUN3jpqWVi4Phzb/9ckNrfHrNKg tPj9EZ15Rji0+F/6klpfVrhr7npWiaDBwOXLfv6P1ikMRZWYP+jzY870zGZdWdcOiusJ 7Kcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=DBRwEo1pqH2G67/EnQdKarenoqrq6w5AmfQ0P9gJ+DM=; b=np4fAsmWFkerY+o8RhpZBpAmOwv0VM+EsSZKvzXDg0S0BT9lJL0l6vO24Xn4r7c9k4 ytmCdbCJNx6bwF0VvqId7OR5EgvYG4fg7P39kXv9DfZJLD0DN9gX2bosRaWOh0lSP9ZX tPAKYWKxHKhlgnLFPLs3pw4RBwirk7abWObyr/iVmh10zqUndgrLtBQZwHoYTT+u2faA E8R767hrdZWsjCuZalyYT8stPsI7oHNo6yP2aaBwr6s28xyv7jr6nR08D8Th6eWZgp7E ZlKPDlTE10dU/bES8xFyKq8AwzhWzFXTuNbbgLBUQDWK9FmO6CkNk/qbMXoytmyv8oqk pugw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=il4XHKFt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q24-20020a1709066b1800b006f3895ac94asi732437ejr.728.2022.05.04.19.53.35; Wed, 04 May 2022 19:53:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=il4XHKFt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1348883AbiEDSdJ (ORCPT + 99 others); Wed, 4 May 2022 14:33:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355371AbiEDScv (ORCPT ); Wed, 4 May 2022 14:32:51 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C26FA5AED8 for ; Wed, 4 May 2022 11:09:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 8E325B82753 for ; Wed, 4 May 2022 18:09:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2671AC385A4; Wed, 4 May 2022 18:09:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651687767; bh=3kqhCh3SolC+njYvrb7YQlbkMsd43/qschNFbE7v3Ws=; h=From:To:Cc:Subject:Date:From; b=il4XHKFtZrHDm4R3lYlPB+0PXkhshnPKaJhlUEv5+5oFwY8GwlWrgOodHjYI9OSzP uMd5kuvN1bSfQbJM5nzIDpsr2oXt5540xxSoG+3Bym0+CjnPlFZcBhxTcWwokhKJZB SG7uK52bxDbXhk82tr5fbuNS4F6cVWetEWMx+uanTleLnUccgDLYhXf0sLehRvd+mL 2izCqUROVPJMZpGotj5rYScky6sgw+QqMiHS1eGl9iI6tT2dYt0fvJPeliii7CyVEl IsFZQOENiTQ8Hr9dRf+BLmAv9grs6aJOcgGcutV2ynOVCXDGbYa0dIJGEw5iDgNRpN mM7tiaxAAs81w== Received: by pali.im (Postfix) id 7AA0996D; Wed, 4 May 2022 20:09:24 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Rob Herring , Krzysztof Kozlowski Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] powerpc/85xx: P2020: Add law_trgt_if property to PCIe DT nodes Date: Wed, 4 May 2022 20:08:22 +0200 Message-Id: <20220504180822.29782-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DT law_trgt_if property defines Local Access Window Target Interface. Local Access Window Target Interface is used for identifying individual peripheral and mapping its memory to CPU. Interface id is defined by hardware itself. U-Boot uses law_trgt_if DT property in PCIe nodes for configuring memory mapping of individual PCIe controllers. Linux kernel fsl_pci.c driver currently does not touch Local Access Window and expects that U-Boot configures it properly. Add law_trgt_if property to PCIe DT nodes for P2020. This allows usage of kernel P2020 PCIe DT nodes in U-Boot. And therefore allows to share P2020 DTS files between Linux kernel and U-Boot. Signed-off-by: Pali Rohár --- arch/powerpc/boot/dts/fsl/p2020si-post.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/boot/dts/fsl/p2020si-post.dtsi b/arch/powerpc/boot/dts/fsl/p2020si-post.dtsi index 884e01bcb243..6345629524fe 100644 --- a/arch/powerpc/boot/dts/fsl/p2020si-post.dtsi +++ b/arch/powerpc/boot/dts/fsl/p2020si-post.dtsi @@ -48,6 +48,7 @@ bus-range = <0 255>; clock-frequency = <33333333>; interrupts = <26 2 0 0>; + law_trgt_if = <2>; pcie@0 { reg = <0 0 0 0 0>; @@ -76,6 +77,7 @@ bus-range = <0 255>; clock-frequency = <33333333>; interrupts = <25 2 0 0>; + law_trgt_if = <1>; pcie@0 { reg = <0 0 0 0 0>; @@ -105,6 +107,7 @@ bus-range = <0 255>; clock-frequency = <33333333>; interrupts = <24 2 0 0>; + law_trgt_if = <0>; pcie@0 { reg = <0 0 0 0 0>; -- 2.20.1