From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm2-f12.google.com (mail-wm2-f12.google.com [74.125.225.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 7CB21502555 for ; Tue, 29 Sep 2026 12:58:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.140 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790686716; cv=none; b=BCQu+5UFy6rNPiUNFyrp7ltqfv8cw2PczEf/DQpKpfucSx+zsI26ViIsZHQ8ug9DO9BSw9r9cGbyng74a0UJbH/9R/KNqeFi9hXaVdYaHxfgeFc1sxRChVOG+bOCcewbAEZNGiKt3qeUc6pTQmCtbRJhPfOkgPbCYPN4IgtqLXQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790686716; c=relaxed/simple; bh=qxl+Atr5luw+W7OfXI5w9oFesDtEHRqgE0NcT9ttH2A=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=F9UvQXrE/Eqh5MjySjEC5zJolAhQUUETBWnZOg0115rZG5ALxYT8WHYQxPFb3vasvjSyM+jb2MAwgBCXS8tuUq6FPl1S7b+ZiUDyPfroLaDGyDnID2VWx6El1SUlx35VKQGNnh8sPtCa3oUDI5KkUDmIYTCsarRmBIf9AsW8Blc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=JukNy7j0; arc=none smtp.client-ip=74.125.225.140 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="JukNy7j0" Received: by mail-wm2-f12.google.com with SMTP id 5b1f17b1804b1-49ffde3cec6so15212805e9.3 for ; Tue, 29 Sep 2026 05:58:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1790686712; x=1791291512; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=pnfU324HArntK/V5m555W6h2CudfIeZPIQ4Ghrx/YkA=; b=JukNy7j0iWQ9EtXJWGZBaci9IGUBhx8Mu2uh41ioYqrIWUpv5RedDBWpgj8k1fpwHn i32dwVyU3kMzZz6KwM3qRBXyNhorgrQufCagcmfs1RuqBjlfCVlz1tnei9Li6Qh9qDdV CGg1lKsLpHXDBaaobdW5csSs5pFZQpPozXALEErXi9nf0I1oB2eBKPdKFwZNjMO5NByn NrZDzWyAYE0jM6OZZxfqt8kjTQIjI1lKm15of8Bln99ZH2ucYTYlAXrDoqxcDVFkG0Y6 v6McflblT/FDnDXqZYgJb4ecDi8lbEY2N7bRhRsBN6nwGtc+aCiGKc725qOBjV014VXn OcHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790686712; x=1791291512; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=pnfU324HArntK/V5m555W6h2CudfIeZPIQ4Ghrx/YkA=; b=EJsC486hkfbYG2gCwqMUuViEjcBhJoDgfy4/IOrPqrAQQtq02EIsr12GLvCrIKnLHE AniNFMwy1Pt/fQ/bT8R+5b8u8DR8sy7SW6LGgAedWJxdrFQC5e9qURkAPMWvQNnFX8Ss GXq7wF241dOI0TVz/+XuK6Cjpdqsjw3w7TgS6bYJwrBJgtSA1vpmlxgYH/sYLBUey8Ow ksQbcVKFGisUXej3ejriYmWOu0UgsyWAcs0ZGO1IBoawvliBU2WUHikn2q8PRSb/ORmF chHoVulOmwpM7vW1Nkd9X9+foaPlq/ugRMbLH9ZxIvYjCB7z3sNv+EYabGAtkJ/cnFw5 yc0g== X-Forwarded-Encrypted: i=1; AKwUvBzEI2VSkZEOfbBiKhP/iHO7WI1Hb5iHGBS5WUBocIhvke0zIU3HklCV2oQW98Vwupsg/zh8RLzZWqA=@vger.kernel.org X-Gm-Message-State: AFuF++lbmQQvwN0hM6mRpjULhkmF41m+P2HcC3dxQPZWx6ceoIWmGMdb zk2wEOkISnpHHPc/BBquT8aiGJGQ9N/Uu8hS/RZtRjCRDeLYKPy58hcgkdEGLqqKE6evHqnp/zB EEdzi24M= X-Gm-Gg: AYBFou3Lmkk95dqzbkLud4WhlEB4xjPqKdlW/tyHNRXxHdav7kTsnBY9CAbUEGTlYLJ YIzpNfgw0iyfbbs0E51dHSwZeowfsVhXBYS9W4yVOC5CXAEAgf+CKmFgYElrrMBwXP2C+kUtpK6 yS8+rVJA4nVoGePpNDt+vfaYhM8uXyoToRE2no6Yimigb0c21OujHpa5Xl1D/BQpf6MufKohuXL hnUJ7S0+Gr0nLQmgrZBQ66XBCx8kVmHu8z4LhzNHRnDXKPyC38LiupHekIG6lTkwG0NAze0DQ5K wmBrB3bcXoX7FQpacsy+S+irjiwCSSozJ2q/JeJH3A++o8S5OrGWsuHvtC+oj269qOGYZa1R+j8 fBUS8fGSD8C74F4jH9fPvgddXZuXXFFdB82erz8yh3RtbD4pGEsjDryZP2bEFK+UicpRRsw3Cal /i9cNIGGFnEs1qyp/P+QXG+lgPh1MVyDXO7Jux4oZNdcJ40PWTMtbXMa7tU65bbffaiim1cMI= X-Received: by 2002:a05:600c:1d19:b0:49f:e427:e88f with SMTP id 5b1f17b1804b1-49fe66f1486mr272629675e9.21.1790686712414; Tue, 29 Sep 2026 05:58:32 -0700 (PDT) Received: from localhost ([195.94.147.179]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48af50a65f4sm3682296f8f.35.2026.09.29.05.58.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2026 05:58:31 -0700 (PDT) From: Andrea della Porta To: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , linux-pwm@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Broadcom internal kernel review list , Andrea della Porta , devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Naushir Patuck , Stanimir Varbanov , mbrugger@suse.com, Sean Young , Julian Braha , "Gary Guo" , Christophe JAILLET Subject: [PATCH v12 0/2] Add RP1 PWM controller support Date: Tue, 29 Sep 2026 15:02:10 +0200 Message-ID: X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-pwm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This patchset adds support for the PWM controller found on the Raspberry Pi RP1 southbridge. This is necessary to operate the cooling fan connected to one of the PWM channels. The tachometer pin for the fan speed is managed by the firmware running on the RP1's M-core. It uses the PHASE2 register to report the RPM, which will be exported by this driver via a function. A subsequent patch will add the function to read the speed to this driver and a new device and driver to read the RPM and export this value via hwmon. Subsequent patches will also add the CPU thermal zone, which acts as a consumer of the PWM device. Best regards, Andrea CHANGES in V12: - added a comment to better explain why we don't need to save and restore config registers upon suspend/resume, hopefully Sashiko will stop complaining about that. - the RMW access to teh global control register is not synchronized via spinlock. - patch 3 from previous release: "arm64: dts: broadcom: rpi-5: Add RP1 PWM node" has been dropped from this patchset since it's already applied to Florian's devicetre-arm64/next branch. Link to V11: https://lore.kernel.org/all/cover.1790606188.git.andrea.porta@suse.com/ Naushir Patuck (2): dt-bindings: pwm: Add Raspberry Pi RP1 PWM controller pwm: rp1: Add RP1 PWM controller driver .../bindings/pwm/raspberrypi,rp1-pwm.yaml | 66 +++ drivers/pwm/Kconfig | 7 + drivers/pwm/Makefile | 1 + drivers/pwm/pwm-rp1.c | 428 ++++++++++++++++++ 4 files changed, 502 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/raspberrypi,rp1-pwm.yaml create mode 100644 drivers/pwm/pwm-rp1.c -- 2.35.3