Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2675078rwb; Mon, 19 Sep 2022 08:22:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5ZaOOLtJ2j6xbm8cBCZ2/ESoX304YnTkufQ8x2L8zcRH/yNtJ/Gyvho+pGa9f1lmuOVT4G X-Received: by 2002:a63:8948:0:b0:437:4915:4fe9 with SMTP id v69-20020a638948000000b0043749154fe9mr15830463pgd.61.1663600924873; Mon, 19 Sep 2022 08:22:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663600924; cv=none; d=google.com; s=arc-20160816; b=htuY/ybAN+a9PoPNU5rTu+8c9jGBqUPEGe2lNdMIumK7b1qDnQtibfSQepMw+DllWX x3lHwWEiOYDOiNvyJfyKdzhMT6VhN/pD1MOLQHiX2UyZENiP5MeOyBxThSpPFxfj0uO0 gcwcL6rzKoiIMEWAlq/nbH9kclmw1hc3sulX3s1XfOG62lvNHITnrmdX0xtfadOtdH1V mXZYCWJCMwsVsX0MYXqBiJX40KwLWDTPOOXZAlu+crrGpy9iG823z+SQBub/Q1w0VPqm wqayrTnkN2DV4lS0D5WLHs7H4VOqNFx1APdB2QsI4k4CMIVcfhHA2ZcwC7YO3unVBSWC mavg== 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=9JvHlgvTXv9P+MIORUBozrkofbnexfB9ED0ibVF58dQ=; b=TlynIGzIcagxhoZv5tZMLhPtiDaeP61EOKpQokFH/ljncv6G24V7fIfr7LVGe9nfFm 3Ml5Vu4PLl0rnXfdGvM+Hn2dZSYGmIhZ5qUXAcZKpx0nAEilVmgoPjxQGVIUGRP5qpli JCGOHall+wW1HA0FOF+jBhLUeGqoapFP67jL6i6YOcEH08d1PqAPfld5lqA/PcWF2b5T xIGMX+I36arWwLK315wgL2CfdiuW5DPUeiIn0K24R6ncBIkIvbnkyroBKgStVBYuFQL+ 0wvXddwIfu4mBhPOLWq8aJqHtELWY6D9MHkfRCMGxZsnAD4lMSC4m46SGMK4AOScym2H bXMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=bMhxVQSL; 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 pi6-20020a17090b1e4600b001faa99188f8si13820870pjb.84.2022.09.19.08.21.49; Mon, 19 Sep 2022 08:22:04 -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=bMhxVQSL; 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 S229880AbiISPON (ORCPT + 99 others); Mon, 19 Sep 2022 11:14:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229728AbiISPN7 (ORCPT ); Mon, 19 Sep 2022 11:13:59 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F305233A13; Mon, 19 Sep 2022 08:13:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1663600437; x=1695136437; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VP458oCOHjqOR7JXccLy0gPNHRVK7fPlldUzn0Oe8CU=; b=bMhxVQSLrSVlYVRgTatR+RcIL6+C7iJ+fq3zYBAKwMLv/Er/wzGuKFjA R9xCISIh/VQBbJipECQXsgfTXycD13b8YpzM7vW0+SmhQSjrvTGukAFxR RhFfuIl4MLHG2cJet0rwEu9NwG2B5EJFg7Pd1apdUW8/5gp1TufAjWKrV XLsHUerz+CoCNpBJ95DDxNfI2k/0746RFqIdWfrMWWWYk5iGH+KlsrRcU i4FMtIZlC+HXhT/WgYMuYFWWps3R3EJqN+xTccjqASKVNmc+taqtjG5XP 3ofWDJPDj1ZwrKnPUtixDtwq7eYgtBVsoVM73D68lg2XSTaRvgQoBZkcv A==; X-IronPort-AV: E=Sophos;i="5.93,328,1654585200"; d="scan'208";a="181106681" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 19 Sep 2022 08:13:56 -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; Mon, 19 Sep 2022 08:13:56 -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; Mon, 19 Sep 2022 08:13:52 -0700 From: Sergiu Moga To: , , , , , , , , , , CC: , , , , , Sergiu Moga , Krzysztof Kozlowski Subject: [PATCH v4 4/9] dt-bindings: mfd: atmel,sama5d2-flexcom: Add USART child node ref binding Date: Mon, 19 Sep 2022 18:08:42 +0300 Message-ID: <20220919150846.1148783-5-sergiu.moga@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220919150846.1148783-1-sergiu.moga@microchip.com> References: <20220919150846.1148783-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] .../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