Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp9562475ioo; Sun, 5 Jun 2022 18:22:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUy3ATd1vQ/w2M80zOEjG8x2SojdFTEWiqupYWWpNW6wPKLmkqrLcIoySYlpYklhUIeQB1 X-Received: by 2002:a05:6402:3705:b0:42a:ba63:18b7 with SMTP id ek5-20020a056402370500b0042aba6318b7mr23514963edb.296.1654478550858; Sun, 05 Jun 2022 18:22:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654478550; cv=none; d=google.com; s=arc-20160816; b=RezPz5ItY83cbuvDKqVYbUVaKjCH3SmOQumsfoCa+8HCITWZ046GrG2XG6M9RYT8+A mbD6YLMP+tTBqh7rJdL83Ck7QTXGbSlR9qnKLxFOZXHZj4N43MLprD/O+o4PRwAr2suh F23FTERZtKiLyvY3ph1wZ38+rIEy+VUp6qeE7qvBpLTCwQwmFFjFpV8lGmxL5LRNhH7m z+CIk31QFMqLHNkuKIbjMPIpEBK91Z0tznJuJmU7TiZvrm2QoWMILGuucj5SBby7lqss V+xO3l2cJiBT1Dum1fKC9fGDcB/7LpE8AH41k/+xQtt+auR1T/aPsC75hwUjjpM9WYXs k7BQ== 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=PewCvKctxUOPMLL6xIrqCiIIPXvfnubL11lMaIwNaew=; b=w9qnDPDLH9rKpnqQMPFfsjz4z0HCQv0EHIOw2V759NcWRIrviVXJpTu1N90D1nf1zM d7nS9emrFTz6PH3PTo7tNEW3HPyMGAl+NnQdKBYM4FUN0veUPnRSyxNIeLx/CFJqgmD2 ldTzXO22bNf9zdLZf2ZoldxOrH5aenpj4whT+zFUivFuSThh7cUAu98oKYZxSU5THP// 0R3/F0zYJLe89Tqw4gyBoJZFDwf+QtGSAFxLkIgDzEwjbYrb79YTRLav4VfN8mXhfGXO KC63fNXN/gd+TRZuX45aZEFFClPAKAj+5cShAk7DZO/bvMzOXJGA/ObGpNN+ONT5o9KA zBng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=q23d1uet; 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=fail (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 i16-20020a1709064fd000b006fe8b1baec0si5274168ejw.709.2022.06.05.18.21.40; Sun, 05 Jun 2022 18:22:30 -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=fail header.i=@microchip.com header.s=mchp header.b=q23d1uet; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244301AbiFCMTS (ORCPT + 99 others); Fri, 3 Jun 2022 08:19:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229546AbiFCMTP (ORCPT ); Fri, 3 Jun 2022 08:19:15 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EACD26AE1; Fri, 3 Jun 2022 05:19:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1654258756; x=1685794756; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=uYE4zsL0RT5NW/SsDoQ5iLL0iUpJOYqdz3oM4lE7dQA=; b=q23d1uetmrVv7hOmocTrRZLFcQvJA+IpFc/t0ODFZyJq/pCzetJIjP2d byChKX/JG16h+1qcZxUHFNI0fbprgp70OcJ+4+jmgW0WWHxKSa+bVCTDz yI3W+Jm933U6icyfBkAIv/NIrt/6tgpcSGCTuQvWIQxsnuIHPRD1gqexl E2X3jl//oYl8Mz8uciwG6m36bV0Bzo6UqIbm/rZ8DVO5uj8/6FNolRedR bg2/JsgRapEOAMXHi2oQSBtEhewwWnxe8BfEG2WP6BfZgpqf74BnCwieA Oi29pamaa+8hU7ZzYndNaf3JAQNc51lGj/03UxfctLzTHq8z2Q6C61isl g==; X-IronPort-AV: E=Sophos;i="5.91,274,1647327600"; d="scan'208";a="166634006" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 03 Jun 2022 05:19:15 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) 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.2375.17; Fri, 3 Jun 2022 05:19:14 -0700 Received: from kavya-HP-Compaq-6000-Pro-SFF-PC.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Fri, 3 Jun 2022 05:19:11 -0700 From: Kavyasree Kotagiri To: , , , , , CC: , , , Subject: [PATCH 2/3] dt-bindings: mfd: atmel,flexcom: Add new compatible string for lan966x Date: Fri, 3 Jun 2022 17:48:01 +0530 Message-ID: <20220603121802.30320-3-kavyasree.kotagiri@microchip.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220603121802.30320-1-kavyasree.kotagiri@microchip.com> References: <20220603121802.30320-1-kavyasree.kotagiri@microchip.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-5.0 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 LAN966x SoC flexcoms has two optional I/O lines. Namely, CS0 and CS1 in flexcom SPI mode. CTS and RTS in flexcom USART mode. These pins can be mapped to lan966x FLEXCOM_SHARED[0-20] pins and usage depends on functions being configured. Signed-off-by: Kavyasree Kotagiri --- .../bindings/mfd/atmel,flexcom.yaml | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mfd/atmel,flexcom.yaml b/Documentation/devicetree/bindings/mfd/atmel,flexcom.yaml index 221bd840b49e..6050482ad8ef 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,lan966x-flexcom reg: maxItems: 1 @@ -46,6 +48,21 @@ properties: $ref: /schemas/types.yaml#/definitions/uint32 enum: [1, 2, 3] + microchip,flx-shrd-pins: + description: Specify the Flexcom shared pins to be used for flexcom + chip-selects. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 20 + + microchip,flx-cs-names: + description: Chip select names. "cts", "rts" for flexcom USART "CTS" and + "RTS" lines. "cs0", "cs1" for flexcom SPI chip-select lines. + items: + enum: [ cs0, cs1, cts, rts ] + minItems: 1 + maxItems: 2 + patternProperties: "^serial@[0-9a-f]+$": description: See atmel-usart.txt for details of USART bindings. @@ -80,6 +97,8 @@ examples: #size-cells = <1>; ranges = <0x0 0xf8034000 0x800>; atmel,flexcom-mode = <2>; + microchip,flx-shrd-pins = <9>; + microchip,flx-cs-names = "cs0"; spi0: spi@400 { compatible = "atmel,at91rm9200-spi"; -- 2.17.1