From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ABF6DC433EF for ; Wed, 29 Jun 2022 13:25:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5UFD6ETrbnFvpbtdyO1+pS9Ph1hg+oPHSPXF/0XwoSI=; b=N/zsG7F7B1JpQ/ cuUY3pFBFCpruh+fxx7LoaxV5zGP/U5agZafLup3OCM8yU/P+0USC9AvPfBSpJ1ATYvJ7xJTjVnqY 1Q1kAuUxPlLFjdwtFGQXtKyU9Vh1U47yp3iyx+SVssrpH20v9N5C9Fcn5agF0qENljK0Ly5HGh4aH FfInz0vRe9a4VavzReUpekmLoxSTV90BtGHjJvSzx8LowM/6aaxMSH9n1fQT32K0CIOW+/MtSBxkS Hw0na0bHOVNzg8pf0Fn63zx8dp+8EVz9wV4X9vuzelfoYHeGwDDYrn7KBX4DlC0F6ab5bUq4S8QX0 yAPNLvNm46Hn7k1mQ7yQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o6Xfl-00CBbW-Vp; Wed, 29 Jun 2022 13:24:02 +0000 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o6Xfh-00CBXx-Sm for linux-arm-kernel@lists.infradead.org; Wed, 29 Jun 2022 13:23:59 +0000 Received: by mail-ej1-x62b.google.com with SMTP id fi2so32531887ejb.9 for ; Wed, 29 Jun 2022 06:23: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=bTc+9vraxg+Jp5bKZOKnmt3sZm7i9sLfDA3h0E40ZE0=; b=kuTZc/BMdKAqCExUt2A8qTipZw8vfXBlk3C1NkvhN1p+yEqZmGRE8a1vRdzbc9HFHw sJgEJreP4zorhl7lPCqvI4GvePU7NY9g3Q43XF2R6PBKJq074n7/I59hGjoGUHCDwSN/ rfAN3r9Ca8oan4l+NphL4xHs+QVMSBYWtqXWY5lHjakGRYWpFPX5iq0K/Oa/So+G7ihV dnzn3CEbyb/ECUR/BsKu2rXe+Oc6DXNOB/+wGb4ld0OzLSbl6ipOXyIkekI+eKDJTvNW D7WECRmatbLhomSFBeMGgEFnd+JYg7eX/itdHpvb/EmeDTUYbeMfGGFzcWK6vFgtb1bK LCPQ== 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=bTc+9vraxg+Jp5bKZOKnmt3sZm7i9sLfDA3h0E40ZE0=; b=0r3pzgoeeFD2BnV2lM0zZqslZ0zRSLOKsWKHFlXSbgb3r0Q/gKPHVwGU/5vKM07Rix B1RVcVKK/MmUjEwQTWu6FQUeOpxSJ6gs8BwaBo/2hr2/ZD3fYoWF8mXlVFulIHzcmMOn mkCG35PWyvYwuyJGwBCQyWKVW+LqNrTox3Ujyarf9RVPEc91DtewsVcGjqIALumSrxGG /6yuaPJBLv/t4+i3vgaXc/cweE/2fmcSshYWoAsKF8JacT/VA5cggRVbb/e1D7eC8LQb zT8g3SbECLURty3ky7BOyvg/hSIfiLY8sQVPuZz+Oy9KqAt0dSYRrPcoKuhPFdZgDIAK /gAQ== X-Gm-Message-State: AJIora+fN2L/NmDI3wCGIneTghZ9HImSLcmH/g2ahLu8wiXU/KvVwbYC BmVv7lgrThAuvt3EKAHMGRNU0A== X-Google-Smtp-Source: AGRyM1v11VnSNbZ6+il0NcaTX8oa+GpOwQoB5uOk6h/4PSodDcPkMaY3ClrXxIlnVUVvaEiCBXZdvQ== X-Received: by 2002:a17:906:58cf:b0:722:e4e1:c174 with SMTP id e15-20020a17090658cf00b00722e4e1c174mr3326097ejs.85.1656509034201; Wed, 29 Jun 2022 06:23:54 -0700 (PDT) Received: from [192.168.0.185] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id i25-20020a056402055900b00435681476c7sm11456559edx.10.2022.06.29.06.23.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Jun 2022 06:23:53 -0700 (PDT) Message-ID: Date: Wed, 29 Jun 2022 15:23:52 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH] dt-bindings: spi: convert spi_atmel to json-schema Content-Language: en-US To: Sergiu Moga , broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, claudiu.beznea@microchip.com Cc: linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kavyasree.Kotagiri@microchip.com, UNGLinuxDriver@microchip.com References: <20220629125804.137099-1-sergiu.moga@microchip.com> From: Krzysztof Kozlowski In-Reply-To: <20220629125804.137099-1-sergiu.moga@microchip.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220629_062357_994486_3718A995 X-CRM114-Status: GOOD ( 20.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 29/06/2022 14:58, Sergiu Moga wrote: > Convert SPI binding for Atmel/Microchip SoCs to Device Tree Schema > format. > > Signed-off-by: Sergiu Moga > --- > .../devicetree/bindings/spi/atmel,spi.yaml | 82 +++++++++++++++++++ > .../devicetree/bindings/spi/spi_atmel.txt | 36 -------- > 2 files changed, 82 insertions(+), 36 deletions(-) > create mode 100644 Documentation/devicetree/bindings/spi/atmel,spi.yaml > delete mode 100644 Documentation/devicetree/bindings/spi/spi_atmel.txt > > diff --git a/Documentation/devicetree/bindings/spi/atmel,spi.yaml b/Documentation/devicetree/bindings/spi/atmel,spi.yaml > new file mode 100644 > index 000000000000..751618a47235 > --- /dev/null > +++ b/Documentation/devicetree/bindings/spi/atmel,spi.yaml > @@ -0,0 +1,82 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +# Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/spi/atmel,spi.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Atmel SPI device > + > +maintainers: > + - Mark Brown This should be rather someone from Microchip. > + > +allOf: > + - $ref: "spi-controller.yaml#" No need for quotes. > + > +properties: > + compatible: > + oneOf: > + - items: > + - const: atmel,at91rm9200-spi > + - items: These are not items, just single entry. Should be combined with above and made an 'enum'. > + - const: microchip,sam9x60-spi > + - items: > + - const: microchip,sam9x60-spi > + - const: atmel,at91rm9200-spi This is wrong. Either this is a fallback or it is not. It's not the Schroedinger's cat... Maybe your DTS are wrong. > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + cs-gpios: true No need, coming from spi-controller.yaml. > + > + clock-names: > + description: > + Tuple listing input clock names, "spi_clk" is a required element. Skip description. > + contains: > + const: spi_clk > + additionalItems: true no additionalItems. > + > + clocks: > + maxItems: 1 > + > + atmel,fifo-size: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: | > + Maximum number of data the RX and TX FIFOs can store for FIFO > + capable SPI controllers. minimum and maximum for values, if it is known. > + > +required: > + - compatible > + - reg > + - interrupts > + - clock-names > + - clocks > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + #include > + > + spi1: spi@fffcc000 { > + compatible = "atmel,at91rm9200-spi"; > + reg = <0xfffcc000 0x4000>; > + interrupts = <13 IRQ_TYPE_LEVEL_HIGH 5>; > + #address-cells = <1>; > + #size-cells = <0>; > + clocks = <&spi1_clk>; > + clock-names = "spi_clk", "str2"; This does not make really sense. You have one clock. > + cs-gpios = <&pioB 3 GPIO_ACTIVE_HIGH>; > + atmel,fifo-size = <32>; > + > + mmc@0 { > + compatible = "mmc-spi-slot"; > + reg = <0>; > + gpios = <&pioC 4 GPIO_ACTIVE_HIGH>; /* CD */ > + spi-max-frequency = <25000000>; > + }; Best regards, Krzysztof _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel