From patchwork Wed Aug 16 00:23:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Woerner X-Patchwork-Id: 13354417 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DB20EC04A6A for ; Wed, 16 Aug 2023 00:23:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HJEjvg1yDM9b46QM6/9HCc+H8Z6dJgNtHQ5+J2ZbXL4=; b=Yu0il8Kx/1EY9d EWSvzw5Zkj3/0BhSAyj+61VOjf/zbgsPH/9lIgwGF1kHAl8EsrTGtzYmvXqKPZ8PhQRhodtPnxAe2 /zzv0D1JXKncnAfEXPZmBqMeuaaw19lRdetuXIpqzX1ajHJZ+brka84PC9FW0h15TXf6IGQSnFsPF S7guscCGExP3tpSpp6CfTsdMfcWwekoWsTL5vkUeSdnrbgHSm58WowTbRzJhltlajHJPpnvNe5u8W rI0yIiPCobVhkdWJJEK+GeQA0UM4r6ySCrTpDTQgvvhzQCAvAy/Wns6AsXlqtR/yeoFwHxpDCI8Rt whhifhqSGalcF4uF6Mpg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qW4Jq-002rc1-2C; Wed, 16 Aug 2023 00:23:26 +0000 Received: from mail-oi1-x236.google.com ([2607:f8b0:4864:20::236]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qW4Jj-002rZa-0c for linux-arm-kernel@lists.infradead.org; Wed, 16 Aug 2023 00:23:20 +0000 Received: by mail-oi1-x236.google.com with SMTP id 5614622812f47-3a7d402fc6fso4394143b6e.2 for ; Tue, 15 Aug 2023 17:23:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692145395; x=1692750195; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SmdkJVdFz/V7Zt8mJfhJXtTYea+Vk2ji53hyZ/nqh5o=; b=oz631v2Sc2jnjywDJAuGZ4VgEpivt3aUYpieXf++7r3REV0ERwCY07rxBabH6mGgy+ u5GBtH5+gD5xLjBHv1gDgyL9XjjsFjsfi3ujhohHwA/g1dpIOv7yBGMLsyZnPXhoiGrD NCekMsziWlEXJfqrptg21o+ddhHVZObvxKYwXIdQEOuO4eaHuPGbtc4+9xQRmoW1/g/Q /SDVlzgWnvfbDsvVGVuh8vD1+oMyrl0dtQiWSFK0cZCWfs5yBEu3DZKtwkErpoKJpIXg WGHQrZTuIuZaEi3eda1UBD1tNxjgT4kXtqqATArtZeD8XHl2jh9C5aoogtdcIaa7FnMF qtCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692145395; x=1692750195; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SmdkJVdFz/V7Zt8mJfhJXtTYea+Vk2ji53hyZ/nqh5o=; b=HzVCiImZCaTd7pm3yudvx4RX2bdmwSFlXxZlPefQkKByuVbrO6rjAgWL0VwQ/lWuj8 SIC8pxWsfvOPp/+EYZOhb0gFUYJajrUll/z+bOyD9d+UEN7ydeBBENTI3+NPQNdIzWb5 nTG3Ze2utPX8g+gLX9oYCywEEH65K44Sp2FDxkbXo/ASca0x4/O56t7rcKKbGj0b0pS2 oQ4y77MzqJLM0L/vFVuO77kJNU3iXrHsQquhJK/wVlpmfAPzZrGGDPTyXHSqPBEESsSv x1LeLu8obmspEasctB1PjzzwUdJx0fiBlguywRtFDbwZcbGh1AL+c/JVhk4SNEQF+2u8 6K3g== X-Gm-Message-State: AOJu0Yxqu5AAFW5OS0ReqiV3iRuJ9NO8s7e2RQWxwkcfXx2ImQx8UP04 6xz8urwDWeTDD6JtG7efEUE= X-Google-Smtp-Source: AGHT+IEOIHLFSZYxB/VgZ5IKyAw6W89fduHPK83Y2Mk1nJBihRAhBRzgj2dkTrH94Xlc0dKbmwRUjw== X-Received: by 2002:a05:6808:18a3:b0:3a7:2524:6d3b with SMTP id bi35-20020a05680818a300b003a725246d3bmr410590oib.12.1692145395439; Tue, 15 Aug 2023 17:23:15 -0700 (PDT) Received: from localhost.localdomain (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id r11-20020a0ccc0b000000b0063d5c9de720sm4452436qvk.80.2023.08.15.17.23.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Aug 2023 17:23:14 -0700 (PDT) From: Trevor Woerner To: drew@beagleboard.org, =?utf-8?q?Beno=C3=AEt_Cousson?= , Tony Lindgren , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH 1/3] ARM: dts: am335x-pocketbeagle: update LED information Date: Tue, 15 Aug 2023 20:23:04 -0400 Message-ID: <20230816002308.36800-2-twoerner@gmail.com> X-Mailer: git-send-email 2.41.0.327.gaa9166bcc0ba In-Reply-To: <20230816002308.36800-1-twoerner@gmail.com> References: <20230816002308.36800-1-twoerner@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230815_172319_230194_B5D6EDA7 X-CRM114-Status: GOOD ( 12.66 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The "label" property is deprecated. Replace the "label" property with "color" and "description" properties. Signed-off-by: Trevor Woerner --- arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts b/arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts index 5dfe4d4bab93..1c11245f6864 100644 --- a/arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts +++ b/arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts @@ -8,6 +8,7 @@ #include "am33xx.dtsi" #include "am335x-osd335x-common.dtsi" +#include / { model = "TI AM335x PocketBeagle"; @@ -24,28 +25,32 @@ leds { compatible = "gpio-leds"; led-usr0 { - label = "beaglebone:green:usr0"; + color = ; + function = LED_FUNCTION_HEARTBEAT; gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>; linux,default-trigger = "heartbeat"; default-state = "off"; }; led-usr1 { - label = "beaglebone:green:usr1"; + color = ; + function = LED_FUNCTION_DISK_ACTIVITY; gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>; linux,default-trigger = "mmc0"; default-state = "off"; }; led-usr2 { - label = "beaglebone:green:usr2"; + color = ; + function = LED_FUNCTION_CPU; gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>; linux,default-trigger = "cpu0"; default-state = "off"; }; led-usr3 { - label = "beaglebone:green:usr3"; + color = ; + function = LED_FUNCTION_INDICATOR; gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>; default-state = "off"; }; From patchwork Wed Aug 16 00:23:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Woerner X-Patchwork-Id: 13354416 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5E9EBC0015E for ; Wed, 16 Aug 2023 00:23:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Dzt97NJQ//D+UDB4lMETPop91eu4GLc0JwjhKtZ9ZzM=; b=OwTj+GcE4PSrHQ o0K3TS/D/4jfhw9qH+pvGFxtt/iPs9jz/7lNSVGu5AE44ThbN2ZaFKBkMpHuStiuDl5l/TuzRS5ia aocx+ZKqzEsib5PQ5YbzmLj8lpGPMdereiyI6vxY+7MW24/vBQTqYCvlYdCmsO2z0OWSoO6QpWREZ 7kG0TmIWMpd80en2lCj32EWGLwuU6DVdAS17aIG2p6/skMxm/0UZGxdNe0uEvguba1G6puE2oZdvr 84zbFnWN1gDHqUJhXeosfrqEvCqEOPeGOXZLBtr3Mfa/iuCpuyN1ABrgVAYLjrFpqKQSILfSC4DBP IkXUn9kSnB2JLf9d2dAg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qW4Jr-002rcT-0m; Wed, 16 Aug 2023 00:23:27 +0000 Received: from mail-qk1-x736.google.com ([2607:f8b0:4864:20::736]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qW4Jk-002rZs-09 for linux-arm-kernel@lists.infradead.org; Wed, 16 Aug 2023 00:23:21 +0000 Received: by mail-qk1-x736.google.com with SMTP id af79cd13be357-7659cb9c42aso395109185a.3 for ; Tue, 15 Aug 2023 17:23:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692145397; x=1692750197; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=u5K+gUGCsAol5AOSj18zMfCSNxRbg5FuBq7GV8eAAR8=; b=DnOvWmbOOWvIOptsMgo8Sx+uN3YXulsCHUGAquiE8sfDjtPSaiGze+Pjwnsx/2mRlT LpOl6YbtoEFpZOgwS0Y0kVF5WPl6js4pDyaVhzzqdYs9Gp9PAcGg+q7SCjWJ+KyRgD4S Pf6pGNgNGJpdw9kFslfY+c7unVYqTblrL4DwnKRGqNR/fu4uPyEVxeo0vB57B9vcaRP7 wG+yC6vUthUZqiGa1HPS825zimuKo9OlbqYESTI7c6DbjIE81gZq9fLff82OQLNYGZMY UOHwTwWLGUVRSANcG9eRUxTTvnNx/445o9EtTuVT52WS1VMz1oXY/roixrrj/C1o4UVX +CNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692145397; x=1692750197; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=u5K+gUGCsAol5AOSj18zMfCSNxRbg5FuBq7GV8eAAR8=; b=a2LWJUPVPipGtMC1Le0EscDFovTxuVe8tLh0u5FSrRU6JEqHkS4rHeWr5Da0kdf+AL +ic3Qtfu3OiyZ/bFE33hdk0ZMlmoNGo6lvgXlSqGr1KQSM9y8piZtYBSzIsE40NbJucJ kG7oLTTBFExdc7vbvipNRPMEu8hFFsw47RXrxsEcviurVEbueHbt9AUh9dBR4CheggyX Wi26bigLF+4IEIIpzJ4d2qD4CPcVtaZTOrX40OShiokfCXm54Ns5zwF3vPHxiwBiwLIx d/55A4zsQ98ah1jwWRXRjlngn8ST8jjbsTBAwXqkrCV11Taur1w5g9MC0Ue1U/1PhAuo esug== X-Gm-Message-State: AOJu0YzvuPLFDPLB+uFnPb1taI/9TvdjbapDsLkJuCDMy9xIbM2EwsRd WJzg3n3zO/CFroBjEBoffiM= X-Google-Smtp-Source: AGHT+IGv5izfsdTvq3Xw2+BTG+QTJe44VVAhetc8jF7LhciTqdRbuyi0eVW9PKK3pmUtHYaW+INPgA== X-Received: by 2002:a05:620a:40cb:b0:763:9f31:1588 with SMTP id g11-20020a05620a40cb00b007639f311588mr527264qko.70.1692145397545; Tue, 15 Aug 2023 17:23:17 -0700 (PDT) Received: from localhost.localdomain (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id r11-20020a0ccc0b000000b0063d5c9de720sm4452436qvk.80.2023.08.15.17.23.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Aug 2023 17:23:16 -0700 (PDT) From: Trevor Woerner To: drew@beagleboard.org, =?utf-8?q?Beno=C3=AEt_Cousson?= , Tony Lindgren , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH 2/3] ARM: dts: am335x-pocketbeagle: enable pru Date: Tue, 15 Aug 2023 20:23:05 -0400 Message-ID: <20230816002308.36800-3-twoerner@gmail.com> X-Mailer: git-send-email 2.41.0.327.gaa9166bcc0ba In-Reply-To: <20230816002308.36800-1-twoerner@gmail.com> References: <20230816002308.36800-1-twoerner@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230815_172320_083870_C3EA1295 X-CRM114-Status: GOOD ( 16.77 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Now that the PRU code is upstream and can be loaded via remoteproc, adjust the device tree to enable it and adjust the pin muxing so that the default setting of the pins matches what's is given on the silkscreen and/or pocketbeagle wiring. Caveat: In most cases, the silkscreen will indicate, for example, "PRU0.7", but it doesn't indicate whether that pin should be enabled for input or output. On the PRU a different MODE is used for input versus output. So it is unclear which mode to enable (MODE5 = output, MODE6 = input). In cases where there is a choice (PRU1.11, PRU0.7, PRU0.4, PRU0.1, PRU1.10, PRU0.6, PRU0.3, PRU0.2, and PRU0.5) output is assumed (MODE5). The remaining PRU silkscreen pins do not have a choice and are set as follows: PRU0.16 MODE5 input PRU0.15i MODE6 input Signed-off-by: Trevor Woerner --- .../boot/dts/ti/omap/am335x-pocketbeagle.dts | 48 ++++++++++++++----- 1 file changed, 37 insertions(+), 11 deletions(-) diff --git a/arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts b/arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts index 1c11245f6864..6d875cf13e09 100644 --- a/arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts +++ b/arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts @@ -117,7 +117,7 @@ &gpio1 { "P2.24", "P2.33", "P2.22", - "P2.18", + "P2.18 [PRU0.15i]", "NC", "NC", "P2.01 [PWM1A]", @@ -214,7 +214,7 @@ &am33xx_pinmux { pinctrl-names = "default"; pinctrl-0 = < &P2_03_gpio &P1_34_gpio &P2_19_gpio &P2_24_gpio - &P2_33_gpio &P2_22_gpio &P2_18_gpio &P2_10_gpio + &P2_33_gpio &P2_22_gpio &P2_10_gpio &P2_06_gpio &P2_04_gpio &P2_02_gpio &P2_08_gpio &P2_17_gpio >; @@ -272,15 +272,6 @@ AM33XX_PADCONF(AM335X_PIN_GPMC_AD14, PIN_INPUT_PULLUP, MUX_MODE7) pinctrl-single,bias-pulldown = < 0x10 0x00 0x10 0x18>; }; - /* P2_18 (ZCZ ball U13) gpio1_15 0x83c PIN 15 */ - P2_18_gpio: P2-18-gpio-pins { - pinctrl-single,pins = < - AM33XX_PADCONF(AM335X_PIN_GPMC_AD15, PIN_INPUT_PULLUP, MUX_MODE7) - >; - pinctrl-single,bias-pullup = < 0x10 0x10 0x00 0x18>; - pinctrl-single,bias-pulldown = < 0x10 0x00 0x10 0x18>; - }; - /* P2_10 (ZCZ ball R14) gpio1_20 0x850 PIN 20 */ P2_10_gpio: P2-10-gpio-pins { pinctrl-single,pins = < @@ -406,6 +397,27 @@ AM33XX_PADCONF(AM335X_PIN_GPMC_WAIT0, PIN_INPUT_PULLUP, MUX_MODE6) /* (T17) gpmc AM33XX_PADCONF(AM335X_PIN_GPMC_WPN, PIN_OUTPUT_PULLDOWN, MUX_MODE6) /* (U17) gpmc_wpn.uart4_txd */ >; }; + + pru0_pins: pinmux-pru0-pins { + pinctrl-single,pins = < + AM33XX_PADCONF(AM335X_PIN_XDMA_EVENT_INTR1, PIN_INPUT_PULLUP, MUX_MODE5)/* (D14) xdma_event_intr1.pr1_pru0_pru_r31_16 */ + AM33XX_PADCONF(AM335X_PIN_MCASP0_AHCLKX, PIN_OUTPUT_PULLDOWN, MUX_MODE5)/* (A14) mcasp0_ahclkx.pr1_pru0_pru_r30_7 */ + AM33XX_PADCONF(AM335X_PIN_MCASP0_ACLKR, PIN_OUTPUT_PULLDOWN, MUX_MODE5) /* (B12) mcasp0_acklr.pr1_pru0_pru_r30_4 */ + AM33XX_PADCONF(AM335X_PIN_MCASP0_FSX, PIN_OUTPUT_PULLDOWN, MUX_MODE5) /* (B13) mcasp0_fsx.pr1_pru0_pru_r30_1 */ + AM33XX_PADCONF(AM335X_PIN_GPMC_AD15, PIN_INPUT_PULLUP, MUX_MODE6) /* (U13) gpmc_ad15.pr1_pru0_pru_r31_15 */ + AM33XX_PADCONF(AM335X_PIN_MCASP0_AXR1, PIN_OUTPUT_PULLDOWN, MUX_MODE5) /* (D13) mcasp0_axr1.pr1_pru0_pru_r30_6 */ + AM33XX_PADCONF(AM335X_PIN_MCASP0_AHCLKR, PIN_OUTPUT_PULLDOWN, MUX_MODE5)/* (C12) mcasp0_ahclkr.pr1_pru0_pru_r30_3 */ + AM33XX_PADCONF(AM335X_PIN_MCASP0_AXR0, PIN_OUTPUT_PULLDOWN, MUX_MODE5) /* (D12) mcasp0_axr0.pr1_pru0_pru_r30_2 */ + AM33XX_PADCONF(AM335X_PIN_MCASP0_FSR, PIN_OUTPUT_PULLDOWN, MUX_MODE5) /* (C13) mcasp0_fsr.pr1_pru0_pru_r30_5 */ + >; + }; + + pru1_pins: pinmux-pru1-pins { + pinctrl-single,pins = < + AM33XX_PADCONF(AM335X_PIN_LCD_AC_BIAS_EN, PIN_OUTPUT_PULLDOWN, MUX_MODE5)/*(R6) lcd_ac_bias_en.pr1_pru1_pru_r30_11 */ + AM33XX_PADCONF(AM335X_PIN_LCD_PCLK, PIN_OUTPUT_PULLDOWN, MUX_MODE5) /* (V5) lcd_pclk.pr1_pru1_pru_r30_10 */ + >; + }; }; &epwmss0 { @@ -487,3 +499,17 @@ &usb0 { &usb1 { dr_mode = "host"; }; + +&pruss_tm { + status = "okay"; +}; + +&pru0 { + pinctrl-names = "default"; + pinctrl-0 = <&pru0_pins>; +}; + +&pru1 { + pinctrl-names = "default"; + pinctrl-0 = <&pru1_pins>; +}; From patchwork Wed Aug 16 00:23:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Woerner X-Patchwork-Id: 13354418 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D769AC0015E for ; Wed, 16 Aug 2023 00:23:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=FvmbsGBYwbQsYutY7fFk+/pN8fBseYD1XZW0ZyN9Brs=; b=R8C3jsoPzOdLRN Z7TtSq69CDhIEr1bdcbISkBTg/k9HZxLJnbnMx5A1xVl0H9+E9TyR9cwNuRF0ItTjdtuz++CwMfAh 2DTkYx/1y2M37yiMdF/Yb6Ta7c6WGw+QKDPt/vl3zOYjXSMyqIjC4PUzVWQlooZlOmhtijSDF/HrZ xPlpEhsQkOn/wMdrcl7O0QiRLVNCcvg1ULKcbfrYoDCya3MAJ3/s/eHkAeQvHt+Y3lHOTiMjXd5Zg b+ZLNxwO7RUzbTWI3nxYu/GHc1hvJHj08GWr0iCQjI3j4WeETW/0aKhet+6rx7bLKyrJFah68AUZ9 ZJKdUFZdZncSD+z4JE+g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qW4Jr-002rdA-2v; Wed, 16 Aug 2023 00:23:27 +0000 Received: from mail-qv1-xf30.google.com ([2607:f8b0:4864:20::f30]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qW4Jl-002raI-04 for linux-arm-kernel@lists.infradead.org; Wed, 16 Aug 2023 00:23:22 +0000 Received: by mail-qv1-xf30.google.com with SMTP id 6a1803df08f44-63fbfca1302so24855886d6.2 for ; Tue, 15 Aug 2023 17:23:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692145399; x=1692750199; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5/8K2QeZwhFqsUJjMS9Z0FDVEgMP4aY8Jq0ZFbU+wFw=; b=eJFvD+IcO8uvgiz89WpZ+yFprOak0v2Geg6OUZR86fL2Hyyex2SgTDMvUkdNMz4XXq fk/XKuDyEgiNJuoe+v2dKpQXmLS/FX8hA22KKSoOmvYmbRv/9bBNAiQlVEGHbm7F3Mvz EuZpcTQksQdFtLzxK63k6kA1dY+2/MKoyVRLVCkqMzFOEf+HRVNsJ8fPTZ/DxEXO2j5S 6nF14hUF6eVGwDama823C0uHk+LMUeTK7Am2L02uQ1WRL4/q+kNbO7zl8h6mDxvIIlXi UGHD2kiC7zOlzjZzLiPqbP4XY5noDF+2hfwlMJDN0fyOSUzWRG762MZxicQjSzBlgECV Lfvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692145399; x=1692750199; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5/8K2QeZwhFqsUJjMS9Z0FDVEgMP4aY8Jq0ZFbU+wFw=; b=U4uGKxH1MgCADq9XSdbMvekeOqOBa/fWCbFCaszZBTHxhA/BF/LSVvC1qOSyZXQz2S L99If9q7/GGmy0EQWA2wyz4gQ3j05IUGdsZxYb3zyVjT1KMj3woh5kkWcCo7OT5sVcIM dhu9kB+tpM5z7ce1qexpnNAk4SoQEDYwCUOzgTEP+XUue0ga2h1IOd1EN7uRTu1IucLb M/dPNu7RZS8MuBWDAOqdNiSlZR9TAleqITRBYwrzchR18Eo+K78PXCxvZJLXS6yOJ0l6 aPtebDVdCX3zz/5VXIzDxI5PEP1IpMYEgFOI5vhsSQRkXIcoBgLeagCNrcG1oVBCLjhL z+bg== X-Gm-Message-State: AOJu0YxBa0TTQScfSABQ0SKm7wy/FafdLv0lzTJyAA8t3XZgLkFLAaMH h7K2eHCeaaUFfKT9QiwylN9+MyjMwLA= X-Google-Smtp-Source: AGHT+IEy/k30Pb0SnuXft2UU+8PxSkioYv54YN09Kc1tPlmtFls7ljh3AdSEozuP98R4pc7KjSa1RQ== X-Received: by 2002:a0c:f187:0:b0:647:42bc:d00b with SMTP id m7-20020a0cf187000000b0064742bcd00bmr274177qvl.63.1692145399542; Tue, 15 Aug 2023 17:23:19 -0700 (PDT) Received: from localhost.localdomain (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id r11-20020a0ccc0b000000b0063d5c9de720sm4452436qvk.80.2023.08.15.17.23.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Aug 2023 17:23:18 -0700 (PDT) From: Trevor Woerner To: drew@beagleboard.org, =?utf-8?q?Beno=C3=AEt_Cousson?= , Tony Lindgren , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH 3/3] ARM: dts: am335x-pocketbeagle: add missing GPIO mux Date: Tue, 15 Aug 2023 20:23:06 -0400 Message-ID: <20230816002308.36800-4-twoerner@gmail.com> X-Mailer: git-send-email 2.41.0.327.gaa9166bcc0ba In-Reply-To: <20230816002308.36800-1-twoerner@gmail.com> References: <20230816002308.36800-1-twoerner@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230815_172321_060145_7C05176A X-CRM114-Status: GOOD ( 14.73 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add the default MODE setting of a GPIO pin that was missing from the device tree (i.e. P2.20/gpio2_00). This is to ensure the GPIO pins match the pocketbeagle wiring expectations. Signed-off-by: Trevor Woerner --- arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts b/arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts index 6d875cf13e09..3d7bad8bfb2f 100644 --- a/arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts +++ b/arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts @@ -214,7 +214,7 @@ &am33xx_pinmux { pinctrl-names = "default"; pinctrl-0 = < &P2_03_gpio &P1_34_gpio &P2_19_gpio &P2_24_gpio - &P2_33_gpio &P2_22_gpio &P2_10_gpio + &P2_33_gpio &P2_22_gpio &P2_20_gpio &P2_10_gpio &P2_06_gpio &P2_04_gpio &P2_02_gpio &P2_08_gpio &P2_17_gpio >; @@ -272,6 +272,16 @@ AM33XX_PADCONF(AM335X_PIN_GPMC_AD14, PIN_INPUT_PULLUP, MUX_MODE7) pinctrl-single,bias-pulldown = < 0x10 0x00 0x10 0x18>; }; + /* P2_20 (ZCZ ball T13) gpio2_00 0x888 */ + P2_20_gpio: P2-20-gpio-pins { + pinctrl-single,pins = < + AM33XX_PADCONF(AM335X_PIN_GPMC_CSN3, PIN_INPUT_PULLUP, MUX_MODE7) + >; + pinctrl-single,bias-pullup = < 0x10 0x10 0x00 0x18>; + pinctrl-single,bias-pulldown = < 0x10 0x00 0x10 0x18>; + }; + + /* P2_10 (ZCZ ball R14) gpio1_20 0x850 PIN 20 */ P2_10_gpio: P2-10-gpio-pins { pinctrl-single,pins = <