From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE6A73B9D8B for ; Fri, 17 Jul 2026 07:59:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784275182; cv=none; b=E2M8Ncms4+2Er86HFXTMd1SKvl4UYx0gNlqUTTubViml8bSaVt+jDnOLIP6bcEFKWKGkLLrE5pBwSTbZ/oYY5AUr7vCxFf3CI5f5vsoC+gAAarf5D1/f4OHk2Bjx4qfRMlAZ379todsLTX8KQ7XNqL//SolYwN9EKaOOPlK+nCA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784275182; c=relaxed/simple; bh=qzutz5Nl+b9YPqrdZckIo9W+6FuELoAo6Sy53Eo06GU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sQjuDHyyBvhOEFkDS2cXwva72pFm8i3jywKY5Ey/pz9SFoztMaaaafuGFTkA9OnsdSYVbGVz34x02+UzELWlcJhp4SkJrXdJLrqI7gpdgGOVggjxFHMsSzln4EncWyGxRSbloPZT0izQTjSvYJ2OW8GTzeh3f3rn1MinA8Gbr+0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ahdrone.com; spf=pass smtp.mailfrom=ahdrone.com; dkim=pass (2048-bit key) header.d=ahdrone.com header.i=@ahdrone.com header.b=jHln2Xkm; arc=none smtp.client-ip=209.85.128.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ahdrone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ahdrone.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ahdrone.com header.i=@ahdrone.com header.b="jHln2Xkm" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-493f60208a5so62584535e9.3 for ; Fri, 17 Jul 2026 00:59:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ahdrone.com; s=google; t=1784275177; x=1784879977; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=GMflJCfpssRM4YJJC+Tlv3Nh5omjZh8nOynqqpt+YI4=; b=jHln2Xkmtj0Jt38bM7kB6hH54CNRvVH1308h4IhfDn0l2N87aXHbhz2FSzhBConbXx GT+B1oWPmixa+S5jS/U6JkiHDZIeY96dWRGPHWEPHlwenYrR9MPYIy9PUC09dXWW8y/g cQI0X0/n+TtdP4PJEDhEJClKvgsynfN9PWqZG9DxpNLP5dobGfjmbiCd626oiCGJVkou luUCxs5+4vDK8q+nONxscoIBczpkTGE+ROSMPYPB23Sc2v917VJGkOk5/bB/dlXF5WLC hgHZTSsSBzx1BqQRy66ur2saTeolh5dQLsZ/V/H8FFZKcO73eLbJ5aRzHhOG0N0/oFC9 zQdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784275177; x=1784879977; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=GMflJCfpssRM4YJJC+Tlv3Nh5omjZh8nOynqqpt+YI4=; b=Es+DpMnayII0sxiE6fGIgcl8I5+6ptNkmMFELF0NUzOfAeYaOrNZQ9HBK1fKhoR6o3 OZYa3aaQh8UqXw7mtW23XAfP8bzEx2+45hlvCc8V9Hdx5Rt3ZCoDJDBdBjoZNunbru/P ly4FsGIK/u5nt7G4LxT8H162jPrFrBfhV06qh5aPVGXs3MBCtT8rIFXc9U0taXSBMrU0 b/fwb4n8GAKObZ9PHGDKlbaZKpbzR5qVBQ4MozNFNvZz+80OIsyWt6/m6cT0TIG4pOfO zDOQsENyY4SIbBWwIcbbhkVMBdirqVLUWK6mYb8mJ7H6s9Pz/KcyieE+VJLfzGhrH7BW gA1A== X-Forwarded-Encrypted: i=1; AHgh+Rpga7h/Cm3hgsmE+TO/1GHJI7ZPPDglgR3ZpiA6hf+cadoWhOjOwhmTLxXrqzUESACprzGV7hpWzn719rg=@vger.kernel.org X-Gm-Message-State: AOJu0Yw9WqtMPdUnZ9LOyehpvIlq3cquMyaVBjIs6WEm82hWX/Ngzjcm kizxbWBius2t4F/2CRSbW5ey1ZsLZxKjPFA0JoCBsRcH6GcT3tWVjCyrnSC23IW1WQ== X-Gm-Gg: AfdE7ckbN5xT9x/vPEixNbNq42wugsnDFtMJJlX437TQs6bU5CbHIPuxIdfb8srLYtx mlfrYKfG7NeP2dzeCcjwSQptARsh3HB+vffSh/959+5ybesAIsp3mS56v34/MEZlNsYG8qwddi5 1Pjr0i6fdmD0pIopomw4SIdBMleXlZb70OIl7WtVOA/bsz7Pwhv6Smt55QxkAOpdvp/9ZH1bHkP v7zNa1EC/xOK1+0rLFgZu449fa4Q44XtxFauKHCj1wx4C4BJUwf9gYci5Y2TkVk6japo8M5kJKs SFZC7Z0ySa6iUWR5FNzJfspNfuztixh1FU6ERGgG1ir3YQEITNnBKOeMvMPqQij1bitnBXBAzsH gyxx5AmYoUSkGoYTn9cq7XTZi1rmmpkQGnpBg2prAZnTDvt49GDwr9x0Huw+Jtto1obkuy/SUgQ kcWdyq6rm4JUeRyyZgoRjxNTaT5w== X-Received: by 2002:a05:600c:c04b:20b0:493:d078:796 with SMTP id 5b1f17b1804b1-4954a3f397fmr12203065e9.17.1784275177348; Fri, 17 Jul 2026 00:59:37 -0700 (PDT) Received: from rikus ([2a01:e0a:edb:6330:cc2f:bd70:58a:fcfb]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49549a3e2a9sm31709045e9.4.2026.07.17.00.59.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2026 00:59:37 -0700 (PDT) From: Hugo VALTIER To: Linus Walleij , Heiko Stuebner Cc: Hugo VALTIER , linux-gpio@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Dmitry Yashin , Luca Ceresoli , Jonas Karlman Subject: [PATCH 0/3] pinctrl: rockchip: add support for RK3308B SoC Date: Fri, 17 Jul 2026 09:59:13 +0200 Message-ID: <20260717075918.1869879-1-hugo@ahdrone.com> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The RK3308B is a silicon revision of the RK3308 with a different iomux register layout: several pins (GPIO2_A2, GPIO2_A3, GPIO2_C0, GPIO3_B2, GPIO3_B3) gained 3-bit mux fields in new GRF registers that override the original 2-bit fields. I believe the bootloader enables the new registers via the sel_src_ctrl bits, after which the kernel's writes to the old iomux registers are silently ignored. Whatever the exact mechanism, on RK3308B boards (e.g. current Radxa ROCK Pi S revisions) SPI1, I2C3 and other peripherals on the affected pins are non-functional without this series. This is a continuation of Dmitry Yashin's series from 2024 [1], which was never resubmitted after review and got dropped. Following the reviewers' feedback on that series: - the separate "rockchip,rk3308b-pinctrl" DT compatible is gone; the variant is detected at runtime from the GRF chip_id register, as suggested by Luca Ceresoli and Heiko Stuebner and prototyped by Jonas Karlman [2], so the same DT works on both variants (boards ship with either chip) - the mux_recalced/mux_route tables are constified (patch 1) Patch 2 is a small refactor so the SoC-specific init can swap the mux tables before the per-bank masks are computed. Tested on ROCK Pi S boards with RK3308B silicon, where this fixes previously dead SPI1. I don't have original-RK3308 hardware, so that path is compile-tested only; the tables used for RK3308 are unchanged. [1] https://lore.kernel.org/all/20240515121634.23945-1-dmt.yashin@gmail.com/ [2] https://lore.kernel.org/all/20240604141020.21725-1-dmt.yashin@gmail.com/ Hugo VALTIER (3): pinctrl: rockchip: constify mux recalced and route data arrays pinctrl: rockchip: extract iomux_recalced_routes_init() pinctrl: rockchip: add support for RK3308B SoC drivers/pinctrl/pinctrl-rockchip.c | 266 ++++++++++++++++++++++++++--- drivers/pinctrl/pinctrl-rockchip.h | 5 +- 2 files changed, 250 insertions(+), 21 deletions(-) base-commit: a13c140cc289c0b7b3770bce5b3ad42ab35074aa -- 2.55.0