From: Yixun Lan <dlan@kernel.org>
To: Eric Chung <eric.chung@riscstar.com>
Cc: u-boot-spacemit@groups.io, u-boot@lists.u-boot-project.org,
Tom Rini <trini@konsulko.com>, Tim Ouyang <tim609@andestech.com>,
Leo Liang <leo.liang@sifive.com>, Peng Fan <peng.fan@nxp.com>,
Huan Zhou <pericycle.cc@gmail.com>,
Raymond Mao <raymond.mao@riscstar.com>,
Jaehoon Chung <jh80.chung@samsung.com>,
Bhimeswararao Matsa <bhimeswararao.matsa@gmail.com>,
Tanmay Kathpalia <tanmay.kathpalia@altera.com>,
Kaustabh Chakraborty <kauschluss@disroot.org>,
Han Xu <han.xu@nxp.com>, Yanir Levin <yanir.levin@tandemg.com>,
Christoph Stoidner <c.stoidner@phytec.de>,
Balsundar Ponnusamy <balsundar.ponnusamy@altera.com>,
Daniel Palmer <daniel@thingy.jp>, Anshul Dalal <anshuld@ti.com>,
Bastien Curutchet <bastien.curutchet@bootlin.com>,
Angelo Dureghello <angelo@kernel-space.org>,
Johan Jonker <jbx6244@gmail.com>,
Sam Protsenko <semen.protsenko@linaro.org>,
Guodong Xu <guodong@riscstar.com>, Yao Zi <me@ziyao.cc>,
Rick Chen <rick@andestech.com>, Leo <ycliang@andestech.com>,
Yixun Lan <dlan@kenrel.org>
Subject: Re: [PATCH v9 02/19] pinctrl: k1: fix pull-up/pull-down configuration
Date: Fri, 21 Aug 2026 16:54:18 +0000 [thread overview]
Message-ID: <20260821165418-GKB579897@kernel.org> (raw)
In-Reply-To: <20260819-m4-v9-2-6e66016392b9@riscstar.com>
Hi Eirc,
On 11:54 Wed 19 Aug , Eric Chung wrote:
> Fix pull-up/pull-down configuration to honor the argument parameter:
> when argument is non-zero, enable the requested pull direction;
> when argument is zero, clear all pull bits to disable.
>
> Signed-off-by: Eric Chung <eric.chung@riscstar.com>
..
> Reviewed-by: Yixun Lan <dlan@kenrel.org>
No, I never gave R-B to this patch, and below you still not addressed
my previous concern
Also, I suggest to use tool "b4 trailers" to collect tags instead of
doing it manually which easily lead to problem..
>
> ---
> v9:
> - Rebase since drop patch "fix drive strength configuration".
> v7:
> - Simplify pull-up/pull-down configuration by using a single
> clrsetbits_le32() call.
> v6:
> - Fix pull-up/pull-down configuration.
> ---
> drivers/pinctrl/spacemit/pinctrl-k1.c | 9 ++++-----
> 1 file changed, 4 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/pinctrl/spacemit/pinctrl-k1.c b/drivers/pinctrl/spacemit/pinctrl-k1.c
> index a6a22eacac7b..9ca4ef7c771e 100644
> --- a/drivers/pinctrl/spacemit/pinctrl-k1.c
> +++ b/drivers/pinctrl/spacemit/pinctrl-k1.c
..
> case PIN_CONFIG_BIAS_PULL_UP:
> - mask = PAD_PULLDOWN | PAD_PULLUP | PAD_PULL_EN;
> - clrsetbits_le32(addr, mask, PAD_PULLUP | PAD_PULL_EN);
> + clrsetbits_le32(addr, PAD_PULLDOWN | PAD_PULLUP | PAD_PULL_EN,
> + argument ? PAD_PULLUP | PAD_PULL_EN : 0);
No, this is still same problem as previous version, please take
a look at the DT documentation from upstream linux kernel
Documentation/devicetree/bindings/pinctrl/spacemit,k1-pinctrl.yaml
1) to disable bias
bias-disable: true
2) to set as pull down
bias-pull-down: true
3) to set normal pull up or strong pull up
bias-pull-up:
0: normal bias pull up
1: strong bias pull up
--
Yixun Lan (dlan)
next prev parent reply other threads:[~2026-08-21 16:54 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-19 3:54 [PATCH v9 00/19] spacemit mmc driver Eric Chung
2026-08-19 3:54 ` [PATCH v9 01/19] spacemit: k1: select boot device via config registers Eric Chung
2026-08-19 3:54 ` [PATCH v9 02/19] pinctrl: k1: fix pull-up/pull-down configuration Eric Chung
2026-08-21 16:54 ` Yixun Lan [this message]
2026-08-19 3:54 ` [PATCH v9 03/19] pinctrl: k1: add IO power domain configuration support Eric Chung
2026-08-19 3:54 ` [PATCH v9 04/19] mmc: k1: add sdhci platform driver Eric Chung
2026-08-19 3:54 ` [PATCH v9 05/19] riscv: dts: spacemit: define a SPI controller node Eric Chung
2026-08-19 3:54 ` [PATCH v9 06/19] riscv: dts: spacemit: k1: add SD card controller and pinctrl support Eric Chung
2026-08-19 3:54 ` [PATCH v9 07/19] riscv: dts: spacemit: k1-bananapi-f3: add SD card support with UHS modes Eric Chung
2026-08-19 3:54 ` [PATCH v9 08/19] riscv: dts: spacemit: k1-musepi-pro: add PMIC and power infrastructure Eric Chung
2026-08-19 3:54 ` [PATCH v9 09/19] riscv: dts: spacemit: k1-musepi-pro: add 24c02 eeprom Eric Chung
2026-08-19 3:54 ` [PATCH v9 10/19] riscv: dts: spacemit: k1-musepi-pro: enable QSPI and add SPI NOR Eric Chung
2026-08-19 3:54 ` [PATCH v9 11/19] riscv: dts: spacemit: k1-musepi-pro: enable USB 3 ports Eric Chung
2026-08-19 3:54 ` [PATCH v9 12/19] riscv: dts: spacemit: k1-musepi-pro: enable PCIe ports Eric Chung
2026-08-19 3:54 ` [PATCH v9 13/19] riscv: dts: spacemit: k1-musepi-pro: set default console baud rate Eric Chung
2026-08-19 3:54 ` [PATCH v9 14/19] riscv: dts: spacemit: k1-musepi-pro: add SD card support with UHS modes Eric Chung
2026-08-19 3:54 ` [PATCH v9 15/19] dts: k1: enable mmc devices in SPL Eric Chung
2026-08-19 3:54 ` [PATCH v9 16/19] configs: k1: enable SD and eMMC support Eric Chung
2026-08-19 3:54 ` [PATCH v9 17/19] MAINTAINER: update Spacemit K1 entry Eric Chung
2026-08-19 3:55 ` [PATCH v9 18/19] doc: spacemit: flash on K1 SoC based boards Eric Chung
2026-08-19 3:55 ` [PATCH v9 19/19] spacemit: k1: fix product name detection and DTB matching in SPL Eric Chung
2026-08-19 12:59 ` [PATCH v9 00/19] spacemit mmc driver Iker Pedrosa
2026-08-20 2:06 ` Eric Chung
2026-08-20 9:27 ` Iker Pedrosa
2026-08-21 16:42 ` Yixun Lan
2026-08-22 0:47 ` Eric Chung
2026-08-22 1:29 ` Eric Chung
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260821165418-GKB579897@kernel.org \
--to=dlan@kernel.org \
--cc=angelo@kernel-space.org \
--cc=anshuld@ti.com \
--cc=balsundar.ponnusamy@altera.com \
--cc=bastien.curutchet@bootlin.com \
--cc=bhimeswararao.matsa@gmail.com \
--cc=c.stoidner@phytec.de \
--cc=daniel@thingy.jp \
--cc=dlan@kenrel.org \
--cc=eric.chung@riscstar.com \
--cc=guodong@riscstar.com \
--cc=han.xu@nxp.com \
--cc=jbx6244@gmail.com \
--cc=jh80.chung@samsung.com \
--cc=kauschluss@disroot.org \
--cc=leo.liang@sifive.com \
--cc=me@ziyao.cc \
--cc=peng.fan@nxp.com \
--cc=pericycle.cc@gmail.com \
--cc=raymond.mao@riscstar.com \
--cc=rick@andestech.com \
--cc=semen.protsenko@linaro.org \
--cc=tanmay.kathpalia@altera.com \
--cc=tim609@andestech.com \
--cc=trini@konsulko.com \
--cc=u-boot-spacemit@groups.io \
--cc=u-boot@lists.u-boot-project.org \
--cc=yanir.levin@tandemg.com \
--cc=ycliang@andestech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.