Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp609314rwd; Mon, 12 Jun 2023 19:53:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Z112XiNKYfhuIFwjfqXDim8Wfu8MaPtU+1rOZ/iEsH+CHZqN+RR2iuff2c+SgaHCJtE9E X-Received: by 2002:a05:6a00:2343:b0:663:3b9e:966b with SMTP id j3-20020a056a00234300b006633b9e966bmr15746381pfj.2.1686624820155; Mon, 12 Jun 2023 19:53:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686624820; cv=none; d=google.com; s=arc-20160816; b=pMjQsTZbHQ6AXMWda9EXFcmUGjbFx+lJ1zNDbteGEUFhAOTPaPZFBVjmHHZAqLD72G VKSa3O+Rd+KDA/A4913xlIGTXV3ZvBkbK/3hnAU8yc6KPYJCFbW+ka318zw8JaUEoW2N cQo82kv7kV6OUgVRfpbxD21fVUxBnTLUQ9LbOaQ+AD16LL5wQQNnPT2ZBSEHJFXXKHqE 4Npt+9DO0hQ9gbrew2OgGLZEmP/EVU9knTJPZSQVCcUaee9Yfc8QPtzNHNzuLI0e11E/ S1u9CwOETfHQlUTtMkYCAzj2yUaWbN3NfDmHMGHWsExWM5uKqcyvqG4Rz245/SfY6kHr jldQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=swU5Uryxasze3lHKqlC7s6Xmwfuesh2gAYKo2uiC5EQ=; b=ktupxM71r9YvGzKTW3XTI/6HBImtqQrOXYf6Il/sLhrlKFCwEk/E8zsiBo0cqH4A4t pDcQDtxDTUgHspab040c/iGsln037oMPeTnOMoPBQTWj9INi+twGMziFAI95YITL4pIs WemWdzJrxslxm3zg/Soihoz6lrp/n7hPTRWO7VGtd0bf9qbAiPTeEsYWJyqYImLPjSoY ccV7nxKVeNxnKJ6xWOAiHQ52BeGvGuAiyBjs7+ulxQZ5zSAq/9kmZYX4oAVyVyCKna1D Ga0Jtin8M/3rJnahBRpNg72Lj9rARtMJGPpNggrbhGSo/hxBrH3lTQFcD17xxOPVRrTh zFBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id az9-20020a056a02004900b0050b8a7635dfsi7929752pgb.295.2023.06.12.19.53.28; Mon, 12 Jun 2023 19:53:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238754AbjFMCE7 (ORCPT + 99 others); Mon, 12 Jun 2023 22:04:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229742AbjFMCE4 (ORCPT ); Mon, 12 Jun 2023 22:04:56 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DB0ECE55; Mon, 12 Jun 2023 19:04:53 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.35]) by gateway (Coremail) with SMTP id _____8Cx+enEzodkRl0EAA--.9356S3; Tue, 13 Jun 2023 10:04:52 +0800 (CST) Received: from [10.20.42.35] (unknown [10.20.42.35]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxNeTAzodkLCgYAA--.3640S3; Tue, 13 Jun 2023 10:04:48 +0800 (CST) Subject: Re: [PATCH v12 1/2] spi: add loongson spi bindings To: Krzysztof Kozlowski , Mark Brown , Rob Herring , Krzysztof Kozlowski , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jianmin Lv , wanghongliang@loongson.cn, Liu Peibao , loongson-kernel@lists.loongnix.cn, zhuyinbo@loongson.cn References: <20230608072819.25930-1-zhuyinbo@loongson.cn> <20230608072819.25930-2-zhuyinbo@loongson.cn> <6ebed84c-2b42-c981-7b3f-e71cc88e4c2c@linaro.org> <4bf747c4-b767-b20c-e00f-724b50f44edb@loongson.cn> <6bfc2a22-6901-0858-7b90-bc4c52c66810@linaro.org> <11ca2b90-544d-18c2-fb15-7909ca60507f@linaro.org> <9c94397d-1e31-02fa-bdbe-af888c72eac4@loongson.cn> <657f8d19-de83-8be6-4a9d-5f13b1df7383@linaro.org> <84ccf4cc-072d-adbf-0361-95ceae13f333@linaro.org> <5d060cac-ff28-60e9-98a8-f2bd4d378455@loongson.cn> <4e30870d-86e2-8536-8e0d-aab4ce5027d2@linaro.org> <0c532e09-4821-5e07-92e6-7bc3cd79869e@loongson.cn> <9fec9cfa-0686-91d8-cba4-91ea67243b47@loongson.cn> <28e776f8-1e37-79f4-5c10-a57c5cd7d4e4@linaro.org> From: zhuyinbo Message-ID: Date: Tue, 13 Jun 2023 10:04:48 +0800 User-Agent: Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <28e776f8-1e37-79f4-5c10-a57c5cd7d4e4@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8BxNeTAzodkLCgYAA--.3640S3 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3UbIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVrnUUvcSsGvfC2Kfnx nUUI43ZEXa7xR_UUUUUUUUU== X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2023/6/13 上午2:03, Krzysztof Kozlowski 写道: > On 12/06/2023 13:29, zhuyinbo wrote: >> >> >> 在 2023/6/12 下午4:16, Krzysztof Kozlowski 写道: >>>>>>>>>> 在 2023/6/8 下午7:45, Krzysztof Kozlowski 写道: >>>>>>>>>>> On 08/06/2023 13:42, zhuyinbo wrote: >>>>>>>>>>>> --- a/Documentation/devicetree/bindings/spi/loongson,ls2k-spi.yaml >>>>>>>>>>>> +++ b/Documentation/devicetree/bindings/spi/loongson,ls2k-spi.yaml >>>>>>>>>>>> @@ -16,6 +16,7 @@ properties: >>>>>>>>>>>> compatible: >>>>>>>>>>>> enum: >>>>>>>>>>>> - loongson,ls2k1000-spi >>>>>>>>>>>> + - loongson,ls2k0500-spi >>>>>>>>>>> >>>>>>>>>>> Aren't they compatible? >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Are you saying that the spi driver is compatible with 2k0500 ? >>>>>>>>> >>>>>>>>> Didn't you say this through 11 previous revisions? >>>>>>>> >>>>>>>> >>>>>>>> Yes, did I understand your meaning incorrectly ? >>>>>>> >>>>>>> If they are compatible, then they are not part of one enum. They could >>>>>>> not be as this would easily fail in testing of your DTS. >>>>>>> >>>>>> >>>>>> >>>>>> The "loongson,ls2k0500-spi" wasn't a compatible in previous version and >>>>>> I will add "loongson,ls2k0500-spi" as a compatible in spi driver and >>>>>> added it as a part of the one enum in dt-binding. >>>>> >>>>> No, because you claimed - if I understood correctly - that they are >>>>> compatible. Don't add fake entries to the driver. >>>>> >>>> >>>> >>>> I'm a bit confused, and I just need to add 'loongson,ls2k0500-spi' as >>>> one enum in dt-bindings, but driver don't add this entry ? >>> >>> Compatibility is expressed with a list: >>> https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#compatible >>> so it cannot be just one enum, but "items". There are hundreds of >>> examples including example-schema. >> >> >> Is it a description like the following? >> >> properties: >> compatible: >> - enum: >> - - loongson,ls2k1000-spi >> + oneOf: >> + - enum: >> + - loongson,ls2k1000-spi >> + - items: >> + - enum: >> + - loongson,ls2k1000-spi >> + - const: loongson,ls2k1000-spi > > Remove this items part - it does not make sense. Device is not > compatible with itself. Rest looks ok. okay, I got it. Thanks, Yinbo