Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2241137ybk; Sun, 17 May 2020 14:58:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRLssDSNudbCOE6ff3tYnfQp2ZaAYvTLtKnBXih+AvE2j6a88pnIzVHBDwzZjf85TYKmt6 X-Received: by 2002:a17:906:f916:: with SMTP id lc22mr12859904ejb.96.1589752716572; Sun, 17 May 2020 14:58:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589752716; cv=none; d=google.com; s=arc-20160816; b=BymJq8IMPOKJWM+C/7dFuTVWarMQn9BBgtEeqfi4owfi59cFmd7Z19C5alQviFyzZa CsiL2BTJf67AHjx7CRvWntPd8xkKN+T+CdHRWAejtJUEKEdXkLQcLjflj2MSe+GjFLgI 5zl2UQEyh5FsGoE9+75yq9T5Yuv+KwO+kX5w0NWZkjy6lbL/w1YqD9rwvw0qp4FWBUg3 ROc16tJSoIJ1Px8L0+f5jUtZhhco5/S+OYWHizap6jMGZ6J7n5trlfj8DhwSzF98MzXX zowvxH3N98bQsHrv6J20mdD2UpS7hSbO5haO+Ddwa3YiS5rczLD06T/QSFFn4bCRDJoL DIXQ== 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=JoMqIgL4GmZMsU/Bkt1UaX3S7T83IrgUv+R5cfJhBVY=; b=mXEqC5b83cw2Nal+g9uHDoeVHWKdhayn81ZS2yT5/OyX4MYJtrglKna/JKal4p9RhO OEu/IBRbC1CwjD05CeCAn73mvtPHHEJAxYyO7I7IWb/3HwFHJdpd7S0CMMA/kHQ9Jyy2 iJRVyDEqGK/qaiyITFtfk9ONOWtgP8HUAy91pGhW53xrAVhdmSqpa3GswUD5e/MNi5Fv Iwh7m/o6T7iIkzLSbwgM5jne23HNVajoP01YkvjfIUhKODoJ+Ia7pJjclhforpUojK3Y QeXhPAOiymrrR0GYsa3E34QFTP40uoflTyIjc5unG/ghdgmHnGu85RtWk9WRVT5d+7vO vR1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gl8si5320342ejb.149.2020.05.17.14.58.13; Sun, 17 May 2020 14:58:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726725AbgEQV4g (ORCPT + 99 others); Sun, 17 May 2020 17:56:36 -0400 Received: from gloria.sntech.de ([185.11.138.130]:45126 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726458AbgEQV4e (ORCPT ); Sun, 17 May 2020 17:56:34 -0400 Received: from ip5f5aa64a.dynamic.kabel-deutschland.de ([95.90.166.74] helo=phil.sntech) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jaRGe-0002am-L3; Sun, 17 May 2020 23:56:20 +0200 From: Heiko Stuebner To: gregkh@linuxfoundation.org Cc: jslaby@suse.com, andriy.shevchenko@linux.intel.com, matwey.kornilov@gmail.com, giulio.benetti@micronovasrl.com, lukas@wunner.de, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, christoph.muellner@theobroma-systems.com, heiko@sntech.de, Heiko Stuebner Subject: [PATCH v3 2/5] dt-bindings: serial: Add binding for rs485 receiver enable GPIO Date: Sun, 17 May 2020 23:56:07 +0200 Message-Id: <20200517215610.2131618-3-heiko@sntech.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200517215610.2131618-1-heiko@sntech.de> References: <20200517215610.2131618-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 "driver enable" (DE) and "receiver enable" (RE). DE is already handled via the uarts RTS signal while the 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..c61226c235f0 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 + maxItems: 1 + rs485-term-gpios: description: GPIO pin to enable RS485 bus termination. maxItems: 1 -- 2.25.1