Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp781606rwb; Wed, 9 Nov 2022 08:32:29 -0800 (PST) X-Google-Smtp-Source: AMsMyM7yQkMyQn4VdaeBbah4uH2G1/9HgVbf6HxBvFaMiIMbThUlsWqBXyNVK23UcMUD023+njaT X-Received: by 2002:a17:90a:67cd:b0:213:f8ab:ff48 with SMTP id g13-20020a17090a67cd00b00213f8abff48mr49639476pjm.106.1668011548832; Wed, 09 Nov 2022 08:32:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668011548; cv=none; d=google.com; s=arc-20160816; b=EYhdIGFXwBefxDEBGeKELBXwsN5ed9Nko4lPIP1a5In3Cph7DWBl6TANm8WfFmHFJC AT9zpjij7Oo0YkFYdTA8Rm7sn0q7Swqq31THcP0JNmkPTHNzhvNn2lOgGMHlwmxkwoBx VZt2EjytFE87487MosJ9bQyvunK28sido5cfznzR8WPnJ5fmgvN8NtjaUsj6hdVSRarT O4xNOvFT9dexK1oARezzCpksJrta9kmNqCRW2P/HJbDihIx5huNBtjJKa2bWvOWTRYi6 f/1YBnCdmSP9UK19hTn4GCMvqNhTq4Vkm14/2jEMd2Ww/4jB0Udu2tksa8/hGG8bow1Q xTnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=A9lRrQgwNdzcRvhC7oNoTPa3Q44tE4Nwzh6uHCLmick=; b=G12yU11snuqHgK24WD7cZcF2GBIL933tC3K30GNe8BY6W7BjyZQGY5Kjr2wm8sDEQ4 dE5OIwRQCDVWLZYzJ+os9e3ouCC7kBrHby58yhOEbR5di0LfPJXtt7BECfXGhE43T1Ql 2TxlmMMQQtAcI0uthv9aD8D4BY6OLErnjSILnPeC5RG1xTZxgR4XKyREvn/ZjYyZqpVN c4CRgMnIYR2+Pm5CCxJrFdLle8W+O0ILcHvE5zrVUBBZGP8Zre7cmsfavUAMJqXtExGQ dl9UnTYd39bZxzbq3RQ8pxDuUHWuWcbBN8uToZGtU+Z9QapZJTew37L2bhC3HOzUjltg OtbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@newflow-co-uk.20210112.gappssmtp.com header.s=20210112 header.b=377Ez3nM; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v190-20020a6389c7000000b00460c55062f0si16533718pgd.434.2022.11.09.08.32.15; Wed, 09 Nov 2022 08:32:28 -0800 (PST) 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=pass header.i=@newflow-co-uk.20210112.gappssmtp.com header.s=20210112 header.b=377Ez3nM; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231600AbiKIQJi (ORCPT + 92 others); Wed, 9 Nov 2022 11:09:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231781AbiKIQJW (ORCPT ); Wed, 9 Nov 2022 11:09:22 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E8D822537 for ; Wed, 9 Nov 2022 08:09:21 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id ay14-20020a05600c1e0e00b003cf6ab34b61so1575110wmb.2 for ; Wed, 09 Nov 2022 08:09:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newflow-co-uk.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=A9lRrQgwNdzcRvhC7oNoTPa3Q44tE4Nwzh6uHCLmick=; b=377Ez3nMEOPsVJyOk9EU2zrf00KSzX6iezf+doSoqP4EwlPVho/P2c/4Dsw6l08Uag nckthQtc9HYabWQCcL635gyXZ+dB/nsRVPMzAJn0R3yN9XDN4b+HpIY2Z5Q9gBDdCeWY dbwAN0k842AreXl4x2vy13s61CUYP9oQ6nHsalUNghnpQ7gnZ93DuTafisM5LLKU6SqB qY7h1ILnHhyyI6ewmk0Md81vMlaon3GMytyG67jkWz5OSS9JuSHv7MJynrDn9OH17e8O R7YcuD4F4SsaKrO8i7r01RQq79hRgCu1vRyGb29jxv7dsDA0YYVcSwYmgJdmU1PziKSu DwSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=A9lRrQgwNdzcRvhC7oNoTPa3Q44tE4Nwzh6uHCLmick=; b=xQb0jBtQCPhgLfRDqjogiqfekKnzjOTis+CtWRv/JJE19ds3YC3ztZ/tDcd8cveno7 HG3gjmIHOlCTA/gwj4n8qmzwf8UjUNcuEzGihNAqlcIbJN6/l9yL+qmMRzI5IYlDrg2m zu78lANST6HZ7nY5xzr1bASu/z+Pid0PgndEcLzLaCFgSou8If+yr92saN9UdtKd9z5U QL5v8ESDXWMlZ6LKNkBsXxGkFqhM4XDt0I5Z87nbCQHFr7nIrbAJt3qzlaH2RQ/BMkHk c87f3E008cuJ06ocfI1GfBYXbkdIgjKhl1UQKWswVKArkVd99E6b8W7COEfy6Yb9oTO0 Nevg== X-Gm-Message-State: ACrzQf0ghQJVC5g7QvWjvN5mICzOV0bhgHUGshpkQgEBZElcR2+kPbuB bWrVua3qIylRhpqfhRMrGU8Jnw== X-Received: by 2002:a7b:c34a:0:b0:3c6:e069:d41c with SMTP id l10-20020a7bc34a000000b003c6e069d41cmr51051209wmj.180.1668010159869; Wed, 09 Nov 2022 08:09:19 -0800 (PST) Received: from mpfj-unity.. ([94.12.112.226]) by smtp.gmail.com with ESMTPSA id n4-20020a5d6604000000b002366fb99cdasm13307772wru.50.2022.11.09.08.09.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 08:09:19 -0800 (PST) From: Mark Jackson To: Mark Jackson , =?UTF-8?q?Beno=C3=AEt=20Cousson?= , Tony Lindgren , Rob Herring , Krzysztof Kozlowski , linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/5] ARM: dts: nanobone: Enable RS485 mode for UART3 & 4 Date: Wed, 9 Nov 2022 16:09:01 +0000 Message-Id: <20221109160904.183147-3-mpfj@newflow.co.uk> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221109160904.183147-1-mpfj@newflow.co.uk> References: <20221109160904.183147-1-mpfj@newflow.co.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 UART3 & 4 are both RS485 ports. So we need to configure and enable this by default. Signed-off-by: Mark Jackson --- arch/arm/boot/dts/am335x-nano.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/am335x-nano.dts b/arch/arm/boot/dts/am335x-nano.dts index 05cbfe24f778..cecc2afaeff4 100644 --- a/arch/arm/boot/dts/am335x-nano.dts +++ b/arch/arm/boot/dts/am335x-nano.dts @@ -187,12 +187,22 @@ &uart2 { &uart3 { pinctrl-names = "default"; pinctrl-0 = <&uart3_pins>; + rts-gpio = <&gpio2 17 GPIO_ACTIVE_HIGH>; + rs485-rts-active-high; + rs485-rx-during-tx; + rs485-rts-delay = <1 1>; + linux,rs485-enabled-at-boot-time; status = "okay"; }; &uart4 { pinctrl-names = "default"; pinctrl-0 = <&uart4_pins>; + rts-gpio = <&gpio0 9 GPIO_ACTIVE_HIGH>; + rs485-rts-active-high; + rs485-rx-during-tx; + rs485-rts-delay = <1 1>; + linux,rs485-enabled-at-boot-time; status = "okay"; }; -- 2.34.1