From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795937156; b=rQXLNlaowro0aa87CifM6FIwlkvlVXJfwZsMqKQ+gqAxtp2jMznhD0KMUfylbt2WgJSf iTR71Qnri4J2nD9O2ayEh9cYcsUE8glO32QLQb1m8v8cdvpooe/im+zn/M6XGZhLA7RCZ qtDVZrJkVJ5Mi86yM04+HHiH3+EK0L7FPhrgGx5vdNm3pPIyiA+psvTLm5i8sO2L7LqT/ dGQ5CUZ46/HRw8g49A0io0rRcaQ4UXtLcaCvHtigoPwQZ5N6cNS8230Weo1/tMbw5O642 A0nZeEhrWx2pkOt31Qon7nJpUsZAh71Xro/5L9jEaxi8xRVW6ztVjP7yPChwc0R2BrA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795937156; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=+mtlXEvlT4e+U7ebzLirQYBVZxldKuvqOotdP7X5CaY=; b=fzuMpEVgffrxscHIwoUekQFlVc6MC19hFeRnBiReRO3b2qhJLDF3NZIrzVYRJj3oq+go yGYSrie7aI7iQ8XPJIPLIie2JIk218rZ4CODj09PztgbaNyUob4lSSltodpthIYAJsagI vf840ufjASmGU0aOScpWYjZHoIM4vH7KlBKm7SBC9Z9OptIjY11kGI+Xl0tSnuFWhtYYD EYxBYxiAVkm6GKeXnO8GZqPAFV6KkOmDO033A1xlky1ydh2pgXngXtkBpqWbp+oHBscg1 97+Ysq4Gt+WAvPp4v07/zMWAL569zoQSPhbjeWDZURNo97jz+LkZMwnp1xM3RYZS4Ig== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="jmKP/lrT"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 80F49606A31C; Sun, 29 Nov 2026 07:25:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=jmKP/lrT Received: by smtp.kernel.org (Postfix) with ESMTPSA id CADFC1F000C1; Sun, 29 Nov 2026 07:25:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795937156; bh=+mtlXEvlT4e+U7ebzLirQYBVZxldKuvqOotdP7X5CaY=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=jmKP/lrTRDQZ74lmXy2BeOYQS3nXCt0SMra8K835ERj7eB+6pSIX1YNIM6Gf923go BO5usNr4FRyNNMV/KQ0VjVpixJpNkpGqUdRTbHAiwYaW6MjJxlV/hrv0GSXVhm7J9z LHeWM8vRLfhqY7if2aAU8OUkNifZAvGsrGpUfqxJQLZniueQfvmto36idxeXwssJR0 z3mwT+ygzLIxfS972s8tXuQMt+P7bklM57J0Cy4ufGb63eEDVDJUaPGZS6xGM6p5NT uU9c5owkTT6B6b/YQ49tT/b1i9dfM8j5QbSunYiOqv6jZP/deFBd3A57EvlEd+/0C7 IhW1DxoqePidw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 3/3] arm64: dts: rockchip: fix SDIO WiFi on the Sakura Pi RK3308B Reply-To: sashiko-reviews@lists.linux.dev To: "Abduwaris Nurmemet" Cc: devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: References: <20261129071403.4890-1-daabu@qq.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sun, 29 Nov 2026 07:25:55 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 4 potential issues to consider: - [Medium] arm64: dts: rockchip: io-1v8-domains duplicates rockchip-io-domain binding - [Medium] pinctrl: rockchip: rk3308_io_voltage_domains() omits RK3308_SOC_CON0_VCCIO3 - [Low] pinctrl: rockchip: rk3308_io_voltage_domains() skipped on RK3308B re-probe - [Low] arm64: dts: rockchip: missing Fixes trailer for commit 79f2a1702441 -- commit f8e62c4d74aa8aebe6ba5cff7d03a7e2c8622004 Author: Abduwaris Nurmemet > arm64: dts: rockchip: fix SDIO WiFi on the Sakura Pi RK3308B > > The AP6255 (BCM43455) SDIO WiFi module is connected to I/O domain 4, > which is supplied with 1.8V on this board. Without describing that, > the bus is left at 3.3V and either fails to enumerate (mmc2: error > -84) or only works at a very low clock. > > Describe the 1.8V domain in the pinctrl node so the Rockchip pinctrl > driver programs it before the SDIO controller probes, and allow the > bus to run at 50 MHz. > > Signed-off-by: Abduwaris Nurmemet [Severity: Low] This fixes broken SDIO WiFi enumeration on the Sakura Pi RK3308B board introduced in 79f2a1702441 ("arm64: dts: rockchip: add DTs for Sakura Pi RK3308B"). Should the commit message include: Fixes: 79f2a1702441 ("arm64: dts: rockchip: add DTs for Sakura Pi RK3308B= ") > diff --git a/arch/arm64/boot/dts/rockchip/rk3308-sakurapi-rk3308b.dts b/a= rch/arm64/boot/dts/rockchip/rk3308-sakurapi-rk3308b.dts > index 3473db08b9b26..e0c1c8ee6527a 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3308-sakurapi-rk3308b.dts > +++ b/arch/arm64/boot/dts/rockchip/rk3308-sakurapi-rk3308b.dts > @@ -135,6 +135,8 @@ &i2c1 { > &pinctrl { > pinctrl-names =3D "default"; > pinctrl-0 =3D <&rtc_32k>; > + /* I/O domain 4 (SDIO) is supplied with 1.8V on this board */ > + io-1v8-domains =3D <0x10>; > =20 > bluetooth { > bt_reg_on: bt-reg-on { [Severity: Medium] Why add a custom io-1v8-domains bitmask property on &pinctrl instead of enabling the existing &io_domains node from rk3308.dtsi? RK3308 I/O voltage domains are already described by rockchip,rk3308-io-voltage-domain and managed by drivers/soc/rockchip/io-domain.c, which programs RK3308_SOC_CON0 from vccio0-supply through vccio5-supply and tracks regulator voltage changes. Duplicating RK3308_SOC_CON0 programming in rk3308_io_voltage_domains() in commit "pinctrl: rockchip: program RK3308 I/O domains before SDIO probes" creates two drivers writing the same GRF register and forces every unset bit in RK3308_SOC_CON0_DOMAINS to 3.3V, overwriting any earlier configuration f= or unspecified domains. Other mainline RK3308 boards with 1.8V SDIO WiFi enable &io_domains with vccio4-supply =3D <&vcc_1v8> (and vccio0/1/2/3/5-supply =3D <&vcc_io>) and = wire vmmc-supply =3D <&vcc_io> and vqmmc-supply =3D <&vcc_1v8> on &sdio, using t= he vcc_1v8 and vcc_io regulators already defined in this board's DT. [Severity: Medium] In commit "pinctrl: rockchip: program RK3308 I/O domains before SDIO probes= ", does rk3308_io_voltage_domains() leave domain 3 (VCCIO3) under external GPIO control when bit 3 is set in io-1v8-domains? drivers/pinctrl/pinctrl-rockchip.c:rk3308_io_voltage_domains() { ... ret =3D regmap_write(info->regmap_base, RK3308_SOC_CON0, io_volt_select | (RK3308_SOC_CON0_DOMAINS << 16)); ... } As seen in rk3308_iodomain_init() in drivers/soc/rockchip/io-domain.c, RK3308_SOC_CON0_VCCIO3 (BIT(8) with write-enable BIT(24)) must also be set = in RK3308_SOC_CON0 before VCCIO3 obeys the GRF voltage selection bit rather th= an a dedicated GPIO pin. [Severity: Low] In commit "pinctrl: rockchip: program RK3308 I/O domains before SDIO probes= ", can rk3308_io_voltage_domains() be skipped if rockchip_pinctrl_probe() is re-run after a deferred probe or rebind on an RK3308B? drivers/pinctrl/pinctrl-rockchip.c:rockchip_pinctrl_probe() { ... if (ctrl->type =3D=3D RK3308) rk3308_io_voltage_domains(info); if (ctrl->type =3D=3D RK3308) { ret =3D rk3308_soc_data_init(info); ... } rk3308_soc_data_init() mutates the static rk3308_pin_ctrl.type from RK3308 = to RK3308B on RK3308B SoCs. If rockchip_pinctrl_probe() later fails or defers (for example during rockchip_pinctrl_register() or of_platform_populate()),= a subsequent probe sees ctrl->type =3D=3D RK3308B and skips rk3308_io_voltage_domains(). --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/tencent_9AD984A6BE6= 0BE89025645C689A413032507@qq.com?part=3D3