From patchwork Tue Aug 22 14:30:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Woerner X-Patchwork-Id: 13361014 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 768C8EE49A3 for ; Tue, 22 Aug 2023 14:31:46 +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=Dp9/ryYkmaoYJhJQ7v7RMEiYRos4+vhwJuBO4/nskH8=; b=G+5dswdQHE+odL wyaM3KfjIfocKwizQrr66oMsL6PaPBI9THh2mfn2H73NBb37zbLd5mmn3Xc7QnZH3Pb7jjaKWJncE e885XVWWsU8sQVVF3+FKkmpz4F/SZrT+IFGzyiG9/aT5wYLYfPWQ4DScm8MQ4KYI7KPck+ZD7l6b7 R9zHfS/rX4+8eiZ0gtfYB6eRnLc26E0ij9B8IoZ+OUfVy8RQKP4NiOaLTzizwyg4jDmxMS/tLq6OW x6JiUo0LStlCFU++pv5GyIjqPhLUMkHm8RUYU55VFirAFp5lQdBk3Yz8YdGS0xMqelfYdOGTszi1d di0hPeDapGcH/H9L945g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qYSPd-00GDNB-1O; Tue, 22 Aug 2023 14:31:17 +0000 Received: from mail-qt1-x832.google.com ([2607:f8b0:4864:20::832]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qYSPU-00GDII-1R for linux-arm-kernel@lists.infradead.org; Tue, 22 Aug 2023 14:31:09 +0000 Received: by mail-qt1-x832.google.com with SMTP id d75a77b69052e-40feecefa84so24630801cf.1 for ; Tue, 22 Aug 2023 07:31:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692714665; x=1693319465; 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=ij4iII3kET4AquK7NA+5uE9piCz+Tm+vsG2ScePYKZA=; b=ndo9Uyr5d3TqW/Ju7EDXM5ytELrSZEUmUZAgLB0XMolZ4fexP5oTWUgHy8hrgtWcfE 88o+gLrDy4XEBCsNyaZ69jKPR3HW6rJyc9OsnPn7JTxTqb9noLfy8ROX1nUsRqpXp76f 7NPHM6T0ArVAJzW9FfXWEWmkjHwaIF1T/ifmonJdEAvamgZe7UGizq+EE76lzgb640mR 6J24nHAhY55j85N9g7OKuOCqoUn4DhNoTBUc11tAvJ4F5/6asWuoUt82u5x7Fvwn/YsI WoQW+5jXW2uIsnDH7znkl9+kGGy0zp6a9wo6o/oTR1EA44p5IsCj2FGBmeKRs06UjJ+j EFeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692714665; x=1693319465; 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=ij4iII3kET4AquK7NA+5uE9piCz+Tm+vsG2ScePYKZA=; b=d/13aUeea5Aocl7J/PQAJfqFA0uCHbta6PJz6eSYMbmXbNXb4jjUCMeXoOdVx2XZII h9CWEsZ6+qPLL8hwZ9LhUGeimb9PjrytdIQ01zSJP3S534l56t0bhN7yJsHYAzND2oEz DU2uwdvcU/WHr8Wr5PZwhKqazhAArhAmEM7RNUZwfLk3gY3eQgwxzik+PJ86L6E7SD4Z YMozCUlkBfkIkSCtxkwhz9C5bwow17nq1VQu2mr2dr1ROORqxrv3KSzRYdnuorw/VOww WNlNU0Lzk0rN1w5D+RU/V9qaFHUH+VWgNrndleJg9qz4sRV19d86uUlVi5BHTX2bmOms VJUA== X-Gm-Message-State: AOJu0Yyn1+s/dgieqPbp30dld/70UvEuPlAqK8dkmlMWL8uIQkVvrWX7 HUrCZTEqvpNI3ZV9IgzocTo= X-Google-Smtp-Source: AGHT+IF1Je84nJKuJClnYcJ9eAiQjLLg+oLwcKU4O6UcUV8ucxBFV6300FTQzqTnctRAHEEqEr6YgA== X-Received: by 2002:ac8:5a55:0:b0:40f:df11:8bef with SMTP id o21-20020ac85a55000000b0040fdf118befmr11766976qta.52.1692714665214; Tue, 22 Aug 2023 07:31:05 -0700 (PDT) Received: from localhost.localdomain (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id e19-20020ac86713000000b00407ffb2c24dsm3055750qtp.63.2023.08.22.07.31.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Aug 2023 07:31:04 -0700 (PDT) From: Trevor Woerner To: robertcnelson@gmail.com, drew@beagleboard.org, =?utf-8?q?Beno=C3=AEt_Cou?= =?utf-8?q?sson?= , 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 v3 1/4] ARM: dts: am335x-pocketbeagle: update LED information Date: Tue, 22 Aug 2023 10:30:47 -0400 Message-ID: <20230822143051.7640-2-twoerner@gmail.com> X-Mailer: git-send-email 2.41.0.327.gaa9166bcc0ba In-Reply-To: <20230822143051.7640-1-twoerner@gmail.com> References: <20230822143051.7640-1-twoerner@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230822_073108_483340_E4C054F6 X-CRM114-Status: GOOD ( 11.86 ) 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 "color" and "description" properties. Signed-off-by: Trevor Woerner --- arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts b/arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts index 5dfe4d4bab93..667dded1a167 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"; @@ -25,6 +26,8 @@ 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"; @@ -32,6 +35,8 @@ led-usr0 { 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"; @@ -39,6 +44,8 @@ led-usr1 { led-usr2 { label = "beaglebone:green:usr2"; + color = ; + function = LED_FUNCTION_CPU; gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>; linux,default-trigger = "cpu0"; default-state = "off"; @@ -46,6 +53,8 @@ led-usr2 { led-usr3 { label = "beaglebone:green:usr3"; + color = ; + function = LED_FUNCTION_INDICATOR; gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>; default-state = "off"; }; From patchwork Tue Aug 22 14:30:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Woerner X-Patchwork-Id: 13361012 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 51DBAEE4996 for ; Tue, 22 Aug 2023 14:31:45 +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=MnuPQoRdu+2HNlUJewk09QgEw5PJ3dzsC8DwlzJtpRE=; b=b0cLzaKP2oa2ef TbeKB3diPvws5+RtmcDT1JpVtd8WNETUuGx7qoTqTcL4UgoFZPnE6q1cWZFbpEVRv+cFUGxDJIDNO 75IspmlfhHNWsvigUde9Tl1L4ffrcjUMrWamanojgILd9t5jc3X+qqKTKg6dBDcrCZrY+1VMbUKhG MztVVSf2J8K2YVzxUmUYby1rseDj7K53uZ3YqGhcPlZneLPo8ZDWMjfGDOAJZwLTm68O1lwFCeqzU 7lUDCQQzPBY8wQVMmC+nAgL0NCiExe1mp10Yw9EkgwelN1dhVQ1BmgyBzS6SH1hxBuSCmDcJZ5O0V ry9cRcrxR9g2oLBlUkJA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qYSPd-00GDNj-33; Tue, 22 Aug 2023 14:31:17 +0000 Received: from mail-qt1-x834.google.com ([2607:f8b0:4864:20::834]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qYSPW-00GDJB-19 for linux-arm-kernel@lists.infradead.org; Tue, 22 Aug 2023 14:31:11 +0000 Received: by mail-qt1-x834.google.com with SMTP id d75a77b69052e-40fc670197aso24429791cf.1 for ; Tue, 22 Aug 2023 07:31:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692714667; x=1693319467; 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=y6sct25lX4sUrzVvtbgru0gGAI5dfBonk2comaZJLUY=; b=dObJ+ke0E+dwNn1offtNGHg3ejXD8bySNJREscb6hMZ6q3KEXvSBT0yfP0EcGEIAaT zJyU0HXhDxq7oJywXX+ieP0HyNJ+IPsO0BR2eEnyePwK+9jVzw840AYKqL04RQDpwg94 FpfvOWmKksuvJWPjEuYwUOI8nDV+ONNfpn63v9+bUJGb7TPZvQ/6hZW/mIUj0O3KHj3+ 1vYlxoBCIK/eCxaVwBqBGnCPQr21ondafqydJNq3DXf4IIIksl43PAQ/7iFqxceIy7vh OdpRO3pLRMAFFUlKRC01DNLjIsAGfxYJhbmJeh9HaC3c+rxPZfmqMkyAcR9tzmkfHtcZ WNmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692714667; x=1693319467; 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=y6sct25lX4sUrzVvtbgru0gGAI5dfBonk2comaZJLUY=; b=CULdZ/Nk8Xkdeukl3Ut6kW9dbjMUeaZrg3v7Q2gMRQ+yvjWMLSMW13TBjOY+fgMm1R qnKcITfnBShd4tOO6rcJFb5aHxXioWLoRjZp43URpcgtMRidBok5jmqUI2C4a2IE+3/M rAkDGo3as2tbR4J4HDpFE3ebFXQvx02Cr5P5V19jmcYvHJNosbeE3tNOx8Hyo5WikQfQ mQOT2gZE9PZAjpdkVRtB8dSHsXGO3vlX3iXZXiOiAYgua+h/Zm/anneYuMkNX0/Ac5hw fYCjMWvY50f248OJagw3AbDgoJhKeZgpkeiYDBG6T6NdIAvmb83V/AxtcgkQ8FAbgoqB Tw1g== X-Gm-Message-State: AOJu0Yx5JQB3UFGxZr10DRIlj7f5n//wwGvJbQbTb9W/vkCmFMmkgEVz HB2Wk8elTpvGKMckautCqdkrnripp0g= X-Google-Smtp-Source: AGHT+IHnipY6DfRuV10f8OKJj+XWeOSAu84CYROHdYk3QWf3vo0uVJnKKINv+UEUuQeG7+8M12QOUQ== X-Received: by 2002:ac8:7dcc:0:b0:3ff:2cce:c625 with SMTP id c12-20020ac87dcc000000b003ff2ccec625mr13222621qte.19.1692714667100; Tue, 22 Aug 2023 07:31:07 -0700 (PDT) Received: from localhost.localdomain (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id e19-20020ac86713000000b00407ffb2c24dsm3055750qtp.63.2023.08.22.07.31.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Aug 2023 07:31:06 -0700 (PDT) From: Trevor Woerner To: robertcnelson@gmail.com, drew@beagleboard.org, =?utf-8?q?Beno=C3=AEt_Cou?= =?utf-8?q?sson?= , 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 v3 2/4] ARM: dts: am335x-pocketbeagle: remove dependency cycle Date: Tue, 22 Aug 2023 10:30:48 -0400 Message-ID: <20230822143051.7640-3-twoerner@gmail.com> X-Mailer: git-send-email 2.41.0.327.gaa9166bcc0ba In-Reply-To: <20230822143051.7640-1-twoerner@gmail.com> References: <20230822143051.7640-1-twoerner@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230822_073110_389562_FCACF991 X-CRM114-Status: GOOD ( 11.38 ) 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 Remove the self-referenceing "pinctrl-0" entry inside the pinmux clause. This eliminates the set of boot messages (one for each referenced pin) similar to the following: platform 44e10800.pinmux: Fixed dependency cycle(s) with /ocp/interconnect@44c00000/segment@200000/target-module@10000/scm@0/pinmux@800/pinmux_P2_17_gpio Signed-off-by: Trevor Woerner --- arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts b/arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts index 667dded1a167..d4d1770657da 100644 --- a/arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts +++ b/arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts @@ -217,11 +217,6 @@ &am33xx_pinmux { compatible = "pinconf-single"; 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_06_gpio &P2_04_gpio &P2_02_gpio &P2_08_gpio - &P2_17_gpio >; - /* P2_03 (ZCZ ball T10) gpio0_23 0x824 PIN 9 */ P2_03_gpio: P2-03-gpio-pins { pinctrl-single,pins = < From patchwork Tue Aug 22 14:30:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Woerner X-Patchwork-Id: 13361015 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 083BAEE4993 for ; Tue, 22 Aug 2023 14:31:49 +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=BnF3hbo9cNe6xKjNt2DeYHZJ48Kqq4PJzRx2+QsoIDo=; b=QAJbikitCrNNg7 ckzufHOmTcd85Lg7Pzl/OEBjWPh7qhWH3k3Edq1NUnp01D5YcJENAYx9bempGsoL9uZ8bqvGUQOav Pl2nNqSYwJV1OU2IsDyJ2xJjXXMa5mO/xf9DsNEAyP7XVN03u3dUieXsxuUvnituMJQmOoZMDkd9p cnOpWgp02JwVO4NcOOcMRxUDLtr4k5Cu1ocYL01+KtDbhsUD40EYhILA7jHsRFug+qdkEtyeFvbrL YiC9zBkvzoVT0z6vk+T/D62Fk6CLLWRs1c5PgC08k79mVrZ4p5CPsYEndTai5T7ig+5AbzqXv+FnQ cxQx7ThExdXCl1Vuf6Dw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qYSPe-00GDO4-22; Tue, 22 Aug 2023 14:31:18 +0000 Received: from mail-qt1-x82b.google.com ([2607:f8b0:4864:20::82b]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qYSPY-00GDJo-0O for linux-arm-kernel@lists.infradead.org; Tue, 22 Aug 2023 14:31:13 +0000 Received: by mail-qt1-x82b.google.com with SMTP id d75a77b69052e-410994a240aso13089621cf.1 for ; Tue, 22 Aug 2023 07:31:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692714669; x=1693319469; 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=+1y0ssjEfvJL8cH6v7C8R2TDxgKl3uHam44e68F6Nws=; b=iYFY4QyvlIde0zN55CBSvnBwK56ICgT/hvPvw4PlDQ9HgN0lGjs6J8gQjp6Vm3iPZB SS/bZYQzN+D9CNcOs4LbTP4/MMgck5hV7mWB095eJ2mNl0/BQdNq2+lRYyw3EoFd4PTc zV3Ve8DZHft1Crj6FL7hCCpgdb9P/Ez6JNK4KR07pRkCIuAWb3nAiLziEu49rTzal91l 59vi6A6ixMLXxJ32oqIHjU55VNapXAfSuZPHLaCy9EIbXNhY9eEbpZs5SYc8X7qRX34V pHPlK+g8i2sxlj+gQ8Jd50yx+qseoIpuznwc2SUwRXIls8ZjMBMnuSpXeBHZ1u46Kqab pesg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692714669; x=1693319469; 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=+1y0ssjEfvJL8cH6v7C8R2TDxgKl3uHam44e68F6Nws=; b=Rw/w3O7lkw5TcHWEboF9jOC3XSrxbASZZXR/9sAxVlCJQxw3qhfcdOudse5Wtqm66s zJ+ZkKkH8pNRi4B6LVmQ9UdNYbgm8tK52fUnJOEwAPaZh8vxqShlZbeiPVG3C6hlx7u0 zAndDme8+dRGory1cn87V+OWq3kCMU0u/zp+KtXogSL95npNhMU2e6MghbqHZdK+5+4/ sy7dssEq0taQnGtQnQOASu6yru9BVUSBaMv3pEQQ6Y5pLveGHoQ4hKHh7h4lcz51d3Oi zInPDtFi8CPMR1mTedanxK0+SU/V7hGBwiK+qMfqzOn3HvzNGRN9wynSZ4s108z26x2T N9QA== X-Gm-Message-State: AOJu0YxPK3QYcLJNWnz6LXTl+4FsESgN0eIIOcWw8ebYA48JMUMCJmLh bPbOyazCIn9Crb+S3uuzV30= X-Google-Smtp-Source: AGHT+IG5gfkKQlRt4vF/85xVOFuI+mEbQ2tCzjo7GsAhNErl14UR0XTSkZFe+qKxh56k5k0x6p9/0g== X-Received: by 2002:ac8:5c42:0:b0:410:8b14:a324 with SMTP id j2-20020ac85c42000000b004108b14a324mr12735362qtj.10.1692714668883; Tue, 22 Aug 2023 07:31:08 -0700 (PDT) Received: from localhost.localdomain (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id e19-20020ac86713000000b00407ffb2c24dsm3055750qtp.63.2023.08.22.07.31.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Aug 2023 07:31:08 -0700 (PDT) From: Trevor Woerner To: robertcnelson@gmail.com, drew@beagleboard.org, =?utf-8?q?Beno=C3=AEt_Cou?= =?utf-8?q?sson?= , 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 v3 3/4] ARM: dts: am335x-pocketbeagle: enable pru Date: Tue, 22 Aug 2023 10:30:49 -0400 Message-ID: <20230822143051.7640-4-twoerner@gmail.com> X-Mailer: git-send-email 2.41.0.327.gaa9166bcc0ba In-Reply-To: <20230822143051.7640-1-twoerner@gmail.com> References: <20230822143051.7640-1-twoerner@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230822_073112_166915_E3B7868A X-CRM114-Status: GOOD ( 16.82 ) 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 | 46 +++++++++++++++---- 1 file changed, 36 insertions(+), 10 deletions(-) diff --git a/arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts b/arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts index d4d1770657da..e35d84ca5706 100644 --- a/arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts +++ b/arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts @@ -121,7 +121,7 @@ &gpio1 { "P2.24", "P2.33", "P2.22", - "P2.18", + "P2.18 [PRU0.15i]", "NC", "NC", "P2.01 [PWM1A]", @@ -271,15 +271,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 = < @@ -405,6 +396,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 { @@ -486,3 +498,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 Tue Aug 22 14:30:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Woerner X-Patchwork-Id: 13361013 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 E2703EE4993 for ; Tue, 22 Aug 2023 14:31:45 +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=YNAaFCdX6S+Rfm5l0LayKHlB8JhTrMmZRjJh+63dMp8=; b=CFmLQM4nHxLp7O QvaHCx2NpLS0Oy3Fk7kiT/aIdn3T9H1SgFVlVT+nPij8ADyloDu2lww6AubUmBSbPE47ZLeY9JWbf Tf2tXIVEm33xMAFCwadhdEhOBVD8FzuFwna03PuYk9XQvl4SBZRznVWahzAKSBlUajE26mOBhJj5b 7pIbMc7KL0mG5/wgVGTbxBxN+9qYAZXLFxf8Kf/8iVQNIzn71qycOAWIM8dJvpxvrxr/2bJk8Bj+a MrSI5cmzHWk0wCuhpU4wXn5oa09sKJuARovizRHLNcvjc/lIiLQtr1Ny6q14H074IKtjM1qiUGUvP X1M7uE+1CFjmrbr4Mi6g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qYSPf-00GDOU-0a; Tue, 22 Aug 2023 14:31:19 +0000 Received: from mail-ot1-x336.google.com ([2607:f8b0:4864:20::336]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qYSPZ-00GDKq-0n for linux-arm-kernel@lists.infradead.org; Tue, 22 Aug 2023 14:31:14 +0000 Received: by mail-ot1-x336.google.com with SMTP id 46e09a7af769-6bda8559fddso1642868a34.1 for ; Tue, 22 Aug 2023 07:31:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692714671; x=1693319471; 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=TsWTJD3ltCClAmobbJQJ83gWipLBvL+hCSH7zY5DAw0=; b=FGpERl3S29e/bMc0Evs9EXKtLpXJkhPL17eTEY8vjDSBGlEpjhMPbQXJa8HonxWbHx ZkZtl0OttvucnkRybhs7OZ1KUvERmhU2vxWT8y2t4iwSu4w85E6jNBtqSkuifFcXkp9Y nSUPfgH3PaNNeH6uMdVOqerZ1zZxUj9pFRJ7PegGtyvoGhHOj8o0tHh5Gxgw6ohqShqT Is019LylG4qzpweLvKLBr+Rs295wnm1+e+lV4ZxIEd7krHcOb5dOfW4ep+QCcLgzevaO DwmcnT/V3qwI9rH5c6ybVKxni5govs22kZCvwCv1NoBviUPZQy9wkPcwPmblwO21Iqb1 3cZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692714671; x=1693319471; 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=TsWTJD3ltCClAmobbJQJ83gWipLBvL+hCSH7zY5DAw0=; b=Vijv4ed4sfniQgxsEsjoersw5btEggAxjZ+Bv3MHpEtZDYDVofCz+lwhdnH3Q+mz8+ 8AfZSIfUO+ZNBrhJXo6ketdwHMKR/9K6S1Ue3aKZDvg7F+aauwSVacEer4KcTo4jSHDg KioW8k52JLQhHwNpg9oQB7QrLFao3UFO0hhc4GfPa9z+a7YDlK3iE3u9pXjExj0VBCb0 r7NYtHkdEhL6YQf2TLukmwyZV7yGloOtefQW7fgWNvMdOfWouiQMupDDRIn1zgWyeDo0 cL6e418LVF0GIF5Qxz6QivrcRBgSsBJqFbWspxqmshSMmpYVchkuL94sETdlfrcSxD/J dQBw== X-Gm-Message-State: AOJu0YyVwsaMd9AlY3mFp2RbkpA+vQ9eDKqoF+ClIZA/QJGPDXt7WFoY 1TWUvUuF/p8bVyMUxRycZSU= X-Google-Smtp-Source: AGHT+IHSFh63MdCPpGxWkF/lZI81GdaD2eXwZ8LmoJnR6RYpsOUSDC213iUcpofdTNJf3y7AxLmhKQ== X-Received: by 2002:a9d:7f01:0:b0:6b7:206e:edf7 with SMTP id j1-20020a9d7f01000000b006b7206eedf7mr11025126otq.1.1692714670905; Tue, 22 Aug 2023 07:31:10 -0700 (PDT) Received: from localhost.localdomain (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id e19-20020ac86713000000b00407ffb2c24dsm3055750qtp.63.2023.08.22.07.31.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Aug 2023 07:31:10 -0700 (PDT) From: Trevor Woerner To: robertcnelson@gmail.com, drew@beagleboard.org, =?utf-8?q?Beno=C3=AEt_Cou?= =?utf-8?q?sson?= , 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 v3 4/4] ARM: dts: am335x-pocketbeagle: add missing GPIO mux Date: Tue, 22 Aug 2023 10:30:50 -0400 Message-ID: <20230822143051.7640-5-twoerner@gmail.com> X-Mailer: git-send-email 2.41.0.327.gaa9166bcc0ba In-Reply-To: <20230822143051.7640-1-twoerner@gmail.com> References: <20230822143051.7640-1-twoerner@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230822_073113_283156_F0110917 X-CRM114-Status: GOOD ( 13.51 ) 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 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts b/arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts index e35d84ca5706..8042917b3b3b 100644 --- a/arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts +++ b/arch/arm/boot/dts/ti/omap/am335x-pocketbeagle.dts @@ -271,6 +271,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 = <