Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp997803lqt; Fri, 7 Jun 2024 05:24:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXktx0SBwPjdWZsOEggY72lyHfFYQ2vEyybNoxgkDzWqBtM+p9ozrcTQ4na9cPt1LZLqGhCdk/1AG4nmsH8VeA5+MTfmZRdgMYzgaRx/g== X-Google-Smtp-Source: AGHT+IENvxKj9CmNZbyzyGZGYgQthHqAXjEHvz/oFnQ+5SpfvNPjBTKK6O7qbhchxcM1dVCtVSP9 X-Received: by 2002:a17:906:4ec4:b0:a68:c721:1c7a with SMTP id a640c23a62f3a-a6cd665eb3cmr172771666b.22.1717763053786; Fri, 07 Jun 2024 05:24:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717763053; cv=pass; d=google.com; s=arc-20160816; b=KBDrAB8tsptzbA+eYnL2KJ7HFTZ4aWBW5Znr5i36nxeykZnEApq5tuhd2MUhj4w2yW tX+ecK9Ke9ozHaA4AyXTGAb5AB3rOs4YpLRzB9EPtd8dgADFe97p4KPA1rHPmJ4CrG0z RyM2zUw2Tby692E4ysLTHkY6STPVNr+q8jwFv4hUB2dGJg+sBK14h27Eecf8gyxDdFSh 9/nXWGruOZYMkWCjIgVNjRlx7WIXy/gHqNDI4oY4kq3Ecb99ch5RP1Fl9M9VZnpfLvhQ IR/JKlrkhSodpKR9j6RAPEF8xi9IqwEcP6M2fpOYIyStkDTOwyU/uKO/RzsNbTItXt61 mK7A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=D2NGnIyJ8ADvKy5ntZIuivJkW1wOHi/aWToLc+A1fNQ=; fh=kNby2GRDcnbhjoP1UcUanNRCD8WWnG/xgZrgwORwIhI=; b=iFtsyi1YBC9UEhuJ280GsaZrRYZf/Csj1VO0zXkY5A+8TXICphONiVeZEF3gcNvZ7N bALglHunOTaZ+N9MytQ8vQuisUgNBpC2cqiZv7LvsvJ9C4ce3GsOuHvC3S3v02epJS3D RymDq8z5LrzUxgNUy6Up+v46NXBmmaBM6NmeJIuj5lW4xQfV+k9OZU+LHpjWvjpW8anx O8mfB8J9TNWzIGIXgfiWeHd2GhxeyDAFHThcxZnrRb9c+ynF1g+TNw7tPSUgPcSWw0MI FkOJBhVH7ju4N9GK2R1goDIvsl9bL6h4Xa7TmL9VSlTa60TrY/ifkEb14H2Ul+Mm1HkY dTQQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-206015-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206015-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c806db09fsi179112566b.348.2024.06.07.05.24.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 05:24:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206015-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-206015-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206015-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 78DFF1F25413 for ; Fri, 7 Jun 2024 12:24:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 810DB1922F9; Fri, 7 Jun 2024 12:24:05 +0000 (UTC) Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 61FC318F2E8; Fri, 7 Jun 2024 12:24:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.11.138.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717763045; cv=none; b=szk5FUiUfCrW2In+fX2aTHQQp/RYD3IgKVLDbPuHbgksCtqF/V7a0GpP96RLrvhskutcAZekBF2f5amGBBBqq+Lx/2xzmquLDW9RtoBc4v/pX7yu5+WuMpWnS/qJfBy5gWY3N78QpVzKCWxBV6syJZiJCQH5NN2t9wNMyJ7Uf2U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717763045; c=relaxed/simple; bh=dajpKZz4Hj46LCnthaetZN7F81O2tDQTMjdjJVZjR1I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=EYshXE6hbe4J1tC8HXPWMo0I9QdvXWcLcgQI6bSYEFFEXKgNKZO+R3wsO3umTIX8YzK4XDtQ7imaPiw6k7mvHQeo9/IyIQB3+kCRzHcO/J85rqlHCzTBOMZrmz/MFzAJBd6hNuiJD/qV7linYem0HjgAd/mlNHeBCZhN/8odPso= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de; spf=pass smtp.mailfrom=sntech.de; arc=none smtp.client-ip=185.11.138.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de Received: from [213.70.33.226] (helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sFYdN-0002pU-Uq; Fri, 07 Jun 2024 14:23:54 +0200 From: Heiko Stuebner To: Linus Walleij , Huang-Huang Bao Cc: linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Huang-Huang Bao Subject: Re: [PATCH v2 1/4] pinctrl: rockchip: fix pinmux bits for RK3328 GPIO2-B pins Date: Fri, 07 Jun 2024 14:23:52 +0200 Message-ID: <8510397.lOV4Wx5bFT@phil> In-Reply-To: <20240606125755.53778-2-i@eh5.me> References: <20240606125755.53778-1-i@eh5.me> <20240606125755.53778-2-i@eh5.me> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Am Donnerstag, 6. Juni 2024, 14:57:52 CEST schrieb Huang-Huang Bao: > The pinmux bits for GPIO2-B0 to GPIO2-B6 actually have 2 bits width, > correct the bank flag for GPIO2-B. The pinmux bits for GPIO2-B7 is > recalculated so it remain unchanged. > > The pinmux bits for those pins are not explicitly specified in RK3328 > TRM, however we can get hint from pad name and its correspinding IOMUX > setting for pins in interface descriptions. The correspinding IOMIX > settings for GPIO2-B0 to GPIO2-B6 can be found in the same row next to > occurrences of following pad names in RK3328 TRM. > > GPIO2-B0: IO_SPIclkm0_GPIO2B0vccio5 > GPIO2-B1: IO_SPItxdm0_GPIO2B1vccio5 > GPIO2-B2: IO_SPIrxdm0_GPIO2B2vccio5 > GPIO2-B3: IO_SPIcsn0m0_GPIO2B3vccio5 > GPIO2-B4: IO_SPIcsn1m0_FLASHvol_sel_GPIO2B4vccio5 > GPIO2-B5: IO_ I2C2sda_TSADCshut_GPIO2B5vccio5 > GPIO2-B6: IO_ I2C2scl_GPIO2B6vccio5 > > This fix has been tested on NanoPi R2S for fixing confliting pinmux bits > between GPIO2-B7 with GPIO2-B5. > > Signed-off-by: Huang-Huang Bao Reviewed-by: Heiko Stuebner Fixes: 3818e4a7678e ("pinctrl: rockchip: Add rk3328 pinctrl support") The TRM also supports those findings, as gpio2-b4 actually is documented there as 2-bit wide with the functions you found in the pad descriptions.