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 9CEE6C38145 for ; Thu, 8 Sep 2022 12:34:12 +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=BCfo1JNqaA6RQ+/3ZVYnlSvys3eIx8rN9IYhxwRa154=; b=DFMRpK/9OAxJ05 RSq7U3FmAzS09rbkC83CG07N47JtCtTq7THA+vylq1t/IWx1SULE3XfyRfw4hna8suUcxFC41ed3g LGAv9yFCw9J7bFbGXyyzTSpbby7vrHydaKKwFlhGStTclo7NrC3E6ygJBMWcPjUVPY7uYSX3hE7l9 P3ov2g9G7y0w8JuOl1lJbEK00+fagYL+bjl/u78XwFjh+0mBU+nnt/rRwaEeOoO6pNc317/ZTTJPh uciWlLOj48xHACDuxjAOSBcwvJL3VxyIoPp2a2kCM/6B6LOwrONGSarAvlocOp08QHI7NMyagjsX+ W7ktZPHS9VXUNHvI5gAA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oWGiV-003IXq-OE; Thu, 08 Sep 2022 12:33:11 +0000 Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oWGiR-003IV6-Ea for linux-arm-kernel@lists.infradead.org; Thu, 08 Sep 2022 12:33:08 +0000 Received: by mail-lj1-x22c.google.com with SMTP id l12so11272459ljg.9 for ; Thu, 08 Sep 2022 05:33:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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; bh=Qyru9SAfxdnNAoiz22FTxnAwNC5Cr+8SPNsc9ocSsIc=; b=f7wa2z+PB3fEAcSD3njThDARidFNQguSSunU6swdNpXzExqTrXH4PJgNHVhFxxvqct lYKOp2jWPUSJltKRlEsrvQexdKtaQT3i3dwr0iztMGW7jS+Jy927WOXT4DbmDQiFreKV wAFzs2TPxXf+6O0lIn3hJ0uB9wzGMAhxGSyuJqAFow8FmDkHjGTyCz33v9pZRtLLU8Bp iT+q+odD5f59VF/J/8iP35GYJflHIc0y0E8ANwCol0kCp0FhPGNJhjXrQdxmgI5UxSLS qhUTBv86bbgKwFlQZW7ELbvbwQ+MCIt2FPQpkGroIuea5QJ8BX/ZhbN4GghfQdEw8UZ1 Qdjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=Qyru9SAfxdnNAoiz22FTxnAwNC5Cr+8SPNsc9ocSsIc=; b=V9ySntmcwwEaySUSZ9+oZjWCzjKQV2YWqdJlTpJlwHSukEgxMzuuqfptIfab1a8HJ/ RutUcKHJmvPUPPXuZMErOoRTkJVu/uLq+OZVVkrV4sd9vvzZBzA/tYpodXZv0ect/12m VLEPudBRdBgmyGCxyJU2+hK05KxkBhIccgmgr0ulkKNWKEMOLjeLihIwsBn4ksNS5MdY cj4d1eP7MrnU/dO+LBlui/atJur2Id2Fl41bK6kam0ZXHEQx2QnTyMqVKTYAdoQU1eBa P1M+UZEVMLZHCQHSVBIH+pShXdxWk3xUCT56Gm09aMWuoiZZNpEdgfhYysQoAehe+pIH zTOQ== X-Gm-Message-State: ACgBeo0vTY4OgrP5YTt8DAx8/ivPLYv4CpxKvL22HDDfYA8lHNj+3/gr krtjSCf0qiZCZVsUvEsZhyY+nFKQh4csew== X-Google-Smtp-Source: AA6agR7V97zwiD9pYqVJ0dFEam4iMWv2WsE07yb8VQiXEY40nYMp8wnTZhtCr1GIsKgf9/LZQCcqVg== X-Received: by 2002:a2e:b16d:0:b0:26a:d1da:db8 with SMTP id a13-20020a2eb16d000000b0026ad1da0db8mr1709534ljm.217.1662640385823; Thu, 08 Sep 2022 05:33:05 -0700 (PDT) Received: from [192.168.0.21] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id s17-20020a056512215100b0048b17852938sm145414lfr.162.2022.09.08.05.33.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Sep 2022 05:33:05 -0700 (PDT) Message-ID: <633c8aa3-cc05-b855-24db-110a4863ff75@linaro.org> Date: Thu, 8 Sep 2022 14:33:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH v2 07/13] dt-bindings: mfd: atmel,sama5d2-flexcom: Add USART child node ref binding Content-Language: en-US To: Sergiu Moga , lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, claudiu.beznea@microchip.com, richard.genoud@gmail.com, radu_nicolae.pirea@upb.ro, gregkh@linuxfoundation.org, broonie@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, jirislaby@kernel.org, admin@hifiphile.com, kavyasree.kotagiri@microchip.com, tudor.ambarus@microchip.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, linux-serial@vger.kernel.org, linux-clk@vger.kernel.org References: <20220906135511.144725-1-sergiu.moga@microchip.com> <20220906135511.144725-8-sergiu.moga@microchip.com> From: Krzysztof Kozlowski In-Reply-To: <20220906135511.144725-8-sergiu.moga@microchip.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220908_053307_521991_FF3A6FF6 X-CRM114-Status: GOOD ( 17.13 ) 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 06/09/2022 15:55, Sergiu Moga wrote: > FLEXCOM, among other functionalities, has the ability to offer the USART > serial communication protocol. To have the FLEXCOM binding properly > validate its USART children nodes, we must reference the correct binding. > To differentiate between the SPI of FLEXCOM and the SPI of USART in SPI > mode, use the clock-names property, since the latter's respective > property is supposed to contain the "usart" string. > > Signed-off-by: Sergiu Moga > --- > > > v1 -> v2: > - Nothing > > > > .../bindings/mfd/atmel,sama5d2-flexcom.yaml | 16 ++++++++++++---- > 1 file changed, 12 insertions(+), 4 deletions(-) > > diff --git a/Documentation/devicetree/bindings/mfd/atmel,sama5d2-flexcom.yaml b/Documentation/devicetree/bindings/mfd/atmel,sama5d2-flexcom.yaml > index 0db0f2728b65..b5fb509f07ec 100644 > --- a/Documentation/devicetree/bindings/mfd/atmel,sama5d2-flexcom.yaml > +++ b/Documentation/devicetree/bindings/mfd/atmel,sama5d2-flexcom.yaml > @@ -72,13 +72,21 @@ properties: > > patternProperties: > "^serial@[0-9a-f]+$": > - type: object > + $ref: /schemas/serial/atmel,at91-usart.yaml > description: > - Child node describing USART. See atmel-usart.txt for details > - of USART bindings. > + Child node describing USART. > > "^spi@[0-9a-f]+$": > - $ref: /schemas/spi/atmel,at91rm9200-spi.yaml > + allOf: > + - if: > + properties: > + clock-names: > + contains: > + const: usart Devices are not different because they have or have not clock. Devices are different... because they are simply different models, so this should be different compatible. Best regards, Krzysztof _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel