Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp602370pxk; Fri, 11 Sep 2020 15:47:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMgqlfe7HVRBhdASNDxtaY2LEIc52ptWlOoRUTWdEULM6ETvfT8GU6yph4NecCrHB/4xNc X-Received: by 2002:a50:d9c1:: with SMTP id x1mr5014220edj.283.1599864479013; Fri, 11 Sep 2020 15:47:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599864479; cv=none; d=google.com; s=arc-20160816; b=CMWBE+f31CsOeFv+mynqNJB23w+t4WtoeLHKsmeJ31RGfLSPCvB9RbMjDAHcmWPEiM 5uy6cxAxiN7joMEOpqDr+eifQRg1NnU6oukWF2lEtU4p06vd97SQcQ5raI1pc/ck1FAA 8kl7Phv8sr/+OZIR6VR19o4E+rr1/26m6PlSve8PgaEyUYqxbn/dvj66Xp3s/oxKBQ8u Bl8HIknQg7UtIRUUWe5u2D3pdOHqkyaDb7iLNMdfefP4wgsHkpJAENKpUggnRXRDi7Pa NsyIwc1wzYUpM2JjgSTsLRRI5fJ7OnR9unPmHHveuRNdw39pKKo4ACYHv1S74pmIStik rMRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=fs8hJLKKuPyihlvosCyrS95zzNN/iMkcZrv6osKY3zA=; b=TbMGWyyb9l31f0kkM+xMmFD7U0PxJ5m568G7cA14udFuxvnWvVMuPhb5l4CWRaMB42 JEFgPkkTbjMY2K69oJ3Gtxczf+slnmjcErKeS6hiLOZfDeohCvc10KcomV5A1Z5vUa7G 9UfymNK5FwtddBqUKVZh+vuDFkjkY4rqtsFK7JlKxlkbIHWfRjpGwL0Ev9Zd1XJTeXS4 GoaunJhcZIzTAAq+NkqTmb/Fekim7iQm/UtHMjpOgKx8bIJ0auzu278mGrKiJ8/ZK06k UihVs7el6QtvynlFMJBOvJfby7xEj7AnFs+sRMldBOE7csghP1zKT0oamDO9KtXD1ewJ AHAQ== ARC-Authentication-Results: i=1; mx.google.com; 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 m16si2209416edr.280.2020.09.11.15.47.36; Fri, 11 Sep 2020 15:47:59 -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; 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 S1725935AbgIKWqC (ORCPT + 99 others); Fri, 11 Sep 2020 18:46:02 -0400 Received: from mail-il1-f194.google.com ([209.85.166.194]:36234 "EHLO mail-il1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725835AbgIKWp5 (ORCPT ); Fri, 11 Sep 2020 18:45:57 -0400 Received: by mail-il1-f194.google.com with SMTP id p13so10443328ils.3; Fri, 11 Sep 2020 15:45:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=fs8hJLKKuPyihlvosCyrS95zzNN/iMkcZrv6osKY3zA=; b=Pwtlu4HvJVHgI1wuOEzCTOu66ZCETiDrb/miksjCS6ZMpTG+Ey4SPN5WQRVTKuerSl 5HznVMTLeJwjXZ6QFF6bB1exq/8SNiYvI0ClN/9ipfJeVKv8uWAiUfksUaSHqZAqWyjz OBhiqzQWsGMfEVCbDs0Rd6hLwqRNdrCMzGfr2DV2V8pxekxTGQ812S7sKOIqk7pkdJUZ vswtDFq6WiuXy+SXOPKlzKf/r+rpi0tF+S4LSwiS3PeFky7VygFFM6/sjEn3qObsj/jl jsmMthrNuwuWx5zDtwNSMHflXiZdQKOQe5VyAlxQrwojrGD3hNvE5J1XR5ZDyw2tN6F2 hiQA== X-Gm-Message-State: AOAM530JWULlOr6Mfv8JdoP98th82usF9Z99O3Vb4tpbQrfaUzlrlwbQ yDF/ZFNuN3yxbFflnaoZIA== X-Received: by 2002:a92:8548:: with SMTP id f69mr3610656ilh.46.1599864356073; Fri, 11 Sep 2020 15:45:56 -0700 (PDT) Received: from xps15 ([64.188.179.251]) by smtp.gmail.com with ESMTPSA id q191sm1796222iod.30.2020.09.11.15.45.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2020 15:45:55 -0700 (PDT) Received: (nullmailer pid 2959952 invoked by uid 1000); Fri, 11 Sep 2020 22:45:54 -0000 Date: Fri, 11 Sep 2020 16:45:54 -0600 From: Rob Herring To: Jianjun Wang Cc: Bjorn Helgaas , Lorenzo Pieralisi , Ryder Lee , Philipp Zabel , Matthias Brugger , Mauro Carvalho Chehab , davem@davemloft.net, linux-pci@vger.kernel.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sj Huang Subject: Re: [v2,1/3] dt-bindings: PCI: mediatek: Add YAML schema Message-ID: <20200911224554.GB2905744@bogus> References: <20200910034536.30860-1-jianjun.wang@mediatek.com> <20200910034536.30860-2-jianjun.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200910034536.30860-2-jianjun.wang@mediatek.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 10, 2020 at 11:45:34AM +0800, Jianjun Wang wrote: > Add YAML schemas documentation for Gen3 PCIe controller on > MediaTek SoCs. > > Signed-off-by: Jianjun Wang > Acked-by: Ryder Lee > --- > .../bindings/pci/mediatek-pcie-gen3.yaml | 130 ++++++++++++++++++ > 1 file changed, 130 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml > > diff --git a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml > new file mode 100644 > index 000000000000..a2dfc0d15d2e > --- /dev/null > +++ b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml > @@ -0,0 +1,130 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/pci/mediatek-pcie-gen3.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Gen3 PCIe controller on MediaTek SoCs > + > +maintainers: > + - Jianjun Wang > + > +allOf: > + - $ref: /schemas/pci/pci-bus.yaml# > + > +properties: > + compatible: > + oneOf: > + - const: mediatek,gen3-pcie Generic compatibles like this should only be a fallback string, not on its own. > + - const: mediatek,mt8192-pcie > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + bus-range: > + description: Range of bus numbers associated with this controller. Drop this. Standard property. > + > + ranges: > + minItems: 1 > + maxItems: 8 > + > + resets: > + minItems: 1 > + maxItems: 2 > + > + reset-names: > + anyOf: > + - const: mac-rst > + - const: phy-rst > + > + clocks: > + maxItems: 5 > + > + assigned-clocks: > + maxItems: 1 > + > + assigned-clock-parents: > + maxItems: 1 > + > + phys: > + maxItems: 1 > + > + '#interrupt-cells': > + const: 1 > + > + interrupt-controller: > + description: Interrupt controller node for handling legacy PCI interrupts. > + type: object > + properties: > + '#address-cells': > + const: 0 > + '#interrupt-cells': > + const: 1 > + interrupt-controller: true > + > + required: > + - '#address-cells' > + - '#interrupt-cells' > + - interrupt-controller > + > + additionalProperties: false > + > +required: > + - compatible > + - reg > + - interrupts > + - ranges > + - clocks > + - '#interrupt-cells' > + - interrupt-controller > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + #include > + > + bus { > + #address-cells = <2>; > + #size-cells = <2>; > + > + pcie: pcie@11230000 { > + compatible = "mediatek,mt8192-pcie"; > + device_type = "pci"; > + #address-cells = <3>; > + #size-cells = <2>; > + reg = <0x00 0x11230000 0x00 0x4000>; > + reg-names = "pcie-mac"; > + interrupts = ; > + bus-range = <0x00 0xff>; > + ranges = <0x82000000 0x00 0x12000000 0x00 0x12000000 0x00 0x1000000>; > + clocks = <&infracfg 40>, > + <&infracfg 43>, > + <&infracfg 97>, > + <&infracfg 99>, > + <&infracfg 111>; > + assigned-clocks = <&topckgen 50>; > + assigned-clock-parents = <&topckgen 91>; > + > + phys = <&pciephy>; > + phy-names = "pcie-phy"; > + resets = <&infracfg_rst 0>; > + reset-names = "phy-rst"; > + > + #interrupt-cells = <1>; > + interrupt-map-mask = <0 0 0 0x7>; > + interrupt-map = <0 0 0 1 &pcie_intc 0>, > + <0 0 0 2 &pcie_intc 1>, > + <0 0 0 3 &pcie_intc 2>, > + <0 0 0 4 &pcie_intc 3>; > + pcie_intc: interrupt-controller { > + #address-cells = <0>; > + #interrupt-cells = <1>; > + interrupt-controller; > + }; > + }; > + }; > -- > 2.25.1