Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6113075rwl; Mon, 9 Jan 2023 04:28:53 -0800 (PST) X-Google-Smtp-Source: AMrXdXsq8fzO70vakUjbebAWju5yVmRj2F7a5RfDa0JapeXQmmzqPpzbPF5M0Z1c58QtSEZ6d3hl X-Received: by 2002:aa7:ce07:0:b0:48f:fcc9:665e with SMTP id d7-20020aa7ce07000000b0048ffcc9665emr16322811edv.0.1673267333194; Mon, 09 Jan 2023 04:28:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673267333; cv=none; d=google.com; s=arc-20160816; b=IvSIUNwP+ZAEXt6qGN9bZ4rW1kM1j7mtisl3YQA0ORt7VBVPwNjhkWpvEvAqdCce8p 11hAhYbPrtigXc6xTdFkcMf9zKrQ+5wWNMtwugxYunDsfJat9pPaIyEaQUqvb5nNeVy9 Li3/xu3vRhcf1w0xC2+Cbfw3DoTal3PoccgyP9zblNuBS6aXLZkAlA34uDOQpqc5yxFa 04YBm8Vl6+VtfKOe2QMKoRtBQvA06rmWuRwJtDK6vhl9vpsSr9kEBhBbp3eDtUW2YdJW c9xmjex/j4v2/yK4sCU94cESvqbnnwuQKYUznJzS67hj/Z2vJwlxJNop//MHqxwL4rgd dVYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=/v56FuzTOF65NQx86r40RWrRUL/Au3qdgwGh4dAhX/Q=; b=sPBKo9V69Kqdd9zVyCunm5X8yYcVDcrPBjHXwaU1yHDd3AYSUjCuhwaEQFwRN3KjMa /6sPV87lI+FqZlQdCLbpboKPRLs+ehAqcLF2fQR0JjHJ+bS0GWcSnMR7sfXNvHpATvsi FDK89iuAVgeGERApzJ4XyXG9TgeTDCC4WkGjiTDPMZkfois1rTIyCtmDXzxULsfF0erS zfzDnMkfrcTu7O+4BYxu7zbffb0U/Ju950WiVkBgFYv0e48xmXpVeUib+IvsIEM/C4Kx Wxw2eEqZ2Pa3nXGDujYlFBWGhNi59F1fVc/+WsqYAyFvJoIX7sk/xmR83UvcVq6koINO Ti/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q20-20020a056402519400b004854e1d2682si10834817edd.249.2023.01.09.04.28.39; Mon, 09 Jan 2023 04:28:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237139AbjAIMP7 (ORCPT + 53 others); Mon, 9 Jan 2023 07:15:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237178AbjAIMP4 (ORCPT ); Mon, 9 Jan 2023 07:15:56 -0500 Received: from mail-qv1-f50.google.com (mail-qv1-f50.google.com [209.85.219.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C16FA1AC; Mon, 9 Jan 2023 04:15:54 -0800 (PST) Received: by mail-qv1-f50.google.com with SMTP id h10so6058482qvq.7; Mon, 09 Jan 2023 04:15:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/v56FuzTOF65NQx86r40RWrRUL/Au3qdgwGh4dAhX/Q=; b=XHOLDZ/kESuYN4g/G4oLqcQ4+FnNUlHSCJ+nRkAih3HN4kAVchC2GiHEW6gqAUROsA Vs7lVNYF3pCmnnZ6GkiK6d/JLl1zxFFvNSeO4lBN6lDrDsw3cagrVqALOEB9jdCFAGbh oJW5TXsbAA5sS55uJev3RJNOIwz/i7NYc+nuJPD2k1Fc7BkclF6+KaS1MR0osHxLQvAc HGq/Zl5QocVH4u9uaUvtq4mSRNUJUqSmLvJLg/J68W2+ef+4VqijoRpUTO20fT/ShIY/ JIotNwmZ5VJsA8r08clPoIuTeUQ7NygpTiCUCVlmDWaOEIeXo8HFBawknnRmTE4Nbr65 AP4A== X-Gm-Message-State: AFqh2kr9YCEuS6XZ6QDSwc2sBEzrnMsoGtWl1LaiV6358V4KzU/fdnBU T2ol0lqJoIrIK74gC02oJfkcDPFzjwezDw== X-Received: by 2002:a0c:bf52:0:b0:531:dcf9:a17e with SMTP id b18-20020a0cbf52000000b00531dcf9a17emr28364132qvj.26.1673266553084; Mon, 09 Jan 2023 04:15:53 -0800 (PST) Received: from mail-yw1-f174.google.com (mail-yw1-f174.google.com. [209.85.128.174]) by smtp.gmail.com with ESMTPSA id bl19-20020a05620a1a9300b006fa9d101775sm4240295qkb.33.2023.01.09.04.15.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Jan 2023 04:15:52 -0800 (PST) Received: by mail-yw1-f174.google.com with SMTP id 00721157ae682-482363a1232so110190757b3.3; Mon, 09 Jan 2023 04:15:52 -0800 (PST) X-Received: by 2002:a05:690c:c02:b0:48d:1334:6e38 with SMTP id cl2-20020a05690c0c0200b0048d13346e38mr4982292ywb.316.1673266551917; Mon, 09 Jan 2023 04:15:51 -0800 (PST) MIME-Version: 1.0 References: <20230106185526.260163-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20230106185526.260163-5-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: From: Geert Uytterhoeven Date: Mon, 9 Jan 2023 13:15:39 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v6 4/6] dt-bindings: cache: r9a07g043f-l2-cache: Add DT binding documentation for L2 cache controller To: "Lad, Prabhakar" Cc: Conor Dooley , Arnd Bergmann , Conor Dooley , Heiko Stuebner , Guo Ren , Andrew Jones , Rob Herring , Krzysztof Kozlowski , Lad Prabhakar , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list , linux-riscv@lists.infradead.org, linux-renesas-soc@vger.kernel.org, Rob Herring Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Prabhakar, On Sat, Jan 7, 2023 at 9:47 PM Lad, Prabhakar wrote: > On Fri, Jan 6, 2023 at 9:53 PM Conor Dooley wrote: > > On Fri, Jan 06, 2023 at 06:55:24PM +0000, Prabhakar wrote: > > > From: Lad Prabhakar > > > > > > Add DT binding documentation for L2 cache controller found on RZ/Five SoC. > > > > > > The Renesas RZ/Five microprocessor includes a RISC-V CPU Core (AX45MP > > > Single) from Andes. The AX45MP core has an L2 cache controller, this patch > > > describes the L2 cache block. > > > > > > Signed-off-by: Lad Prabhakar > > > Reviewed-by: Rob Herring > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/cache/andestech,ax45mp-cache.yaml > > > @@ -0,0 +1,81 @@ > > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > > > +# Copyright (C) 2022 Renesas Electronics Corp. > > > +%YAML 1.2 > > > +--- > > > +$id: http://devicetree.org/schemas/cache/andestech,ax45mp-cache.yaml# > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > + > > > +title: Andestech AX45MP L2 Cache Controller > > > + > > > +maintainers: > > > + - Lad Prabhakar > > > + > > > +description: > > > + A level-2 cache (L2C) is used to improve the system performance by providing > > > + a large amount of cache line entries and reasonable access delays. The L2C > > > + is shared between cores, and a non-inclusive non-exclusive policy is used. > > > + > > > +select: > > > + properties: > > > + compatible: > > > + contains: > > > + enum: > > > + - andestech,ax45mp-cache > > > + > > > + required: > > > + - compatible > > > + > > > +properties: > > > + compatible: > > > + items: > > > + - const: andestech,ax45mp-cache > > > + - const: cache > > > > You might find value in a specific compatible for your SoC & enforce > > constraints for it. Or you might not & I don't care either way :) > > > Good point actually. Geert what do you think? That might be prudent, to cater for the way the standard AX45MP cache block is integrated into the RZ/Five (or any other) SoC. Still, in the absence of an SoC-specific compatible value, you can handle integration issues using soc_device_match(). Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds