From patchwork Wed Nov 9 16:09:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Jackson X-Patchwork-Id: 17647 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp423814wru; Wed, 9 Nov 2022 08:12:29 -0800 (PST) X-Google-Smtp-Source: AMsMyM72QpDAvfaklmMWcymfD0wF+ipgXg5d7PEJgAHkFhAwqZ/GbOGMpli6x3UsiFQ3Higi3zb2 X-Received: by 2002:a17:906:b801:b0:7ae:1990:5486 with SMTP id dv1-20020a170906b80100b007ae19905486mr30629154ejb.538.1668010349603; Wed, 09 Nov 2022 08:12:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668010349; cv=none; d=google.com; s=arc-20160816; b=CePG5qOeOPmuGVXx0xyfeaL/wP5eqRQ2qFGH+R7MZIn92B/FWWhtUD4z69+lJZnL0B 75Wp/++DkckJIHbOzQmqR566dplflV5QWqghOxmtk8x9NfdfqgsRoWanMmNABWfDzxJm NosAXOeVVMq/ttyz0GnZULjsKYt6gb82m+PZtRZey2l1Efbqi23HZ3VHCw/40Uzz28HX MzALAwrus3r8VcqH7gdCSrFwnaOh2f+gEjwTIfQYLhFvn/JqdqMKDBmscHfSzmMbaD8Q BGVxBC3O/9UJtJJWWp5UDdeGqOl0FkvK7+bXZJVfexlMedq6JkF7SifNocJ99MYN5rLh tcJQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr5-20020a170907720500b007ade01e723bsi17570582ejc.30.2022.11.09.08.12.04; Wed, 09 Nov 2022 08:12:29 -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 + 99 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_Cousson?= , 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749035620724672632?= X-GMAIL-MSGID: =?utf-8?q?1749035620724672632?= 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"; };