Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6783789rwn; Tue, 13 Sep 2022 08:59:44 -0700 (PDT) X-Google-Smtp-Source: AA6agR5WNBwno9JQjAm/2o2cQidbINOEGT2fGbnRZFiEhZOpDQJ1o3sntIVVpaUBLx5ZSHhYif1D X-Received: by 2002:a05:6402:914:b0:451:22c5:2e28 with SMTP id g20-20020a056402091400b0045122c52e28mr16501809edz.294.1663084784039; Tue, 13 Sep 2022 08:59:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663084784; cv=none; d=google.com; s=arc-20160816; b=AmHltrLR01cnWeqKgx2SH0blIOwHN7vKzlLADClnCDX4HlkT5hNNLOyrkrG0uMwI8c Le3kTkpX67VUu7bCCbReJt18K+PdoZRy9uQKuJL1IcCO7gWSW0m2VJxxO80AG+pwnt76 6jN3M+drFjGFA6bgnFTTkwovq6tyr4zxgXKJjIreFO7c2cQ7g+rjp76d6PPtmILVQuDy Vgj3wrs6Idffcs7bVzHq3B8NjkI1w9aYYD9ll3NWsGFRE5R4TQeVaddwJfKuLn+oNlOo HwGmBM7M8mhfPz2VFCQptQmiAJNuph9d/hNSh0rTIlnikBD3F12Uco63RQVcLEo//lTu HBOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Isfo5HP9CrnFKL6NS9S6wGV03MubhM6ht7j45DVjnb8=; b=e6w3ZqrkvosDwDFhdlP62G+LKYOBsB38bH+gCOfCFTpIUQM8bO1u+nJ5wns6mKLZ7x LrYlSr2TAN4AQ/B/DTUXmOWj86C8UWNQrwNmotPSlAdyf8rhaabcmTQxsypB2CkixR25 jV/f9qs46D8snZZ/5BVlIU7nWahWiHyoiruQNAetwE6E7rxn25cD1ZClF0zZ2pxMQFGA AzNvqXC/USq9+puBo9BEH59zMyHc4Ij01EFqE67H/Emvbm1auyuxtwNrk49dXNxcsbo+ W81YGf/BT3rmum7/ozb8CO+iuVfZeWSaos1QTDs/xe8dUptVFdIRbYAwn+W6xRGEBuUK UvEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="D/TpzObe"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb40-20020a1709071ca800b00777581091d9si9644052ejc.634.2022.09.13.08.59.17; Tue, 13 Sep 2022 08:59:44 -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=@microchip.com header.s=mchp header.b="D/TpzObe"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232819AbiIMPxx (ORCPT + 99 others); Tue, 13 Sep 2022 11:53:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234688AbiIMPxE (ORCPT ); Tue, 13 Sep 2022 11:53:04 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECB3DD5A; Tue, 13 Sep 2022 07:54:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1663080870; x=1694616870; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=HJ21i8WyvavSW1Rex/vM3PxZNjMJUVVOLwpNbp1oD2g=; b=D/TpzObeehMyiEvzn+m90SnhRQEgr496q2p1e0TlBA6lm6wrWmPW5Lsh Ou7IdAawt06H3ZoGY9wWiWBlmvr7tKi/bsvlAqk7RwYfu56fhPeBMTGiP XKhdJQNZQKvF4XehKqW02ICkvjM4qkWIXbmw3UgOSOSke8ESKoEU2o7Ia lVW5QRJUtLhnZ5WTEBgQ97xjXbrQh9xgRl4ejbDvaIW62IqqO16N0Vik8 mKJmhseEOjQcNjwGGsh5ouQ/eAW49cpyagqJkSVfi9FiuJ8RSp7LETNBu KBmlqn7cjSw06ai4xe+cq7+5+Yz08TQpoBppVmx8X++4zboJByLQq/IEP w==; X-IronPort-AV: E=Sophos;i="5.93,313,1654585200"; d="scan'208";a="190644072" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 13 Sep 2022 07:25:28 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Tue, 13 Sep 2022 07:25:27 -0700 Received: from ROB-ULT-M68701.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Tue, 13 Sep 2022 07:25:22 -0700 From: Sergiu Moga To: , , , , , , , , , , , , , , , , CC: , , , , , Subject: [PATCH v3 08/14] dt-bindings: mfd: atmel,sama5d2-flexcom: Add USART child node ref binding Date: Tue, 13 Sep 2022 17:22:00 +0300 Message-ID: <20220913142205.162399-9-sergiu.moga@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220913142205.162399-1-sergiu.moga@microchip.com> References: <20220913142205.162399-1-sergiu.moga@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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 compatible string. Signed-off-by: Sergiu Moga --- v1 -> v2: - Nothing v2 -> v3: - Previously [PATCH 7] - Compare devices based on the compatible instead of the clock .../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..0467dfcf7db5 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: + compatible: + contains: + const: atmel,at91sam9260-usart + then: + $ref: /schemas/serial/atmel,at91-usart.yaml + else: + $ref: /schemas/spi/atmel,at91rm9200-spi.yaml description: Child node describing SPI. -- 2.34.1