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 5A7DDC6379F for ; Tue, 21 Feb 2023 11:18:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234030AbjBULSu (ORCPT ); Tue, 21 Feb 2023 06:18:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232049AbjBULSl (ORCPT ); Tue, 21 Feb 2023 06:18:41 -0500 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D87BFAD31 for ; Tue, 21 Feb 2023 03:18:39 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id x10so14881808edd.13 for ; Tue, 21 Feb 2023 03:18:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=te3p4bKydyp/MbIlm34Ds4b8t0tdrCO/k0x0oPR5HmA=; b=sjV1W157Nd2uD+N+AFPnMckchyhrGh5QiQNKESz4iHvU2+4NW6LDaJyh6mwplvbenr Q89gbbsgzbWULv4GlgcsLIciNpn5KsXcgGN54b6kLQyU/jDWR6tx587ZdsqybTkAbyKa oVMcINL8ypDqOZNvMeayu6+Xn13pAPWuAjNnPyIHhXUb5c404idEDDzKuTV3a2Gg02EA xkSaU90014O4rZidTioVUiwxQ3zsOBAj68RkXh5zRH5XWz5M9vYDuHB0JcVNQQ1u0ooN BFD8OHn8sF3aYWJwcrIrC23fe4jWMcS+6NJlKlqyHoGKCRX5QurkfADwi4ewXm5/QpRT swfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=te3p4bKydyp/MbIlm34Ds4b8t0tdrCO/k0x0oPR5HmA=; b=RdQW2ZgKF/Hx3xiznMp6xmiFuibRRMfzfw/E/nosuXsZKA49UxYs01rJYSqa+YeqbC vtFxrIkJl7PHxhl2Qfwnbo3jM3pwr+GvH8xCjf1yOevr0B2CLtV3CHtNHUIGoEDfZTZp SUMt+oi3vey8vFhzUOEZslWmsEw9Th8tMXmPzKK/9gBWPdtub/2Eb98mowlYty9ywnS9 iPIvY/S+P8nk3LD4/LsHd5e9RmqWZJBw5RCufLvKBRpYnUVCn6z6lndYK5jWgGk7lE6H PLpcxCQ0+cJP2oCoUfgKofzbOEq1evIu1Z4HXg06uDZP0OLqeiFaNYQBHXtNSj4FykO4 IT7g== X-Gm-Message-State: AO0yUKWXLGhln+bnMmrdjimN6bUrqp9veaAtjOLrFIRkbX4wFNAdTDCL Q64vk5R14zWiPZI1bAay/GcYtw== X-Google-Smtp-Source: AK7set/OO+e1W/Ws56sG5Ah5QjKrNgdFollXBGhuh6EuaPZ5R/SRBjgvMBb2POELMIB/xkjfl5peYA== X-Received: by 2002:a05:6402:34d5:b0:4ae:eae1:2be0 with SMTP id w21-20020a05640234d500b004aeeae12be0mr3044763edc.14.1676978318384; Tue, 21 Feb 2023 03:18:38 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id g13-20020a056402090d00b004acbda55f6bsm1096399edz.27.2023.02.21.03.18.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Feb 2023 03:18:37 -0800 (PST) Message-ID: Date: Tue, 21 Feb 2023 12:18:35 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH V2 1/2] dt-bindings: interrupt-controller: Add Loongson EIOINTC Content-Language: en-US To: Binbin Zhou Cc: Binbin Zhou , Huacai Chen , Jiaxun Yang , Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Jianmin Lv , Huacai Chen , linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, loongarch@lists.linux.dev, devicetree@vger.kernel.org, loongson-kernel@lists.loongnix.cn References: <23068d0c-d37c-0563-e1c1-e4d112059f5b@linaro.org> <49c8255e-66f3-fa1f-2949-1f03f77a0fa4@linaro.org> <4dcaaa70-11e0-fc9d-da03-224d34e36983@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/02/2023 11:12, Binbin Zhou wrote: > On Fri, Feb 17, 2023 at 4:40 PM Krzysztof Kozlowski > wrote: >> >> On 17/02/2023 07:09, Binbin Zhou wrote: >> >>>>> Hi Krzysztof: >>>>> >>>>> Allow me to give a brief overview of the current status of eiointc (DT-based): >>>>> Loongson-3A series supports eiointc; >>>>> Loongson-2K1000 does not support eiointc now; >>>>> Loongson-2K0500 supports eiointc, with differences from >>>>> Loongson-3, e.g. only up to 128 devices are supported; >>>>> Loongson-2K2000 supports eiointc, similar to Loongson-3. >>>>> .... >>>>> >>>>> As can be seen, there is now a bit of confusion in the chip's design of eiointc. >>>>> >>>>> The design of eiointc is probably refined step by step with the chip. >>>>> The same version of eiointc can be used for multiple chips, and the >>>>> same chip series may also use different versions of eiointc. Low-end >>>>> chips may use eiointc-2.0, and high-end chips may use eiointc-1.0, >>>>> depending on the time it's produced. >>>>> >>>>> So in the Loongson-2K series I have defined the current state as >>>>> eiointc-1.0, using the dts property to indicate the maximum number of >>>>> devices supported by eiointc that can be used directly in the driver. >>>>> >>>>> If there are new changes to the design later on, such as the >>>>> definition of registers, we can call it eiointc-2.0, which can also >>>>> cover more than one chip. >>>> >>>> Just go with SoC-based compatibles. If your version is not specific >>>> enough, then it is not a good way to represent the hardware. >>>> >>> >>> Hi Krzysztof: >>> >>> I have tried to write the following SoC-based compatibles, is it fine? >>> >>> compatible: >>> enum: >>> - loongson,ls3a-eiointc # For MIPS Loongson-3A if necessary. >>> - loongson,ls2k0500-eiointc >>> - loongson,ls2k200-eiointc >> >> Looks good, but didn't you state these are compatible between each >> other? I have impression there is a common set, so maybe one compatible >> work on other device with reduced number of devices? >> > > So far, the difference between ls2k SOCs is the number of devices > supported by eiointc. > > Do you mean use unified compatible and reuse loongson,eio-num-vecs? > > Would this be possible, e.g. No. I meant that maybe all these three should have been made compatible. Best regards, Krzysztof