Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp381413rwd; Thu, 1 Jun 2023 01:19:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Qxn1dkm4mRp5879M4FBdcLX+2aBVI+WUC44fjsCGLCXadB/hpMuFdICpwSXDqhMnaEyYw X-Received: by 2002:a17:902:e886:b0:1b0:f8:9b2d with SMTP id w6-20020a170902e88600b001b000f89b2dmr8794414plg.29.1685607540545; Thu, 01 Jun 2023 01:19:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685607540; cv=none; d=google.com; s=arc-20160816; b=s9U2kQ6Wf97vhk/B+wqZ9YL3OT+6S3YZsHpM4Gxb8RHihLw9DVXZEu9SAOjHNg2qhS xdkYJQ05+Xj+eRComYZyNf90MOpCY9TZI5AlFL0+pW2U6rlr2qjGTJNMSBGrqKG02WAi VRa0RSPkJceaI0SuXAL2aVwT9VVmzjOBHmu50Kc3r8ZXiLCNNqTHsR8FFGtRsAxvFpcc 3XD9mdiVAXYLbZh58NkIH7j23Gc9ZO7hzf0dmekmaA5MkacpAz3iihaLP1gVDsQ3jmiS 5wYEmltu2aOvGHwV57AfYs38YTxi7mpkYtMQSdBs3LV1ed+fo62WLAuQ08PhgGicKYkR fT9w== 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=+ZlmtiF4KA9ocnxQPoaWgoJR4/5KSbrAx1dT+mr7mGM=; b=cSqEYNjzkCwNN7MKuKpJeJ2O0BD2+zKw2rPkJ8tI0YjPTbsEiWlKHEfMTTRR4Y2qrC 1HKTZtbWWreaSOrLtOG3ivZCMgBSbKuYVBNcQ4XWME0onVfFBTiqLnu9SJC9NITwUB29 OW9Ue/9yvw+c9xPSC1L4Uk/1gTvcpSOKmiSMLCfhhcfhTtr6zDi5WxYTfhwyWtfnTlLL awvKSDSjpGLn+/tXke8MqktPMLk7R2p2gfTqIJn9TShz0df9exaMM9n/FYqOsDzPB7CX uovBYLwLKmKu5YWp4KkD4WKah9XjGnib75LJJThlflOl13d3dywh/+NBLjZsEWVazHM8 0IIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="W7NFa7T/"; 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 o7-20020a170902778700b001adfe96d41esi2251854pll.566.2023.06.01.01.18.45; Thu, 01 Jun 2023 01:19:00 -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="W7NFa7T/"; 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 S231454AbjFAIQd (ORCPT + 99 others); Thu, 1 Jun 2023 04:16:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230222AbjFAIQa (ORCPT ); Thu, 1 Jun 2023 04:16:30 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAE33E2 for ; Thu, 1 Jun 2023 01:16:27 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-96fa4a6a79bso66018066b.3 for ; Thu, 01 Jun 2023 01:16:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685607386; x=1688199386; 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=+ZlmtiF4KA9ocnxQPoaWgoJR4/5KSbrAx1dT+mr7mGM=; b=W7NFa7T/Oae6bC96fLKOOD7Sb+BPavX6Psf0Cwp9e8TPJgPtXT/35jB3AE2+2yMRkz 9UlpledBPB25lpNULBYhsiKQf/hEqyMzQQqB3eU62AnDBtlBFAsigfMCs5zi63gloBGv ikvR2pv0+B6jIzpVq/msFLaKiDbA+uAjvE9MR0youdgb4jhbgvZdI0H6llksNEtOsm1I 0ngAdtY+2HAQhJubh5BaiSGaMBFSlaGrSBaZfwk+SOvZkHgNJ5yp1yUWKGXb/x3o4Ou8 6804uC9lSlsEgDO93F02hK7wDaF1jMN8ecPSzlmcnMDeXWVQQxnIpiSHNT57jeeqc9mR 1dqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685607386; x=1688199386; 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=+ZlmtiF4KA9ocnxQPoaWgoJR4/5KSbrAx1dT+mr7mGM=; b=HZ4vtlOz+uC2CcbByZpR0xZz8/lzvtU9mpeUxGHrRYH1vl0b/b1hJ5kHVbGLBEsthg eaCtt0RSXcGUoVfwVYwgugp98bsIUt/xKCu9W67t6f9cGQIXyufmJH56xeQtF6uxpB0S lZJ7ucWvHb0rBdxDUPmMbvbW2lEO3YUk2KQiTo61zh8syz4/UyVlcv3SnrlwTibtV5T1 ohvOX/n9kOyexwwfmN21FW9wVnG6DnxF3QVIvXdYLUbaxIajoC9tO3DeLFI9DreJGokD FFFo3L54eD7iY/Junjb4cvcK9wB1FGM8JFahh2Iimq51I+qsODwpOar8Lyft0vl8673R 6nBQ== X-Gm-Message-State: AC+VfDxBUwSMUsEJNt0POwsX8hpCRKke/LpoYQRUKGfPpjmctCpMetqt 7ogos61F4dHit9hSuCus/dMb+A== X-Received: by 2002:a17:906:fd82:b0:96a:6f35:d1a5 with SMTP id xa2-20020a170906fd8200b0096a6f35d1a5mr7805033ejb.67.1685607386283; Thu, 01 Jun 2023 01:16:26 -0700 (PDT) Received: from [192.168.1.20] ([178.197.199.204]) by smtp.gmail.com with ESMTPSA id u8-20020a1709060b0800b0096f920858afsm10170697ejg.102.2023.06.01.01.16.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Jun 2023 01:16:25 -0700 (PDT) Message-ID: <88a6ba33-2494-e4c7-eba2-d31c0deeb308@linaro.org> Date: Thu, 1 Jun 2023 10:16:23 +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 v1 17/43] dt-bindings: spi: Add Cirrus EP93xx Content-Language: en-US To: Nikita Shubin , Alexander Sverdlin , Arnd Bergmann , Linus Walleij , Mark Brown , Rob Herring , Krzysztof Kozlowski Cc: Michael Peters , Kris Bahnsen , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230424123522.18302-1-nikita.shubin@maquefel.me> <20230601053546.9574-18-nikita.shubin@maquefel.me> From: Krzysztof Kozlowski In-Reply-To: <20230601053546.9574-18-nikita.shubin@maquefel.me> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 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 01/06/2023 07:34, Nikita Shubin wrote: > Add YAML bindings for ep93xx SoC SPI. > > Signed-off-by: Nikita Shubin > --- > > Notes: > v0 -> v1: > Krzysztof Kozlowski: > - replaced maintainers > - removed wildcards > - use fallback compatible and list all possible compatibles > - drop quotes in ref > - dropped "clock-names" > - dropped label > - fix ident > > .../devicetree/bindings/spi/spi-ep9301.yaml | 69 +++++++++++++++++++ > 1 file changed, 69 insertions(+) > create mode 100644 Documentation/devicetree/bindings/spi/spi-ep9301.yaml > > diff --git a/Documentation/devicetree/bindings/spi/spi-ep9301.yaml b/Documentation/devicetree/bindings/spi/spi-ep9301.yaml > new file mode 100644 > index 000000000000..c363b25a3074 > --- /dev/null > +++ b/Documentation/devicetree/bindings/spi/spi-ep9301.yaml > @@ -0,0 +1,69 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/spi/spi-ep9301.yaml# Filename based on compatible, so missing prefix, wrong order of name components. This applies everywhere, not to some files only. Applied to all your bindings. > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: EP93xx SoC SPI controller > + > +maintainers: > + - Alexander Sverdlin > + - Nikita Shubin > + > +allOf: > + - $ref: spi-controller.yaml# > + > +properties: > + "#address-cells": true > + "#size-cells": true Drop these two. > + > + compatible: Anyway, compatible is always first. > + oneOf: > + - const: cirrus,ep9301-spi > + - items: > + - enum: > + - cirrus,ep9302-spi > + - cirrus,ep9307-spi > + - cirrus,ep9312-spi > + - cirrus,ep9315-spi > + - const: cirrus,ep9301-spi > + > + reg: > + items: > + - description: SPI registers region > + > + interrupts: > + maxItems: 1 > + > + clocks: > + items: > + - description: SPI Controller reference clock source > + > + cs-gpios: true Drop, not needed. > + > + cirrus,ep9301-use-dma: > + description: Flag indicating that the SPI should use dma > + type: boolean In such case where are dmas? Unless you meant some internal dma controller? In such case extend the description because now it just duplicates property name. > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + spi@808a0000 { > + compatible = "cirrus,ep9301-spi"; > + reg = <0x808a0000 0x18>; > + interrupt-parent = <&vic1>; > + interrupts = <21>; > + clocks = <&syscon EP93XX_CLK_SPI>; > + cs-gpios = <&gpio5 2 0>; Use proper gpio defines for flags. > + cirrus,ep9301-use-dma; > + }; > + > +... Best regards, Krzysztof