Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4851ybe; Thu, 5 Sep 2019 16:26:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqy1mS6MvJp0shXovK9NlYRStTOR1MfvUzX4qwzuNoxqFBRmXpgIIfzvNxmu3UIinjXqAHzy X-Received: by 2002:a62:3585:: with SMTP id c127mr5354079pfa.18.1567725966200; Thu, 05 Sep 2019 16:26:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567725966; cv=none; d=google.com; s=arc-20160816; b=ENQoaTpBnYm5l52LDwcM+6NzJRPcv3R3WWzzPlGabKs7XeScgO+Pr6fLXQPXvmNCUa zKsDZEjG1HNxVNBj+TZZYh/mfOpfR0gXGhb0YAFXUJdQuubKECYcj9037V9g+JqTTegq aXs6H90wB4Ee5tIl4sn6rtfe9HigwVW+ovHukZwiwFgIVJW9tM4oaWpBTnXvnT03RgXV MxPxo7ylmUweAgBUu0yWmVBn7mGjYf4K+TEHLxh5vcCJ2UXDlLKYcFbfZBfStmhZNMIf JRj35pKNdu9fj8qYGaSPhI3GtfC4gSPDu8h2ukEPG8+9awWGQrYgrHwxXAyWGk10bN+C SmmA== 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=cs7pSggiA638/NENn3nXpVetu5HgwNJEQ1fDCNSetg4=; b=b4xk/R7CzkW4tuDVX1e/BLDyT4iy0Kpwk9xx60DYfI4RpgbddqzEwzLjUsMzkeiXvy qt/1FCx7LML8BN3F/eokGsUmkCYi8WSyu53SuRhCW6UvLRJQKK83h2+koQA84J93vmAh I7iGBnyz94mMGqV80UqeaDrcwyET4yRCiBx1+qS+MxSRLenLry/9d7rr9KYx+cJAaeSV fk7h9w6aWSrbyjs3OQ4ClNa8FnCB/1EyQwF+7See8OWicEwvAqALEBSzKPPQOMfhKyvo fe281yttcST1D/ExhyDSLdWRJbnsy8lHlWCp+PzENB0tQPqw3cajECcaD8zMOdW6syhz k3cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=eMG14L3n; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 16si3645967pfo.234.2019.09.05.16.25.50; Thu, 05 Sep 2019 16:26:06 -0700 (PDT) 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=@googlemail.com header.s=20161025 header.b=eMG14L3n; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391407AbfIEUbm (ORCPT + 99 others); Thu, 5 Sep 2019 16:31:42 -0400 Received: from mail-oi1-f193.google.com ([209.85.167.193]:35347 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387491AbfIEUbm (ORCPT ); Thu, 5 Sep 2019 16:31:42 -0400 Received: by mail-oi1-f193.google.com with SMTP id a127so3089316oii.2; Thu, 05 Sep 2019 13:31:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cs7pSggiA638/NENn3nXpVetu5HgwNJEQ1fDCNSetg4=; b=eMG14L3nTkKPDjnQt3Il0NaBunF7hnbOLozDIvNta4SyW4fjwipSZFTlImrxg1zHY0 0Onwwwa0G8XUEDs44pARBjafSWrKm+EBrySFUIllP7h1P9ahZ6Kl1bfJja1YVVYhNT1b VmddePJa8cOpZje6DdalRuzzGqbXEu3jhgpWHdlZm6g1oXAByda9nbNxEIvgeO5vbjT7 fi/9y6+Z1zxnqvu+y9wz6tzOd9CJVLCjRSYq5O8t2+1cthvMYhwbkjGQHvRbR9xYwlba nz3EOHFca39PoZAfRb9Whqb2DXC85+smqWFnUtn5VCoXnqhp6BA6ze4ytwKNJ7DfII/l ilsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cs7pSggiA638/NENn3nXpVetu5HgwNJEQ1fDCNSetg4=; b=YBHWhl3EwmhPfE/YX08LTSiacKiiaxb7Z286AIZGF3+FsbUEKuTsoe9tCdkx2DiOfw wwtjBzxgwSSX71zDE9vOrlZE7rNs29cz6RdeEVvCaQ4WvsdDQMNWpLMH5hEn1LIMDPJ3 rj8fvSrnmA5xm84RIrvaBlxU3zHyVoPM/GYyHPnV+8uk3WKzUwVgrnnBjwsTykQG7EGI SJxIO7AC0Jbuk9/zPZj3MV2x/HxIS7zWIWJOgq9xQM51Fw83vz0pDvqTLyxJSIhB+QQ6 PdDjpUJV2l+VWV3LGJ2SEed69X/hkIhzUrdyF0vOFGx2OayU3FmTPfubkOeCrVs+cu4+ muCQ== X-Gm-Message-State: APjAAAXV/1R/TdLEMVSo9x8gn8L2NMAAWODI2fe6fAGt/4TLSWEI+Ale 828ZHpRA80kIjuPbjsspkRB7WBqBryyxYfQottM= X-Received: by 2002:a05:6808:b14:: with SMTP id s20mr4258444oij.15.1567715500998; Thu, 05 Sep 2019 13:31:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Martin Blumenstingl Date: Thu, 5 Sep 2019 22:31:29 +0200 Message-ID: Subject: Re: [PATCH v3 1/2] dt-bindings: PCI: intel: Add YAML schemas for the PCIe RC controller To: Dilip Kota Cc: jingoohan1@gmail.com, gustavo.pimentel@synopsys.com, lorenzo.pieralisi@arm.com, robh@kernel.org, linux-pci@vger.kernel.org, hch@infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, andriy.shevchenko@intel.com, cheol.yong.kim@intel.com, chuanhua.lei@linux.intel.com, qi-ming.wu@intel.com 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 Hi Dilip, On Wed, Sep 4, 2019 at 12:11 PM Dilip Kota wrote: [...] > +properties: > + compatible: > + const: intel,lgm-pcie should we add the "snps,dw-pcie" here (and in the example below) as well? (this is what for example Documentation/devicetree/bindings/pci/amlogic,meson-pcie.txt does) [...] > + phy-names: > + const: pciephy the most popular choice in Documentation/devicetree/bindings/pci/ is "pcie-phy" if Rob is happy with "pciephy" (which is already part of two other bindings) then I'm happy with "pciephy" as well > + num-lanes: > + description: Number of lanes to use for this port. are there SoCs with more than 2 lanes? you can list the allowed values in an enum so "num-lanes = <16>" causes an error when someone accidentally has this in their .dts (and runs the dt-bindings validation) [...] > + reset-assert-ms: maybe add: $ref: /schemas/types.yaml#/definitions/uint32 > + description: | > + Device reset interval in ms. > + Some devices need an interval upto 500ms. By default it is 100ms. > + > +required: > + - compatible > + - device_type > + - reg > + - reg-names > + - ranges > + - resets > + - clocks > + - phys > + - phy-names > + - reset-gpios > + - num-lanes > + - linux,pci-domain > + - interrupts > + - interrupt-map > + - interrupt-map-mask > + > +additionalProperties: false > + > +examples: > + - | > + pcie10:pcie@d0e00000 { > + compatible = "intel,lgm-pcie"; > + device_type = "pci"; > + #address-cells = <3>; > + #size-cells = <2>; > + reg = < > + 0xd0e00000 0x1000 > + 0xd2000000 0x800000 > + 0xd0a41000 0x1000 > + >; > + reg-names = "dbi", "config", "app"; > + linux,pci-domain = <0>; > + max-link-speed = <4>; > + bus-range = <0x00 0x08>; > + interrupt-parent = <&ioapic1>; > + interrupts = <67 1>; > + #interrupt-cells = <1>; > + interrupt-map-mask = <0 0 0 0x7>; > + interrupt-map = <0 0 0 1 &ioapic1 27 1>, > + <0 0 0 2 &ioapic1 28 1>, > + <0 0 0 3 &ioapic1 29 1>, > + <0 0 0 4 &ioapic1 30 1>; is the "1" in the interrupts and interrupt-map properties IRQ_TYPE_EDGE_RISING? you can use these macros in this example as well, see Documentation/devicetree/bindings/iio/accel/adi,adxl372.yaml for example Martin