From patchwork Tue Nov 29 16:08:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Jackson X-Patchwork-Id: 13058788 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6B97AC46467 for ; Tue, 29 Nov 2022 16:09:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234117AbiK2QJi (ORCPT ); Tue, 29 Nov 2022 11:09:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235138AbiK2QJh (ORCPT ); Tue, 29 Nov 2022 11:09:37 -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 BF4691FCDF for ; Tue, 29 Nov 2022 08:09:35 -0800 (PST) Received: by mail-wr1-x430.google.com with SMTP id o5so13866300wrm.1 for ; Tue, 29 Nov 2022 08:09:35 -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=eBK4M6em14NDAYl08ahmQwtvd1CwNFvnLrorbySUXHw=; b=mkeVZUhSuS2q18zV4Jauf8ngKtkCNC7o1kuMriwBpcwOhkk3ZUFVypUmKRb38jidwx 2+xloFQMuXG97oxMuj1KOaAFsHJxc9UBckW1fa+2j/QsQ813Tx1D+y2blh4pjW8Zvsag efpsobP81/ZjbhyzMCHz+bxA7pebgaczFE0ju3ewwUCH25xeA7Kx4HTQA7HUgvToSZOc e2Ugifhw34NopPSx1vc8iIx+qZk8llklBTXWOnqbKe39gCgZByztge7v3+1bL/xsrc0r zSbagjYutNjmm6SSiKVnMMO1XMq84RGYNCtVIblvJxHN4GYOhHVxyrYx2qfas7dBOZQs +84Q== 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=eBK4M6em14NDAYl08ahmQwtvd1CwNFvnLrorbySUXHw=; b=nggZMPJSeLzmA96nU6B+IEjkkJ8+elWECRlBoKWImZxIZihNwi/h0XqryFz0ELu23d 203KypSGEeVIS1SAMJon2G+IvuzL8QCjZZ0FUOSrxM10j7P7pIS/itsE0GGZajeqwTCH Kd1Pnc0bAyNeov9F5vrZ0BBReebG1iYsrV80+pTQ7E3BlPvR+BdvCsFC4nqASsz2PMnm bLHy43DxEmTLhIvWAIHMr3Qyp+kxP1WX+XVTMfy/KuOUi4DVGS1/yzkY8mZEdBDON4u8 igGvFJYp3N5+QUxMUIeyAmn5VH7o/4z9ReHyaCte3gp7gU7iU8F6ofX2YdYOZT14GzsO 5Npw== X-Gm-Message-State: ANoB5pkN709iPuKu7WrqfxyKg+GQZFBKGyUavyY3piH0qqoiK2m+ODKK x/R+4k7mbwJdyWbPBAOSguPLcg== X-Google-Smtp-Source: AA0mqf4SDLkiMirCTpjl9teqzFNwy7mf10jSrvsbLuSMo3PEfnUW1UZNBf/31GL8c7vO35yA2L+hug== X-Received: by 2002:a05:6000:1d84:b0:236:5022:c705 with SMTP id bk4-20020a0560001d8400b002365022c705mr33965754wrb.466.1669738174192; Tue, 29 Nov 2022 08:09:34 -0800 (PST) Received: from mpfj-unity.. ([94.12.112.226]) by smtp.gmail.com with ESMTPSA id y18-20020a05600c365200b003c6c5a5a651sm2477572wmq.28.2022.11.29.08.09.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Nov 2022 08:09:33 -0800 (PST) From: Mark Jackson To: =?utf-8?q?Beno=C3=AEt_Cousson?= , Tony Lindgren , Mark Jackson , Rob Herring , Krzysztof Kozlowski , linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/5] ARM: dts: am335x-nano: Fix GPIO settings for RTS/CTS pins on UART3 & 4 Date: Tue, 29 Nov 2022 16:08:14 +0000 Message-Id: <20221129160818.276696-2-mpfj@newflow.co.uk> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221129160818.276696-1-mpfj@newflow.co.uk> References: <20221129160818.276696-1-mpfj@newflow.co.uk> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The NanoBone platform uses GPIO pins for RTS/CTS control. The DTS still uses the hardware RTS/CTS pins so this needs fixing. Signed-off-by: Mark Jackson --- arch/arm/boot/dts/am335x-nano.dts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/am335x-nano.dts b/arch/arm/boot/dts/am335x-nano.dts index b6f2567bd65a..05cbfe24f778 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 */ >; From patchwork Tue Nov 29 16:08:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Jackson X-Patchwork-Id: 13058789 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91AC9C433FE for ; Tue, 29 Nov 2022 16:09:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235622AbiK2QJj (ORCPT ); Tue, 29 Nov 2022 11:09:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235210AbiK2QJh (ORCPT ); Tue, 29 Nov 2022 11:09:37 -0500 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99D50391FA for ; Tue, 29 Nov 2022 08:09:36 -0800 (PST) Received: by mail-wr1-x42b.google.com with SMTP id f18so792278wrj.5 for ; Tue, 29 Nov 2022 08:09:36 -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=h97xq4jpFYXMqZLHjJDp3HY5QwPTQTpe47hCbHyRcmUmLj6DR+mDDs66iu+LLkQLyU uUzPfNErHJtes8gK4Ve6c98MRy/dR7VsBGh3UiwjbijWl9fuPpHg+uc3ef8G3JgGAxGm 7oiezeTqhjN9q1VkahpUUFpKVz86XXLROnoRXjz9lC13HZhKOpeKFPROkQe9/rfmg2am AaSTMPKGweYXRzYFH/eS/t+bPsoncS9L7Pv8SHP1goaG3/bok71wWK8WIJhiZqIUlL0b zgeZTQPDAiaH+YrOA33ZIvuL+e0X1EEQ4iYxuq9cZ8uuSDBDAdNKtG62SH2enNPrfMxz zovA== 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=GfVmTACSLa56Y2VbstHpeH5YFLpP1+I4PUkUONqDC7jZ6/AtzjscTxHYsuNH1EvfDy WwJlGT5LYQfj4Msj+0jGDUDijPVPC9WYUiXlve7DHfCngtBkh0+eHKrTgObr6SywpzTl SgT0uUmPLKLchgyjKjnATNLRwKMsH/RPG47T1DJpYBjhJJkL8PW88Pe5W7/QnJXYdjeU R3srfL92ODYiewuPMOgKU8uWyG0DRR0iWw/kda+rLR4EabeJHAz6auC7fM+nrHMaH/F9 RF53PTBPJnr6ghp/OtSD7iNmBglP7SKo6jpvqGjM48uI2Yx2Q6l83H14X3vWEusahW9s ll8w== X-Gm-Message-State: ANoB5plSsqsXg0DFqkkEr05HKdN59tO//Omz64APCldbiWd0Png1h76c FoKVnu/L56OdO6W7JyZPGNtLjw== X-Google-Smtp-Source: AA0mqf5lPPvOQpJyW4bMuhcW8gCMG5F4uApp+F8DYwjDoEYMVXFetf425iOchxDT1jYjeBgBJWVKvA== X-Received: by 2002:a5d:408f:0:b0:242:263e:3ba7 with SMTP id o15-20020a5d408f000000b00242263e3ba7mr1459483wrp.561.1669738175210; Tue, 29 Nov 2022 08:09:35 -0800 (PST) Received: from mpfj-unity.. ([94.12.112.226]) by smtp.gmail.com with ESMTPSA id y18-20020a05600c365200b003c6c5a5a651sm2477572wmq.28.2022.11.29.08.09.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Nov 2022 08:09:34 -0800 (PST) From: Mark Jackson To: =?utf-8?q?Beno=C3=AEt_Cousson?= , Tony Lindgren , Mark Jackson , Rob Herring , Krzysztof Kozlowski , linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/5] ARM: dts: am335x-nano: Enable RS485 mode for UART3 & 4 Date: Tue, 29 Nov 2022 16:08:15 +0000 Message-Id: <20221129160818.276696-3-mpfj@newflow.co.uk> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221129160818.276696-1-mpfj@newflow.co.uk> References: <20221129160818.276696-1-mpfj@newflow.co.uk> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-omap@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"; }; From patchwork Tue Nov 29 16:08:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Jackson X-Patchwork-Id: 13058790 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F786C4167B for ; Tue, 29 Nov 2022 16:09:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233851AbiK2QJo (ORCPT ); Tue, 29 Nov 2022 11:09:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235319AbiK2QJi (ORCPT ); Tue, 29 Nov 2022 11:09:38 -0500 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F5134045B for ; Tue, 29 Nov 2022 08:09:37 -0800 (PST) Received: by mail-wr1-x435.google.com with SMTP id x5so22888592wrt.7 for ; Tue, 29 Nov 2022 08:09:37 -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=FS/5LEGLs22k9BmiIQdsJAlL0wF9ROsh2ANGCIE2GiM=; b=z4P2p+r6LmvYcnmHYnhYEX6wofHjFnJjqLigVn+NnbvEjmxJzdusAUjD/WtXUpeE7x rJ4ac0lAnSkDok5AOABiwtwLXE6F6zXca/jdtxnXPTYX9nzijM7DXhg5UysqsbEwSA8v ULIxGP31dc94WwGoOeZFOaFIJfB80WGgBcfNn5fMLC4X3p3F79fxLTPnBcLneZv2H1Az MjSQZ1PDi4EdwU18eXErqRZO952t8aJXrTN+Sw1NqsuaPMcf/wgo3vKOGIivB4WyUfjs KiCokWJORvNtz9gnh/T7O7up48UG60yYLmI3juw7HBcNJ/M8lb3zlw3sQsV/zIdIrrDB ZQWA== 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=FS/5LEGLs22k9BmiIQdsJAlL0wF9ROsh2ANGCIE2GiM=; b=3VMSI7iykV16A2qfZfVGkWiJYFFM/2KilibMY2RFFHwH1snLtjThdl2NEFdFDgxvU3 dTUlwLxsfwiky6sYf1J01p/dhtgSzlzqmnRfM1VIlBjSe6YegqGlSNWXpGEFWsNdA6Ab 9xxymFQVk+jnDVGJeCako7dKhSLDlQ8mOAHbCyPe9M8yW2cnoz+8psCT6LJ68UncEuWO A0E9oKRsk/HvDkTvZULaUfVH/tRY5Ummbs8IgA4EQexYUkZC6jIYqUwKbzQ8zkncnP1j Qmr0WWG+4lriKVzS9pYSW6PnyIh7+R51DFdX/W4N4BNJjpM2AMfJBN50qXuHMki1GNn/ oscw== X-Gm-Message-State: ANoB5pmPlL/xPnOc3ZwY+8FYbnoo1RmnYfNTXPTffZILJC6pRsdR0N+r 7laB3oCrOgkWpDFzrH8b+EfDPg== X-Google-Smtp-Source: AA0mqf7R1dXJhsBNs9CzYGGdVM28FQNzCd6pAGTUZ5dOBOIAVEmtv1iIlXQy3EwwpalpQuomIhF7Kw== X-Received: by 2002:a05:6000:1b8a:b0:241:e737:2d7c with SMTP id r10-20020a0560001b8a00b00241e7372d7cmr21099048wru.523.1669738176134; Tue, 29 Nov 2022 08:09:36 -0800 (PST) Received: from mpfj-unity.. ([94.12.112.226]) by smtp.gmail.com with ESMTPSA id y18-20020a05600c365200b003c6c5a5a651sm2477572wmq.28.2022.11.29.08.09.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Nov 2022 08:09:35 -0800 (PST) From: Mark Jackson To: =?utf-8?q?Beno=C3=AEt_Cousson?= , Tony Lindgren , Mark Jackson , Rob Herring , Krzysztof Kozlowski , linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/5] ARM: dts: am335x-nano: Enable I2C temperature sensor Date: Tue, 29 Nov 2022 16:08:16 +0000 Message-Id: <20221129160818.276696-4-mpfj@newflow.co.uk> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221129160818.276696-1-mpfj@newflow.co.uk> References: <20221129160818.276696-1-mpfj@newflow.co.uk> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The NanoBone platform supports a temperature sensor on the I2C bus. Signed-off-by: Mark Jackson --- arch/arm/boot/dts/am335x-nano.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/am335x-nano.dts b/arch/arm/boot/dts/am335x-nano.dts index cecc2afaeff4..960ef1384bbe 100644 --- a/arch/arm/boot/dts/am335x-nano.dts +++ b/arch/arm/boot/dts/am335x-nano.dts @@ -230,6 +230,11 @@ tps: tps@24 { reg = <0x24>; }; + temperature-sensor@48 { + compatible = "lm75"; + reg = <0x48>; + }; + eeprom@53 { compatible = "microchip,24c02", "atmel,24c02"; reg = <0x53>; From patchwork Tue Nov 29 16:08:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Jackson X-Patchwork-Id: 13058791 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10512C433FE for ; Tue, 29 Nov 2022 16:09:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235138AbiK2QJv (ORCPT ); Tue, 29 Nov 2022 11:09:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235637AbiK2QJj (ORCPT ); Tue, 29 Nov 2022 11:09:39 -0500 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FFAA1FCDF for ; Tue, 29 Nov 2022 08:09:38 -0800 (PST) Received: by mail-wr1-x42c.google.com with SMTP id x17so22853445wrn.6 for ; Tue, 29 Nov 2022 08:09:38 -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=YmPa+knot3YDUCqalKlJVkyrJNSYU8WAPL5glC3+iuk=; b=ZR/e5pS570KyGvQv04N6X9arFtmhgwl0szN5vI4tZCuQSQxBEpD+6qULAwEjfrIg5D TjLNRm4euqGS/fYinUVcO9/YXTWmM9cgZslsvJVUDfYGnVm1uI1UH7nMy8DRyBJ731l8 WIc3osWkfQc9A8RSPastAAm/TyY8FpZEBT9AL0feSGz53BL2Z7Qv6uOyN/3lXnh8UEff RGTCP3YP+XdUcZ8Vu5TVPbtTzWXvGtjEmu24tSKkN2T2b5DBxrTtGvMFtzUwSEWaCRQ1 ZuSWXw5XfRItkJXD3vm0bzAxuAVGvKlp+LjljobejF7oVIgeTHFDsgmgXliEnPMAawaw 5iUw== 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=YmPa+knot3YDUCqalKlJVkyrJNSYU8WAPL5glC3+iuk=; b=1e7AjAzDcTYV82De9UC29h5OPHY/jq3l0fH4TUDk1BLytDJLxQlJz4dZ8uJuP8Q0vd Ok2G9GPL/L9wjjj5rcEwfHFalWOnvbSpW2XswmcWJGmHfBFJm52SbwTFRI5zYU4Fpae7 JgH/Qa/XcbvYGuPBVIw43+vgJ5L8qWLsjUtiq6lU/r/Lxe2wUV7im7BX0yC04/yOiNTZ f9ag19JD1lxT0e1RJWqeUwzuQYxghIxAjeVpgVKTABx9o0q0Zi8g0r2mAS7K2tYxF+1f h0yji1cTRo+MDrtqIiEqFYF+DOiTec+RwP4GzuLYMQ0i4JStGpMEiaXIfMeT/OUMreZX svAQ== X-Gm-Message-State: ANoB5pkVW9mKC0iod0z01SIFeO8Z0lhPtRsZ02ZCJZ+x5yTb6pQeR7ce ehGzrqV18p1K6dQNJ9RC9hQoTQ== X-Google-Smtp-Source: AA0mqf6GT0U9KltCoqCWDhICfkfaOnk7CZjLe1EfWefra9rd5OFohyhEJH+BDYtkQYFcsqhz2kT1mQ== X-Received: by 2002:adf:fdc7:0:b0:241:d7ab:db8f with SMTP id i7-20020adffdc7000000b00241d7abdb8fmr26276019wrs.285.1669738177108; Tue, 29 Nov 2022 08:09:37 -0800 (PST) Received: from mpfj-unity.. ([94.12.112.226]) by smtp.gmail.com with ESMTPSA id y18-20020a05600c365200b003c6c5a5a651sm2477572wmq.28.2022.11.29.08.09.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Nov 2022 08:09:36 -0800 (PST) From: Mark Jackson To: =?utf-8?q?Beno=C3=AEt_Cousson?= , Tony Lindgren , Mark Jackson , Rob Herring , Krzysztof Kozlowski , linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/5] ARM: dts: am335x-nano: Fix GPIO settings for MMC pins Date: Tue, 29 Nov 2022 16:08:17 +0000 Message-Id: <20221129160818.276696-5-mpfj@newflow.co.uk> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221129160818.276696-1-mpfj@newflow.co.uk> References: <20221129160818.276696-1-mpfj@newflow.co.uk> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The MMC slot uses GPIO pins for Write Protext and Card Detect. Define these so everything works correctly. Signed-off-by: Mark Jackson --- arch/arm/boot/dts/am335x-nano.dts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/am335x-nano.dts b/arch/arm/boot/dts/am335x-nano.dts index 960ef1384bbe..58062cec39c0 100644 --- a/arch/arm/boot/dts/am335x-nano.dts +++ b/arch/arm/boot/dts/am335x-nano.dts @@ -418,8 +418,9 @@ &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>; }; #include "tps65217.dtsi" From patchwork Tue Nov 29 16:08:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Jackson X-Patchwork-Id: 13058792 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10DBCC47088 for ; Tue, 29 Nov 2022 16:09:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235647AbiK2QJx (ORCPT ); Tue, 29 Nov 2022 11:09:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235761AbiK2QJj (ORCPT ); Tue, 29 Nov 2022 11:09:39 -0500 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DC0ABC9A for ; Tue, 29 Nov 2022 08:09:38 -0800 (PST) Received: by mail-wr1-x435.google.com with SMTP id x5so22888768wrt.7 for ; Tue, 29 Nov 2022 08:09:38 -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=cZK+iipkHl/pJApvhUcvpWuoeG0v04wAY4UNOC37vzE=; b=v4E6HaN71iASog500impk6biLA2kyu17//4yJkCHI4HhBwh+f3fu2D2rjiFr7oQLNi w0wB7msF3Iq6dr9cP7LamjMQ7DJvxNIjZeWq/oh5RNfpcY1Nlr5AOAAuhMBtHigW+LRG BQO93tgySgeoVIV2ETFcdlfxhKLvuskv4FeAcCXeurkPEhQ29n3sUFqWQvzJAT6PY8FQ rHenJqBhi760doHV41V5Q3xutg2OFkFhI/htTs1XQ5c5VzsPpY7Nj7soZHrxUONCrZyZ TA/zH3EqphVDwykVlpwqtgJHtN2GuHD9M5hIOWDLf8LW4egoeEuaO8eIMvkTDuC5Go83 jkiA== 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=cZK+iipkHl/pJApvhUcvpWuoeG0v04wAY4UNOC37vzE=; b=2WjDyccR7oMqYXTkpRjrtPrTtoKkGJcvX5o3bd/mNwSDMB54g0+hgTDa6zKf/0Uy4I koIMpGZpiFpFwDV11Z56aVwvg4XjLnHkgKtx2ZmjwukBNWxGSEmCDmy4rX3FD9L9Vh5P wuTykvkTYL/Uah/btRp9dEcOcs+IEP0vTQfkgsGWficTw6Www10mzPS1hJafRuPlgdbv 6YpY1ljnCm0ih4QPcKeO0Fn1EviRqpMiJVzJSjd0qZ+u7ieGGd8RKHLOQyYk/AuyucWH pWaYNsNvnwb/FRwETj6fZ1L+SsGDA4CKSW/XPLCAeOQh1A1wjSBaxJV8dm3zfM4+v1Aj rH0A== X-Gm-Message-State: ANoB5plntByjOGIpnVRnrdL/8f6thCUCNCxGy5lDJyuIlWXqkNzRqppF qI1gu1bEChsfnJkE0weT81Hjog== X-Google-Smtp-Source: AA0mqf4kF8bPOiTEyHiyaZZcqOWJWYeBxKhKoQYjALF9Wq+DIHZTFZWd6cOTOvLizB46fBY2QKmQYQ== X-Received: by 2002:a5d:58c6:0:b0:242:da2:7f50 with SMTP id o6-20020a5d58c6000000b002420da27f50mr9601635wrf.507.1669738178205; Tue, 29 Nov 2022 08:09:38 -0800 (PST) Received: from mpfj-unity.. ([94.12.112.226]) by smtp.gmail.com with ESMTPSA id y18-20020a05600c365200b003c6c5a5a651sm2477572wmq.28.2022.11.29.08.09.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Nov 2022 08:09:37 -0800 (PST) From: Mark Jackson To: =?utf-8?q?Beno=C3=AEt_Cousson?= , Tony Lindgren , Mark Jackson , Rob Herring , Krzysztof Kozlowski , linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/5] ARM: dts: am335x-nano: Enable USB host Date: Tue, 29 Nov 2022 16:08:18 +0000 Message-Id: <20221129160818.276696-6-mpfj@newflow.co.uk> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221129160818.276696-1-mpfj@newflow.co.uk> References: <20221129160818.276696-1-mpfj@newflow.co.uk> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Add missing entry to enable the USB host. Signed-off-by: Mark Jackson --- arch/arm/boot/dts/am335x-nano.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/am335x-nano.dts b/arch/arm/boot/dts/am335x-nano.dts index 58062cec39c0..c447aebd8d86 100644 --- a/arch/arm/boot/dts/am335x-nano.dts +++ b/arch/arm/boot/dts/am335x-nano.dts @@ -423,6 +423,10 @@ &mmc1 { wp-gpios = <&gpio3 18 GPIO_ACTIVE_HIGH>; }; +&usb0 { + dr_mode = "host"; +}; + #include "tps65217.dtsi" &tps {