Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4649137rdb; Fri, 15 Sep 2023 08:19:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH4yMG/1advR/R9bBZu2DL64u7hgdbxWUDj5QQ+rnf2LtQhA2UlOW+5Xh49pOuoMLfuJD17 X-Received: by 2002:a17:90a:de8b:b0:26d:ae3:f6a7 with SMTP id n11-20020a17090ade8b00b0026d0ae3f6a7mr1829485pjv.21.1694791195319; Fri, 15 Sep 2023 08:19:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694791195; cv=none; d=google.com; s=arc-20160816; b=sTtUAr8UimGPHvcPqfF5lz5AYByGLbI513q0J5v/F7jADDmVXGJGfC9lE5cXQCjuZv 44uIO0pwffmGBt2U0tMVro+9XF4Kd25Y64qkXJmyMfJi9Gt2fSOm7dkSp3CczoYemk66 Z14dK/sspsXyaMMphT96Ye5hrmQdm3O5exu7bf4zgiDoM6am+wpteOcxupSxswI7R/kH lBPtee9mRAjDcYH7bKsC3ANhVFn+cMzzoFjsDjMeRHY/Kf90enn8j9gRyNDo5f4TtOEN IhZpNkVY1SJotajoYZLDbFW1X5ijW/Bu0VdDK/ULhcu1nc5R132rGaFLLUsmBNRED100 ynNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/T/Ljc/IuiPgeDbaRGNUVNzVkZKCLUG1u6ymjYfaGso=; fh=1azWnUsrCjqVLrtiJvnj46kvS6rwJtwKTz5CZhZ9OKE=; b=syR+KnEp9xGtBTNL+LsRiIbsgTdGl5RUcoQjsIJt152/z//c0bkhf96E3OW7s9G9eN MDV49fy6/maTCY7RbNKAdl3zjtPsfIzOM4bdsesaqJu/0w6UQGdxfS4uVHbWVHcZB5MT Y8yI5n1dEGI+rp2q9usWzVcaxgpNlFOrHxSVcozaulpGAqbY7KtQKvU6fPJzk2C+RnoC 6o6tKy6RqDhnRUsTxLsjlQOymhOWNtJRt1n7iT2Dq3bremUc2nAbCNX5FRzaMNjSKYPM AP6K3rJSTPW14dt4WBHWs58fyvAl2wpwISksdsf60urRutUzyE1BlVMNVn03nJctm7ot Xctg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GKmJvd6j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id lb10-20020a17090b4a4a00b002749baa2edesi1302180pjb.24.2023.09.15.08.19.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 08:19:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GKmJvd6j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id D745F83B827B; Fri, 15 Sep 2023 08:08:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235907AbjIOPIh (ORCPT + 99 others); Fri, 15 Sep 2023 11:08:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235963AbjIOPIc (ORCPT ); Fri, 15 Sep 2023 11:08:32 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C2CA30C3 for ; Fri, 15 Sep 2023 08:05:52 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A668EC433CA; Fri, 15 Sep 2023 15:05:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694790352; bh=HTR0jnRq7Qok2GBZIdglCxy34OjHIAkdXarc7/JXfQQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GKmJvd6jL5PxazkTqlOPvFB6fgldVOUnGXxbFUr04cSxCmFPH5GpvF++pTgucnCpP jl6LYtMflhK/860BedJQYoaBhwn66cSl+4JI0A87Lcv15+OpRf395MJ6dt3Hza0iEe I2qekF3WCEAsu4sDY1eyoDRoQaLq0nrA1+37c121d/qiaw72tD5lO839W/hgilSWI1 3kvGBDYAqvBndv1iH+ummMArHJ0ScNqrpiRLJcMUINwQNZrUS9iMC1zhTjbn8RqAa5 JYFVkc5wPpn1H1fo+OCOhKPlO2k0bSUR97YEek0AgPw7cJl8Z2VPjlyU8Q2jo/cng0 A7wkuJcZtkJBA== Received: (nullmailer pid 3732603 invoked by uid 1000); Fri, 15 Sep 2023 15:05:49 -0000 Date: Fri, 15 Sep 2023 10:05:49 -0500 From: Rob Herring To: Wang Chen Cc: linux-riscv@lists.infradead.org, conor@kernel.org, aou@eecs.berkeley.edu, krzysztof.kozlowski+dt@linaro.org, palmer@dabbelt.com, paul.walmsley@sifive.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, jszhang@kernel.org, guoren@kernel.org, chao.wei@sophgo.com, xiaoguang.xing@sophgo.com, Inochi Amaoto Subject: Re: [PATCH 06/12] dt-bindings: timer: Add Sophgo sg2042 clint Message-ID: <20230915150549.GA3731700-robh@kernel.org> References: <20230915072415.118100-1-wangchen20@iscas.ac.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230915072415.118100-1-wangchen20@iscas.ac.cn> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 groat.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 (groat.vger.email [0.0.0.0]); Fri, 15 Sep 2023 08:08:38 -0700 (PDT) On Fri, Sep 15, 2023 at 03:24:15PM +0800, Wang Chen wrote: > From: Inochi Amaoto > > The timer and ipi(mswi) of sg2042 are on different addresses. With the > same compatible string, this will cause a mismatch when is processed by > SBI. > > 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 > fallback to avoid conflict. > > Signed-off-by: Inochi Amaoto Missing your S-o-b as any patch you send should have yours (last). > --- > .../bindings/timer/sifive,clint.yaml | 26 +++++++++++++++++++ > 1 file changed, 26 insertions(+) > > diff --git a/Documentation/devicetree/bindings/timer/sifive,clint.yaml b/Documentation/devicetree/bindings/timer/sifive,clint.yaml > index a0185e15a42f..2a86b80c3f1e 100644 > --- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml > +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml > @@ -39,6 +39,14 @@ properties: > - allwinner,sun20i-d1-clint > - thead,th1520-clint > - const: thead,c900-clint > + - items: > + - enum: > + - sophgo,sg2042-clint-mtimer > + - const: thead,c900-clint-mtimer > + - items: > + - enum: > + - sophgo,sg2042-clint-mswi > + - const: thead,c900-clint-mswi > - items: > - const: sifive,clint0 > - const: riscv,clint0 > @@ -74,4 +82,22 @@ examples: > <&cpu4intc 3>, <&cpu4intc 7>; > reg = <0x2000000 0x10000>; > }; > + - | > + clint-mtimer@ac010000 { > + compatible = "sophgo,sg2042-clint-mtimer", "thead,c900-clint-mtimer"; > + interrupts-extended = <&cpu1intc 7>, > + <&cpu2intc 7>, > + <&cpu3intc 7>, > + <&cpu4intc 7>; > + reg = <0xac010000 0x00007ff8>; > + }; > + - | > + clint-mswi@94000000 { > + compatible = "sophgo,sg2042-clint-mswi", "thead,c900-clint-mswi"; > + interrupts-extended = <&cpu1intc 3>, > + <&cpu2intc 3>, > + <&cpu3intc 3>, > + <&cpu4intc 3>; > + reg = <0x94000000 0x00004000>; > + }; > ... > -- > 2.25.1 >