Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1393250rwd; Wed, 31 May 2023 13:19:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5kPvIUdYS8EWG2NqNr4nU9gwe4k7M1jsjdGtB4EsertjT6Bgy5yYRx2NhT9UVOtbW9e9E4 X-Received: by 2002:a05:6a20:918a:b0:10b:7400:cef7 with SMTP id v10-20020a056a20918a00b0010b7400cef7mr8389585pzd.17.1685564350666; Wed, 31 May 2023 13:19:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685564350; cv=none; d=google.com; s=arc-20160816; b=MAXJaQyq1KKAQvv43LeGkFYO7CsdDF9VrKQyaWSMj70nY/Ans1faahQNZYu3O/WUD5 QLCs4yQkwuMs1Tt8ypGEy4E5d2d6dHg0G8R93SXcKxjtfWpTWYKq+ekiBo0F5MdNCrhw AX3D1xAPmo3LdVvrYx7+hpdmVhBt0zBgJ/tmKv/3wY+HxA3h9jT/CdlKMKy4J1/6GBgc 308H58ZM03B03cImVNNMPceTE1k3NOMvP8AkdojfdtJUgS2rcCXs/6axlLXuTsEhrvMT LmxKyQuiT9FeUkzVSuqdkG0uqHl5lwhOcuHm6vkhM/rq6HHToqIMYfdc8w+FVltcB7Ig 1VeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=88XdFTbrHk+zgo/9nKqPMnV1vAS6bpV3qe5bGBfKbI0=; b=GMeFKhgbB6GfOzvODQWhg//F8u3Fe2osgjVfdQkd2QKqzJJ4c4EMagtpACSjcQMgSQ HwHfTSLL+hQkid/JAyv+EqS5rBp9urbH5mobKEWgqchcWAFNLEZKyzCoI7Esv2EqZgbB P6BFMBhBAMwOaICegquneqrTw/S6/Ajr2FXOei/Cr9TuC1sWEFm7JWPKqmnn980xPnx0 eRY5bWpy01sbINLUbr1SPTjCwi2nZfnqghM7iUOU+uNWHKQ9gH7W/JSIbuA29cSsXMN9 tV6QX3pcay47s+D5R/PF5qnWu5v/VyIJEHvzOVYGRIZUS+bUroLxcCSGElV2jhNUvWaC aeTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PGoUcW6+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e10-20020a170902744a00b001ab039a411csi1492390plt.17.2023.05.31.13.18.47; Wed, 31 May 2023 13:19:10 -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; dkim=pass header.i=@linaro.org header.s=google header.b=PGoUcW6+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230124AbjEaUGS (ORCPT + 99 others); Wed, 31 May 2023 16:06:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230186AbjEaUGR (ORCPT ); Wed, 31 May 2023 16:06:17 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7EEEC0 for ; Wed, 31 May 2023 13:06:14 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-96f5685f902so937769166b.2 for ; Wed, 31 May 2023 13:06:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685563573; x=1688155573; 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=88XdFTbrHk+zgo/9nKqPMnV1vAS6bpV3qe5bGBfKbI0=; b=PGoUcW6+SxAtu7vhFcbSBfivY0amCpnP460PJo6/2mY9RuUP2Iz14tObAADJwd2IDc lERlre9LpQDO9fA1jilp3iKM5WSG/S6+7ZjJ1DBsdB2x4VtnCxvezcWUDVAJ9jgsFO9Z H4+w1J2oJvWn1+9ZmTNTjPrUAUkmvi2+M9pQgPZOG4MHtkORe61ehz4EC4mTGbUPb1bH 9QWa9gp7aHE3fT67NrkAE0xkPnSbnt9cOKVK5RZh2urel1SE6CbCiVJRxpAmvFoC+BGS se9rk0Ogl1IbAbRUnbg9hwaNfxaApsDh4Xpjbsxpf9Zim0yrrhaUiA1gzQF51F+PDN4f wciA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685563573; x=1688155573; 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=88XdFTbrHk+zgo/9nKqPMnV1vAS6bpV3qe5bGBfKbI0=; b=jwZIiUkO9Tw70iWC0huy91JlxBK2s1zhT+w9p7h3lDUKEQ1Mx5WZ4y5GIGLFm15M6f REHXC/fdT/XYnd4YLYL/5LB9ocqSJTJiCSmuukF8fz0OBeOzzuqYheJ1bC4PdUMt33qD F3m4ztj5Mp/aBGZIiydRPV9Bod0TvGznWZLlSt4MnW+JIEtisl3h9hQHZAt+W+1RW1l0 /b4AU1hTpr6Uhhb0Li5qTGEmrpOUVDN5VWEFW8CDyKSgewJ3nyz9251CBKEeEvcq3zOG GsxopsaJfkFaJxxOrlMpgPyztXFlyUCvRZfmv47z2nA06HrHPiri1eB1oUXfQCWvESoG 24iQ== X-Gm-Message-State: AC+VfDxlK5l/xWT6u9FSq9kSWZ/dMrJUrI9Hb20PAt1aCA3ZkytJi3I/ puVVIOZO/MgovT6pCUSTDo+jaw== X-Received: by 2002:a17:907:6d93:b0:959:5407:3e65 with SMTP id sb19-20020a1709076d9300b0095954073e65mr6877104ejc.55.1685563572858; Wed, 31 May 2023 13:06:12 -0700 (PDT) Received: from [192.168.1.20] ([178.197.199.204]) by smtp.gmail.com with ESMTPSA id f13-20020a170906560d00b009603d34cfecsm9463283ejq.164.2023.05.31.13.06.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 31 May 2023 13:06:12 -0700 (PDT) Message-ID: <69d355ff-90e1-09d2-d4ff-0d7dedc8addb@linaro.org> Date: Wed, 31 May 2023 22:06:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v11 1/2] dt-bindings: spi: add loongson spi Content-Language: en-US To: zhuyinbo , Conor Dooley Cc: Mark Brown , Rob Herring , Krzysztof Kozlowski , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jianmin Lv , wanghongliang@loongson.cn, Liu Peibao , loongson-kernel@lists.loongnix.cn References: <20230522071030.5193-1-zhuyinbo@loongson.cn> <20230522071030.5193-2-zhuyinbo@loongson.cn> <20230524-pouncing-variable-c520e85f8db8@wendy> <20230524-relative-trimmer-046fb26a7764@wendy> <99b362c2-640c-9150-26ee-e9add4483886@loongson.cn> From: Krzysztof Kozlowski In-Reply-To: <99b362c2-640c-9150-26ee-e9add4483886@loongson.cn> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 On 25/05/2023 04:22, zhuyinbo wrote: > > > 在 2023/5/24 下午6:29, Conor Dooley 写道: >> On Wed, May 24, 2023 at 05:44:38PM +0800, zhuyinbo wrote: >>> >>> >>> 在 2023/5/24 下午4:56, Conor Dooley 写道: >>>> On Mon, May 22, 2023 at 03:10:29PM +0800, Yinbo Zhu wrote: >>>>> Add the Loongson platform spi binding with DT schema format using >>>>> json-schema. >>>>> >>>>> Signed-off-by: Yinbo Zhu >>>>> Reviewed-by: Krzysztof Kozlowski >>>>> --- >>>>> .../bindings/spi/loongson,ls2k-spi.yaml | 41 +++++++++++++++++++ >>>>> MAINTAINERS | 6 +++ >>>>> 2 files changed, 47 insertions(+) >>>>> create mode 100644 Documentation/devicetree/bindings/spi/loongson,ls2k-spi.yaml >>>>> >>>>> diff --git a/Documentation/devicetree/bindings/spi/loongson,ls2k-spi.yaml b/Documentation/devicetree/bindings/spi/loongson,ls2k-spi.yaml >>>>> new file mode 100644 >>>>> index 000000000000..d0be6e5378d7 >>>>> --- /dev/null >>>>> +++ b/Documentation/devicetree/bindings/spi/loongson,ls2k-spi.yaml >>>>> @@ -0,0 +1,41 @@ >>>>> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) >>>>> +%YAML 1.2 >>>>> +--- >>>>> +$id: http://devicetree.org/schemas/spi/loongson,ls2k-spi.yaml# >>>>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>>>> + >>>>> +title: Loongson SPI controller >>>>> + >>>>> +maintainers: >>>>> + - Yinbo Zhu >>>>> + >>>>> +allOf: >>>>> + - $ref: /schemas/spi/spi-controller.yaml# >>>>> + >>>>> +properties: >>>>> + compatible: >>>>> + enum: >>>>> + - loongson,ls2k-spi >>>> >>>> I am sorry to jump in here at such a late stage with a (potentially) >>>> trivial question. "ls2k" is the SoC family rather than a specific model >>>> as far as I understand. >>>> The answer is probably yes, but do all SoCs in the family have an >>>> identical version of the IP? >>> >>> >>> No, but the spi supported by this loongson spi driver are all the same >>> identical version, and other type or verion spi will be supported as >>> needed in the future. >> >> Does having a catch-all compatible make sense then when not all SoCs in >> the ls2k family will actually be able to use this driver? > > > Yes, it is make sense as it can reduce the workload of the community. I missed it - that's a great comment. Hm, I don't know... Reviewing Loongson patches is quite a work, so I don't see here reduced workload. Please read existing guidelines: https://elixir.bootlin.com/linux/v6.1-rc1/source/Documentation/devicetree/bindings/writing-bindings.rst All of them. Best regards, Krzysztof