From patchwork Sun Sep 27 02:56:24 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nguyen Minh Tien X-Patchwork-Id: 3498 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mxe881.netcup.net (Postfix) with ESMTPS id 4A1BC1C1D46 for ; Sun, 27 Sep 2026 04:57:10 +0200 (CEST) Authentication-Results: mxe881; dkim=temperror header.d=embeddedlinux.blog; spf=pass (sender IP is 172.234.253.10) smtp.mailfrom=linux-sunxi+bounces-26307-noreply=patchwork.local@lists.linux.dev smtp.helo=sea.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.234.253.10 as permitted sender) client-ip=172.234.253.10; envelope-from=linux-sunxi+bounces-26307-noreply=patchwork.local@lists.linux.dev; helo=sea.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 3C2452FB65 for ; Sun, 27 Sep 2026 02:56:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 203B23B5314; Sun, 27 Sep 2026 02:56:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=embeddedlinux.blog header.i=@embeddedlinux.blog header.b="js18oGuV" X-Original-To: linux-sunxi@lists.linux.dev Received: from mail-pj2-f10.google.com (mail-pj2-f10.google.com [74.125.227.138]) (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 7C1EB3B5318 for ; Sun, 27 Sep 2026 02:56:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.227.138 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790477804; cv=none; b=W0uKLtpP5ECdo1SxL6Xc/2yj2uDgdbo3/PeCZQgCh6ZGqVKUBIkPXI81veOiTLBZ+Bh3rApjSi0ues30XzeQEBysiKgMG30LvLIWZc30Qar9QNzk9YMpSKlqALJ/Z0YESAcvNhYM5Gd9sgI8UhySNgdnKa9xXAQ+xvGSKdjbYbY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790477804; c=relaxed/simple; bh=eMvIylI6UdB4voWaYZ2XSYSfydZcKpLaBkAqaZ9abjI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=lUTtjN5NO+ifkBuiZzhPEDRSZD/CzWw1Yc3LQyrKUlwqWUNuVU9aZOPYwZShjBispLzRV+oNU5UUY/ykl/Gvq8xgP/TzQYl1DkEu5N2fSXhMl5kkRwXCTPzG3GBmm+LLE22Ya/FcihF9iu1htqrl8+wLa5Qg7TX2Zfi0MuEir2M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=embeddedlinux.blog; spf=pass smtp.mailfrom=embeddedlinux.blog; dkim=pass (2048-bit key) header.d=embeddedlinux.blog header.i=@embeddedlinux.blog header.b=js18oGuV; arc=none smtp.client-ip=74.125.227.138 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=embeddedlinux.blog Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=embeddedlinux.blog Received: by mail-pj2-f10.google.com with SMTP id d9443c01a7336-2df908f4bccso13672985ad.1 for ; Sat, 26 Sep 2026 19:56:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embeddedlinux.blog; s=google; t=1790477802; x=1791082602; darn=lists.linux.dev; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=qyMsLj0hkCZGFDmY3GbC7EId9UWnZfSNH3ILjJaXTeM=; b=js18oGuVm/FsOgAAuu6l7hrZ06rpF7hZ+kzJjzsTD8x8Wx4sF8dQpFMyv3/baan3GQ tahuQRMDDbQFQPD+UD+6y5ijsNnkestM15irFBTJiXyMT9pLWJr3UobC2nx5uShadiZR ap5juhsVNGP6XQBSbMnPR4+FU7XYavf3rUeJBgd5Bp0ZmB0wXo263bQRvZCuRB1+xNkV hle5/tD/LfhibVGCsMshC566ZuMoehiXJgIDVYoniMRbhb+fR3pZJolE5qm2kA6k2Oj4 YtPBDLwpBnTrSV2HGyroSVjP08GBMocZVwDjRedGGjV1uYHvuGwc8UnDx0QprX1NRaBR cwgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790477802; x=1791082602; h=content-transfer-encoding:mime-version:references:in-reply-to :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=qyMsLj0hkCZGFDmY3GbC7EId9UWnZfSNH3ILjJaXTeM=; b=e2fKX1oAQC7J8oLxAAZc1GK0VjBzggSs4RFyFbqOAR9gfr3+UkZGI8ZjuRHx+QYozK mavC5XYml3LS8JiIwvB7+71hOZikkLq/H/RUosjaZeRegYsEZD6hs229ezWBaq1cBczP Lq/AaHarErQgS9Z5mJr2sCTj70HL0RAj+K0/DAuRZqbh+p6Q7YCK2L1sSK/apooKRQZn WnTJ/VzOZxoQZHRAXTiZCkYMmkOPv1ELIfYq5Kz9rXw3tZachh8BllPy+P+MRAVrr4rV r9A+mnOAKwqbytgi8InKezSIM8Kzy1UmWAoTwSRucCXZA4+j1kdTJHz1X02cyH/XLOcY gTCQ== X-Forwarded-Encrypted: i=1; AKwUvBzkPF0OM+W3vS6WRnA0Z/umNjXrQE3xl5wez6pZZ9NnD5PYK+5qxLhlYgIj63YpvLdEw2T7nmTZKfZVDg==@lists.linux.dev X-Gm-Message-State: AFq9FYI7heItUZPuvQB5MYPkQZzRnyX6CQNJVh45F/pgZrgmteg9/yXh OiJ1IXEabeTZXnEe0Fv/L7qkSasdJVFeCJSJYR9z5qCibdQBiqpH1OeiPcJ9iV93+OUJ X-Gm-Gg: AYBFou2H0TjVXRd1TFue5GxwwRHacUNV1PfuLIiDV+1wxGFhPPDy4hqe8AULbYDlmYG Drvwj3rKA11MMyDmRO7lbOZeNMIEOCPQ5XP0/teWycf9gtIUzeQyGi3IvFjSJAqnSbRf7nXSIhP JHMAKxubBxXN3o0UIxzNvHCpOuc/Hh9cLd2WafmQtI2CZ4PZCnom3yU5SMexeJxNc9YultIogBS 4L2qe6PqZvl1F+x4coLxPur5Gf29WSaAx6GStZKkQZZby47knycsL+khI5cU6rsD8SskVj0tz92 EuTnC9NsbvZZxx+DwHLutRLFuuMvZNkXmJVR7JrzIDMiQTaPy0/qVeMovMNOrdGi13kIw7WtClN MDdb01GWjU6rIUbx3t3r7srmk8YQvTzhT8dvp8F1oEk0iFsn507zJEbb6Jy87FdaumyJBycyENK HH4neValMTDmiYkO33EPAtEYo5HvxEyN6PlZmLcPzr8uJdmZP1SCiSJucLV6PTBpCVlA== X-Received: by 2002:a17:902:e94f:b0:2df:a4a0:6443 with SMTP id d9443c01a7336-2dfa4a06479mr31921045ad.13.1790477801815; Sat, 26 Sep 2026 19:56:41 -0700 (PDT) Received: from ltu.. ([171.245.4.151]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2df9142bfd4sm25512285ad.52.2026.09.26.19.56.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Sep 2026 19:56:40 -0700 (PDT) From: Nguyen Minh Tien To: Wilken Gottwalt , Bjorn Andersson Cc: Baolin Wang , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Philipp Zabel , Andre Przywara , Bastian Germann , linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, tien.nguyenminh@embeddedlinux.blog Subject: [PATCH 1/3] hwspinlock: sun6i: Get the clock and the reset without names Date: Sun, 27 Sep 2026 09:56:24 +0700 Message-Id: <20260927025626.69614-2-tien.nguyenminh@embeddedlinux.blog> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260927025626.69614-1-tien.nguyenminh@embeddedlinux.blog> References: <20260927025626.69614-1-tien.nguyenminh@embeddedlinux.blog> Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [-0.66 / 15.00]; BAYES_HAM(-5.50)[100.00%]; RBL_SENDERSCORE(2.00)[172.234.253.10:from]; SUSPICIOUS_RECIPS(1.50)[]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; MAILLIST(-0.15)[generic]; BAD_REP_POLICIES(0.10)[]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; DMARC_NA(0.00)[embeddedlinux.blog]; RCPT_COUNT_TWELVE(0.00)[23]; DBL_BLOCKED_OPENRESOLVER(0.00)[sea.lore.kernel.org:rdns,sea.lore.kernel.org:helo]; TAGGED_RCPT(0.00)[dt]; FREEMAIL_CC(0.00)[linux.alibaba.com,kernel.org,gmail.com,sholland.org,dabbelt.com,eecs.berkeley.edu,ghiti.fr,pengutronix.de,arm.com,debian.org,vger.kernel.org,lists.infradead.org,lists.linux.dev,embeddedlinux.blog]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(0.00)[+ip4:172.234.253.10]; PRECEDENCE_BULK(0.00)[]; FORGED_SENDER_MAILLIST(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; FROM_HAS_DN(0.00)[]; ASN(0.00)[asn:63949, ipnet:172.234.224.0/19, country:SG]; ARC_ALLOW(0.00)[subspace.kernel.org:s=arc-20240116:i=1]; TAGGED_FROM(0.00)[bounces-26307-noreply=patchwork.local]; RCVD_COUNT_FIVE(0.00)[6]; FROM_NEQ_ENVFROM(0.00)[tien.nguyenminh@embeddedlinux.blog,linux-sunxi@lists.linux.dev]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4A1BC1C1D46 X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= The driver looks up its clock and reset by the name "ahb", but the binding doesn't define clock-names or reset-names, so a node that follows the binding fails to probe: sun6i_hwspinlock 3005000.hwlock: unable to get AHB clock (-2) There is only one of each, so get them without a name. That is what was asked for when the names were added to an A64 node, and nodes that do set "ahb" keep working. For the reset, call the explicit devm_reset_control_get_exclusive(), which devm_reset_control_get() only wraps. Fixes: 3c881e05c814 ("hwspinlock: add sun6i hardware spinlock support") Link: https://lore.kernel.org/f720eaf9-01d0-0e57-f6bf-9aade00aafb8@linaro.org Signed-off-by: Nguyen Minh Tien --- drivers/hwspinlock/sun6i_hwspinlock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hwspinlock/sun6i_hwspinlock.c b/drivers/hwspinlock/sun6i_hwspinlock.c index c2d3145880..e7cc121310 100644 --- a/drivers/hwspinlock/sun6i_hwspinlock.c +++ b/drivers/hwspinlock/sun6i_hwspinlock.c @@ -104,14 +104,14 @@ static int sun6i_hwspinlock_probe(struct platform_device *pdev) if (!priv) return -ENOMEM; - priv->ahb_clk = devm_clk_get(&pdev->dev, "ahb"); + priv->ahb_clk = devm_clk_get(&pdev->dev, NULL); if (IS_ERR(priv->ahb_clk)) { err = PTR_ERR(priv->ahb_clk); dev_err(&pdev->dev, "unable to get AHB clock (%d)\n", err); return err; } - priv->reset = devm_reset_control_get(&pdev->dev, "ahb"); + priv->reset = devm_reset_control_get_exclusive(&pdev->dev, NULL); if (IS_ERR(priv->reset)) return dev_err_probe(&pdev->dev, PTR_ERR(priv->reset), "unable to get reset control\n"); From patchwork Sun Sep 27 02:56:25 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nguyen Minh Tien X-Patchwork-Id: 3499 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mxe881.netcup.net (Postfix) with ESMTPS id 574BD1C1D46 for ; Sun, 27 Sep 2026 04:57:39 +0200 (CEST) Authentication-Results: mxe881; dkim=temperror header.d=embeddedlinux.blog; spf=pass (sender IP is 172.234.253.10) smtp.mailfrom=linux-sunxi+bounces-26308-noreply=patchwork.local@lists.linux.dev smtp.helo=sea.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.234.253.10 as permitted sender) client-ip=172.234.253.10; envelope-from=linux-sunxi+bounces-26308-noreply=patchwork.local@lists.linux.dev; helo=sea.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 4443F32A72 for ; Sun, 27 Sep 2026 02:56:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 832493B5E19; Sun, 27 Sep 2026 02:56:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=embeddedlinux.blog header.i=@embeddedlinux.blog header.b="sQjDUFns" X-Original-To: linux-sunxi@lists.linux.dev Received: from mail-pj2-f42.google.com (mail-pj2-f42.google.com [74.125.227.170]) (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 339B73AA1B0 for ; Sun, 27 Sep 2026 02:56:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.227.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790477809; cv=none; b=ptD4gtCExngFHhxSGuILRP30frZyNzgWWTEppwYIYbzUeGP3pC8YjSXxip2UeLX1RKOK8mxlrFuUHe6KyfS1POOBw102ubmHWfIgM4h5CO+zcxUCQiD3Chcjn8QQg+fdAR2/w5LOWKMtcabUoWEg+O1R1u220RAuLcnRosNteok= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790477809; c=relaxed/simple; bh=GNujY27sJq1QrMAiEnc4wu/PVjXA/qEQR0U1YSIve0E=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=BjFVaiuog0s2dKZkI8ybzXGRbPXtMr8Go2Fn1E8SppUmD2fKBUMcFEWnGijnJH6trDkcUR8PAoZ57D5NNif5+/jBuNXL9fsQYHFhU/RzeNwlmJvLnUZie9C2qwfbz1EKdc1CTCLMOwvPmRAEDFCqc6Jdm4ypE44xL7qxtPFbZo8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=embeddedlinux.blog; spf=pass smtp.mailfrom=embeddedlinux.blog; dkim=pass (2048-bit key) header.d=embeddedlinux.blog header.i=@embeddedlinux.blog header.b=sQjDUFns; arc=none smtp.client-ip=74.125.227.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=embeddedlinux.blog Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=embeddedlinux.blog Received: by mail-pj2-f42.google.com with SMTP id d9443c01a7336-2df4aa80a73so11348575ad.3 for ; Sat, 26 Sep 2026 19:56:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embeddedlinux.blog; s=google; t=1790477807; x=1791082607; darn=lists.linux.dev; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=W0OAcRU9c9mu0nqvpBUc1aIVBrp3XjCBrBUSr/EQyOo=; b=sQjDUFnsjpzCFyfoqwBqqbAdYGFzxlHpCrIZF8U9/GlUSYKufXm/+1D+qu7VG2XSkJ lP3xf/QLaahu295yJZlrRckraHgbZqH9ajor0sxQgCVB1zv+LoCS5l17Yvx9scwzqjTa WMn0hITZChzN4g35ltz9mtUgu1E7d/ikfOCPUK9T7aYLpm4dZ58LgZHfEBTzS2/+tH8d OFzzRZaxz+qvwr5EqyGbRqBB8y4PvOFRmuToQfGX86XBUdv1+nUmazNfmQ/YRiGL5m+p L15I+m97g45ObryL5h7GHY2ysNAxe+TULmdDKIF9D+91+pyPyYcjplFcq0HKKCY7gmb/ JapQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790477807; x=1791082607; h=content-transfer-encoding:mime-version:references:in-reply-to :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=W0OAcRU9c9mu0nqvpBUc1aIVBrp3XjCBrBUSr/EQyOo=; b=mdpLQmgre9fKyz2bmE5jfv25285GJ7yz+TizzDH2XRyqzoqKa9MxCxffO0l/8ec1Ot g7OK3cFR0nAam0+Wc+N4bKeSIsI7Vg/thNyOJxFX5ekxYS3QwyH7NIwWJpD1oJ5zR/j+ 5vOpjdGEsPSh9m7T9ItlDd0CTOn4h2/4HdIR0oAjEnBl4VM06cQqD7HH/mIYD+KnUbyN SzZfV0RFNM15sVSeTjY7e8bszvQNnd+k+Sy+MkA0Owuz0O17Ahuy7n9HnK86bvXFpoh3 LBZKVzIKVizcFqbNKC2x23yYaebOBD2r/KG59DzSTBnY02lZQdDLglCFBLpUQazt0qVH Fnow== X-Forwarded-Encrypted: i=1; AKwUvBzAv1OniJ57xu8NRLyKTMLdR31IlTR10gdQMZVSkIA2wXfsvULrT5JIDkW2qSa/CHRVEdr3fkUvOthzbA==@lists.linux.dev X-Gm-Message-State: AFq9FYKZXlcbnKbz/8JYvydR1rANDZo/EL3DNNCEBnQieQHEaXF+m4xa pjdPabhnB8DlSKnZKkx73EONzJorAhNcba+na8L97SOAp2DM9scEuO5gpaNH8s5QHwO5 X-Gm-Gg: AYBFou3Yw31S1iZxtqwJoKJ96MMw3PP1dw8JzR8ouoPBnBpwv2868PHmYDNb10VBmga vJZWtMzrmtErH8EGO7QJtTXP5xCPYC0jorP844bLav8KWBBDaA37aPKe8VlbbzSnfkAbU1D8vkn rRz4tti7XxovcxOsYR/efnevZtoFZKghgUp8oOmXguV8aQAFcEQXgZ1aWEiGcdHOgcJWS5Rn0l6 4XlZQakCihMzSIdPxgpLp4gKioBzXQnhE+TvlXZLBvM5355p8kUS8zswdDYO++lgzn58Dottvw6 7yiRJ2K1oClOzzq9xB8pWAcUKJNqhmuRubVE03TWVzB6aTUFBaYrD6qC/OEH8QJ3ZDGoK1g2QS5 oM9a3pPtbK+fPED/clTshWZ9tz84CZnXGhlqcra4xA5n9PXZpYrZd6pFPmLWAH7CE10K7t/sQVS 8n1QIQ4gVoh9L/HrUJv/5tH6lvJjN92Goo/qEfgrYMx8De8jzRorAE72XCy6Tdz3pooQ== X-Received: by 2002:a17:903:228c:b0:2dd:ad73:c982 with SMTP id d9443c01a7336-2df7dc41d3cmr92788095ad.26.1790477807346; Sat, 26 Sep 2026 19:56:47 -0700 (PDT) Received: from ltu.. ([171.245.4.151]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2df9142bfd4sm25512285ad.52.2026.09.26.19.56.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Sep 2026 19:56:46 -0700 (PDT) From: Nguyen Minh Tien To: Wilken Gottwalt , Bjorn Andersson Cc: Baolin Wang , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Philipp Zabel , Andre Przywara , Bastian Germann , linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, tien.nguyenminh@embeddedlinux.blog Subject: [PATCH 2/3] dt-bindings: hwlock: sun6i: Add compatible for Allwinner D1 Date: Sun, 27 Sep 2026 09:56:25 +0700 Message-Id: <20260927025626.69614-3-tien.nguyenminh@embeddedlinux.blog> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260927025626.69614-1-tien.nguyenminh@embeddedlinux.blog> References: <20260927025626.69614-1-tien.nguyenminh@embeddedlinux.blog> Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [4.84 / 15.00]; RBL_SENDERSCORE(2.00)[172.234.253.10:from]; SUSPICIOUS_RECIPS(1.50)[]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; MAILLIST(-0.15)[generic]; MIME_GOOD(-0.10)[text/plain]; BAD_REP_POLICIES(0.10)[]; HAS_LIST_UNSUB(-0.01)[]; DMARC_NA(0.00)[embeddedlinux.blog]; FREEMAIL_CC(0.00)[linux.alibaba.com,kernel.org,gmail.com,sholland.org,dabbelt.com,eecs.berkeley.edu,ghiti.fr,pengutronix.de,arm.com,debian.org,vger.kernel.org,lists.infradead.org,lists.linux.dev,embeddedlinux.blog]; TAGGED_RCPT(0.00)[dt]; RCPT_COUNT_TWELVE(0.00)[23]; DBL_BLOCKED_OPENRESOLVER(0.00)[sea.lore.kernel.org:rdns,sea.lore.kernel.org:helo,embeddedlinux.blog:email]; PRECEDENCE_BULK(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; MIME_TRACE(0.00)[0:+]; R_SPF_ALLOW(0.00)[+ip4:172.234.253.10]; TO_DN_SOME(0.00)[]; FORGED_SENDER_MAILLIST(0.00)[]; RCVD_TLS_LAST(0.00)[]; TAGGED_FROM(0.00)[bounces-26308-noreply=patchwork.local]; ASN(0.00)[asn:63949, ipnet:172.234.224.0/19, country:SG]; FROM_NEQ_ENVFROM(0.00)[tien.nguyenminh@embeddedlinux.blog,linux-sunxi@lists.linux.dev]; ARC_ALLOW(0.00)[subspace.kernel.org:s=arc-20240116:i=1]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 574BD1C1D46 X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= The D1 and T113 have a hardware spinlock with the register layout the sun6i driver handles. Add a compatible for it, with the A31 one as fallback. Signed-off-by: Nguyen Minh Tien Acked-by: Conor Dooley --- .../bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml b/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml index 584cce3211..13f9a20ae1 100644 --- a/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml +++ b/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml @@ -15,7 +15,12 @@ description: properties: compatible: - const: allwinner,sun6i-a31-hwspinlock + oneOf: + - const: allwinner,sun6i-a31-hwspinlock + - items: + - enum: + - allwinner,sun20i-d1-hwspinlock + - const: allwinner,sun6i-a31-hwspinlock reg: maxItems: 1 From patchwork Sun Sep 27 02:56:26 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nguyen Minh Tien X-Patchwork-Id: 3500 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mxe881.netcup.net (Postfix) with ESMTPS id 5A0B51C1D46 for ; Sun, 27 Sep 2026 04:58:48 +0200 (CEST) Authentication-Results: mxe881; dkim=temperror header.d=embeddedlinux.blog; spf=pass (sender IP is 172.105.105.114) smtp.mailfrom=linux-sunxi+bounces-26309-noreply=patchwork.local@lists.linux.dev smtp.helo=tor.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.105.105.114 as permitted sender) client-ip=172.105.105.114; envelope-from=linux-sunxi+bounces-26309-noreply=patchwork.local@lists.linux.dev; helo=tor.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id D7A0229914 for ; Sun, 27 Sep 2026 02:56:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C33C3B5E08; Sun, 27 Sep 2026 02:56:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=embeddedlinux.blog header.i=@embeddedlinux.blog header.b="WsfKJuW2" X-Original-To: linux-sunxi@lists.linux.dev Received: from mail-pj2-f12.google.com (mail-pj2-f12.google.com [74.125.227.140]) (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 5C2403B52E2 for ; Sun, 27 Sep 2026 02:56:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.227.140 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790477817; cv=none; b=UIK5Yjk8rclSwn0Parosfy+28l/66HwLv3hl0DaYG8dmP0hGcA0xgSM4dWTwLbvEtLZgfVSAu3Cub8a2DL1jkYH8VsdZjmgHb4H9GMiH+y4SmwTtO+qOr3+IeMgOOii+NMhbf6EIUZi5bzIiempSyjXXkDF460/nYLmCfsyvpkk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790477817; c=relaxed/simple; bh=JLLY8202AFqPiR7IQZMFqT+Np/Pbs4qmrHh6nwqETJ0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Oy9zHUdl3blBJXyhhdu8v3CHDAnYaR6sn4LosSZfU0WTDl435edmnDtCZgQFf8nB1kRwaj0EVQtnZnpuz/HpZkzoa/qJUn1O7+MGcX9haGPBjAjqKRB6rhXxJrd2e47kxmh4feoW1Q9FFl47rksUqeTBsgYBZzXmWPWEhrmRM4g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=embeddedlinux.blog; spf=pass smtp.mailfrom=embeddedlinux.blog; dkim=pass (2048-bit key) header.d=embeddedlinux.blog header.i=@embeddedlinux.blog header.b=WsfKJuW2; arc=none smtp.client-ip=74.125.227.140 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=embeddedlinux.blog Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=embeddedlinux.blog Received: by mail-pj2-f12.google.com with SMTP id d9443c01a7336-2d747ec6188so8740975ad.3 for ; Sat, 26 Sep 2026 19:56:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embeddedlinux.blog; s=google; t=1790477815; x=1791082615; darn=lists.linux.dev; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Zx161GO4leyejnwa92HDTsrJTQOft6nH8qorocIvjzU=; b=WsfKJuW2LxLByuWf7bStv8q6FZ5GEKJQETBSqB7fu8EbXECWwFvZqg5xImrUUqK5fH P2NKwljJRqzYJBPxhnt609wSytZ53vFEehdJZfUZhaYfbVmDhNgkOaUDPX6sO0ro2qQQ lThxrWyZ3qrGKuZc3MFhyTS1X8dUVWY3iQUFNVnbxyV48Z/T/my69CnP8aeXT+1Amuxp 90THj+xXTOeIbRllsJmYoDru7ghPsZwqHKOkGcVIgLPlRI6SgM6b619quoXXu663ZB2E srOHcMi1S2b1sKXa3Nt/eYnRctdbl4HYQkiQDzrOWcg8GY8NnMWdFW7bU2HOmsgBuqak 3nXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790477815; x=1791082615; h=content-transfer-encoding:mime-version:references:in-reply-to :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=Zx161GO4leyejnwa92HDTsrJTQOft6nH8qorocIvjzU=; b=n0IsuuwpbpSoiojHhqU0+89AdzO/7s4iuu2gnCiETKSy3rEU8juKxzAutfyPbkBAyE 8DZI43O27AWuUnFkZy4I2ZWxnMVyyqfIyeb+5gXiBywPI/ljUkNpr32Id/pp1GQhNHfq RjZZOhKuYOU+05jyroasGxy8txkAOjWp3JgXcSx6VAtp4Su5OELgdmgFpRo99ZC1RbMU Xlbry4zUzaT2Y+3TuQaKKnbQtCRD8uw2v7KeYGaREz1WFnfGYcmWN3F25f28R8e8cumz aIvii7h1RsIewW7uOyHJVUzG/yy90d4ubjeWLjdIH9gKWzrY0GC7HVj6fMa4TdFuV7ef zE8w== X-Forwarded-Encrypted: i=1; AKwUvBzZLAWx04f1fIryoQQ3TMMiuTIG0OPsnDJNtoJpwf6xr7PLKCA3vMkLMy7Vf6MQ+C+sfVtfhyeEiyyksg==@lists.linux.dev X-Gm-Message-State: AFq9FYJrFXqmM4tT4orpHvV5ZozXRddP19VJmlB/hkPEsU1DXdGVzY+A tKLoRa1hRtFQ0IQbA73hMVoyhLanLVsB5JEUq4bbS9nCLup7AD2YgtNdYyO9HFQHZcqe X-Gm-Gg: AYBFou2DaBnXhP1vyxDRUSsqhUlWOhfJC/YYWijnh1sglR9DVLNZw9d26C2zPmFne94 OtWGX9VONI8R4cyDXlTHkz+zPETGLmczT+sPcxvuqJoDtq81jKGATYbshbqeE07cW6Q/U1BvzIP 3zbv9N8ZZEbQQeWXBJ0IEX9BEUWYY7rvyY++X4BSeoLtK9Tih/4sVIQN0zuybWGngdN4sbndRz3 qOWTfaFuxMfhm9NetSRjwC84MW++5UQVfbYhY21gsALYGk2LcHwDXUHH1hB6sUCF3IZ2xRhW8vd HD3+D+so0aubueFwp6GWyyFNOpOYgxAa/qkulgLtO5WOMMkoneITYBWpRNFyf5DflGNLImWgBc8 kZMSxQX1YWXpF4F5+EJr5r7MgFHuuupS2TejH4IQhHY/cB3f4v0BoCKPH74i+yscDYIUtrkiVRQ aU7ryF3BX8vAXkb1aJHGPZqBwtRkliP9vyq7XOq15gkFcGDCENPxrQ3k4WH8AQuahS4xV4ajr3t X8A X-Received: by 2002:a17:903:984:b0:2dd:c100:4246 with SMTP id d9443c01a7336-2df7e13c585mr80615525ad.42.1790477814644; Sat, 26 Sep 2026 19:56:54 -0700 (PDT) Received: from ltu.. ([171.245.4.151]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2df9142bfd4sm25512285ad.52.2026.09.26.19.56.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Sep 2026 19:56:52 -0700 (PDT) From: Nguyen Minh Tien To: Wilken Gottwalt , Bjorn Andersson Cc: Baolin Wang , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Philipp Zabel , Andre Przywara , Bastian Germann , linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, tien.nguyenminh@embeddedlinux.blog Subject: [PATCH 3/3] riscv: dts: allwinner: d1-t113: Add the hardware spinlock Date: Sun, 27 Sep 2026 09:56:26 +0700 Message-Id: <20260927025626.69614-4-tien.nguyenminh@embeddedlinux.blog> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260927025626.69614-1-tien.nguyenminh@embeddedlinux.blog> References: <20260927025626.69614-1-tien.nguyenminh@embeddedlinux.blog> Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [-0.66 / 15.00]; BAYES_HAM(-5.50)[100.00%]; RBL_SENDERSCORE(2.00)[172.105.105.114:from]; SUSPICIOUS_RECIPS(1.50)[]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; MAILLIST(-0.15)[generic]; MIME_GOOD(-0.10)[text/plain]; BAD_REP_POLICIES(0.10)[]; HAS_LIST_UNSUB(-0.01)[]; DMARC_NA(0.00)[embeddedlinux.blog]; RCPT_COUNT_TWELVE(0.00)[23]; TAGGED_RCPT(0.00)[dt]; DBL_PROHIBIT(0.00)[0.25.242.48:email]; FREEMAIL_CC(0.00)[linux.alibaba.com,kernel.org,gmail.com,sholland.org,dabbelt.com,eecs.berkeley.edu,ghiti.fr,pengutronix.de,arm.com,debian.org,vger.kernel.org,lists.infradead.org,lists.linux.dev,embeddedlinux.blog]; DBL_BLOCKED_OPENRESOLVER(0.00)[tor.lore.kernel.org:rdns,tor.lore.kernel.org:helo,embeddedlinux.blog:email,0.45.218.72:email]; PRECEDENCE_BULK(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; MIME_TRACE(0.00)[0:+]; R_SPF_ALLOW(0.00)[+ip4:172.105.105.114]; TO_DN_SOME(0.00)[]; FORGED_SENDER_MAILLIST(0.00)[]; RCVD_TLS_LAST(0.00)[]; TAGGED_FROM(0.00)[bounces-26309-noreply=patchwork.local]; ASN(0.00)[asn:63949, ipnet:172.105.96.0/20, country:SG]; FROM_NEQ_ENVFROM(0.00)[tien.nguyenminh@embeddedlinux.blog,linux-sunxi@lists.linux.dev]; ARC_ALLOW(0.00)[subspace.kernel.org:s=arc-20240116:i=1]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 5A0B51C1D46 X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= Add the hardware spinlock of the D1 and T113. It goes in sunxi-d1-t113.dtsi rather than sunxi-d1s-t113.dtsi, as the D1s manual has no spinlock in its memory map. Signed-off-by: Nguyen Minh Tien --- arch/riscv/boot/dts/allwinner/sunxi-d1-t113.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/riscv/boot/dts/allwinner/sunxi-d1-t113.dtsi b/arch/riscv/boot/dts/allwinner/sunxi-d1-t113.dtsi index 3b077dc086..228cc5c074 100644 --- a/arch/riscv/boot/dts/allwinner/sunxi-d1-t113.dtsi +++ b/arch/riscv/boot/dts/allwinner/sunxi-d1-t113.dtsi @@ -11,5 +11,14 @@ dsp_wdt: watchdog@1700400 { clock-names = "hosc", "losc"; status = "reserved"; }; + + hwlock: hwlock@3005000 { + compatible = "allwinner,sun20i-d1-hwspinlock", + "allwinner,sun6i-a31-hwspinlock"; + reg = <0x3005000 0x1000>; + clocks = <&ccu CLK_BUS_SPINLOCK>; + resets = <&ccu RST_BUS_SPINLOCK>; + #hwlock-cells = <1>; + }; }; };