[PATCH 5/9] arm64: dts: renesas: r8a77961: Add VSP device nodes
Kieran Bingham
kieran.bingham+renesas at ideasonboard.com
Thu Sep 10 10:34:23 UTC 2020
Hi Geert,
On 10/09/2020 10:44, Geert Uytterhoeven wrote:
> Hi Kieran,
>
> On Mon, Sep 7, 2020 at 5:55 PM Kieran Bingham
> <kieran.bingham+renesas at ideasonboard.com> wrote:
>> On 07/09/2020 03:59, Kuninori Morimoto wrote:
>>> From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
>>>
>>> This patch adds VSP device nodes for R-Car M3-W+ (r8a77961) SoC.
>>> This patch is test on R-Car M3-W+ Salvator-XS board.
>>>
>>> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
>>> ---
>>> arch/arm64/boot/dts/renesas/r8a77961.dtsi | 55 +++++++++++++++++++++++
>>> 1 file changed, 55 insertions(+)
>>>
>>> diff --git a/arch/arm64/boot/dts/renesas/r8a77961.dtsi b/arch/arm64/boot/dts/renesas/r8a77961.dtsi
>>> index fe0db11b9cb9..c2a6918ed5e6 100644
>>> --- a/arch/arm64/boot/dts/renesas/r8a77961.dtsi
>>> +++ b/arch/arm64/boot/dts/renesas/r8a77961.dtsi
>>> @@ -2056,6 +2056,61 @@ fcpvd2: fcp at fea37000 {
>>> iommus = <&ipmmu_vi0 10>;
>>> };
>>
>> The FCP's added are:
>>
>> fcpf0: fcp at fe950000 {
>> fcpf1: fcp at fe951000 {
>> fcpvb0: fcp at fe96f000 {
>> fcpvb1: fcp at fe92f000 {
>> fcpvi0: fcp at fe9af000 {
>> fcpvi1: fcp at fe9bf000 {
>> fcpvd0: fcp at fea27000 {
>> fcpvd1: fcp at fea2f000 {
>> fcpvd2: fcp at fea37000 {
>>
>> So indeed, the first fcpf0 comes before fe960000.
>>
>> Do we keep the items grouped by the first occurrence? or sort the nodes
>> based on address?
>>
>> for some reason I thought we were ordering based on address, but I see
>> other situations where we group too - so I'm confused (and wishing there
>> was an automatic tool to get the sorting correct without fuss).
>>
>> Is there a set policy?
>
> For nodes with a unit-address, we usually[*] sort by unit-address, but we keep
> similar nodes grouped. Hence I prefer this v1 over v2.
I assume then the groups are sorted by the first entry,
I.e. hypothetically:
fdp at 0
fcp at 1
vsp at 2
fdp at 3
fcp at 4
vsp at 5
cmm at 6
cmm at 7
would become
fdp at 0
fdp at 3
fcp at 1
fcp at 4
vsp at 2
vsp at 5
cmm at 6
cmm at 7
Has anyone already created any scripting/validation to automate the
sorting requirements?
>
> [*] Seems like FCP/VSP are interleaved in r8a77990.dsi, doh.
>
Personally I prefer that - but my opinion doesn't matter here - so as
long as the rules are defined (or even better, automatically
enforceable) that's fine.
>>> + vspb: vsp at fe960000 {
>>> + compatible = "renesas,vsp2";
>>> + reg = <0 0xfe960000 0 0x8000>;
>>> + interrupts = <GIC_SPI 266 IRQ_TYPE_LEVEL_HIGH>;
>>> + clocks = <&cpg CPG_MOD 626>;
>>> + power-domains = <&sysc R8A77961_PD_A3VC>;
>>> + resets = <&cpg 626>;
>>> +
>>> + renesas,fcp = <&fcpvb0>;
>>> + };
>
> Gr{oetje,eeting}s,
>
> Geert
>
More information about the dri-devel
mailing list