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=1796411261; b=T0RH63tgPKzAVYCQr/C8qmSLlC+eErkVgq+SyH9cW/mc4E1iCRNUib2gfDsgn7D3+n1P Fpqw0SOgnpNMJQlY6FadNIkF6HOIPJ3QTx76q91+lB9qPm0ldhaLoHfZ62VE3A6pezg15 90+DLs3xlQxCIfKgiLpf0rtCaOKJEntLwPlmJjaAsHtbyXF9bw5KIiJgojNDjSzhKbPec oGQ4DlVYbF166llEqwBaIwjkXChRMeZ7vaX5t0iLiaq3hIaSkQp5u0OERTzC95gA4xv5H gBhPGIf9Wuknn3ejB1P+bza+EsjeeUGaUF35AmpVw7nW9xbZeACH2IUR+nIzmBZ7eWg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796411261; h=DMARC-Filter:Received:Message-ID:Date:MIME-Version:User-Agent: Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=fi0kHWckHbcooIkY2jU0GrdmuNFYVAQ1taGiM/AYW6g=; b=oqeU8z3Yz2zE7SPww+fuu5lAwNtg3uKIvByu3/rMdXRezm3wyNxCLjqx5CiMqvFsAmzP 60nttJIM07TFr9jrLzSS+c8nP79lZbOyJuNEWDHrK6iE+P+xYTgBZtCiqXUkLDW7D445V nE3eD1Q7wUAEJp9M5J1I4Dsafp6ad7JCzz6WnUGONVT5qCXMPRKfrYzFZ2K68F7Ay4FzR HfLT0ueiNQb3MIXxHNOQsV1eJMLYCGqmrIva7rnS/YR9gmLgAlkmeiFSNTq3bjQKPk9DC WK1MomaxXylnxC1u8G/umuspYKS0Zb6vitY1lZkjITgiC+4g/XE0yjchQ7OeKGA140A== 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 A4745606A322; Fri, 4 Dec 2026 19:07:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A4745606A322 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:1400:b6fc:d47b:9d03:18f3:eea3] by ds12 with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1xZYd4-00Cj9q-0y; Fri, 04 Dec 2026 20:07:34 +0100 Message-ID: <22814a98-1beb-4763-baf6-753df1e02f33@phrozen.org> Date: Fri, 4 Dec 2026 20:07:33 +0100 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/3] pwm: airoha: add support for AN7589 To: =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= Cc: Lorenzo Bianconi , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , 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 References: <20261201194434.3132187-1-john@phrozen.org> <20261201194434.3132187-4-john@phrozen.org> Content-Language: en-GB From: John Crispin In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi Uwe, On Thu, Dec 03, 2026 at 11:47:36AM +0100, Uwe Kleine-König wrote: > > The AN7589 PWM controller has no device tree node of its own. The GPIO > > system controller MFD driver registers it as a cell. Match the cell by > > name and use the device tree node of the parent, which is the PWM > > provider. > > Why do we have this difference? And why is the PWM's parent device the > PWM provider? This comes from the DT side. Conor did not want a child node for the PWM since it has no resources of its own [1], and asked for #pwm-cells on the system controller node with the driver probed through mfd_add_devices() [2]. I put that into the commit message for v2. [1] https://lore.kernel.org/r/20261113-fame-smock-6ea3b8fadcd0@spud [2] https://lore.kernel.org/r/20261117-illicitly-translate-2d16b1279df9@spud > > +#define AIROHA_PWM_GPIO_FLASH_SET_ID_WIDE GENMASK(3, 0) > > What is bit 3 for en7581? If it's reserved and reads as zero, you can > set it to GENMASK(3, 0) unconditionally. Sadly not, on the EN7581 bit 3 is the enable bit of the channel (AIROHA_PWM_GPIO_FLASH_EN, one line above). The rest is fixed in v2, which I will send tomorrow. John