From patchwork Thu Jun 27 07:58:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leith Bade X-Patchwork-Id: 13713916 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 EF668C2BD09 for ; Thu, 27 Jun 2024 07:59:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=YhATdO6KrQ7DGf5zFpJNQOGA3ipHEvfK6RNPhriw9Wk=; b=ZRGer9l2IWu5BLaZeinJyXVl79 QRRzzinQAYiosRa0WNvFpO6RlPdfbhePrc5QRDXbPC9Xy9HcTW+An+XhZcI4zZcxrRhgpOX9btdRE UmU7r7lIdzCApdKU6GK52tbWLsdeixNk4n4OHS1/HwZct7GjvecS8i9v0r1b3JfJzqTxnddfIw7Uz qHuAq3S4lDlwzVhaLnK2KPC5kKkuK1QljejLDnzBUrRmYoEoeu2da4pkHSfx8oU5Jlyz8cJHLPwpH sSZrlCFk64SsQ822h1DkKK1pSDM0zeXOZsnHAOB9S0LJYROrTEujunMHT20RmpLQ//RRXZJ1c8qsY e0/YaQzA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMk2U-00000009enU-0Pz1; Thu, 27 Jun 2024 07:59:30 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMk2M-00000009ekx-0c18 for linux-arm-kernel@lists.infradead.org; Thu, 27 Jun 2024 07:59:24 +0000 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1f9d9b57b90so51608415ad.0 for ; Thu, 27 Jun 2024 00:59:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bade.nz; s=google; t=1719475160; x=1720079960; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=YhATdO6KrQ7DGf5zFpJNQOGA3ipHEvfK6RNPhriw9Wk=; b=bh3UJb2th8eopWIG+fpG4S6mnrZRac1w3AetMRA2ihtts2MLk4cDMXMSDFFEBGyyV5 DJYLKW79x+rexfDvIA3v8aSDni0Ta3pPvXM/Zm86bQLAnM+U0kzp3s9MlYMLBqb8aNV8 ep2HsVfbASrwEseg9HnbiA1xPpfikACNec023hcSiKXHs7z79Sr2Vyu8jInZFDqMi0pQ r91tieM18tEqsWUF8NYEAour2B5WOpQpF6mEW6frrirJZeB1JmfEm7dYNoz0rGa42FIZ zWTP8WUPt3SuUArrG9NW2r6HpH8xsjJNmM8aklPKjUl4ySPtmvDww/g0fu5U+PahOsI0 tQdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719475160; x=1720079960; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YhATdO6KrQ7DGf5zFpJNQOGA3ipHEvfK6RNPhriw9Wk=; b=En+XBvecdtD9eaerQiKtxN8jaEVcxsVLA3hmkG/dqVz4Gq+YNjMwwkjbZV3sI5aBXM DDuCZCnIbetUyNHsMVVTUsNLRqhzIiV9hlrJ1JpHq5ITTAzp4W7VGKhtxE7WzLvgic8I CqxajNP1MwBrC38nVKP2cPUdiDyzhT5hHEerezSnt44E78YeHUPZ98XV2hgS2RtDY1QM S6EniwDZyAPBJwNMRY0STg8pU3x3Be7Kmw4GZLESL6KHZfYAOhQsMFrvDVPATLb/zvYk azHNSo3WGHDVOCWy4ORKfJt98EByV+6GI6UNIxYXGP8ckFxNDKWvEIiA0X/k+afNqvrv Jodw== X-Forwarded-Encrypted: i=1; AJvYcCXsRctWAGi2MwiL2vAv6Dqgr0X7K7kGu7EF/4TX+i4UsN3hbZsistYCpC+aIsHxkPs+ADBN/eVhgIuWX5gK88HCNP5pJG/SaSVQ0awvLWz+YP3C3zg= X-Gm-Message-State: AOJu0YwAsmdEFxgIzomsoyKz1yZ5KQDvGh6cp9nwn4fq2GfprH0f2QXH GV7DZyuWAUHQqIRWrqwDy2wZBQiOYXF3ZjQgAyM9Sqmf8ElJ/vIXzcq9oSf4DQ== X-Google-Smtp-Source: AGHT+IEId4xAhY5agqBpTrDO4fZhNU4HUM0EUNs593ufRli/awKIB75mg7lSCq/noyD1uiLh3lObQw== X-Received: by 2002:a17:902:cf10:b0:1fa:9ea1:bc85 with SMTP id d9443c01a7336-1fa9ea1bd8cmr33387115ad.56.1719475160587; Thu, 27 Jun 2024 00:59:20 -0700 (PDT) Received: from localhost.localdomain ([2403:5816:cd6c:0:6d45:ae2f:1ead:bd58]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1faac9c4cf4sm7181895ad.290.2024.06.27.00.59.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jun 2024 00:59:20 -0700 (PDT) From: Leith Bade To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, frank-w@public-files.de Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, didi.debian@cknow.org Subject: [PATCH 0/4] fix up pin definitions for BPI-R3 board Date: Thu, 27 Jun 2024 17:58:52 +1000 Message-Id: <20240627075856.2314804-1-leith@bade.nz> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240627_005922_523390_11CAEC78 X-CRM114-Status: GOOD ( 14.55 ) 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 This is my first patch submission to Linux so I apologise in advance for any mistakes. These changes were motivated by a pin conflict with the PCIe M.2 connector and the push buttons. As a result I decided go work through all 100 GPIO pins using the public board schematics. As I need to acquire a M.2 SSD to test the PCIe pin change that patch is not included in this series yet. Working though the pins I noticed a bug with with the MT7531 chip's reset line which was on the wrong GPIO. Since it was conflicting with the boot mode switch input GPIO pins I looked into ways to document the use of those pins with the switch. I ended up choosing a gpio-hog, but please let me know if there is a better alternative. I also added some missing pin groups for some of the built-in SoC devices to clearly document the use of those GPIO pins. I have actually written up a gpio-line-names list give all the pins names to match their usage on this board. If there is interest in this I can submit this as an additional patch. I see only some MT8xxx devices in the mediatek directory have a gpio-line-names so I wasn't sure if I should add it.