Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1709339lqg; Mon, 4 Mar 2024 00:55:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX/pAnY9ViQ04AML9iF6bHrfP7dEO/Y+0fwPhx7McJR5DGz6KHZi5eG7ZPRil4OHCnqSxSzVyAdGTeKQB/6LEK2+hh0DPZ79mCOk9biAQ== X-Google-Smtp-Source: AGHT+IF43BYovnXxUj8v9D/O60CCfgUnVFuP56gu/1czBpbyjBB1iYJkLDdt65O0laFDTesPIGWt X-Received: by 2002:a05:6359:420c:b0:179:f2:daa4 with SMTP id kn12-20020a056359420c00b0017900f2daa4mr10559295rwb.24.1709542549862; Mon, 04 Mar 2024 00:55:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709542549; cv=pass; d=google.com; s=arc-20160816; b=qcQs9d9Fr0MCmNeJ5XHfwU4FnmfD8rS9qSvv/F6KAxrFuLjItL5elhY8XBde+6j0GO yQZvo649LJVMriK2kYFIQ6hwOJ+g6KZkQFJ+PW+SFsFnXX6miRml+UEcAAHTY1ZIcwj7 BuY4IRQZvMc4rNO08W5mg6IV8AyRmko3NNpHPm/l+yycwN6k2eF2SVfwCLmhGtlQufsI ct7i9EWfZNbot1XCbHoLlVHDxL6hoZAGXnwxPJuKoWOa2X12vBylA2xk9yisJsNqqSgL dQy6lJPUJkIdKAAWZXhfj74icxAbNe6RBD+N7B5loCMUmlTkPdrfosCB4SP0csHJ3PdV hNqw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=mbuvwZO50R9Q6N8yNmFTfgRFRn2FhfRiifIW8jkWut0=; fh=02Vsb23m6LUfP/qlmWPpKy8kdMDKjcbG+oJFybq/N5s=; b=u7Z3P1FwL8FmkXZYhzsWPFa57Nmf8wbghxDxZ4bf+PA9p3jDQD1olbV6umvAdovc+C iXTG4sEmYfs+NngQozBWAtwJWVT1o0Wt9iz62pSZaeQyRgoht2sQTnGy2TpEwFVbh9+z Tvpdq48KYJQVH9Coj1s70WwfsQhhPwokvVLLgPq9hOYxRfyDfmeYlDZn0lECUgCVYzN+ LTgh1aRxCqzHd9NQxOygwMsWRnY9kw9Q7HjmglJTTbFKdcM+3ter/v9yqYvwTR4Bf1JQ riGOtS3guqTFZlxO2EH4ECbFUEQbslVEkm1F+O/zVyqzAfEFjOkTX1ZN0HY7Pd31xKWF g83Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@qq.com header.s=s201512 header.b=nFTs5sfQ; arc=pass (i=1 dkim=pass dkdomain=qq.com); spf=pass (google.com: domain of linux-kernel+bounces-90252-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90252-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id w17-20020a631611000000b005e456ae53cfsi7964244pgl.178.2024.03.04.00.55.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 00:55:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90252-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@qq.com header.s=s201512 header.b=nFTs5sfQ; arc=pass (i=1 dkim=pass dkdomain=qq.com); spf=pass (google.com: domain of linux-kernel+bounces-90252-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90252-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 58715280C6F for ; Mon, 4 Mar 2024 08:55:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 730C21B27A; Mon, 4 Mar 2024 08:52:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.b="nFTs5sfQ" Received: from out162-62-57-252.mail.qq.com (out162-62-57-252.mail.qq.com [162.62.57.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3164319474 for ; Mon, 4 Mar 2024 08:52:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=162.62.57.252 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709542350; cv=none; b=Mdzmf56gMuoCwPVIq4Xh2wyhTNrqYzn2mH/Ijls3CKQZtAwfXGZ9vxULw997zCHbU2Wkt9lymNuSlQkAgIfSpMLzGUGQfNlD3EFdhjdwLOGcdrs1z7+3wVbVHf9K+dWNDvJikwTxBIprK6UIwJ6CZnmbC/McAtJMQq82pxmBalM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709542350; c=relaxed/simple; bh=dFdLZwzVb32v1eTbKWoNzytYjuFHCSDRMkVJM58ZX+M=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=n09BqeYTerzK7jOU4q6Regt3AB68bnxJRoOgRqtuuRWn5OGzubOTg+pnztZrC6jjR/Hub3Q27rPbFdBVlOw4wni1fm2lVnQ2eIxuBwwxWKZ39hDHDPZtG1SlRvyB57EKK6NTleXr9RAIwwm+9LyyZMd/OA5/YUYDc3suR5MTft4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cyyself.name; spf=none smtp.mailfrom=cyyself.name; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.b=nFTs5sfQ; arc=none smtp.client-ip=162.62.57.252 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cyyself.name Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=cyyself.name DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1709542337; bh=mbuvwZO50R9Q6N8yNmFTfgRFRn2FhfRiifIW8jkWut0=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=nFTs5sfQfANH6UTAr+Bxz575Yo2FS8OTvte9tkQytAjD+mpEmvaN+WKADuJLVN6fW txgmGiuUonMY9kgSX0HTGahpnUfJjDHYRTm+6PSCj8L+5yzh6GEEgscwvlFEHcpXZO FTbbvkD2ib5fO3HyrMhcc7L1n7LYyN7cFN2mv51g= Received: from [IPV6:2001:da8:c800:d084:f0c8:5d03:8100:4abe] ([2001:da8:c800:d084:f0c8:5d03:8100:4abe]) by newxmesmtplogicsvrsza7-0.qq.com (NewEsmtp) with SMTP id CC5BCEE2; Mon, 04 Mar 2024 16:51:05 +0800 X-QQ-mid: xmsmtpt1709542265tg1r7o721 Message-ID: X-QQ-XMAILINFO: M1rD3f8svNznan3rGAt6euEY2qNi8leQ7tpHeu6fo+m9tItMjXsZj8H0v9S+83 qpSGVhUnE1gxye9pkJ0kgG5xMB8tC2p3Wk67WyeosYwmYPqyax2KEBjVppVuZ8pEiYWBL1BDz849 Z3hnL53It3BNVZxnk04A1fZ14wE7yPGDF0bDyjoiySIKzQfCq9HPTCWw/fDzvTdIXyypX2QQ05kf 8ABXE7ywGTdlBkPaZq6c3JCznPaYAQL+TxWKdOUPGxmmbSQ6nYxV8ouM64rtTdoUbhs0+fTmt9P3 7gPwLbV4kyXZArCozSJ92Ikp41cJPbbCCVxzjq+HFdP5lXBI/IJbmiZ92WRQ92qGO/N7nT8/j/I1 2LfvF+q39t6UDiWbu8ZefO06zHn7lh8fKjpe52ZlaUGtIjt7UNk6v+YBQix56MlVSQwBMdWzRF+a pZVGgO+SoL5Xv2eks5aATQPV5QWdbtG/8maE3y7njD6RY3wc8U7AId/1Z8BMmKmgCTRRbigMiuLY l22NeZNjMBYs8GRYLmlbhgQCHS+hb4WFb9yzRbcmraQxzaFK19J/RPDz3XjmEQbfUPjTj9rxhkCB eXDOKp4XFV/o/8mlmP9zPR0/WaKTmyzOUBupFdCXVI/QHX/NEzAe7XYoWH2kzjUSb4MpAxTpibB1 VYKTqtNpC2zvkNZvBvl4HNbke6E0R2sF/jTFTjWRYbPClfFs1+E70Md+BZOwEhLMo+0AdMkSs5w/ WZlqgPI4Qmg58sj3wXS0ic0YU+yb9xjLNX+xp7In4oRDRWq7S0+1fcJQGxJTsLtk1S3TBDjtMSzy x8HCu/yX5tANxqGl07MR6bsQZ0b46G0q4kszlAsFKoJq47/m5GHAd6vJN12QdjOtKmkGcxvkQ8gn 7W/60Jz1cee332QVexi9+o6YeJZCxnRgV7oMZoJ/pmrpzzumqBygCvJ4NvQkIrkIwC/CY/ZNH2Im rTDIXeDlRvswf0j8UrTGqBd09Y8nYznWGYBnRbuGLHI69voorfkB/+eQCg/HM7 X-QQ-XMRINFO: OD9hHCdaPRBwq3WW+NvGbIU= X-OQ-MSGID: Date: Mon, 4 Mar 2024 16:51:05 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/5] dt-bindings: add Canaan K230 boards compatible strings Content-Language: en-US To: Krzysztof Kozlowski , linux-riscv@lists.infradead.org Cc: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <7c3c578a-d662-4485-ad15-47250ad0e935@linaro.org> From: Yangyu Chen In-Reply-To: <7c3c578a-d662-4485-ad15-47250ad0e935@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2024/3/4 16:11, Krzysztof Kozlowski wrote: > On 03/03/2024 14:26, Yangyu Chen wrote: >> Since K230 was released, K210 is no longer the only SoC in the Kendryte >> series, so remove the K210 string from the description. Also, add two >> boards based on k230 to compatible strings to allow them to be used in the >> dt. >> >> Signed-off-by: Yangyu Chen >> --- >> Documentation/devicetree/bindings/riscv/canaan.yaml | 13 ++++++++++++- >> 1 file changed, 12 insertions(+), 1 deletion(-) >> >> diff --git a/Documentation/devicetree/bindings/riscv/canaan.yaml b/Documentation/devicetree/bindings/riscv/canaan.yaml >> index 41fd11f70a49..444758db964e 100644 >> --- a/Documentation/devicetree/bindings/riscv/canaan.yaml >> +++ b/Documentation/devicetree/bindings/riscv/canaan.yaml >> @@ -10,7 +10,7 @@ maintainers: >> - Damien Le Moal >> >> description: >> - Canaan Kendryte K210 SoC-based boards >> + Canaan Kendryte SoC-based boards >> >> properties: >> $nodename: >> @@ -42,6 +42,17 @@ properties: >> - items: >> - const: canaan,kendryte-k210 >> >> + - items: >> + - const: canaan,k230-usip-lp3-evb >> + - const: canaan,kendryte-k230 >> + >> + - items: >> + - const: canaan,canmv-k230 > > Why this is not part of previous entry in an enum? > >> + - const: canaan,kendryte-k230 >> + >> + - items: >> + - const: canaan,kendryte-k230 > > Usually you cannot run SoCs alone. What does it represent (in real life)? > I'm not sure what it means. If you wonder why should I add a compatible string for soc, that is although we cannot run SoCs alone, adding a soc compatible will allow some bootloaders or SBI on RISC-V to choose an errata for a soc. Such as this opensbi patch. [1] If you wonder why I should allow a soc-compatible string with soc alone, that is because k210 did it previously. And provide a k210_generic.dts to use it. I haven't provided generic dts now but allowing only soc-compatible string alone would also be acceptable I think. [1] https://github.com/cyyself/opensbi/commit/b113c1c01d700314a4a696297ec09031a9399354 Thanks, Yangyu Chen > Best regards, > Krzysztof >