Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp682697rwb; Thu, 22 Sep 2022 05:16:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5TDC2tJ5c8Ynu4hF/V8ecWCkWW6K8b/OcKxpQExvEiTo4zIRHgN6dH5HhoSXtovsnE2YoA X-Received: by 2002:a17:902:7b90:b0:178:a983:5983 with SMTP id w16-20020a1709027b9000b00178a9835983mr3107414pll.135.1663848960354; Thu, 22 Sep 2022 05:16:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663848960; cv=none; d=google.com; s=arc-20160816; b=ptaPJJE93p4IClJ9dC6sjL6jKeXeF5xKenkobURu8+WWVlwWlEu9pgtB7j7Tt/5/TB oNE5B7LBcqeCXWyGYt071X7l91CRKyC8LoOmGqWwk4YqHzssl4T/R4Vl76uebkBVdHYi mP+lnF4Q9YoUfYKseTKdbuZgNxwVMlGjAO/NQ/zwgswStiwL16XRByvNOGmiN0YzY5P3 qovqKxvHCsXLi5Qnlbap7LSt0TivJLPuqL/1Dwr+JdBDaqZRIHeG3L/NWmU5Cp6p2PWn NmdxMz7dPOQxlFx2+cSbEpHeRFPs0L4kdgCKCs4py12Xobtrh9RHTaLEBC9RGY6lM+zK 7M8g== 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=GeVwhW9eDZ4kDaWTsEBC2FjkO94KxDsGd7Fw1mMzX5Y=; b=V8IVoYWESNl/EGv/ZrFrJkh6Utuch+TKdEKdgXdJH07m1Kku7YmTyJtCOV4fN0Gh4l 3DO0nNvgUDymNQwepxpxhLYl37zsVxSLT9EloFmyJS1nzaKqqug0ZniQM+WssCzT5xXP VLrJts198yW4jD0geDkHVaP74L08v+N8dKCa/+Q9ieqbJyPvzwP+pRuy7h3xEaNRIcgX YOSE6jIioZFH38GtPxW7QDNWCWfT5ppfOWgxgWtKFWKk2pZD2SAmFQ5hU3/LNXPN2z+r mrx5N9U6WHV92lwWMHqgsE2O/34QPUxV3UxAOAshZYds40aJUIk9BY4LxJNJXQM7yjOq 2R2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=RZMyvFiR; 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 26-20020a63175a000000b0043a061cc079si5933891pgx.358.2022.09.22.05.15.46; Thu, 22 Sep 2022 05:16: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=@microchip.com header.s=mchp header.b=RZMyvFiR; 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 S231702AbiIVLn1 (ORCPT + 99 others); Thu, 22 Sep 2022 07:43:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231607AbiIVLnD (ORCPT ); Thu, 22 Sep 2022 07:43:03 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B51CE9B84B; Thu, 22 Sep 2022 04:42:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1663846963; x=1695382963; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=CDmfB3LXHlTY7cYfzI1AY48LKvPYcljTNoK8CbnBZSU=; b=RZMyvFiRMg61io61NtC+Jtxbx2v4I71/RMZUMnduy8ISnUGlyWOxIMR7 x8pDzz5bUGnxbChTzba1xEFOD1B8BY5j3O7CsGvQTsYixaHqZ1F4dFo6L Ht9BXDGK4+LnxKLyydwBN37Mgw06oBGXdiZFiZ9dYpB+Ae4D5t8CiOB5F +Mo0pO/wc7jRNjYJMQacouWaiFtthg12lP41NJm7QwwAMbq9Dqpat4+Sd a1QoYpqZ5r7HEjs4pKfPZw2qqXT1JFzoEDwuUkFYXxfgjDP82BeXAbO3i 35Bws9dJNFcWwbHsajSnMhthlBrYTgxN0BE5/Uc0CqNvjTo+lmUgYvWKG g==; X-IronPort-AV: E=Sophos;i="5.93,335,1654585200"; d="scan'208";a="178390512" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 22 Sep 2022 04:42:42 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Thu, 22 Sep 2022 04:42:42 -0700 Received: from ROB-ULT-M68701.amer.actel.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Thu, 22 Sep 2022 04:42:36 -0700 From: Sergiu Moga To: , , , , , , , , , , CC: , , , , , Sergiu Moga , Krzysztof Kozlowski Subject: [PATCH v5 4/9] dt-bindings: mfd: atmel,sama5d2-flexcom: Add USART child node ref binding Date: Thu, 22 Sep 2022 14:33:42 +0300 Message-ID: <20220922113347.144383-5-sergiu.moga@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220922113347.144383-1-sergiu.moga@microchip.com> References: <20220922113347.144383-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 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 Acked-by: Krzysztof Kozlowski --- v1 -> v2: - Nothing v2 -> v3: - Previously [PATCH 7] - Compare devices based on the compatible instead of the clock v3 -> v4: - add A-b tag, this was previously [PATCH 8] v4 -> v5: - 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 f283cfd84b2d..0ebe624c2d32 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