From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f226.google.com (mail-pl1-f226.google.com [209.85.214.226]) (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 1DF47328B6A for ; Thu, 19 Feb 2026 21:57:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.226 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771538234; cv=none; b=ngSENnZsSchwpiZ3uWAZPOSVjm036dh1AMDW+1N5T60GEgCu71Z9ngPepnSWSSxekcKh5cBJ7ZpZcFPa0TY5BzRGADrvYpBEAKlUqFvjlEsJg81bFUuf8c1Y1mydPov/BWbAflWCtVsvVGCb5IVdU/8UdY7ojxwkqpg94FjmghM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771538234; c=relaxed/simple; bh=M13rRdKkj48+l10Frz4L86bVw/CZ75WBD1Ms+1T541k=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ALU1SgoxGwfZXFCQoxowMtvdLlNHTKZ38wcdMNWyrVQUx+/rhxfiNgFlLKMZrTsdeaaNgW9FKiGChXUTAsEGdHfGfFlGEBYxVg/VED+YpFUJZA/WBUtFCQL3TZ6urd7o6jMq+eNiOXTcogrR0MIdNhnEAAAx6dgijinJMxwIX00= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=YooRy1Mb; arc=none smtp.client-ip=209.85.214.226 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="YooRy1Mb" Received: by mail-pl1-f226.google.com with SMTP id d9443c01a7336-2ad4d639db3so7063955ad.0 for ; Thu, 19 Feb 2026 13:57:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771538231; x=1772143031; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LrI6BpFC3eI6yOKYRJrMT8qJD2DqNlsDbhGThIhmnQs=; b=lP3EaAlW97AHN+qKySGB0eC3WnQcfWIgrM2la7M7G16tHOxGuDJyjw36gxBj2zlIx5 9aqFSRx8oA5oglmzxkSp9cf6SgT+nT6SD7p4llq5th/McYtA46DPiOJORBEgkRfM288Z NT4vNyThNk87YMNxsd6Hxf/2LDonfUDMkxn5SHieihnmqSn5AvU5tYSPUBZ3MW6V3v16 hCPlsym6DGLNyfHrEz4gCgNmSqwz4azD+MmPWbEOoDbRFR7YmCUKyongC0LhIBgQY5DI QR0ms+Hnrv9NPjWPgPri7Hg1+hVvpsdcmW8GjcnFKkprIuj+OlDvl1GFLTgfrgEtkjcC JZUg== X-Forwarded-Encrypted: i=1; AJvYcCXeUzvF9muTZSFe9t9ymwvd0NTpEE3Kffbgi0S+IJGkzl5Y3zURVSF1Nf8tieyuENRkhc45zKo77aBeuiQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yx5ypHBtfg4/OvCkqScgVzuHasdLZs1xj3IlwLMRtp1bnUgG0yD 81xvQ5EuNKjrb0mU+2dKq9QMOP3itFvD4dfi1wNIG9KnN4lEqsIX4XnGCPaKfI/Uugem23A28Wm pDeTiVhyZWjllgbzsQHfYILx5dbbru+E7HUpLJXpp1Kjs0grGeky4VhdvaYswRrCloceQUeYTUV csYMi8Ob5iUf0w19niTeLNEXXaRaf9Hy+GMtwu9D7GMK2dhhNaF+R1vAbmCDRlsfA0hir06KvI2 s7gEdo+Sp6mpPsb X-Gm-Gg: AZuq6aL5/IIUYlOo6hXTxM1SFUUQJq1l5gI+a//ZtlMeM+0fmOi5C69rjP2U62TdxYc 8/dyazTi76NqqhMKIIVFe3KDUv/GuJMX10Wm3uwo7+AKVgz2BrFbYxMLJhxjFv54hYhoSyYpKIA LiwACE4zyiyTSbTc2nN1pptbBfTD8SNMHqV0GQlV33UeSTFkf5jrJJ1whf4JK+VXfFVhAEE+/t/ Sb+U2JZt8jxmQYAO3E8VOuo2butLB+/nU6L3XyTHS815Me8NoB7V58T/Ys7RbVjeIaoo815Tvla ZM3BKGUGBLqbOYH0N5qEMMN7hC8Hqdh0yyCgbBtrxUEApBdvXE0DpSg3Fq00bktaKLswc0WzVos 3tH8qIvtLFyyRIrLpaoNiJDleoKSv4d/95JHHn/r9lOw3LyEMAL9dp/aesqZuYNcdgj60so3OTJ 07bg4b35TygCYcVNRM98zfbrnFkI/LvVi2IaCbs/7gLOilwk0QBkI= X-Received: by 2002:a17:902:f788:b0:2a9:63f4:127 with SMTP id d9443c01a7336-2ad1751589dmr194367615ad.30.1771538231372; Thu, 19 Feb 2026 13:57:11 -0800 (PST) Received: from smtp-us-east1-p01-i01-si01.dlp.protect.broadcom.com (address-144-49-247-2.dlp.protect.broadcom.com. [144.49.247.2]) by smtp-relay.gmail.com with ESMTPS id d9443c01a7336-2ad1a78f5cesm23078045ad.34.2026.02.19.13.57.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Feb 2026 13:57:11 -0800 (PST) X-Relaying-Domain: broadcom.com X-CFilter-Loop: Reflected Received: by mail-pl1-f200.google.com with SMTP id d9443c01a7336-2a7701b6353so16510115ad.3 for ; Thu, 19 Feb 2026 13:57:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1771538229; x=1772143029; 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; bh=LrI6BpFC3eI6yOKYRJrMT8qJD2DqNlsDbhGThIhmnQs=; b=YooRy1MbEzA+TPPyKk6bKdlKsTi7nRo9oDFPpcHclFwh3ja1pICm83OPV9TQmbnxWV yBbhB4icMXEHYd6tvG19YO/blwljJSuTSXEJIZ5SFJKOqbOZe2NEZVVsCD1v5OXP5gr4 k4AY8WsrQA3PPQ7zYo+c9ujFu/4URgfxLWGGY= X-Forwarded-Encrypted: i=1; AJvYcCXQ5MILqzjuKcD2K6WeaNMuhXi8IfayUjbaEdgQR8XAlaUGw2xoDA8gBpJ0Z/FmFATEYWFI6on9RFQ5jA8=@vger.kernel.org X-Received: by 2002:a17:902:f647:b0:2aa:d2a7:ad2e with SMTP id d9443c01a7336-2ad17515e97mr214771095ad.36.1771538229576; Thu, 19 Feb 2026 13:57:09 -0800 (PST) X-Received: by 2002:a17:902:f647:b0:2aa:d2a7:ad2e with SMTP id d9443c01a7336-2ad17515e97mr214770935ad.36.1771538229117; Thu, 19 Feb 2026 13:57:09 -0800 (PST) Received: from mail.broadcom.net ([192.19.144.250]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2ad1aae9d73sm156416065ad.77.2026.02.19.13.57.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Feb 2026 13:57:08 -0800 (PST) From: Kamal Dasu To: andersson@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: baolin.wang@linux.alibaba.com, florian.fainelli@broadcom.com, bcm-kernel-feedback-list@broadcom.com, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kamal Dasu Subject: [PATCH v4 0/3] Adding brcmstb-hwspinlock support Date: Thu, 19 Feb 2026 16:56:59 -0500 Message-Id: <20260219215702.63321-1-kamal.dasu@broadcom.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-DetectorID-Processed: b00c1d49-9d2e-4205-b15f-d015386d3d5e This is a standalone patch for the hardware semaphore feature for all brcmstb SoCs that have the same hardware semaphore registers. The semaphore registers belong to the sundry hardware block. The node describes only the semaphore register range carved out of the larger sundry block address space, consistent with how other upstream hwspinlock drivers represent their standalone hardware blocks. The compatible string has been renamed from "brcm,brcmstb-hwspinlock" to "brcm,brcmstb-sun-top-ctrl-semaphore" to reflect the actual hardware block name rather than the Linux subsystem name. The patch has been tested to work as builtin as well as a module. v4 changes: Addressed review comments from Krzysztof Kozlowski and Rob Herring: - Renamed compatible from "brcm,brcmstb-hwspinlock" to "brcm,brcmstb-sun-top-ctrl-semaphore" to use the hardware name - Added description block to the DT binding YAML explaining what the semaphore registers are and their relationship to the sundry block - Fixed typo in Kconfig "Setttop" -> "Settop" - Fixed email typo in MODULE_AUTHOR v3 changes: Added detailed explanation in the all commit messages as per review comments - Added description of 'sundry' ip block that the hardware semaphore belongs to - Added reasoning for using common compatible string v2 changes: Addressed following review comments: - fixed ordering of obj brcmstb_hwspinlock.o in Makefile - fixed ordering of 'config HWSPINLOCK_BRCMSTB' block in Kconfig - Renamed BRCMSTB_MAX_SEMAPHORES to BRCMSTB_NUM_SEMAPHORES - Removed unnecessary platform_set_drvdata(pdev, bank); Also addressing duplicate PATCH 1/3 sent in error as part of v1 change. v1 changes: based on fixes made to Initial patch: Link: https://github.com/intel-lab-lkp/linux/commits/ Kamal-Dasu/dt-bindings-brcmstb-hwspinlock-support- for-hwspinlock/20250712-034624 Link: https://lore.kernel.org/r/20250711154221.928164- 4-kamal.dasu%40broadcom.com [PATCH 2/4] hwspinlock: brcmstb hardware semaphore support All the review comments and build warning have been fixed. Kamal Dasu (3): dt-bindings: hwlock: Adding brcmstb-hwspinlock support hwspinlock: brcmstb hardware semaphore support MAINTAINERS: adding entry for BRCMSTB HWSPINLOCK driver .../hwlock/brcm,brcmstb-hwspinlock.yaml | 45 +++++++++ MAINTAINERS | 8 ++ drivers/hwspinlock/Kconfig | 11 ++- drivers/hwspinlock/Makefile | 1 + drivers/hwspinlock/brcmstb_hwspinlock.c | 96 +++++++++++++++++++ 5 files changed, 160 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/hwlock/brcm,brcmstb-hwspinlock.yaml create mode 100644 drivers/hwspinlock/brcmstb_hwspinlock.c -- 2.34.1