Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2338645iof; Wed, 8 Jun 2022 02:52:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzN0z8WDIe1VGrafvYYrDcDrAr7ExPde0nUchSziLk9H0Wk3ysu0B2F1zYjJXmAoPEc0B30 X-Received: by 2002:a63:692:0:b0:3fd:e23d:f7d5 with SMTP id 140-20020a630692000000b003fde23df7d5mr10381336pgg.323.1654681959169; Wed, 08 Jun 2022 02:52:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654681959; cv=none; d=google.com; s=arc-20160816; b=T2xDKExwhrBWRf6odgHUo2tz2X5ZfzbGJd/k1uVncsl61bh8DN9B6joClSNxWMZYPV T9Zai08ON/mc1v9jAdcsOISqCpXXTJiJ/adUtxqEwtXG/Z4qV8OZSFcNgx1RQYD6GUQP DAiONJwRvmJi4VvurCKZEwjTaMEUWzWLpdGBJHn0c2Lv3xHsZ4Uhgy2fWKuoMw4GVvOB w/2bkKqlaHc97h92tAQwWpNjYa2gjDxNNIDDUozLyCdmL2v0Af1q4wSm5wjj4oiKZ47C QkoT2h7hiDSqK6d+2am+FrDsmia+jCnBkVq60C/wxflzAri9fUk8bzgKQowf6VN5HQS8 YLaQ== 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=BOGJ0hmYd1E/cDWBfcReTmcYR/z3qD5M/WAMgLhHLXY=; b=lgf7ygyzXQxu7ZVIXYyJJ6etLJzxjiXHyoz3NLufxPr7qcARjNZ+F8oRAXXa0J875i cxJ3Ts6eemY4QmEeHS6EOb/qqvZ1A27nWCu4DcUVKQVGnqUW170Wu+rTJeUqY1YCZt3v gqdtLY5Xux0LO1wukbpzQGW6kjxuQn76P06Nr6waxLBYHVB5kqjhzwHyrYR0+rRl1k6Y BhOeqUncvbdmJ/DjJn6qoNzNZNH0IwePdty5+nXXnmSnN0Y2FIiTPcAFP3ZyXQRkOp31 Ym7kOWO5+9vNyg6JXbhvKkcf9hvSid3DyQu+Gej9fL5jqR3JlZoIKoBjCy+0iYzsol7F nj/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EQ5vhjjT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j13-20020a056a00234d00b00518b91753b2si33881912pfj.207.2022.06.08.02.52.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 02:52:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EQ5vhjjT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A5A13415218; Wed, 8 Jun 2022 02:22:41 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234008AbiFHJTl (ORCPT + 99 others); Wed, 8 Jun 2022 05:19:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234780AbiFHJNz (ORCPT ); Wed, 8 Jun 2022 05:13:55 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 133371B31A7 for ; Wed, 8 Jun 2022 01:34:36 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id v1so29297391ejg.13 for ; Wed, 08 Jun 2022 01:34:36 -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=BOGJ0hmYd1E/cDWBfcReTmcYR/z3qD5M/WAMgLhHLXY=; b=EQ5vhjjTXKriPWdW/xzhMglRMdU1gDSb0TYJz3AlO+fenefTMuLkvTd/NUHXe+ohAz NO8KjUUhEOZ0rSLGXFbhS0uRc8Dkih9VgCuVpScxz2uPN9xwNvztuq+RoAY+SK2B4mHU UvcxD11mjCO/neA1MArxoem3PEnrRSOaRrSofICNYelNbuNaSB4c0pVCaN3Nk0GuUf8S HfeAsnP5F1XJjs+OD9uqA9zrMrRIjeyNN8++Ljue777xDTzoencU3zpawjc9sy06KIDx aepMUpR54z1jXKG5wguw+Tu5aLMa9xPnd6SWIhmpJ+tDaYjRb+PEUmh+GempuQ+L8yBI KGGQ== 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=BOGJ0hmYd1E/cDWBfcReTmcYR/z3qD5M/WAMgLhHLXY=; b=E9FwwJrHVH2V3p9zjUfofV+lz1AOZfOPZvyoySnXe0FLqkDHJZBnbDh7r1nzY2X7ZZ i7AFkLNIdRiTP8qcrxjtqPubMaUcB3sPliFWf6TEq+AO2uxaca+og4FhGUyHZkZHlVCb qk00x3v8+7b5GRMFZ3pQuEbZ3F38fMuJ63/+JX4MYEQq+OHZZ4+/zEX46rCciS1bMttv dblrOhTk19WI0i+vu0dU+cLPQd2EICyo8T2u3m3OrKqOy0jekjJr1T1Zw0IyxWP0/uHu K3xYr9jDQBPYrNApD4B03YGLJNhY+w/JNxtdJYvauVu9t8iqX62iG/ZxUjzYGhOkmRfN 7xjw== X-Gm-Message-State: AOAM5327oy5/ouOg84FIrjWPtcJwvXrgTBQui7ZzZTh8qgJDs3QMd2w3 7MIj2v6a/2M9ysSf4/a00NdaKw== X-Received: by 2002:a17:906:9d01:b0:711:dc5d:c8a5 with SMTP id fn1-20020a1709069d0100b00711dc5dc8a5mr8558506ejc.432.1654677274596; Wed, 08 Jun 2022 01:34:34 -0700 (PDT) Received: from [192.168.0.189] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id de46-20020a1709069bee00b0070f6855b90bsm6323281ejc.170.2022.06.08.01.34.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Jun 2022 01:34:34 -0700 (PDT) Message-ID: <1345050e-b6a4-64be-1359-8d31d88769ab@linaro.org> Date: Wed, 8 Jun 2022 10:34:33 +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 v2 1/3] dt-bindings: mfd: atmel,flexcom: Convert to json-schema Content-Language: en-US To: Kavyasree Kotagiri , krzysztof.kozlowski+dt@linaro.org, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, claudiu.beznea@microchip.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, UNGLinuxDriver@microchip.com References: <20220607144740.14937-1-kavyasree.kotagiri@microchip.com> <20220607144740.14937-2-kavyasree.kotagiri@microchip.com> From: Krzysztof Kozlowski In-Reply-To: <20220607144740.14937-2-kavyasree.kotagiri@microchip.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, 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 07/06/2022 16:47, Kavyasree Kotagiri wrote: > Convert the Atmel flexcom device tree bindings to json schema. > > Signed-off-by: Kavyasree Kotagiri > --- > v1 -> v2: > - Fix title. > > .../bindings/mfd/atmel,flexcom.yaml | 97 +++++++++++++++++++ > .../devicetree/bindings/mfd/atmel-flexcom.txt | 63 ------------ > 2 files changed, 97 insertions(+), 63 deletions(-) > create mode 100644 Documentation/devicetree/bindings/mfd/atmel,flexcom.yaml > delete mode 100644 Documentation/devicetree/bindings/mfd/atmel-flexcom.txt > > diff --git a/Documentation/devicetree/bindings/mfd/atmel,flexcom.yaml b/Documentation/devicetree/bindings/mfd/atmel,flexcom.yaml > new file mode 100644 > index 000000000000..05cb6ebb4b2a > --- /dev/null > +++ b/Documentation/devicetree/bindings/mfd/atmel,flexcom.yaml > @@ -0,0 +1,97 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/mfd/atmel,flexcom.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Atmel Flexcom (Flexible Serial Communication Unit) > + > +maintainers: > + - Kavyasree Kotagiri > + > +description: > + The Atmel Flexcom is just a wrapper which embeds a SPI controller, > + an I2C controller and an USART. Only one function can be used at a > + time and is chosen at boot time according to the device tree. > + > +properties: > + compatible: > + const: atmel,sama5d2-flexcom Same comment applies as before... Your previous set was better here and for some reason you decided to change it. This should be enum so you avoid useless change next patch. > + > + reg: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + "#address-cells": > + const: 1 > + > + "#size-cells": > + const: 1 > + > + ranges: > + description: > + One range for the full I/O register region. (including USART, > + TWI and SPI registers). > + items: > + maxItems: 3 > + > + atmel,flexcom-mode: > + description: | > + Specifies the flexcom mode as follows: > + 1: USART > + 2: SPI > + 3: I2C. > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [1, 2, 3] > + > +patternProperties: > + "^serial@[0-9a-f]+$": > + description: See atmel-usart.txt for details of USART bindings. > + type: object > + > + "^spi@[0-9a-f]+$": > + description: See ../spi/spi_atmel.txt for details of SPI bindings. > + type: object > + > + "^i2c@[0-9a-f]+$": > + description: See ../i2c/i2c-at91.txt for details of I2C bindings. > + type: object > + > +required: > + - compatible > + - reg > + - clocks > + - "#address-cells" > + - "#size-cells" > + - ranges > + - atmel,flexcom-mode > + > +additionalProperties: false > + > +examples: > + - | > + flx0: flexcom@f8034000 { > + compatible = "atmel,sama5d2-flexcom"; > + reg = <0xf8034000 0x200>; > + clocks = <&flx0_clk>; > + #address-cells = <1>; > + #size-cells = <1>; > + ranges = <0x0 0xf8034000 0x800>; > + atmel,flexcom-mode = <2>; > + > + spi0: spi@400 { > + compatible = "atmel,at91rm9200-spi"; > + reg = <0x400 0x200>; > + interrupts = <19 4 7>; as pointed - looks like a IRQ flag > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_flx0_default>; > + #address-cells = <1>; > + #size-cells = <0>; > + clocks = <&flx0_clk>; > + clock-names = "spi_clk"; > + atmel,fifo-size = <32>; > + }; > + }; Best regards, Krzysztof