From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=46.4.11.11 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796154291; b=evpDiMaAG7WPpGl9Vwv1exRa52CNkoXw/lwbL5wgsP4zMyOk6V380mTz6NZzQXLdFXmW Ru6udKh85LyGOjOxM1Dqj/TJHU7bmUzOpdOV5ljbxZ+cU2efi9JCggmcL+UAm3EuUL5MJ 0pkobtg3HFh8VU5X/JHaIVTGuQrv3POpaUrLULnqWnpMp2W5O1btgWAFGtbZgdmAvgTCZ xLS4kA9OfgM/ijrOivS9QqmzFAzIn3ukTJSpJCSUvUVETIT1ir6VTZ/yM49lkNWiPg+kG 96tF9QXcF2j3lhs093o/UvcJD1uey4Hg4g6B/KebP+vs7VdkV4SpIN72+FATC+zCa9w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796154291; h=DMARC-Filter:Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer: MIME-Version:Content-Transfer-Encoding; bh=HnXxsbSR1MK4qWgEt8knk52q7iTbwDSm2dUZUIIR6QY=; b=rkefQMZU93ynopCZryQUINOc6TNTgAQdEfIYgbyLJ8ZS5pP8nI7kFBL6W6ivN/XUsr13 RG1zOD5gy0DeP8C/f6mEsCYA+uRq4i9t4abIuAK4QZj1QlnVA7KSdrXMBMzrkOXafp7q5 ygb2vsnQgUuU8KZEkMWdUqDYCR6fj9AbbHZYBFwJRuv4OXlRBnAm/Z70pdT2h7M/n/fNV CU8pF5dEEHaGzxWXFPIbSsvg6xU2Aa1xosCwrihAzGcOwrhH/hsYmcbYiELJ2ZCi6ILt0 6M+mIRmCEQ3VNxw2C3YW5wm7Yz/WHE5zf7l7lk+pwZgRSZLSbGLIpCQRyRHzKHbr9DQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=phrozen.org; spf=pass smtp.mailfrom=phrozen.org; arc=none smtp.remote-ip=46.4.11.11 Received: from nbd.name (nbd.name [46.4.11.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D69FA606A69D; Tue, 1 Dec 2026 19:44:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D69FA606A69D Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=phrozen.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=phrozen.org Received: from [2a04:4540:1405:15fc:bd72:1c73:6cc3:2cda] (helo=bertha10..) by ds12 with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1xYTmN-00AtKQ-0e; Tue, 01 Dec 2026 20:44:43 +0100 From: John Crispin To: Lorenzo Bianconi , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Cc: Christian Marangi , devicetree@vger.kernel.org, lei.dong@airoha.com, Linqi.zhang@airoha.com, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-pwm@vger.kernel.org, mfd@lists.linux.dev, Rajeev.kumar@airoha.com, upstream@airoha.com, Weifeng.xu@airoha.com, zhengping.zhang@airoha.com Subject: [PATCH 0/3] pwm: airoha: add AN7589 support Date: Tue, 1 Dec 2026 20:44:31 +0100 Message-Id: <20261201194434.3132187-1-john@phrozen.org> X-Mailer: git-send-email 2.34.1 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The AN7589 PWM block is the EN7581 one with two differences: the flash set-id of a channel is 4 bits wide instead of 3, and the channel enable moved into a register of its own with one bit per channel. The PWM controller lives in the GPIO system controller next to the pin controller. It has no resources of its own, so following Conor's comment on the pinctrl binding [1] it gets no child node and the system controller node itself carries #pwm-cells. Patch 1 adds #pwm-cells to the system controller binding. Patch 2 adds a small MFD driver that registers the PWM controller as a cell, and patch 3 teaches the PWM driver the AN7589 layout and lets it probe as that cell. Based on next-20261201, which has the AN7589 pinctrl series and with it the GPIO system controller binding. [1] https://lore.kernel.org/r/20261117-illicitly-translate-2d16b1279df9@spud John Crispin (3): dt-bindings: mfd: airoha: add #pwm-cells to AN7589 gpio-sysctl mfd: add Airoha GPIO system controller driver pwm: airoha: add support for AN7589 .../mfd/airoha,an7589-gpio-sysctl.yaml | 6 +- MAINTAINERS | 1 + drivers/mfd/Kconfig | 11 ++ drivers/mfd/Makefile | 1 + drivers/mfd/airoha-gpio-sysctl.c | 43 +++++++ drivers/pwm/pwm-airoha.c | 116 ++++++++++++++++-- 6 files changed, 165 insertions(+), 13 deletions(-) create mode 100644 drivers/mfd/airoha-gpio-sysctl.c base-commit: d138596e9f822033490b2e577ec2ea64f2aa246c -- 2.34.1