From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 E54353C5529 for ; Fri, 3 Apr 2026 14:28:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775226540; cv=none; b=BXifo4I/1QCZc+c1rOcWW7GJF6DZQgu/JDyJ112gvA9JvqKyHPMIFMGBTjIg/CM0ltob9fHXhy7Q1nDDUhZBAs97Fc3Oqz4Y3/IEhjI0X79rntBACW/b35QTc3xRoun93ZjOaJrftvByrWlz28oKaGo2PMk2BUnoglrH5MBwu9s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775226540; c=relaxed/simple; bh=vH/ueYU0JM+Fk7o9qd3pD7pOGlBUbuQCnl4sMdxEXtE=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=fOU6s1T9rlBpK1ySH9uBPmgS1xypEvUwvldcWLVeiRi9I/uXVqDbvNq5t+dz5Lgw9dg1oNSJ6Crw20lutI8/0oq0L964AfJQBUUQJFGQCgB0mMknjKpRsZj6urCanp0OoeyFiCQEgp3HaDqeK5SjSTU3Cul80F5tnYTpz7mRemA= 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=O27kKWwe; arc=none smtp.client-ip=209.85.128.41 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="O27kKWwe" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-48374014a77so24784995e9.3 for ; Fri, 03 Apr 2026 07:28:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1775226537; x=1775831337; 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; bh=sXH0Wzyt0A1bijugwBqcmU83Qx2xfswksL1/C9qUqOw=; b=O27kKWwerM5QBBrQebBtfTxomIACfRi/X2SZWDXUXwLzq/5mW3+8X3HwBc1pDHwehA Jd5cWjjr0RCbsq76LJf5scoQqI029B+MwjUTYrWKASpZ8ByRb6p6j+X/8LfTN0yQOUG4 kS2MHwbSSUr8JhkNQuu9FruI3Mfo6QVKvaQFGHaH8yYBnXfRa/zEpPNcpNRa0d2ECr+L +45qsA+l/B3uofdyuAtif/icmUhzuiq/pireYr/qAMEHpKeOwwrkUSDL5j8YFefFABiN gYGAVgRvx19Txf+/WxfmrV9gjvMP9ur6FuzKNbj3e6z4KojbYdgeH7k2TkxR7zNhQN4Z 7MGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775226537; x=1775831337; 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; bh=sXH0Wzyt0A1bijugwBqcmU83Qx2xfswksL1/C9qUqOw=; b=kdMrpamnLj9AFcyndJjWIReuHws4pXJEkNuBjpNykc0ES08QDegq7osQDD/rf+JEJe hFTvmcViarYriYPzu73m/NNPGXGS6xcKf6cCF2B/Un39fJT3z2ZtCqsM4Nc1WOl/0VAj uUsIGFMEnA0JZTufJq+XkMGEV9BFSs5hCT1RrWdw7nyP+b4tdyTa0luQ8NFnl/xn+9qp Lq9u6kjNtwCDGbC7k7MphVIyVIQCiVwzLLGiabR03HL8rLff7wIT7KCVO+XAPHfyMFow 6SMMvw2dP8JiYePuLrJ6KMY9eObzQgvKuN9gK3nlfhvb2qY4mSCBFSjIoF/BhMDqy8r7 VVGQ== X-Forwarded-Encrypted: i=1; AJvYcCUz5Y4CqbJvSHylkFXCQQtFn56QGbtre6cp5qp5SWdbvKMGlL3bXFbTd8qSjx8Dqu240vNRSaXOY6w=@vger.kernel.org X-Gm-Message-State: AOJu0YwocXkj0SrAaQbtORH5TRCBmlY5Z1GocTI6DVtgP+xGU2ticIBM Y2pl+sKpN9PWfYyfg+Hcnvx+x/8r6oYtxGAlvGsGyYdfwiob7xqTWu/N3XHK/2ekS/w= X-Gm-Gg: ATEYQzwXV3P9xenojN0C27YNcRtcgxyK7Tlk2iUJ6hu8u6JJVqaTM6pXBP+UhkyQ7sA VmoCpP/k4mSX9DOEyHZqU9hRtPPCZQZ7xRIzKgc+BTF/C4RyvLxYS+23BhUC2xHZm5xO7N90qaP nWxi901SUbA2uyxWBqTpxjb8jvJT+hFSHSqcu74ot6Q+csbrXt3RiVhpUzokbSvX1qsqGZXhPLc bzEmCyry1pagkXoxOC+lZHjH+U2Cx+a4rp487ojY/7yM2Hi/LdpvPboLioFoCPTHPyynj+HCZNp rE4VxnjhgtxYt2A9/3yPQVYGoeN2X22xKYhy7fEugR/rvUxeLlhH4nGBMQYg7+Kg0ObWhuk+oh8 rsG/2rLmWul5cD1Pxiqqi6y60jUDLaoXiaFPMhpiSDLiCt4BgdwugsdI2t2yTzLSrPGJvOCy06f qhSHpGzxc+2HpZPWcFsqZB5xUEC3GmsC/Nxvqc3d+stzUIK7iaHXoTGkMXQEdZ0hMRdIVF X-Received: by 2002:a05:600c:3b87:b0:486:fe23:1707 with SMTP id 5b1f17b1804b1-488997ac1bdmr54229815e9.20.1775226537269; Fri, 03 Apr 2026 07:28:57 -0700 (PDT) Received: from localhost (host-79-33-140-232.retail.telecomitalia.it. [79.33.140.232]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4887e9630ddsm258915625e9.13.2026.04.03.07.28.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Apr 2026 07:28:56 -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 Subject: [PATCH 0/3] Add RP1 PWM controller support Date: Fri, 3 Apr 2026 16:31:53 +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 is then exported by this driver as a hwmon device. Subsequent patches will add the CPU thermal zone, which acts as a consumer of the PWM device. Best regards, Andrea Naushir Patuck (2): dt-bindings: pwm: Add Raspberry Pi RP1 PWM controller pwm: rp1: Add RP1 PWM controller driver Stanimir Varbanov (1): arm64: dts: broadcom: rp1: Add PWM node .../bindings/pwm/raspberrypi,rp1-pwm.yaml | 52 ++++ .../boot/dts/broadcom/bcm2712-rpi-5-b.dts | 12 + arch/arm64/boot/dts/broadcom/rp1-common.dtsi | 10 + drivers/pwm/Kconfig | 10 + drivers/pwm/Makefile | 1 + drivers/pwm/pwm-rp1.c | 244 ++++++++++++++++++ 6 files changed, 329 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/raspberrypi,rp1-pwm.yaml create mode 100644 drivers/pwm/pwm-rp1.c -- 2.35.3