Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp790986rwb; Wed, 9 Nov 2022 08:38:48 -0800 (PST) X-Google-Smtp-Source: AMsMyM4+9Iw+D8JtjLt8WCEQUdy5G1sbvVRmgv4yHMDhWnD8Iw8PSuo4kQwsHvE0S7MXf9FGtHHz X-Received: by 2002:a63:5c5a:0:b0:46e:be05:a79a with SMTP id n26-20020a635c5a000000b0046ebe05a79amr53573055pgm.138.1668011927833; Wed, 09 Nov 2022 08:38:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668011927; cv=none; d=google.com; s=arc-20160816; b=Djn8GH8usSoKYyxJBFW03bwMBhaLTjQ/UytiL7sGJvn6sc3tN27TueikOBTWwRxgd7 vY9G+pLeeBgsCVBHaYTCM+GWsRRUhcJqToqFRcMP79JJ3EJPW7jjDcrcPTGyAmbgVtfm JWbgOOWpYvTadSG2AxEarJ9bW6+5dOAPB/JMeVHu50A1gIZ4MC1oKnYCuenAQakgI+f+ xAG702Eca9ognp78FFXeE3dukXYXULmkd93rW/JBPZhSCcaIjMhapy5Xie3TclJZRi37 pgX5Jd/kIlV5T8G2ZFEokNzy/kRPPcka+NRNDCzbH9CGSS+56dI8evsttMStEyB4S1hi RJCw== 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 :message-id:date:subject:to:from:dkim-signature; bh=Vo11uu4DSeW8ZK4DwYcDKmvR71O5Aat/tdt0OHm+WUA=; b=zlz8NzdUeE3jnfosVtwh3mew5w6NxhoD9nbXUyPegHkLSWPZQl/1yWr8ms8BzHaqhN CvRmLDQL3TmHpCYMb/gkFDCFY42J1bDTgvMkK8pxdGV0m2g2ecIg0i84cb7GPzE/dKLd oK2aw2TmBDZfUFTk6fRUNV7Rd7Uwbz92eEccfCjf3/Wh50sddeCLZ2Fj20h7QygsVsYt TJBkzOQnC+jSG/YWtMfMRhtFbe8ogBsTq79byRT4mohQiSQhiSYts6TZ0KcYiH4wJrPj CIZ6Ezms5RJHDKwojti0jAJjG3sUui3EDoKZR5s0zc4zyZuDgywQkIddCJprOoM7CsZt UP3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@newflow-co-uk.20210112.gappssmtp.com header.s=20210112 header.b=d52SUfDT; 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 g193-20020a636bca000000b0043c05df34c0si4074641pgc.411.2022.11.09.08.38.35; Wed, 09 Nov 2022 08:38:47 -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=d52SUfDT; 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 S231502AbiKIOaa (ORCPT + 92 others); Wed, 9 Nov 2022 09:30:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231582AbiKIOaT (ORCPT ); Wed, 9 Nov 2022 09:30:19 -0500 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8B0B1FF80 for ; Wed, 9 Nov 2022 06:30:15 -0800 (PST) Received: by mail-wr1-x430.google.com with SMTP id h9so26089426wrt.0 for ; Wed, 09 Nov 2022 06:30:15 -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:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=Vo11uu4DSeW8ZK4DwYcDKmvR71O5Aat/tdt0OHm+WUA=; b=d52SUfDTiHHWbHkxmrWzeX4EZD0PcIIoihIf+y7uCTLiwCBsDtMxQEHTDRUpAi94Po WPvPgD77JWsZYKH24C6Fd2EYPtI+h0sU4/rflae/S0ObH1Ft7zpspIMiHx9gHYWW0cG1 m6Suob3SnMup3jLvtYxNasWZP2wSm0tklHwk2Gw4ivZDoF8lD4bCSSC1YSyAmJR91EeH 2QZdNqOle/Z1d15Jm+XeMk/bSlD0oaKXX9W55FIvbqKR8MhamMpUW+pQZ00sM0csXngo em/OaABzCihf3fthX//h55YbLjvhNxVmNXhpF7+VVN+H3VG4Z5FUcsVsO5Uh83Edltcq 6/yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Vo11uu4DSeW8ZK4DwYcDKmvR71O5Aat/tdt0OHm+WUA=; b=Lk6gOUemvKIKAF+YhvNXq3g6e/7ku0S91lazjdOTcEdHPtxxoVQpvQkppCoV6ETs7f oV+M89og1wcSRkvhiJy3W8r1Okb3zkJPoPIG1nKBtIgilPmxX6MTk0ClsEIr9nJMrGKc 1tgBzb0VCNTvh4GIALGzXPVi8ya3JbwYe9gn76jPwEeQ0B8Ycd/b/jXxaC0ENOS5v1VF oMpy21AZWzPX+8qOyZkhAKIzsK91CNxl5W+CxpeVT8N2xXJT1GBYyyRvz4QMPK3DMt+W tFNYWFQlC6lQf0r9fL8oHuX7kUjmvHnmEON+X9qBMwfmQ4kN8TUWIKwjDlR6Wz5gGDcp nwMg== X-Gm-Message-State: ACrzQf05nKeWiCTAC5avmqXru9YXZeThwn2remEy1/AKp0S9TiikKBrZ guPxRiFlH0BOiX6ItFckfi/n6Q== X-Received: by 2002:adf:f411:0:b0:234:f58a:d5f6 with SMTP id g17-20020adff411000000b00234f58ad5f6mr38578377wro.304.1668004214158; Wed, 09 Nov 2022 06:30:14 -0800 (PST) Received: from mpfj-unity.. ([94.12.112.226]) by smtp.gmail.com with ESMTPSA id v18-20020adfe292000000b00228dbf15072sm13331922wri.62.2022.11.09.06.30.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 06:30:13 -0800 (PST) From: Mark Jackson To: =?UTF-8?q?Beno=C3=AEt=20Cousson?= , Tony Lindgren , Mark Jackson , Rob Herring , Krzysztof Kozlowski , linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: dts: Update Nanobone DTS Date: Wed, 9 Nov 2022 14:30:03 +0000 Message-Id: <20221109143003.81463-1-mpfj@newflow.co.uk> X-Mailer: git-send-email 2.34.1 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=ham 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 Update Nanobone DTS file as follows:- - Fix GPIO settings for RTS/CTS pins on UART3 & 4 - Enable RS485 mode for UART3 & 4 - Enable LM75 temperature sensor - Fix GPIO settings for MMC pins - Enable USB --- arch/arm/boot/dts/am335x-nano.dts | 33 +++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/am335x-nano.dts b/arch/arm/boot/dts/am335x-nano.dts index b6f2567bd65a..1f613e879c53 100644 --- a/arch/arm/boot/dts/am335x-nano.dts +++ b/arch/arm/boot/dts/am335x-nano.dts @@ -120,8 +120,8 @@ AM33XX_PADCONF(AM335X_PIN_SPI0_D0, PIN_OUTPUT, MUX_MODE1) /* spi0_d0.uart2_txd uart3_pins: uart3_pins { pinctrl-single,pins = < - AM33XX_PADCONF(AM335X_PIN_LCD_DATA10, PIN_INPUT_PULLUP, MUX_MODE6) /* lcd_data10.uart3_ctsn */ - AM33XX_PADCONF(AM335X_PIN_LCD_DATA11, PIN_OUTPUT, MUX_MODE6) /* lcd_data11.uart3_rtsn */ + AM33XX_PADCONF(AM335X_PIN_LCD_DATA10, PIN_INPUT_PULLUP, MUX_MODE7) /* lcd_data10.gpio2[16] */ + AM33XX_PADCONF(AM335X_PIN_LCD_DATA11, PIN_OUTPUT, MUX_MODE7) /* lcd_data11.gpio2[17] */ AM33XX_PADCONF(AM335X_PIN_SPI0_CS1, PIN_INPUT, MUX_MODE1) /* spi0_cs1.uart3_rxd */ AM33XX_PADCONF(AM335X_PIN_ECAP0_IN_PWM0_OUT, PIN_OUTPUT, MUX_MODE1) /* ecap0_in_pwm0_out.uart3_txd */ >; @@ -129,8 +129,8 @@ AM33XX_PADCONF(AM335X_PIN_ECAP0_IN_PWM0_OUT, PIN_OUTPUT, MUX_MODE1) /* ecap0_in uart4_pins: uart4_pins { pinctrl-single,pins = < - AM33XX_PADCONF(AM335X_PIN_LCD_DATA12, PIN_INPUT_PULLUP, MUX_MODE6) /* lcd_data12.uart4_ctsn */ - AM33XX_PADCONF(AM335X_PIN_LCD_DATA13, PIN_OUTPUT, MUX_MODE6) /* lcd_data13.uart4_rtsn */ + AM33XX_PADCONF(AM335X_PIN_LCD_DATA12, PIN_INPUT_PULLUP, MUX_MODE7) /* lcd_data12.gpio0[8] */ + AM33XX_PADCONF(AM335X_PIN_LCD_DATA13, PIN_OUTPUT, MUX_MODE7) /* lcd_data13.gpio0[9] */ AM33XX_PADCONF(AM335X_PIN_UART0_CTSN, PIN_INPUT, MUX_MODE1) /* uart0_ctsn.uart4_rxd */ AM33XX_PADCONF(AM335X_PIN_UART0_RTSN, PIN_OUTPUT, MUX_MODE1) /* uart0_rtsn.uart4_txd */ >; @@ -188,12 +188,22 @@ &uart3 { pinctrl-names = "default"; pinctrl-0 = <&uart3_pins>; status = "okay"; + 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; }; &uart4 { pinctrl-names = "default"; pinctrl-0 = <&uart4_pins>; status = "okay"; + 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; }; &uart5 { @@ -220,6 +230,12 @@ tps: tps@24 { reg = <0x24>; }; + lm75@48 { + compatible = "lm75"; + reg = <0x48>; + status = "okay"; + }; + eeprom@53 { compatible = "microchip,24c02", "atmel,24c02"; reg = <0x53>; @@ -403,8 +419,13 @@ &mmc1 { pinctrl-names = "default"; pinctrl-0 = <&mmc1_pins>; bus-width = <4>; - cd-gpios = <&gpio3 8 0>; - wp-gpios = <&gpio3 18 0>; + cd-debounce-delay-ms = <5>; + cd-gpios = <&gpio3 8 GPIO_ACTIVE_LOW>; + wp-gpios = <&gpio3 18 GPIO_ACTIVE_HIGH>; +}; + +&usb0 { + dr_mode = "host"; }; #include "tps65217.dtsi" -- 2.34.1