Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EC13BC433EF for ; Wed, 12 Jan 2022 10:15:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352426AbiALKPe (ORCPT ); Wed, 12 Jan 2022 05:15:34 -0500 Received: from mail-vk1-f180.google.com ([209.85.221.180]:44639 "EHLO mail-vk1-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352424AbiALKP0 (ORCPT ); Wed, 12 Jan 2022 05:15:26 -0500 Received: by mail-vk1-f180.google.com with SMTP id b77so1289544vka.11; Wed, 12 Jan 2022 02:15:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6wKmSWMHWAmRWv4Hqzo9xUOdqr9ud8CTsl9Le52Qq2A=; b=UdJ+3JwWIGh8nEWkR/7xNhp5wmVjLb312NkEYecxcCxg9gYEyWnhyN0nECeoJbQ4fe HvYmTn8j/Gfnh582frysA4LW+OiyMKO5DAtBo98+lN0Rwm9hU97vdXecgDWUq2lSrvMW MXMNipSsLcxIDEi6FSP9+Zydr4fHX8K3o8Xy28G+5rv5Smv9O6853BdcIBWwAUNPoKn+ u9yxhPb6CRnUYEpnnklTkkxsj/nPN9zD3BcCzSWCUg5LwtT1JsJsizIGmODuv9c3DyyE gt/lUHggPMTHGhWq+XHLdBovfOs+bE1WVLb8NL7iyN41O44Arz2fe0AVj0YGjFFJT/Nl Fh1Q== X-Gm-Message-State: AOAM531ol+EeMlI524uZquTCmL0PZ+LJd12DJucRv8vGnm5ImWlYrBXM iwkaLN/UGhpi2r1013pinJs8W7caHHcDcfRN X-Google-Smtp-Source: ABdhPJxGK1DQ3X9+n/nyYXTC44TPzwLt8ESYBketdmypv6EmtQY3GDXY5clHFTVIJzOZ6E6k1gRgGA== X-Received: by 2002:a1f:3213:: with SMTP id y19mr4091393vky.7.1641982525770; Wed, 12 Jan 2022 02:15:25 -0800 (PST) Received: from mail-ua1-f49.google.com (mail-ua1-f49.google.com. [209.85.222.49]) by smtp.gmail.com with ESMTPSA id k23sm8260478vsm.1.2022.01.12.02.15.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Jan 2022 02:15:25 -0800 (PST) Received: by mail-ua1-f49.google.com with SMTP id l15so3710587uai.11; Wed, 12 Jan 2022 02:15:24 -0800 (PST) X-Received: by 2002:a67:c81c:: with SMTP id u28mr3649287vsk.38.1641982524577; Wed, 12 Jan 2022 02:15:24 -0800 (PST) MIME-Version: 1.0 References: <20211226082530.2245198-4-nikita.yoush@cogentembedded.com> <20211226153349.2296024-1-nikita.yoush@cogentembedded.com> In-Reply-To: From: Geert Uytterhoeven Date: Wed, 12 Jan 2022 11:15:13 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 3/3 v2] arm64: dts: renesas: add MOST device To: Nikita Yushchenko Cc: Magnus Damm , Rob Herring , Greg Kroah-Hartman , Christian Gromm , Linux-Renesas , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-staging@lists.linux.dev, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nikita, On Wed, Jan 12, 2022 at 9:56 AM Nikita Yushchenko wrote: > >> + reg = <0 0xec520000 0 0x800>; > >> + interrupts = , > >> + , > >> + , > >> + , > >> + ; > > > > What is the purpose of the various interrupts? > > Perhaps you need interrupt-names? > > The driver seems to use only the first two, which is strange, as > > the second and third interrupt handle different channels. > > Maybe Christian Gromm (the original driver author) can comment here? > > As far as I understand: > - interrupts are: mlb, ahb0, ahb1, ch0rx, ch1rx > - of those, the first 3 are from dim2 itself, and the last two are from renesas-specific logic around dim2 > - in the interrupt assignment tables for gen3 SoCs, renesas documents all 5 interrupts, however in the > mlb section, renesas mentions only mlb, ahb0 and ch0rx interrupts > - moreover, renesas explicitly denies access dim2 registers responsible for channels 32..63 - which > renders ahb1 interrupt useless; and renesas does not document any registers related to "async rx > response" on channels 32..63 - which renders chrx1 interrupt useless > - anyway, dim2 driver registers only 32 channels (for all use cases, not only for renesas), and thus > uses only ahb0 interrupt > - dim2 driver does not implement renesas-specific processing logic and thus does not use ch0rx interrupt > > I'm not sure how to proceed here. > Is it better to define only two interrupts (mlb, ahb0) in device trees? > > Regarding 'interrupt-names' - dim2 driver currently uses platform_get_irq() and thus depends on numeric > positions (mlb interrupt at index 0 and ahb0 interrupt at index 1). I'm not sure about current use cases > of the driver other than with rcar-gen3, and if it is ok to use of_get_irq_byname() instead. And without > using of_get_irq_byname(), interrupt-names looks somewhat useless. As the driver is under staging, I think we can make any changes we want. > > But without any DT binding documentation > > for this hardware block, this is hard to validate, and not yet ready for > > upstream integration. > > Christian, are you going to provide DT binding documentation for dim2? 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