Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp597441rdh; Wed, 14 Feb 2024 06:19:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVT0yH8UckWHH1sD8GKL0MjHH/1LB36A8HetCfuOl2aBQ6boi7oPi2rPuQLRg/pMvBay3+a6w44FNWM61qJE9NUW5qXqDKpP5DoV88j/A== X-Google-Smtp-Source: AGHT+IG6c12yTS9V0yOAonOmqI57YnOkfZKxBiNHuOLgSDd65oCbHSyzS6oAq4UorwH6l8H8bjBE X-Received: by 2002:a05:6a20:d70b:b0:19e:c2de:422 with SMTP id iz11-20020a056a20d70b00b0019ec2de0422mr3418828pzb.55.1707920351191; Wed, 14 Feb 2024 06:19:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707920351; cv=pass; d=google.com; s=arc-20160816; b=ZFYZ5HCFuDK1eiez2gjMNYwo2jyctU+zJF+XTO/z4FYBWdIvgg32eXEh2wp6RdZao9 HZHcC0+1YBBAmrbu9Hw6owBbSf4t6BW+g4r+bbUJX+qXnRR/8U/efeFGhx7eycyjtxnz Vr/0WUpjwK145kCyNfoUg2A76uChrwKNpKgV8ii6YwLdHdHttqNeaW1lawqOYU/Py5FP suwioBDXnzqsMicCcwydOqN2VwVvueIr6ylkRK4VNXcVhw4BN/k7k3Wq23lFhocK5LNL jKDmf8d0xj5XLjtjMNuvx70ty+P58nCOoGW+9Qxb+UTJ2j1Iz4TGCYUE1+sNNlyb4OEt 9wqA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date; bh=Ec+HfulWnFdZLySKE8Yk9N8CDwVxn2I881+DjZOg4P0=; fh=aHsq1audTpIaN7NDVHTbv/Ze8u+kVPzDQBKE/+St9YE=; b=sUzCJ8H38N7PwysLzV4GZntZjiFWGUl8ELukrerjy/w5WX48IMJgkyHyQK2N7eNYqe SooAgyOKwNOILtEQ/hOBbCrwZkbJNjKOQ7JljKWFBI1gHC6WtCWdNaUeTL4++lYqNLuK daDgqKhMKACOPRw/TNpYkc59XzLNbp81pdK7DA9Xqgn+dAE52ggnR994EVc6vpC2Fyud 2WE+Oz/f7URKKh8OxZ/jwkx7+8GSxGMCUA3HFZySrmKvGBdgzkazWU27H7Wj2shMwWFk VkMx/WZ8QtjulovCfFwlAPtUW77dUNMF6Zj6/lZMV1tIh4rN6NTcBi5eQvkhpkFqXOCU VQcw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-65323-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65323-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCUhB9eKCWd1U7gYWsNNaqgQwp8Xb/4bfYCMF4nl62ZDrDL2sKVPuU4ZjbEs6rgD5vNBRqFaDRx/XHGbdS72ZkdIRViTWzUT1QQx9XaNdQ== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y32-20020a056a00182000b006e03c7ff47asi323381pfa.124.2024.02.14.06.19.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 06:19:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65323-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-65323-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65323-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 87B73B25E43 for ; Wed, 14 Feb 2024 14:12:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2F3715579A; Wed, 14 Feb 2024 14:12:43 +0000 (UTC) Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B8A2954FA4; Wed, 14 Feb 2024 14:12:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.142.180.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707919962; cv=none; b=tTtrvBELaFKcvpnZokBSRi3ogRmuZPGpkBafGtqlV4tXX8Fi/f5j0GXUixva5tLH5oKEabRuYvLJ2nlSMC67b0to/eXFW8pF01cI8zEtdQ06eAerv5/rXqcli5h8S4hXaZva7SN87tqvqCFM2HSsq4ASEwKK0uMDBnuT+rzp1nI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707919962; c=relaxed/simple; bh=XYOhbvhPZxYmBhp1tU8taJa8/fjCiGlVZn1WC/bNMZI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=T160rZs4n5nBvcaLPv1nMe1zU2ir0PsJGnHu724w8NAiqTTSnCdR5hxWGTPwvrguhHIvmceiW1CRR2zTOR1kUDpt/6unwMGi72huOGaYnDKtl4GV38TWMl/oBz+WGohgZqrPxiDlD/pgVCi/Ok8TSHoLtxZ92IwQMgzu7uZcUDQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.client-ip=185.142.180.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96.2) (envelope-from ) id 1raFzr-00046P-39; Wed, 14 Feb 2024 14:12:24 +0000 Date: Wed, 14 Feb 2024 14:12:15 +0000 From: Daniel Golle To: =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Cc: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , John Crispin , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Subject: Re: [PATCH V2 2/2] pwm: mediatek: add support for MT7988 Message-ID: References: <20240214140454.6438-1-zajec5@gmail.com> <20240214140454.6438-2-zajec5@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240214140454.6438-2-zajec5@gmail.com> On Wed, Feb 14, 2024 at 03:04:54PM +0100, Rafał Miłecki wrote: > From: Rafał Miłecki > > MT7988 uses new registers layout just like MT7981 but it supports 8 PWM > interfaces. > > Signed-off-by: Rafał Miłecki Reviewed-by: Daniel Golle > --- > V2: New patch in the series > > drivers/pwm/pwm-mediatek.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/drivers/pwm/pwm-mediatek.c b/drivers/pwm/pwm-mediatek.c > index 562102a47ac0..292c8bd5b343 100644 > --- a/drivers/pwm/pwm-mediatek.c > +++ b/drivers/pwm/pwm-mediatek.c > @@ -339,6 +339,13 @@ static const struct pwm_mediatek_of_data mt7986_pwm_data = { > .reg_offset = mtk_pwm_reg_offset_v1, > }; > > +static const struct pwm_mediatek_of_data mt7988_pwm_data = { > + .num_pwms = 8, > + .pwm45_fixup = false, > + .has_ck_26m_sel = false, > + .reg_offset = mtk_pwm_reg_offset_v2, > +}; > + > static const struct pwm_mediatek_of_data mt8183_pwm_data = { > .num_pwms = 4, > .pwm45_fixup = false, > @@ -369,6 +376,7 @@ static const struct of_device_id pwm_mediatek_of_match[] = { > { .compatible = "mediatek,mt7629-pwm", .data = &mt7629_pwm_data }, > { .compatible = "mediatek,mt7981-pwm", .data = &mt7981_pwm_data }, > { .compatible = "mediatek,mt7986-pwm", .data = &mt7986_pwm_data }, > + { .compatible = "mediatek,mt7988-pwm", .data = &mt7988_pwm_data }, > { .compatible = "mediatek,mt8183-pwm", .data = &mt8183_pwm_data }, > { .compatible = "mediatek,mt8365-pwm", .data = &mt8365_pwm_data }, > { .compatible = "mediatek,mt8516-pwm", .data = &mt8516_pwm_data }, > -- > 2.35.3 > >