Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4525253rwb; Wed, 17 Aug 2022 01:11:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR6Kr8+yuBcRYQRfJEH5hbTYvyCm8PfFfeJ7ZW/ceFoP/lt2wux6O5K2iCtgVpwL0qE0lwE/ X-Received: by 2002:aa7:de18:0:b0:43d:30e2:d22b with SMTP id h24-20020aa7de18000000b0043d30e2d22bmr22288927edv.224.1660723909562; Wed, 17 Aug 2022 01:11:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660723909; cv=none; d=google.com; s=arc-20160816; b=iDUfVtJgKZB5MUH36gT7ahYVr/cjwepoPLqxSegHvSCz64QtMjRQOL47tbn7zXDvtO +8HGRL815AiLH5tdQdEdHuQoLMjdnfVrHwNtCOGLAhb39qQsQptqei1djuYfNJu3F8qe nsXCCflssKHnKRQI5I+GbSChD5FnliyjIxLUStBPb+TMYKNOMNQ1y5l3Rx5x9mz0y3mx Mlhe0HM5p0WJ6ye2eid0aQltjxZq6tMbMv/OzVbdAt+WXKbj69hwZmrqLgiW/K58Fo7X zhJlA2R9lLGBqfDYgNqffnos32v7Tv8y8DTh7aQLlSTd7Q/cG4+HfjWqjx5asIAIOviW JQMA== 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=mXmOnb3sM05x7/ax29Drb3XB4FAF835yj8Dum8v58Zw=; b=ZccYAR/HlbChylhPfgTPxLmpxx63BviVTOgmKi+7yJEBj1u8y248dFraNIWKNPao8c JFFHTJ+CYxlD/R2I4VLQ/SabRvQ98S/lJ/ge85MH6qmLH2ES+q78T9Qks0+AqHBObWlm sJ+C/+RWeIzJPHPvWtR2aV5JvD/JiT9+rsVxm0Ojv3zIAGD1660203vqOf4BVmQUdYWc tNf7nQsZvGdOVMulQxHvn+fnazIVY9LhkL02RzYWRZocJERqfAJLFcHW+Aj6qKUY3D+N mx2KCSyJnWfjfb5wP7gzh8HrlEwkXpzgyokDY+iDKdZa/QIKdot7cWT3WIQw9CG7j7Iy ntnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=uXonc+CG; 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 b17-20020a50ccd1000000b0043c7ceb229asi13647155edj.207.2022.08.17.01.11.24; Wed, 17 Aug 2022 01:11:49 -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=uXonc+CG; 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 S233858AbiHQIDf (ORCPT + 99 others); Wed, 17 Aug 2022 04:03:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233768AbiHQIDV (ORCPT ); Wed, 17 Aug 2022 04:03:21 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A00FF13E06; Wed, 17 Aug 2022 01:03:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1660723401; x=1692259401; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=5buFzwPMC/DKOL4yIcX4XKWfDIQhrT8qWoyq3H5eISU=; b=uXonc+CGCy8tJnh5prUS1f2BjqsHLPD9Ya6Ux1JiYeBTzTPrdO7WmY/V 1KsLa911n5yTGmU0Kk4FvKVO5ZdV/fsgkmkrU5DMFVFqkPaTy/x6izaod JuJYHImplUWEHajmoB7t6Lx9Yk9Xc2vZRonUreRuaFonRAlP42IMFbac+ p91bMtZb77bMZVVtPpjGSJhpyeNPZb7t/H1kgMO3C64oDaxf35dztjquy 5RWqOdYaa0qwlYF/IKDRvI3S3E78/fRH2/yEniKV+jXjUHTlqrwi12Jsq njWr9ju3xsOdOZFrnCu3cfAVR1Do1P2k+DpLVe1IbBNxYh/Ys6fIcBLr1 g==; X-IronPort-AV: E=Sophos;i="5.93,242,1654585200"; d="scan'208";a="169648943" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 17 Aug 2022 01:03:20 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Wed, 17 Aug 2022 01:03:18 -0700 Received: from ROB-ULT-M68701.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Wed, 17 Aug 2022 01:03:13 -0700 From: Sergiu Moga To: , , , , , , , , , , , , , CC: , , , , , , Sergiu Moga Subject: [PATCH 3/5] dt-bindings: mfd: atmel,sama5d2-flexcom: Add USART child node ref binding Date: Wed, 17 Aug 2022 10:55:16 +0300 Message-ID: <20220817075517.49575-4-sergiu.moga@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220817075517.49575-1-sergiu.moga@microchip.com> References: <20220817075517.49575-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,URIBL_BLOCKED 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 clock-names property, since the latter's respective property is supposed to contain the "usart" string. Signed-off-by: Sergiu Moga --- .../bindings/mfd/atmel,sama5d2-flexcom.yaml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/atmel,sama5d2-flexcom.yaml b/Documentation/devicetree/bindings/mfd/atmel,sama5d2-flexcom.yaml index e158af47c326..617331a5e66e 100644 --- a/Documentation/devicetree/bindings/mfd/atmel,sama5d2-flexcom.yaml +++ b/Documentation/devicetree/bindings/mfd/atmel,sama5d2-flexcom.yaml @@ -72,13 +72,20 @@ properties: patternProperties: "^serial@[0-9a-f]+$": - type: object + $ref: 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: ../spi/atmel,at91rm9200-spi.yaml + if: + properties: + clock-names: + contains: + const: usart + then: + $ref: atmel,at91-usart.yaml + else: + $ref: ../spi/atmel,at91rm9200-spi.yaml description: Child node describing SPI. -- 2.25.1