Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp440445rdh; Wed, 14 Feb 2024 01:10:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXGgbDZVZXLbKVIS75SsXZ+Axg+7zaQmwdhkxwdjH0xJ9cwBLoU40lMOUT+URSAtXR1SMd1ZeoYJypph1QrXXbRWJCcobPsAtPLgQfJvQ== X-Google-Smtp-Source: AGHT+IGiSZbFjInMlxR8PBBIvx6Ok62blO87sORKzstl9BAYiP/V43z2Pn6UC9YRy+fT8peaJWgG X-Received: by 2002:a17:907:10c4:b0:a3d:3781:6ee6 with SMTP id rv4-20020a17090710c400b00a3d37816ee6mr993123ejb.61.1707901812575; Wed, 14 Feb 2024 01:10:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707901812; cv=pass; d=google.com; s=arc-20160816; b=kzfR9ZoQ/Y38gv2lf+wmSslLXcET78RKMCeJCnbxv5/MtG0gZ2x5adTYkJgPPV4pSt EO367e0l5hxWNXRPxWK6whHbGfPxLzPZPRNoelo7zggklFpwjjnv20VLLFR7zQ2w+Uxt BEmV9shcFg+DA6ytHEQJyoHXTPdP99N/ScNLhrbfUnVwR1NigaqwX2ClSMJ3CTgBV0YP YvZPBS+gKTCyeJ3JtTFlalK1mFfrp3HNd6nDEE6yS61EJ/qZIRVlLzZ6oWw/amXpEwDA dDrdkSrARLNDKMx8JQeHUYuDwOALwZ98z/udt4lE3sMf4dYgzQqKxyLDyV3y6G2Zlzel 2UnQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=K6eKuM5hiNfpCJdIvw7bSfZ28KB0tLEv3DbshBhbNPg=; fh=ECBxTvlhHbmwH12tDilUvJeDrxw53HktTUQ4Kml8uZQ=; b=GvAtkK6LtRZX2KPSa6r8uDV3GE7HQXhn6W0z6+PXlwXP8BpmTJ5Vm0AjRp846yWPYt WU7Nyp9vbqlTzSQ6nTtdFJIk8r5nikQ+ZMYBXjJHhAcSGg8Tnha8Z2CoH1EWHVDTAk2E 2YnC8O6VNgbKg/igXEztfoFLD4H0MwpflqmTQYjmCwKRfEcx5JUBpppsrV4Xl0MpKY5w cqYxdpU5LSiftG0lhzX+FpaIKNom8eDHtVFLqc0BT7jgl5tDfcJyhc/KR4XPO93DYT8z TQnvcCTY62Sor4tvWc8gRxS0K24mb0P2Lo8uug+yFcwr/P/Fxk7BMJRPvAznnsEu5hyj rhFg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=2x1dkUgN; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-64920-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64920-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com X-Forwarded-Encrypted: i=2; AJvYcCW/TUazG2d63TsdqFvkKkVMDIgRn1Kcn2z3uaD6N64VCAtu/b/G92Bx+NQA3t7VmVBhRxVSIi7Ut7DcAHkbAPaUj7ey6VpVGXGRa76K0w== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dc18-20020a170906c7d200b00a3d303d7c53si709651ejb.726.2024.02.14.01.10.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 01:10:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64920-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=2x1dkUgN; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-64920-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64920-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2D2101F2B7C5 for ; Wed, 14 Feb 2024 09:10:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 23315CA73; Wed, 14 Feb 2024 09:10:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="2x1dkUgN" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 B4EC07494; Wed, 14 Feb 2024 09:10:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707901803; cv=none; b=JRwkDCTaHOFPtaeU8+Ccu3/N/HHdYi1EUs0y+UP83wtPlUvJxribp8eckdZgny6ZemdlvTWen6ZEaBZdIkIHdphNJ2hwCkUMQrxOTzGrhd5ZL0NEDDTZkxUPQ3TRZZi4dlGtnnq6W38wRY5GrLiG20Bsp1oDpSv+eisjvCAD/3Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707901803; c=relaxed/simple; bh=qRIJNsuugD2BgpQqtNFfFv/hB/z44a84meYFsbMmD4s=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=o3WQlUc6QtsRY8Of6ZFAqJ4dyn5Wd7LJ/i1ILtTNRN+w313+sDR0oRE2v+JfFrVcHhZYouEbsD80DPdqCbIdyFdFnLQuCNSRoGCniOqOQE6Y2YESakNqnukqTN2jIYvA056/gq521w1TjugDDr6eKIcK82L7XqGwEoJqfKvK1sA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=2x1dkUgN; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1707901799; bh=qRIJNsuugD2BgpQqtNFfFv/hB/z44a84meYFsbMmD4s=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=2x1dkUgNDyW5JLCrnDRj/UliNLk2CtBOzqkv1zgEF+04Ql/8NIwkeCGq2LY6BjSKy ruwmXQJUq9uQFRBBmIvC+MQ7qY5AfnxltpS9jEy17lwLeOG+iE/jUuAikcfDiWeaqL VikR0HzMzeFiaeTL6WHQCqThwpv5y9JXkTNBwzRb4hnxeE2VtybI+OMKoYGID0hJ7o qZ3XWijWrmSn1n8fQ7aCatu0MWrbkhJwcl/65Z+QDGfg+F0fXQBw1fIi9lk7+GCAaV 6acvY/OepkcaWeO30N8qqCdA2dmFOSHsxWmqGaCG9csLgBaROD9xQlLLwUUhxwZKyn gPT0K1j89dQRg== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id EF5783781FD9; Wed, 14 Feb 2024 09:09:58 +0000 (UTC) Message-ID: <36baacb4-4aa9-421f-bde0-c4be7d7f4aa1@collabora.com> Date: Wed, 14 Feb 2024 10:09:58 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] arm64: dts: mediatek: mt7988: add PWM controller Content-Language: en-US To: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Matthias Brugger , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= Cc: 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?= References: <20240213164633.25447-1-zajec5@gmail.com> <20240213164633.25447-2-zajec5@gmail.com> From: AngeloGioacchino Del Regno In-Reply-To: <20240213164633.25447-2-zajec5@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Il 13/02/24 17:46, Rafał Miłecki ha scritto: > From: Rafał Miłecki > > Add binding for on-SoC controller that can control up to 8 PWMs. > > Signed-off-by: Rafał Miłecki > --- > arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 21 ++++++++++++++++++++- > 1 file changed, 20 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi > index bba97de4fb44..67007626b5cd 100644 > --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi > @@ -1,5 +1,6 @@ > // SPDX-License-Identifier: GPL-2.0-only OR MIT > > +#include > #include > > / { > @@ -78,7 +79,7 @@ gic: interrupt-controller@c000000 { > #interrupt-cells = <3>; > }; > > - clock-controller@10001000 { > + infracfg: clock-controller@10001000 { > compatible = "mediatek,mt7988-infracfg", "syscon"; > reg = <0 0x10001000 0 0x1000>; > #clock-cells = <1>; > @@ -103,6 +104,24 @@ clock-controller@1001e000 { > #clock-cells = <1>; > }; > > + pwm@10048000 { > + compatible = "mediatek,mt7988-pwm"; I can't take this unless there's a driver that supports your device. Regards, Angelo > + reg = <0 0x10048000 0 0x1000>; > + clocks = <&infracfg CLK_INFRA_66M_PWM_BCK>, > + <&infracfg CLK_INFRA_66M_PWM_HCK>, > + <&infracfg CLK_INFRA_66M_PWM_CK1>, > + <&infracfg CLK_INFRA_66M_PWM_CK2>, > + <&infracfg CLK_INFRA_66M_PWM_CK3>, > + <&infracfg CLK_INFRA_66M_PWM_CK4>, > + <&infracfg CLK_INFRA_66M_PWM_CK5>, > + <&infracfg CLK_INFRA_66M_PWM_CK6>, > + <&infracfg CLK_INFRA_66M_PWM_CK7>, > + <&infracfg CLK_INFRA_66M_PWM_CK8>; > + clock-names = "top", "main", "pwm1", "pwm2", "pwm3", "pwm4", "pwm5", "pwm6", > + "pwm7","pwm8"; > + #pwm-cells = <2>; > + }; > + > clock-controller@11f40000 { > compatible = "mediatek,mt7988-xfi-pll"; > reg = <0 0x11f40000 0 0x1000>;