Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1262719imu; Thu, 20 Dec 2018 13:05:29 -0800 (PST) X-Google-Smtp-Source: AFSGD/UDVJbCNZw2XWryn8IO9YnVMe1ffLPp5rX+y3Wq6SGCKUoeOKwMxu4y4x8JoWwYb+rDT3XI X-Received: by 2002:aa7:85d7:: with SMTP id z23mr26787282pfn.205.1545339929838; Thu, 20 Dec 2018 13:05:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545339929; cv=none; d=google.com; s=arc-20160816; b=LiyVYb5lLLgUX36gBMniyqQECyuVQK2ewNQaTlgXxg+GAF7NBnGEThz8hYnmBMpBqE c2xXXsbHvX8k1Ff/u7bo8y82ox3K58g+AswDgkrFdc3VE1DBm/9rU2s6N2rdmg8SWQV2 HKAmjjuemBMvO07prg4mXYRO+M0e9ONU/X8qrdLwzItFl+5cqtcfNIxBNO+SGwx4YWSP SrUHlVzQpwPd9OVcJO9rYoPOCF4BlsUhSKf3xCIvBeaddIVZBFw3vtoCqgLBARiaVfF4 ATyo0a3s8uQ9tdDpLqa1VhAtRcvaQGsA8iw0ezEIJlI32G8xcureFf3usCXjmfbcFcaV dA1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=N9ygi/+stnm6yw1enuIG3AHRMXoApdi2TpVVF3qi7/I=; b=q1JWUKBr450wMDwZDnhr4pvMJay08Su9Y1zDDzo2meDSss0J7A/fQtBlk7Pzkv7Rof dByntD28YIl5NWrqtxm8bjJgcKq5SuMJIFcYFNZBRsMMQVPwRH1ic8+JXL2D3CgiMw7v C6D6vH3KUAfcEZZlHpby2qeZwxGKpLuWaN3YQxsGt7mqHmY5DmH9WK96oV+AmnrtrQWJ oKUx/Pr8AVWoe/NKxHyIgP0Y+M7rpu5ZI+ekwrk9ka9qbmqaFoE2bN+u1KovaPi7w4Vt 0/KxZthwgAlI/tDVmlHiz29U/kmYDUFp9V2D+iNL0YZ6jtw79TDpshoDNJcnUgXNZi1u y48A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BKoi93q0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id l94si19173723plb.416.2018.12.20.13.05.11; Thu, 20 Dec 2018 13:05:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BKoi93q0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1730802AbeLTPFM (ORCPT + 99 others); Thu, 20 Dec 2018 10:05:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:43318 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725681AbeLTPFM (ORCPT ); Thu, 20 Dec 2018 10:05:12 -0500 Received: from mail-qt1-f180.google.com (mail-qt1-f180.google.com [209.85.160.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D7E03218D3; Thu, 20 Dec 2018 15:05:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545318311; bh=pU1qiUpdARY0RhrguUJV+QXDWs9jVr6LBPKymW/y3LY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=BKoi93q0Ey+xkCzuqqOQTHp+4u/DfalRPbHW2Qz9e849jTnhxKau5RC161IZ+DP88 OwmgI5xxXVKG+JHalCnryZ+OBJKvudzsAjz4bBe5Hu9Bqx2lSnGAKCudk22sZyld0z fTfLjh+MAWHqFUgAbjZ48wyxMbcb0EnLSg46B9Iw= Received: by mail-qt1-f180.google.com with SMTP id i7so2097139qtj.10; Thu, 20 Dec 2018 07:05:10 -0800 (PST) X-Gm-Message-State: AA+aEWZXjzxAxDWPH9wmutuzZ1YY7q6KyUwnOJQn8YI8bajKvvIiyARH KT8N6OrNpkBOq1L8D13Tbuo2+4Hr+IYKE0wxeA== X-Received: by 2002:a0c:c389:: with SMTP id o9mr26473216qvi.90.1545318310028; Thu, 20 Dec 2018 07:05:10 -0800 (PST) MIME-Version: 1.0 References: <20181218040702.29231-1-andrew.smirnov@gmail.com> <20181218040702.29231-4-andrew.smirnov@gmail.com> <20181218151533.GA2922@bogus> In-Reply-To: From: Rob Herring Date: Thu, 20 Dec 2018 09:04:58 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 3/3] PCI: imx6: Add support for i.MX8MQ To: Leonard Crestez Cc: Andrey Smirnov , Lucas Stach , Lorenzo Pieralisi , Bjorn Helgaas , Fabio Estevam , Chris Healy , Dong Aisheng , Richard Zhu , devicetree@vger.kernel.org, NXP Linux Team , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "linux-kernel@vger.kernel.org" , linux-pci@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 18, 2018 at 12:09 PM Leonard Crestez wrote: > > On 12/18/2018 5:15 PM, Rob Herring wrote: > > On Mon, Dec 17, 2018 at 08:07:02PM -0800, Andrey Smirnov wrote: > >> Add code needed to support i.MX8MQ variant. > >> > >> Signed-off-by: Andrey Smirnov > >> Reviewed-by: Lucas Stach > > >> --- a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt > >> +++ b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt > >> > >> +Additional required properties for imx8mq-pcie: > >> +- fsl,controller-id: Logical ID of a given PCIE controller. PCIE1 is 0, PCIE2 is 1; > >> + > > > > Remove this. > > > > If GPR register offset is what you need, then put that into DT. > > Typically, we'd have a property with iomuxc phandle and offset. > > This series initially added explicit offsets but I suggested a single > "controller-id" because: > * There are multiple bit and byte offsets > * Other imx8 SOCs also have 2x pcie with other bit/byte offsets > > Hiding this behind a compatible string and single "controller-id" seem > preferable to elaborating register maps in dt bindings. It also makes > upgrades simpler: if features are added which use other bits there is no > need to describe them in DT and deal with compatibility headaches. You don't have to describe all bit and byte offsets. Once you know 1, you can derive all the others. In fact, it doesn't have to be a register field at all, just provide whatever identifier you need: <$syscon 0> and <&syscon 1> Rob