Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp850470imi; Fri, 22 Jul 2022 10:50:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v9UKRGaqqbi738I80IJJJqqd71ur4m5ZjLo9sR2W7s/DgL02WM215m3E+X3p72l0wYNoxc X-Received: by 2002:a17:903:248:b0:168:cf03:eefe with SMTP id j8-20020a170903024800b00168cf03eefemr971438plh.124.1658512249194; Fri, 22 Jul 2022 10:50:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658512249; cv=none; d=google.com; s=arc-20160816; b=CA9/W28COSkClGhkqEqYLGuRB6nUmjcqbcdnF3wAYunQIvRfUO3LqGtq/NFtzKqbdW 28pPiEWCPkhaQ4bmux2j/lIdFg3V+Gbx9le/7kL/CghCNn4+IHIU1HAR7T2qxSa6udR2 f2J+VcE3ojNAHcmxQEqgKfahEugkxd8/FtEmXGH0bd10aEgw2WG7AL6OtZGmDotLkh2H LJgxcT0bpwkP3/yTv0auIgmAnaRZ6Wf6mbyPeVAtSXh1uTaLhYqOJjEGbpLYIXTwm4VQ 5qqDYBAM6xwovAz6bgnltG6DsYq34EGgV4lPmSfVCy12Y8Npqs51rEeRZ1GRR2ubCgUA IXog== 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=4pDf7ez85QHUoBuUMoHgMnyuDNXTg+iV62WcG6bVoxE=; b=FlKEqQpbj8yLv9MUmRONT5rGvxdh/0ez6kC3I/tTAqjqRilWTQ2499nshBfshzQ+IF UoWtHKR8/sSMN7mjR2xUSfjPTKzEFNVr5B5xqcV9AK+6XsMtmzWF8qoxwTDKlRzjOeuE daOGh2d74KcznQJN0eC9dpCKUDyTtmvh4LUKwmTBTdnOJVu4q9NpSYbxTcYk/zx4jUZd jwL4kiXxzwmr3Z0wgRQ/07FvQXoslZ/1+5mnQd7P3Ls0IhMZJsMw8Of5d3dfhqfRKIgH GQl+meeKO+xAb0qepjBpDF3WO4/v/IEUgy5HPNxdGz5YF45glZ016c7K2+iTZDxI5qq+ ynAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k5jT7LN8; 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 v12-20020a17090a6b0c00b001ef81452eaasi832980pjj.38.2022.07.22.10.50.33; Fri, 22 Jul 2022 10:50:49 -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=k5jT7LN8; 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 S235585AbiGVRrB (ORCPT + 99 others); Fri, 22 Jul 2022 13:47:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235096AbiGVRrA (ORCPT ); Fri, 22 Jul 2022 13:47:00 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA09893697 for ; Fri, 22 Jul 2022 10:46:55 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id u14so6301639lju.0 for ; Fri, 22 Jul 2022 10:46:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=4pDf7ez85QHUoBuUMoHgMnyuDNXTg+iV62WcG6bVoxE=; b=k5jT7LN8Fx7VEkTi0XgPQxBYvaHMVqDhNuzeipXMEE2dmex+dbNJnlmZiPyNCJMZ2P Tc+7Z/KTvjKKzxfIihpYVp7o4uYWv8G5KY6JLb6/rgmcyvOEx53QIhkMr1TcCtHZtfjU kR2I+YWQCWY/iBDDjTQS8dhgAfJ/0K0bl8gJSMEbFijjb/Kz5ONZ/AnK82jGsRcYFGlo ww8uAvOc28X7SUpKNAUpNfi0Zd5z6ZTs0jfeIYhKjfVlo595c17U3QvI/4ImkcJcK0D4 1kk3nFzKiBm/S5GpZW+EwKlIH5ZfbHo/D94C8C9+GvpeC9PIm2ry3y0jI4UQANy9q4r/ XeNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=4pDf7ez85QHUoBuUMoHgMnyuDNXTg+iV62WcG6bVoxE=; b=sX5XeuyOlceVOdqPP/Lwme4+53/gLljtFOPSw9ScfKVrO7JjOB+h4u4GUQI3dslkAX D8zdvKPrWkMesN7ONjBCS2rN6sy5n+KeF77jirlJtdJMZt+IVNBWNb93mbEdAVp4af55 CzcbzEbhIXz6MSOPvpd+O3Uf1RRy4j4B1xDoOGZdoqQYe7AKMgWi0QdPx5WOBGzAmLNn wyjdOshUkP8zDreOtED4f/J1IxeuQm47SqV1enfZKpQYPF1tGz1JdC/6OO+Z1krKEaEp MVyRItc7Lk1/ucx3fD+3adMBsn5WS4TwtJylDvxbplJcslbnMydH/9VokzHdOi6W7mU3 cZ+A== X-Gm-Message-State: AJIora9ycqwLL6ezhdNq8rDd/OizX1MT3MQvEwmO7dkUVNiNnlyCgMuG RI14+5T3q9h+SmW9LvP/aOt47g== X-Received: by 2002:a2e:a5cb:0:b0:25d:7a70:2891 with SMTP id n11-20020a2ea5cb000000b0025d7a702891mr386558ljp.295.1658512013920; Fri, 22 Jul 2022 10:46:53 -0700 (PDT) Received: from [192.168.10.173] (93.81-167-86.customer.lyse.net. [81.167.86.93]) by smtp.gmail.com with ESMTPSA id o1-20020a05651205c100b00489c7fb668dsm1163070lfo.182.2022.07.22.10.46.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Jul 2022 10:46:53 -0700 (PDT) Message-ID: <487a93c4-3301-aefd-abba-aabf4cb8ec90@linaro.org> Date: Fri, 22 Jul 2022 19:46:51 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 2/3] dt-bindings: SPI: Add Ingenic SFC bindings. Content-Language: en-US To: =?UTF-8?B?5ZGo55Cw5p2wIChaaG91IFlhbmppZSk=?= , tudor.ambarus@microchip.com, p.yadav@ti.com, michael@walle.cc, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: linux-mtd@lists.infradead.org, linux-spi@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, aidanmacdonald.0x0@gmail.com, tmn505@gmail.com, paul@crapouillou.net, dongsheng.qiu@ingenic.com, aric.pzqi@ingenic.com, rick.tyliu@ingenic.com, jinghui.liu@ingenic.com, sernia.zhou@foxmail.com, reimu@sudomaker.com References: <1658508510-15400-1-git-send-email-zhouyanjie@wanyeetech.com> <1658508510-15400-3-git-send-email-zhouyanjie@wanyeetech.com> From: Krzysztof Kozlowski In-Reply-To: <1658508510-15400-3-git-send-email-zhouyanjie@wanyeetech.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 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 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 22/07/2022 18:48, 周琰杰 (Zhou Yanjie) wrote: > Add the SFC bindings for the X1000 SoC, the X1600 SoC, the X1830 SoC, > and the X2000 SoC from Ingenic. > > Signed-off-by: 周琰杰 (Zhou Yanjie) > --- > .../devicetree/bindings/spi/ingenic,sfc.yaml | 64 ++++++++++++++++++++++ > 1 file changed, 64 insertions(+) > create mode 100644 Documentation/devicetree/bindings/spi/ingenic,sfc.yaml > > diff --git a/Documentation/devicetree/bindings/spi/ingenic,sfc.yaml b/Documentation/devicetree/bindings/spi/ingenic,sfc.yaml > new file mode 100644 > index 00000000..b7c4cf4 > --- /dev/null > +++ b/Documentation/devicetree/bindings/spi/ingenic,sfc.yaml > @@ -0,0 +1,64 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/spi/ingenic,sfc.yaml# File name should be rather based on first compatible, so ingenic,x1000-sfc.yaml > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Bindings for SFC in Ingenic SoCs > + > +maintainers: > + - 周琰杰 (Zhou Yanjie) > + > +description: > + The SPI Flash Controller in Ingenic SoCs. > + You miss here allOf referencing spi-controller. > +properties: > + compatible: > + oneOf: > + - enum: > + - ingenic,x1000-sfc > + - ingenic,x1600-sfc > + - ingenic,x2000-sfc > + - items: > + - enum: > + - ingenic,x1830-sfc > + - const: ingenic,x1000-sfc > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + clock-names: > + const: sfc Remove the clock-names entirely, no benefits. > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks > + - clock-names > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + sfc: spi@13440000 { > + compatible = "ingenic,x1000-sfc"; Use 4 spaces for example indentation. > + reg = <0x13440000 0x1000>; > + > + interrupt-parent = <&intc>; > + interrupts = <7>; > + > + clocks = <&cgu X1000_CLK_SFC>; > + clock-names = "sfc"; > + > + status = "disabled"; No status in example. > + }; > +... Best regards, Krzysztof