Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1117968ybb; Wed, 25 Mar 2020 16:16:15 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvbXrvafvq6WvURXm0W+IKqr+wTxK7EywLlraQ3RrNoZUM0EB9kUZ1IJmVsHHMpJmzsPmlJ X-Received: by 2002:aca:4f57:: with SMTP id d84mr4108696oib.161.1585178175189; Wed, 25 Mar 2020 16:16:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585178175; cv=none; d=google.com; s=arc-20160816; b=wkTqVTKHDqcgx59hC0SeNgDpsliD+HGbAzonkefj5xLIeGxbiQZ8adSSK1ATWE2w+l YB1CCfeEkpkbfeJegN1NtkWk6unPVxkV6wb+WBmSaMdbM1ZyFOlOBFmeP6fhTjrJaQlz rpW8Us5lKvTr/wTezA8xaJgsuIcEK6gb+7Vp+VQqPO92+hFNX/tZ3zj3IfL88at9PrAp PQ4Kz6r/EnZF5TP4XSbBh1GEF3nmtOs7LexY4QPRr641XLkw4pzMu8Z/uvTyQOsPQo/Z gadK1/UG3YKTqbbzrIS7OJe5zXUtHzwTurf2nFR5v99DdnD13Z/j14wSN45YhmfXCb7G RuZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=SPIXJlIhdbOBccJksy+yAraFsWv9Tjm6llDLB75j9R8=; b=ltk98FuZAaMaIzsYTTy2TgiQo6ZcQKipqKb/MAVy3AFNf4H3bP9zhxv1B9qLIRaXly pJh8/6JJmxfakpuBMD3UOc2dD+MuaLlW21J4OUW99PPxvwbHXtJbcytHOMrQzqFmttSN j3aL/PlpXKjPrPksQYlf9gJS1jbye0WHTHK8XuIoJg/U5Kb6KK3b6CfLyAzJN8vOKI0H 1mP2g35Gq7B4ElTRSr68kS3pBkchABDnKG2/jiCjAdBz0sccGYg4MyC/X1lThKStQtn/ FgMeHy3dTI69wM06AjoOkuQdCyRCrfTpuakIfp2GiwmYIlAhvG0FTDQ25wpeeW/DvVK0 es0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l126si228001oih.31.2020.03.25.16.16.02; Wed, 25 Mar 2020 16:16:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727707AbgCYXOn (ORCPT + 99 others); Wed, 25 Mar 2020 19:14:43 -0400 Received: from gloria.sntech.de ([185.11.138.130]:40188 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727560AbgCYXOm (ORCPT ); Wed, 25 Mar 2020 19:14:42 -0400 Received: from ip5f5a5d2f.dynamic.kabel-deutschland.de ([95.90.93.47] helo=phil.sntech) by gloria.sntech.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1jHFEI-0007ug-Sk; Thu, 26 Mar 2020 00:14:34 +0100 From: Heiko Stuebner To: gregkh@linuxfoundation.org Cc: jslaby@suse.com, andriy.shevchenko@linux.intel.com, matwey.kornilov@gmail.com, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, heiko@sntech.de, lukas@wunner.de, christoph.muellner@theobroma-systems.com, giulio.benetti@micronovasrl.com, Heiko Stuebner Subject: [PATCH v2 5/7] dt-bindings: serial: Add binding for rs485 receiver enable GPIO Date: Thu, 26 Mar 2020 00:14:20 +0100 Message-Id: <20200325231422.1502366-6-heiko@sntech.de> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200325231422.1502366-1-heiko@sntech.de> References: <20200325231422.1502366-1-heiko@sntech.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Heiko Stuebner RS485 has two signals to control transmissions "drivee enable" (RE) and "receiver enable" (DE). RE is already handled via the uarts RTS signal while RE signal on most implementations doesn't get handled separately at all. As there still will be cases where this is needed though add a gpio property for declaring this signal pin. Signed-off-by: Heiko Stuebner --- Documentation/devicetree/bindings/serial/rs485.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/rs485.yaml b/Documentation/devicetree/bindings/serial/rs485.yaml index a9ad17864889..e55730de796d 100644 --- a/Documentation/devicetree/bindings/serial/rs485.yaml +++ b/Documentation/devicetree/bindings/serial/rs485.yaml @@ -44,6 +44,10 @@ properties: description: enables the receiving of data even while sending data. $ref: /schemas/types.yaml#/definitions/flag + rs485-rx-enable-gpios: + description: GPIO to handle a separate RS485 receive enable signal + $ref: /schemas/types.yaml#/definitions/flag + rs485-term-gpios: description: GPIO pin to enable RS485 bus termination. maxItems: 1 -- 2.24.1