Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1434799rdb; Wed, 20 Sep 2023 09:02:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHuBqKYhLgQWWvBiKldHukpO1dmDL9p1XiIo0WCSf22a7IFIRqT2s0eulg4pPmKLD+FUuuF X-Received: by 2002:a05:6a20:4295:b0:147:fd40:2482 with SMTP id o21-20020a056a20429500b00147fd402482mr3449767pzj.44.1695225750019; Wed, 20 Sep 2023 09:02:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695225749; cv=pass; d=google.com; s=arc-20160816; b=nEEulZFmyFkQJ7IqBXmyzG78v6g0QuNGL0oLisSTGh97PR5j84V7HbGJOHxzdOA5Lm hhwMbVQo6EjYHKokP9m/Ky7Q69B5AceKeHSm4B5tf+loMfl2356v0WgawvRh7lEeAzly 4RFploB/ZcGRw6hi6g2Kvd+lpuONypQD+umISDw9inmW5VBk6QL3zH+GFSVTANv+wtNP 54Dg0eoDektethVGzKH4gU/SrfqWUT+ItyWTJo+FNSiPgUu1lQDXKQ86cwya3ntGYHI1 PKqez+l6n2n1Uv23Abj1VD5VIpWTTXzquvTU+brAq1pm+SiJLHl2ccgayD1v7pNCB7Nm L/yA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AIsqo+XA6IjhVishFwl6bRrjZLsgFpgu72rV/maQ800=; fh=G0ChVX3XHmxO90oWl+fn68lLtR4XzhrIAKwN7HfavU8=; b=w4pSA8qyfmORqdoydS+ddGL+cfzmBr1YsvuIfLEJaYjKTxkI99IVglaHgUUUKTEBfo nXT6ucctyFwzRzY5vx9RI3or3M7Q5gEXWdNSqvmkcNxtqzYiH4DST9cZNyvBouIVbuT4 w5o4Foap6RyluYA7Sfb+HM/omPIK8uw+zsVxIMQ9H6zTyBEHdHlUpaeTjc+A2Qq5Iz3M I4e3Ar+QrjPvCR2M3VNAVOuOIRNDnyMYB/5BY71tRBPRHwGQuUoV7M+EyFsDOj7vg9GO nG4YKyUqqUs3Cd+VtNsbQ6Xq8XpUVjJGrqpcEzv6MnHu2DxVkTijsoCVFjh9Dd7oUjaF G0iA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=XTdh4Fr5; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id 32-20020a630d60000000b00573e3b0d3e3si11952949pgn.408.2023.09.20.09.02.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 09:02:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=XTdh4Fr5; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 9675080BCB8F; Wed, 20 Sep 2023 05:40:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236212AbjITMkp (ORCPT + 99 others); Wed, 20 Sep 2023 08:40:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236142AbjITMkl (ORCPT ); Wed, 20 Sep 2023 08:40:41 -0400 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11olkn2093.outbound.protection.outlook.com [40.92.19.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 442D38F; Wed, 20 Sep 2023 05:40:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Se1Lm/jMvTI2o50ISjfWdNIINrxvh5y+zHGjhfkEH/aEMPjXK/sKna5VPfTOi+FRGQ1xoUtBIYvR5/VCXxJfE8ek+diB1tCy2tBVZdx8Se5MAN2pWApNiRsRK67WSf/HvJM8PtYZghFqNr01SZ1PcAUerZ61UydIZ5ShCB9Ci56nQmUlvYPyGqdYbncQ9h7y8UrYGzC+Qz7PDhi5H0qdqzW7KcAbHkS7dH5XEVzo9Vey326tWW99+fSg3rF/krCBWrekB5Z9h+YH6RUlxwn/ngn8KLNoDlpY707IV8RAEwp7xgbTArQSH82S+3T5AQO5ZKGTlZm1RYLooA6JKU0hBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=AIsqo+XA6IjhVishFwl6bRrjZLsgFpgu72rV/maQ800=; b=c2bYysoM2eVOSk+M0rsSxH1Q1vHzLzpR/6qUrdLMphHjFpZueRRuEUI/SiVu/aMRXvSpSERfSeeV3xpPPEfn1KBIwToATTzeSD/qRZh4ljiGa2ljP6EfufPScgvEsB2aMOKLI2yJ24mVAIZYNcbzTTmv4NlvaTZ0l7klr0UCOPoRSjrSTmnfDprbSXd6kYXEiKLJr+hUgJ5jqanyqIXFpMe7rqfT+Z8Tn0nD8XBtkcYHzJ1IJ0eZbunW4g1C384XZ1YRob6UG8eIs3fS4SmWsNXiDBNem1JoV+o3osU6fc144ZxW+25tm9WIz7Iy2bWfnJ6ujjsGXXnKHk0qZdFqsw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AIsqo+XA6IjhVishFwl6bRrjZLsgFpgu72rV/maQ800=; b=XTdh4Fr5bc+P1gOLfjrUeOaXn5O+VTc3rz7VmT+amEXjT0qBEQ4lUo7ZHQY2j4lTCghiTBi0U34lMuSxCJ8NZXoZNCIRhGyZ4+ow5+rZxRhzuIAwKdE90cBLYnYjgM2axuiyAigYjoNYtVbyXUPrucesZqYvUJUjeBHyCzDALFPjqQQC+LkRXdMJpHR02ZA+ibVNCAlu9TVBXRdpWShEeh2RZNks2yj4Zilzs+oGSy8L4HFP2navoiGcxKNPXquYCoVsFP5AHU6cRWCp03SHsQ43Dcxeg6vkJbXL+YmLM5bG9mqhNDEPEc1ODgbjN3vELrmYjfd7DYkQVIaZU3E/Jg== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by IA1PR20MB6270.namprd20.prod.outlook.com (2603:10b6:208:3ff::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.20; Wed, 20 Sep 2023 12:40:32 +0000 Received: from IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::d050:882f:a8a7:8263]) by IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::d050:882f:a8a7:8263%4]) with mapi id 15.20.6792.026; Wed, 20 Sep 2023 12:40:32 +0000 From: Inochi Amaoto To: Krzysztof Kozlowski Cc: aou@eecs.berkeley.edu, chao.wei@sophgo.com, conor@kernel.org, evicetree@vger.kernel.org, emil.renner.berthing@canonical.com, guoren@kernel.org, jszhang@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, palmer@dabbelt.com, paul.walmsley@sifive.com, robh+dt@kernel.org, xiaoguang.xing@sophgo.com, Chen Wang , Inochi Amaoto Subject: Re: [PATCH v2 06/11] dt-bindings: timer: Add Sophgo sg2042 clint Date: Wed, 20 Sep 2023 20:40:07 +0800 Message-ID: X-Mailer: git-send-email 2.42.0 In-Reply-To: <66b988f0-39fc-2ed3-8f38-151d6a3c9e52@linaro.org> References: <66b988f0-39fc-2ed3-8f38-151d6a3c9e52@linaro.org> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-TMN: [fAQusCy4zV8xnIj5aAb8ga9Y/1a4Hnk4E48hniRYXRM=] X-ClientProxiedBy: TYBP286CA0013.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:ce::25) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20230920124007.204314-1-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|IA1PR20MB6270:EE_ X-MS-Office365-Filtering-Correlation-Id: 21aa47f7-a0fd-432b-64aa-08dbb9d6c737 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DHFQIhLM3O3ZafbqZSBSv5A4jJ4+pcMeW9G82Xc1Lv3J5yZ75ErDGr2K7YPr3kFDyFiCiMX5fVF88P32GArnUXl6aFmdWLxlj/jq0UYUvmzzIki0aANuuhICoRy+dBOIKJz70o+JGr1fRjJ5fT3yq9qXJKYnCCvmaXg88UjXHUj2UcuV7+uBdEOf2+9uDUsklMW2h5sLrx5AWiMjX4q+J8HTD3Vm7UXHnYz6WZMKYTyC5UhVeFoTsbklVANhQAp71sM/YZ9e9wB2QqNJtzf6cA6m1juk7ATzDj9dO39u/Bzjmk4ubDqUoJb0oev4IXZVHvJLk5625bYhlkDlWZyMvBpGT8840wrJnTnvMxdt4hoK8DFBv09c+GOd43Qd7I4x5eOtRB3nCOKcTPMTiB3oyT3xKRorOpHLq5a3V3R71yKDg49P28/IKm584ZAfXIE6hZMMpNAIEyrpsBcQCOnOUjhD4oYwXL2DYXAycPQE9wfLwTzBHvfGpcP7CraPenEHYyPkj7UPaXunvKQkGflKsA9LtLH1W028zNeGYmRQj3zAPt1ZVIsepgurMOtNUKH09AjM4ETL9HEUWmUlsME2xhrHVk3IpqNkbW11IxWuu7Gk166Ovt4F13pl/Q18QOJ8 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?6HZy0fOQ5CFnARlgxbLCEiC9c/3VDqdxydyQQYR1pr57NYkVD+658DaBzETf?= =?us-ascii?Q?EBIqK12O35KT/Bw2wbmNNqZ66zDEgPDJuwjKYQaHBHVjrSHKt6zqSeU2Mxie?= =?us-ascii?Q?7SgeQ0ki6PodZth9JBEq80n059z2XbRpknWKffrvRDBksTqGG2Zq9a0lu1Wn?= =?us-ascii?Q?psMqVtvwQ1jsBBDicSWNa6QEm7CD5ACqytBePiGJFXntpM7ahecd1A0C10/3?= =?us-ascii?Q?UTrPT3z+LWR79xD32ZU579joxlQUUUsxQXl4uF2rO0Kx9x10ktxsehlPnCJu?= =?us-ascii?Q?7fgXkPD4jDajNrmQ/LXxPKY9xjWT07moDlCZr7sC9V2toRtm9gaEiCUrBiHG?= =?us-ascii?Q?s8E+XzQfVkP4uh7hU1gMYI9fgjw8XOfq5vxWxXY2KS9+AOkoglLhv/ugn3Ox?= =?us-ascii?Q?QG0qAQAX00+gyZfwzRg1VDsVVUTVi1DCICOjAUQP9MOJS8FtCjUFZuXDZuT0?= =?us-ascii?Q?9iv3tRVE7Qxzc26JhfvyLS20nYyEXgZ7DQadltBF6ImW5a6LTVYkJ87hXTeg?= =?us-ascii?Q?HxaAFjk4debISB9Hr8CCHtgY7MhL5oBa+jrnOgc+ASQ2rNCXl+ZBuWGXzMc7?= =?us-ascii?Q?afPHRSWssEXZMPkWMOd1F1a7rD+ldrYL3BLA2h0GRkyq4R4htuFz4b79bRTj?= =?us-ascii?Q?F8qLzSVZQBs/6vKtlGFlhu/B5OFeO0pSqrf1ouFslVKbxHHzE2FSuLisbv7d?= =?us-ascii?Q?U0jZ3Oj9zRx+GfJQlFYeNOXKZKFMPAiehAYwnbYV5QEUsJ3kTALS0VmHkQHF?= =?us-ascii?Q?GNAMPDgOnn/sESEpH1fbcu4DzmVBFJWnw4EXXMS/D3EW+tcBnfOqqFbq61de?= =?us-ascii?Q?qSWAXhnIpLsgrKsvWZfM1HZHAjHjLHk7NBgqpYxomhJG8UdYdKRjQSH3YOjP?= =?us-ascii?Q?l+m2iXY3oQq7+JDimMOdzExlcNY0xnXAm9hhsto0H+kFO5+mXLn6ebk4E1hj?= =?us-ascii?Q?7v2FVy+Qc3xheEr7sFh+n6j7ODpvXkWAhWatxiOLssb12EyP2WJgCIXwfuzQ?= =?us-ascii?Q?YGCktV1bdWvHskqRntFZxYCdxl6wPbJ00ZMbqpr0NeKz6+uNkMTVT/1QhQva?= =?us-ascii?Q?0I6KL7YEKyyttF1OAaTCucdLVL3CuDRXKubxAwvQyZLceLMLxEQtBtO1HwTJ?= =?us-ascii?Q?bGctAcWn8kzpVUYvwDz9I1Iyt4YlKMNcb1x/yzpgwBNdxwI9SnIk8+vaGulQ?= =?us-ascii?Q?dVr6iN3R/A67i6UkCKWEgkIwAIVTKEV/0WO974T1tXwowbXEZMV6yu6C5uo?= =?us-ascii?Q?=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 21aa47f7-a0fd-432b-64aa-08dbb9d6c737 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2023 12:40:32.2354 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR20MB6270 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 20 Sep 2023 05:40:45 -0700 (PDT) >On 20/09/2023 14:15, Inochi Amaoto wrote: >>> On 20/09/2023 08:39, Chen Wang wrote: >>>> From: Inochi Amaoto >>>> >>>> Add two new compatible string formatted like `C9xx-clint-xxx` to identify >>>> the timer and ipi device separately, and do not allow c900-clint as the >>> >>> Why? >>> >> >> If use the same compatible, SBI will process this twice in both ipi and >> timer, use different compatible will allow SBI to treat these as different. >> AFAIK, the aclint in SBI use the same concepts, which make hard to use the >> second register range. I have explained in another response. > >What is a SBI? Linux driver? If so, why some intermediate Linux driver >choice should affect bindings? >Best regards, >Krzysztof > SBI (Supervisor Binary Interface) is defined by riscv, which is an interface between the Supervisor Execution Environment (SEE) and the supervisor. The detailed documentation can be found in [1]. The implement of SBI needs fdt info of the platform, which is provided by kernel. So we need a dt-bindings for these devices, and these will be processed by SBI. [1] https://github.com/riscv-non-isa/riscv-sbi-doc