From: <Conor.Dooley@microchip.com>
To: <robh@kernel.org>, <mail@conchuod.ie>
Cc: <Daire.McNamara@microchip.com>, <bhelgaas@google.com>,
<krzysztof.kozlowski+dt@linaro.org>, <paul.walmsley@sifive.com>,
<greentime.hu@sifive.com>, <palmer@dabbelt.com>,
<aou@eecs.berkeley.edu>, <lpieralisi@kernel.org>,
<linux-pci@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <linux-riscv@lists.infradead.org>
Subject: Re: [PATCH v2 2/6] dt-bindings: PCI: microchip,pcie-host: fix missing clocks properties
Date: Thu, 18 Aug 2022 15:34:08 +0000 [thread overview]
Message-ID: <006e078b-0e40-7e43-331c-97571fcc36f6@microchip.com> (raw)
In-Reply-To: <20220818150644.GJ1829017-robh@kernel.org>
On 18/08/2022 16:06, Rob Herring wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> On Tue, Aug 16, 2022 at 07:25:44PM +0100, Conor Dooley wrote:
>> From: Conor Dooley <conor.dooley@microchip.com>
>>
>> Recent versions of dt-schema warn about unevaluatedProperties:
>> arch/riscv/boot/dts/microchip/mpfs-icicle-kit.dtb: pcie@2000000000: Unevaluated properties are not allowed ('clock-names', 'clocks', 'legacy-interrupt-controller', 'microchip,axi-m-atr0' were unexpected)
>> From schema: Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml
>>
>> The clocks are required to enable interfaces between the FPGA fabric
>> and the core complex, so add them to the binding.
>>
>> Fixes: 6ee6c89aac35 ("dt-bindings: PCI: microchip: Add Microchip PolarFire host binding")
>> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
>> ---
>> dt-schema v2022.08 is required to replicate
>> ---
>> .../bindings/pci/microchip,pcie-host.yaml | 25 +++++++++++++++++++
>> 1 file changed, 25 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml b/Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml
>> index edb4f81253c8..6bbde8693ef8 100644
>> --- a/Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml
>> +++ b/Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml
>> @@ -25,6 +25,31 @@ properties:
>> - const: cfg
>> - const: apb
>>
>> + clocks:
>> + description:
>> + Fabric Interface Controllers, FICs, are the interface between the FPGA
>> + fabric and the core complex on PolarFire SoC. The FICs require two clocks,
>> + one from each side of the interface. The "FIC clocks" described by this
>> + property are on the core complex side & communication through a FIC is not
>> + possible unless it's corresponding clock is enabled. A clock must be
>> + enabled for each of the interfaces the root port is connected through.
>> + This could in theory be all 4 interfaces, one interface or any combination
>> + in between.
>> + minItems: 1
>> + items:
>> + - description: FIC0's clock
>> + - description: FIC1's clock
>> + - description: FIC2's clock
>> + - description: FIC3's clock
>> +
>> + clock-names:
>> + description:
>> + As any FIC connection combination is possible, the names should match the
>> + order in the clocks property and take the form "ficN" where N is a number
>> + 0-3
>> + minItems: 1
>> + maxItems: 4
>
> items:
> pattern: '^fic[0-3]$'
I'm glad you wrote this one for me Rob!
I'll send another version next week.
Thanks,
Conor.
>
>> +
>> interrupts:
>> minItems: 1
>> items:
>> --
>> 2.37.1
>>
>>
>> _______________________________________________
>> linux-riscv mailing list
>> linux-riscv@lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2022-08-18 15:34 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-16 18:25 [PATCH v2 0/6] Fix RISC-V/PCI dt-schema issues with dt-schema v2022.08 Conor Dooley
2022-08-16 18:25 ` [PATCH v2 1/6] dt-bindings: PCI: fu740-pci: fix missing clock-names Conor Dooley
2022-08-16 21:05 ` Jessica Clarke
2022-08-16 21:32 ` Conor.Dooley
2022-08-16 18:25 ` [PATCH v2 2/6] dt-bindings: PCI: microchip,pcie-host: fix missing clocks properties Conor Dooley
2022-08-18 15:06 ` Rob Herring
2022-08-18 15:34 ` Conor.Dooley [this message]
2022-08-16 18:25 ` [PATCH v2 3/6] riscv: dts: microchip: mpfs: fix incorrect pcie child node name Conor Dooley
2022-08-16 18:25 ` [PATCH v2 4/6] riscv: dts: microchip: mpfs: remove ti,fifo-depth property Conor Dooley
2022-08-16 18:25 ` [PATCH v2 5/6] riscv: dts: microchip: mpfs: remove bogus card-detect-delay Conor Dooley
2022-08-16 18:25 ` [PATCH v2 6/6] riscv: dts: microchip: mpfs: remove pci axi address translation property Conor Dooley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=006e078b-0e40-7e43-331c-97571fcc36f6@microchip.com \
--to=conor.dooley@microchip.com \
--cc=Daire.McNamara@microchip.com \
--cc=aou@eecs.berkeley.edu \
--cc=bhelgaas@google.com \
--cc=devicetree@vger.kernel.org \
--cc=greentime.hu@sifive.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=lpieralisi@kernel.org \
--cc=mail@conchuod.ie \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).