Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4870426iob; Mon, 9 May 2022 03:40:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSh8qdsFmGIamX13JJkQ36OaHDrSOn0MX7NiLJxz5RBYoPYgWsWyC7wgtM7oesjMDWVx5Q X-Received: by 2002:a17:902:d5ce:b0:158:48db:9719 with SMTP id g14-20020a170902d5ce00b0015848db9719mr15613838plh.7.1652092828532; Mon, 09 May 2022 03:40:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652092828; cv=none; d=google.com; s=arc-20160816; b=jeozjP6CACj9/8p9U2C3HbNkYLrYjMRNy/zfnbnC7RthlIplE4HXeqoUhtw6yOkfEP 0FB221E6JyuSb8lAlTScVizya5DYzi/hHHnP5Qq4TNXavAVIdvDO8X4lmB5mJNJLyL9+ sB61i/zgTudrlu+CTg8n4Nvc6CItZ1P0vxH2pnQZSuhNMk9acU7CSPsdS2dZieSEDD2Q oijGk3dxgEc2woyRlK5XWx7bDkG3evP+1QNV0g0uh/wgg2zQUoQYlog0j/18m70gk+jd JBgvZtjK4F37m+bigUscx0iCS3ZJsX9zmqRHD49Mv3B+qpk7yeHH9f1s1b/iv4LaoPxE GDRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Bdh3nsndEw7TBQ4vjyjY9+tbNZ5i0PEVBSwhn8vec5M=; b=wnmBuCkhaZeeCXGAth/Jb3XLsYJzxdWwSDXPiJFX4uUld90W0XoQhZWg2KYSWqZo/Q UC2gEwA18aOLhz4HsOaiUifLaXWSlnXqgpwCrYQbMet7r0Fx69DK0IMTVO2/4F+uGuq1 IDyewXsT+JEZ+EhxIjAEiEIs265UyMyhqL/r6zVXq0SkyRZJJouuFtq0cqzdCR+dEYBF QtarxjnVO8Nyey2NbUv0QrEItpPKjbdNrUf4N73WeS4O0WphNl5dcEjhUzVkVsNVZQ3r TBTEkuJ4qoA78pRmOYd/AHjBXhLexCkqxHLtRF9Nr2vomK49egy3ih39CKrTjn+B17vm PTeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=DJbo119j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h9-20020a170902f54900b0015629c201b8si12754481plf.358.2022.05.09.03.40.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:40:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=DJbo119j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5A3E21F2C18; Mon, 9 May 2022 03:06:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233409AbiEII5O (ORCPT + 99 others); Mon, 9 May 2022 04:57:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232093AbiEIIxr (ORCPT ); Mon, 9 May 2022 04:53:47 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F6DA248E0; Mon, 9 May 2022 01:49:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1652086195; x=1683622195; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=n8bFpjbKPYvw3e9bni1/T6bQ+4R6TyrCTJBZUgNett4=; b=DJbo119jsIT9ILlPUqLtxyaharrZlZM9b82hjGBbBVXKRmCAVkKigxKq PrG894/dqrNNZq+kImyQ0sDZnEj/GeDqVSZ0LaPbzCrnsdobYaQ6v2aWs 84spgHeaowncODVVSjnoj847puOk1cQKcJepr0T4FAZTtCZH8mTrlic1W SEVxG9S4I0f2Rtvtt431cB/Xonjv2ZHJYttzSE4FfPwZpcOgPe5cD+n1k M3L/42eFa868U5udhPKj66WRZ7bnhOk91IcXDwW65TzBECTzbnpzOVdtp 9GEwLWVO5R1/odEzJGDJWUax8kvZuNfhJ8yWPa6wBFuOBztxq1tOFKDSo g==; X-IronPort-AV: E=Sophos;i="5.91,210,1647327600"; d="scan'208";a="162812532" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 09 May 2022 01:49:44 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) 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.2375.17; Mon, 9 May 2022 01:49:42 -0700 Received: from kavya-HP-Compaq-6000-Pro-SFF-PC.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Mon, 9 May 2022 01:49:37 -0700 From: Kavyasree Kotagiri To: , , , , CC: , , , , , , , Subject: [PATCH v2 2/4] dt-bindings: mfd: atmel,flexcom: Add lan966 compatible string and mux properties Date: Mon, 9 May 2022 14:19:18 +0530 Message-ID: <20220509084920.14529-3-kavyasree.kotagiri@microchip.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220509084920.14529-1-kavyasree.kotagiri@microchip.com> References: <20220509084920.14529-1-kavyasree.kotagiri@microchip.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Add lan966 flexcom compatible string and flexcom mux device tree properties. Signed-off-by: Kavyasree Kotagiri --- .../bindings/mfd/atmel,flexcom.yaml | 52 ++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mfd/atmel,flexcom.yaml b/Documentation/devicetree/bindings/mfd/atmel,flexcom.yaml index 79ec7ebc7055..228c095c84ca 100644 --- a/Documentation/devicetree/bindings/mfd/atmel,flexcom.yaml +++ b/Documentation/devicetree/bindings/mfd/atmel,flexcom.yaml @@ -16,7 +16,9 @@ description: properties: compatible: - const: atmel,sama5d2-flexcom + enum: + - atmel,sama5d2-flexcom + - microchip,lan966-flexcom reg: maxItems: 1 @@ -57,6 +59,27 @@ required: additionalProperties: false +allOf: + - if: + properties: + compatible: + contains: + const: microchip,lan966-flexcom + + then: + properties: + mux-controls: + minItems: 1 + maxItems: 2 + $ref: /schemas/types.yaml#/definitions/phandle-array + + mux-control-names: + minItems: 1 + $ref: ../mux/mux-consumer.yaml + items: + - const: cs0 + - const: cs1 + patternProperties: "^serial@[0-9a-f]+$": description: See atmel-usart.txt for details of USART bindings. @@ -89,4 +112,31 @@ examples: atmel,fifo-size = <32>; }; }; + + - | + flx3: flexcom@e0064000 { + compatible = "microchip,lan966-flexcom"; + reg = <0xe0064000 0x100>; + clocks = <&fabric_clk>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0xe0064000 0x800>; + atmel,flexcom-mode = <2>; + mux-controls = <&mux 0>; + mux-control-names = "cs0"; + + spi3: spi@400 { + compatible = "atmel,at91rm9200-spi"; + reg = <0x400 0x200>; + interrupts = <0 51 4>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&fabric_clk>; + clock-names = "spi_clk"; + pinctrl-0 = <&fc3_b_sck_pins>, <&fc3_b_rxd_pins>, + <&fc3_b_txd_pins>, <&fc_shrd9_pins>; + pinctrl-names = "default"; + atmel,fifo-size = <32>; + }; + }; ... -- 2.17.1