Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp124585rdh; Tue, 13 Feb 2024 11:16:51 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVKJDDH7pnPpyPBQFS0GtKLDQxYpMHxub7fuJi0RwkQiS2igSBrl84a+gpH/DO5VXMVfYhK76IdHJgLtxn9bAumvInSTMGdZAXiTiprTA== X-Google-Smtp-Source: AGHT+IFykoMsThC7B5Q9NZDAX1nQBQs48O4byCrnwGESluENL1MW2pU2FRWil82T4xfYX03DeFPR X-Received: by 2002:a05:620a:2487:b0:785:8bb1:5d6d with SMTP id i7-20020a05620a248700b007858bb15d6dmr739301qkn.32.1707851811259; Tue, 13 Feb 2024 11:16:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707851811; cv=pass; d=google.com; s=arc-20160816; b=K88JoYgHCoqH/Vmoz819G60xNfc/S6RnzFj1ywMfSM4gnR81wrcvaBMzrMnWGQOYiy N5S4P/b1NQi5B7AHAjJc13rOaWk44TPbi1aFinrAiYI1Die+J+yZXSl1tqs5rWlN31wa ZFTU/v8RZXqbo6ot7yqQu9AOICfq7ky5DnxiIPuCr2bLZ4sczK/jT5u+hKoAXGqP1ZiQ Gn97xQODDFi87PHcj7q5X32rm0IuQyI6UcBGJfRwksNSJaHaBshNmP9LrDTHwONYPzBi SFVK1lIV6cEO1Nk2sftLXuJYlD75FRZkrQupgnjxW7NRqE+udoB8iefiuwj1OhBAlh9f sDDw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=Bq/A/O+NX1fBl0Kr7KIB4ebu4wE8nPgH5iQr+xe2mxg=; fh=DeJy2Z3cv1m2MNY3sZscXGZ+t3FrzkxmBomu4/+lRLY=; b=IWVFFP/qGTGuU+175Oe/Gw323bmEStTeYEoRgIQIZjberKrYyQA4b1jey0L/skVuY8 ELYC2fxIkXGnEjPfNiI0LPw8ZZEGEivS4DmHK/2vSBvzT95+TFoNwjdZVo5s0l/7hfkD +ynkSWbJp52yYIWjrIpW6KB9+e1nxWbOZQgoPmwu+Iim3WK9cteuFNShwvVOi5WoS5tP KrWjJ/ZlwmjgZggFrm1PcFi+sst4AclVZ1zCv99m3PwVnAGtLsNuDtzEYZAWDI4Jva6a 0NaoWcFm8OMWyKFr++jqMF8TDqRnLRAiGr5mFxVOiyZfLFqzJa3F8mkIulhBOpiCrAre nbsQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-64146-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64146-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de X-Forwarded-Encrypted: i=2; AJvYcCVcJqCIJFqtj3n0D6zxwGaFWGz335ZE8ZycrVUv1WojHpkvdJV4XfQmpSscgp9IB661j9AY7Mau3hmv8XM1Vh/dkKy1zGRpltr9C8UERg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id x17-20020ae9e911000000b007871fa654c3si1592747qkf.654.2024.02.13.11.16.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 11:16:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64146-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-64146-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64146-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D5D191C23661 for ; Tue, 13 Feb 2024 19:16:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9CDC76087D; Tue, 13 Feb 2024 19:16:29 +0000 (UTC) Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A1005FF0A; Tue, 13 Feb 2024 19:16:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.11.138.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707851789; cv=none; b=f6EGC/V9ZVyjyEMgAWEVDQkbEINQcAhkd69uQcIJzNg6qvZXfgPnx6y0fgxGFxfQ1Db9vCQSHpVz83n8c/TAXyBD/3oiRQ5hnw2hB7llA5jAF7D5CzhiFGJB9ZHCPLCoALnW4dvqqRHp+AG7/IGKBatcnh9RaKjAkEeX/LJNwKI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707851789; c=relaxed/simple; bh=OUU1YZXo3yo0PciRPdb54Wmqd4/2SZ750LGczHwVk/A=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=mf7ySwOzyCssdFzL77gCliErD7juCs79GzFXxlBRULUUHvZW3xbYSWUrxF6i55SpK2mF3CUBl/lSlYW0a4wuLYjjmaz51PfQ05ZgrAfLTe4tSFvajnsml+XbzMr6zJFhk/dIiOmmN4nRcQBaVS/+6sg40YoDJdbjvaSlZKztHYE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de; spf=pass smtp.mailfrom=sntech.de; arc=none smtp.client-ip=185.11.138.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de Received: from [194.95.143.137] (helo=phil.dip.tu-dresden.de) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rZyGU-0008FY-SS; Tue, 13 Feb 2024 20:16:22 +0100 From: Heiko Stuebner To: Farouk Bouabid , Conor Dooley , Rob Herring , Krzysztof Kozlowski Cc: Heiko Stuebner , quentin.schulz@theobroma-systems.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: Re: [PATCH v6 0/2] serial: 8250: Add support for rs485 half/full duplex on puma/ringneck-haikou Date: Tue, 13 Feb 2024 20:16:15 +0100 Message-Id: <170785172857.3347621.5386366884287991661.b4-ty@sntech.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240208-dev-rx-enable-v6-0-39e68e17a339@theobroma-systems.com> References: <20240208-dev-rx-enable-v6-0-39e68e17a339@theobroma-systems.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On Thu, 08 Feb 2024 16:39:54 +0100, Farouk Bouabid wrote: > On the boards that we are using (ringneck/puma-haikou) a hardware switch > can set the rs485 transceiver into half or full duplex mode. > > In half-duplex mode the DE/RE signal of the rs485 transceiver is not > connected to an RTS signal whose control is already handled in the rs485 > emulation (start/stop callbacks), but rather to a gpio. And since enabling > the receiver requires setting this gpio active we need to do that in em485 > while receiving and disable it while sending to enable the driver mode. > > [...] Applied, thanks! [1/2] arm64: dts: rockchip: rk3399-puma-haikou: add rs485 support on uart2 commit: 54448f711aa32f176534bbd7b1903cc6d1c8a50d [2/2] arm64: dts: rockchip: px30-ringneck-haikou: add rs485 support on uart5 commit: 5963d97aa780619ffb66cf4886c0ca1175ccbd3e Best regards, -- Heiko Stuebner