Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1872528iob; Thu, 5 May 2022 09:49:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXi9OEGP/pl/i5XkXFAUB/MfRgHqrIMv1RQZvjgD4buLbajdslGPMmxZhZYhLnk0pZ8HI0 X-Received: by 2002:a17:907:1b1b:b0:6e4:7fac:6ce0 with SMTP id mp27-20020a1709071b1b00b006e47fac6ce0mr27219847ejc.617.1651769361253; Thu, 05 May 2022 09:49:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651769361; cv=none; d=google.com; s=arc-20160816; b=KWwe5GTRK9fFaweKMwPAc45AZwM1aC/AacDSqcjCSv1wnFjlRfivGm1CV1D7S1g3Vn 83IZQV4xeB2olD1TBH05BfMV+nt8fEaiRxx3EPQtK9atKjIUHjese4wCpJnUpRMwH+jW wvzIMwzcMEKJHiHBLtTNqivA6shxie275BiWUfdK01I8wXJBMPDcXLtXR6OkrP6RUoXs T1keRtrvdZzcLvyab8jxdImXuILqjs0+XiyVukwr/v8/NealFaj8FkYdW8xmhsFf/fP4 hmVruNww+UfbbtgN+M2pLRAvVjfB/apq+STdpKjcLEcw9EpORwLEvV5nwhklIYcfJviP upnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=nBVv6j2kzVjOpNey7bVmQ8KzHB2RVaCX40q6eb0Efq0=; b=GvVvFD1MIb8CV3NbX5jXC65+RPAv7rCXgPpsx6I96C3LfJolP4B3Bj8oquWtkiQCbv CogecFgYWoXvYP4TofIcIuq27NfavMGqNi18t7Tnsi4ywQkdC8Oi5zJt4c6ms6VnNapt yr+l4ZI4r/LwReKVRvxJf/k8C5ma3Hngb8vBQflYn7IATeERYJPX+nMyNPYJO1aRGwfT Z6MgNLsbXv3c1cR1g44oxh82qf+UCvBQg+Ho8wAOyRFLEW1kKvWcTbpCdrHTzWH8zSGh CKpdPaMlKSujc0ANbwut7caby+rtic/bh3KGxi3hDYbYVsRmynmb7fc700FeE3LVOI4I ymXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="D/w2DFtL"; 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 y4-20020a1709060a8400b006e0f9bb12a5si2604321ejf.253.2022.05.05.09.48.56; Thu, 05 May 2022 09:49:21 -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="D/w2DFtL"; 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 S1381428AbiEEPvF (ORCPT + 99 others); Thu, 5 May 2022 11:51:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381423AbiEEPvB (ORCPT ); Thu, 5 May 2022 11:51:01 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2294C5997B for ; Thu, 5 May 2022 08:47:21 -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 B6C39B82C69 for ; Thu, 5 May 2022 15:47:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11773C385A4; Thu, 5 May 2022 15:47:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651765638; bh=OsCCpbFBNuB9FABr2gqpVPt+rLWcODshGiCu1ChNxg4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=D/w2DFtLFXAKZgxP1PiEIDVsuEz4JGHf8vP4UCdjgweCRDmDWppcLf6FQETo3/Eb0 kK9ggMq+YM0P/Hlax2FcWBrN/Gc/gPnZcg4Nrbl7hc7fa+2HqhTlrSl0U1JxFswmpz zX+Gd5/Pdo8TCrQ4sU432WKS5mlLS6QAYyUf+KoTZdzIUfLRYFBBia9JaQh02/LyaC BRiIby0mrI3461nxnYgbA2ejzHKReMLgoF9oL0aym5E7wCcaIFzz/LX9F+6R0PYIc9 Eg8OVK9y8kGuOmS5CpfzT8VqQHTyT+sAgRqjzog6/FJAb2y+EY49PqNJt2AKt4o5YG wAEc8NyaXCeqA== Received: by pali.im (Postfix) id 25E9F945; Thu, 5 May 2022 17:47:15 +0200 (CEST) Date: Thu, 5 May 2022 17:47:15 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Rob Herring Cc: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Krzysztof Kozlowski , linuxppc-dev , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] powerpc/85xx: P2020: Add law_trgt_if property to PCIe DT nodes Message-ID: <20220505154715.xujvyjvewsj6jcw7@pali> References: <20220504180822.29782-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 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 On Thursday 05 May 2022 10:40:09 Rob Herring wrote: > On Wed, May 4, 2022 at 1:09 PM Pali Rohár wrote: > > > > DT law_trgt_if property defines Local Access Window Target Interface. > > Documentation? I was not able to find it :-( So the only documentation for me was the source code and decoding how it works and how it is used. > fsl,law-trgt-if would be the preferred form. > > > Local Access Window Target Interface is used for identifying individual > > peripheral and mapping its memory to CPU. Interface id is defined by > > hardware itself. > > Normally, we avoid instance indices like this, but if it is more than > just documentation convention maybe that's fine. > > Rob It is id defined by HW. Software needs to know how to pair DT node with address range defined in "ranges" to the correct HW PCIe controller.