From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from polaris.svanheule.net (polaris.svanheule.net [84.16.241.116]) (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 1EB942FB966 for ; Thu, 23 Oct 2025 09:10:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=84.16.241.116 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761210601; cv=none; b=Zn5pPSPrPUZeP8p+plsWEMIOviyhOCPCM9QFno/AtW9Si/Pa6XttTR8IPK6fnApEqOHWDagcNflzr0aETOFVmUH86Rk4sUqxYuihBcJXFVZ3AqQzBxAfmJ4wEiV/3UIKme74zrh0wn1qBhE3V7Lem/ZY9M7B4hlZVRwhmzjDYnQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761210601; c=relaxed/simple; bh=AxdHT4+N+ETHMW1HCoygK8rvw6Y4adLO3i2QobmUico=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=FLHaXFbsc7HBuHOm8RUV9WJQT0T0KSv3URhKYSYsg3fw/69holgam9gxqf+kfg9Myxj31nzjjkFL+bb++SIHHKtcjifF2XIdfE/+E9ljDjTz8dVUFsMjp+7ru9UHev4Khwiubb0ECon11zqC06tLwpeakoHcu5U+Kkgp2oXSAjs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=svanheule.net; spf=pass smtp.mailfrom=svanheule.net; dkim=pass (2048-bit key) header.d=svanheule.net header.i=@svanheule.net header.b=iMp870HE; arc=none smtp.client-ip=84.16.241.116 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=svanheule.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=svanheule.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=svanheule.net header.i=@svanheule.net header.b="iMp870HE" Received: from [IPv6:2a02:1812:162c:8f00:1e2d:b404:3319:eba8] (2a02-1812-162c-8f00-1e2d-b404-3319-eba8.ip6.access.telenet.be [IPv6:2a02:1812:162c:8f00:1e2d:b404:3319:eba8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sander@svanheule.net) by polaris.svanheule.net (Postfix) with ESMTPSA id 08BA268C10D; Thu, 23 Oct 2025 11:09:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1761210598; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AxdHT4+N+ETHMW1HCoygK8rvw6Y4adLO3i2QobmUico=; b=iMp870HELK0j939dmvIPOwh8y6l4cHkgqc+AcvpPiqBeGkU4R/U8nOuKSgSUkfM3Xt78mU xXiprctsG59/rBu7jLhxJu45vGFA0Q/juG1UaJPy0Y3Ku2w+CdoWsH1pBzKnU/O5UTMqza 8eG19ifxWB1hL4AeOayi1xdJidZv1H3Ii81c+j/UBc5Tn7DkEMlqSGdWaLGp3VSxXYIr1r 6BFdm+MKhgKfiFOPDiDUioxgCLDc+eA00D4JJDdxD4dSesD9gntBXyop6vycwd/miEqE1P H2njhY2OXPwCrLfDnsJD7+X0O++ty5GY7a/npLOXuJAYum9uPYuM56sPzPS5BQ== Message-ID: <69a020e444bfbd3b72971dec3a34261ff8d39f24.camel@svanheule.net> Subject: Re: [PATCH v6 0/8] RTL8231 GPIO expander support From: Sander Vanheule To: Bartosz Golaszewski Cc: Michael Walle , Linus Walleij , linux-gpio@vger.kernel.org, Lee Jones , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 23 Oct 2025 11:09:57 +0200 In-Reply-To: References: <20251021142407.307753-1-sander@svanheule.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2 (3.56.2-2.fc42) Precedence: bulk X-Mailing-List: linux-leds@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Hi, On Thu, 2025-10-23 at 11:05 +0200, Bartosz Golaszewski wrote: > On Tue, Oct 21, 2025 at 4:24=E2=80=AFPM Sander Vanheule wrote: > >=20 > > The RTL8231 GPIO and LED expander can be configured for use as an MDIO > > or SMI bus device. Currently only the MDIO mode is supported, although > > SMI mode support should be fairly straightforward, once an SMI bus > > driver is available. > >=20 > > Provided features by the RTL8231: > > =C2=A0 - Up to 37 GPIOs > > =C2=A0=C2=A0=C2=A0 - Configurable drive strength: 8mA or 4mA (currently= unsupported) > > =C2=A0=C2=A0=C2=A0 - Input debouncing on GPIOs 31-36 > > =C2=A0 - Up to 88 LEDs in multiple scan matrix groups > > =C2=A0=C2=A0=C2=A0 - On, off, or one of six toggling intervals > > =C2=A0=C2=A0=C2=A0 - "single-color mode": 2=C3=9736 single color LEDs += 8 bi-color LEDs > > =C2=A0=C2=A0=C2=A0 - "bi-color mode": (12 + 2=C3=976) bi-color LEDs + 2= 4 single color LEDs > > =C2=A0 - Up to one PWM output (currently unsupported) > > =C2=A0=C2=A0=C2=A0 - Fixed duty cycle, 8 selectable frequencies (1.2kHz= - 4.8kHz) > >=20 > > The patches have been in use downstream by OpenWrt for some months. As > > the original patches are already a few years old, I would like to reque= st > > all patches to be reviewed again (and I've dropped all provided tags an= d > > changelogs). > > --- > > RFC for gpio-regmap changes: > > Link: > > https://lore.kernel.org/lkml/20251020115636.55417-1-sander@svanheule.ne= t/ > >=20 > > Patch series v5 (June 2021): > > Link: > > https://lore.kernel.org/lkml/cover.1623532208.git.sander@svanheule.net/ > >=20 > > Sander Vanheule (8): > > =C2=A0 gpio: regmap: Force writes for aliased data regs > > =C2=A0 gpio: regmap: Bypass cache for aliased inputs >=20 > If I'm not mistaken, nothing depends on these two at build-time, so I > can just take them through the GPIO tree for v6.19? That's okay for me. Best, Sander