From patchwork Tue Feb 13 16:46:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 13555379 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 21CCBC4829A for ; Tue, 13 Feb 2024 16:47:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=Jt2WxlQdO4fysvQIUvE9sZzH3jia5VewAudv21NzUl8=; b=Tdy7S1/P9RzSWZd1KnFVtystSH 9o8aeAxPO1D02GRaRlMVJPxFUKDkrRZYm6CmOZtFqCrug50e/whiKDhxax4bViN8L+L+2+jxmaeCF Tj6MOHFierG16xGDihja8c4Ph02BQbnNGizNJhAVh/KRCauWfgvVBn7fT2fprtU0qLapFdzDQxjkP KN8LWONdfo9CEiTYQoXEfQfpxWdtP8YTFf4YmPFmDFjc48O5d3orem+CYq44g26jUzTtxdNxbMsAR 73C6CTL6fUnNlbbDsZXfBbENrgWgh0pjVcJEDA4MVA5clkCX53vUDGCgEhFoaFMu+O9DbLWCmkjvH ddMFAMew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZvvz-0000000A1P3-3hnx; Tue, 13 Feb 2024 16:47:03 +0000 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZvvu-0000000A1LO-2XP4; Tue, 13 Feb 2024 16:46:59 +0000 Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-55a5e7fa471so5997548a12.1; Tue, 13 Feb 2024 08:46:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707842817; x=1708447617; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Jt2WxlQdO4fysvQIUvE9sZzH3jia5VewAudv21NzUl8=; b=I2Tk55OSPT7rVLCTktfmOn0dr6j4M28lAWW1JW4lfadYOEFgu/b7q2CgwAVMIGdvYH V8l2i7Q2sIVFGkKf/oJGRwRVoHLCY7DI/cBiFRueJHIs7EtmqoAvmg4c/dGsx8rbhyKZ 1gAlBQy5HCXqUsUaF9nThq24AjwY9y1e2wKXZagSBKxcDpcfQdlUdXBUpPSTz3YOXCyE jm4VJrBWUG1tqxEeZ4zSMOMVJIbh+vVx5BBv1FOCVuZ979SXWWzgPdTxeSskyT2TWJl6 tN7DfSyD7sxLfHS8mtjvq0aWUGeDwFw0ic+0t5koOhs1fMAawVnfnmzm+N0loToh/uaZ f6MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707842817; x=1708447617; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Jt2WxlQdO4fysvQIUvE9sZzH3jia5VewAudv21NzUl8=; b=Vqe/PVNlrR1meiivwpeiWOWdnZWQ6saLa8nqPTUehbwmq0+tRzdj6qobc+5G2b4GXb 9l/yACgiqR6JCrAfQTAxRv/bwL4TLz/F7TCPWYmo1H+RYcuUy4uVpHfnWHXfkuqtShX+ wLRPNlz74XF7MaAs/Xd6ZZqCfMqkxNOk7Y6FJdZcFGvTbfL5P16o4gx58E7ca5xwgL46 NgpMAeRMVP792uSvctAKcOo2HCEEDpa0Cf7qkjZj2fp2w6qDCPS/IESgiRasQ+MPRpXg FbgAlgMNOBnvI78nMu9gW3fYuZSNozdsJixfBuT4mnU8rHUbTA9TNLL/sZEla9gX8y/V NokQ== X-Forwarded-Encrypted: i=1; AJvYcCVOPkjxbpIE0ytJKLFkmA9dK13zjbHNNPpdcyKPBcoG15EYV0c+MFxLfBfBMXoGEsj46RhSmWsj9V6Pd2K/oBHv6LXxB3gI3DBEFFk1YS8TKJ/egzmG4UgNqugYBO0oBO8RSrtIlbaymm4qxp8KNwJKXHa8OuE6HAM= X-Gm-Message-State: AOJu0Yz5hWk9sysktNaEq3TSnXpvgzOiJPxiL6vrUbu43kzqBhlM9rA6 pJDqpWC06BMwQw+rUX2WW4siTcDAM/fZIcReRgWuKgUh3wvuwhMS X-Google-Smtp-Source: AGHT+IEOCuvXmALVsWy4q9bGIKo+OXF34mZhyPYSUBl6z9/EoOR8YE2mtz0a0xXVLC4slWArIRenxQ== X-Received: by 2002:aa7:c40c:0:b0:561:1917:eb9e with SMTP id j12-20020aa7c40c000000b005611917eb9emr150247edq.35.1707842816518; Tue, 13 Feb 2024 08:46:56 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUp1qw97K6riBY5hQWZ39Xfd6wBeiupyxbDZhQ9Tw0QXIGrw09l88kbuSjt4WSUlnYTmfmDSo+5AG1vhQGUSPSmPYVmd2kCMAlXPM2tOdLdoUvzGq/VqyEXih48rOYxOn0LW/aV+jnI3nF32md93O7aqg52dc+zOzxx2SnoDllN1R2MX59F1wwDQPTa8jGYsqWhxmp+kul1yUbi9XKt+cIbCH3pD4zRPFfbnTnRxrJ3RJkiUqu+ZL6wSqR60kXr1yGS9LWTCREp9hK/uxr92f9iZ+HetZHfE3FdkncOrnxaFxzGwqBAPr02WfachN0NWEyYzulhEUU5eo6axA6zyHE4rokQMd8a72hiAsD2ZvxLtWNirXV1bmioFIJfvLwNmVsL3kx57P/I1Gn+RGDktMP3UnRVRI0D2/APSMPtsNlfPW482lxJ5TcHsWExx7/Yh+vO2VlQxUQhhek97SlV1qJlsHmyYBe7DiYHxLHtMchQX5yHK5Pit6oWnTem22k/g7bmxsIUdVOP7PTHeOaw Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id v10-20020a056402184a00b0055f0b3ec5d8sm3863582edy.36.2024.02.13.08.46.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 08:46:56 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Matthias Brugger , AngeloGioacchino Del Regno , 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?= Subject: [PATCH 1/2] dt-bindings: pwm: mediatek,mt2712: add compatible for MT7988 Date: Tue, 13 Feb 2024 17:46:32 +0100 Message-Id: <20240213164633.25447-1-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240213_084658_672954_40F9B3F1 X-CRM114-Status: UNSURE ( 9.83 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org From: Rafał Miłecki MT7988 has on-SoC controller that can control up to 8 PWMs. Signed-off-by: Rafał Miłecki Acked-by: Uwe Kleine-König Signed-off-by: Foo Signed-off-by: Foo --- Documentation/devicetree/bindings/pwm/mediatek,mt2712-pwm.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pwm/mediatek,mt2712-pwm.yaml b/Documentation/devicetree/bindings/pwm/mediatek,mt2712-pwm.yaml index 0fbe8a6469eb..a5c308801619 100644 --- a/Documentation/devicetree/bindings/pwm/mediatek,mt2712-pwm.yaml +++ b/Documentation/devicetree/bindings/pwm/mediatek,mt2712-pwm.yaml @@ -24,6 +24,7 @@ properties: - mediatek,mt7629-pwm - mediatek,mt7981-pwm - mediatek,mt7986-pwm + - mediatek,mt7988-pwm - mediatek,mt8183-pwm - mediatek,mt8365-pwm - mediatek,mt8516-pwm From patchwork Tue Feb 13 16:46:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 13555380 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8CF48C48260 for ; Tue, 13 Feb 2024 16:47:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=T+F4oKcixpMDMjtibRGARd2c9eJAlVuiYPpkn0XIejY=; b=OCPgYyLa9TmBp59aE3GzZGVYwM uxZ9C3wME/FsE1V6pt/2vN7mgKYs10374vsxrSuZgEBz8Acq+Joepbst3lQ711ZD93B15tGotjCVW 1kq/VsekyM1O5+Vruby2C6Keszjlw2gJL9cnCNDgejQ4tTZPLghg5nJcWejPws7e9YIMbLKMVM9Q4 nwbtqV+gTBaEzjtW6zzjvXFJ92xJDLtGCCfvWuWrPwE0XBil+d3Rk0AkhOSp4dbEZx9viZeoKkrW3 QLK4bAnDO2KzsnSqaZbxtuYHc94TmnPPwBXq+4zTH5OUmQxgR+pAmH1DLGPQyv6QcljuhnBRrdTyq D38p8G5w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZvw7-0000000A1Tw-07h0; Tue, 13 Feb 2024 16:47:11 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZvvx-0000000A1Mi-3Grq; Tue, 13 Feb 2024 16:47:03 +0000 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-55fe4534e9bso5933882a12.0; Tue, 13 Feb 2024 08:47:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707842820; x=1708447620; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=T+F4oKcixpMDMjtibRGARd2c9eJAlVuiYPpkn0XIejY=; b=ZTO+wsOS6XusBFfS61y6Ue+bj+Jeeif0yIPcDoaIrskt/DtWZhO7+HiPk2eaaInb4V BzpV2ZLJNn2DtyLA5mwCWKmhuR00//h3kqA0mdQ6eXJM3aye0dIcAb3bPrWgPruaPjA/ 773hnbjcPAT+eD1WLo8MPGrxd3YdcFKTt6m+M4LMB64/5r8FzTOY3MXVWUyAnuaV9omh gQzLxi0cD44QYbvXF0xcTDLcJHeOJCpZ2iMjiy6eUXCJahVmMcVuru6hUZ5mXI4hHqhI Xo3P8wVn36w2lk5dj6Rf+lMH8/53yJje8FthCMYfk4aoVs+pAj9cREnjkZkktTAgfVJf wN2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707842820; x=1708447620; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=T+F4oKcixpMDMjtibRGARd2c9eJAlVuiYPpkn0XIejY=; b=DLJQYHEG2je1Mo4izGBC9J/dFTe5B+INQPHilV42bSCerY8Mb+tmhyPHYN6vHIyYfV Np+xIxdaQMH5CaPaSbnJnVt5I5zHxHSZerxvtK7Cg671cjJcpW2RL/qnU10ArvKRvn1x fCtqGVY756x09Dmi7R4IM9+w0l0HUO3swfBiRT+V1wsIv3l02By8yxbqDF42bCQxIbgy ztH3ZMFQmyKheP/oSmj5JgpXy8t+I/tEPkeOIzyLjTVW0LAS2cYMDI/OPhjkgsmcobOY 3nLgCnZjgCUd1o/bkb7mE0kLKzRL37Uu5gNmKC4CxiIrKIHUhtjQ4t1C7KPelkRm5I6m EqSg== X-Forwarded-Encrypted: i=1; AJvYcCWpXXyVSKK2f4nJoXtxn0SuJPUDnLWmlLztlVzSeFWFkxhs5lD9ViBVBf1oLSxN7eCgQZ7oR4a+Lr6jNRmfQwY3M11F89G0kGJ95wWgtD7WvTobsXTGu4sn5bU1bZI9KusQG3B1vTj5V/t2qITIRsZSSqtTnBb/bE4= X-Gm-Message-State: AOJu0YzhLxDqJ2KCbKSDSG9Qfy3bsgBO2OFnLsWL9lra6ZQxVvU/AgEB 9RTvXAQzNbfclFrtZp2+gBSSorVSkmeP3SnmcuBLcg8KgL/0EBCL X-Google-Smtp-Source: AGHT+IEeCwyqkHpoeY0sJgs+ZgFzlmCq6/tbYDuHpnER0Oiuvl6HmAKPTXql31UVCs75XR7jLk+zFw== X-Received: by 2002:aa7:d590:0:b0:55f:d9d1:6de1 with SMTP id r16-20020aa7d590000000b0055fd9d16de1mr169835edq.16.1707842819607; Tue, 13 Feb 2024 08:46:59 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUJ01uweZYgi6dyBpmqVKNY1aQLUGcn9okDSZxLvkc2fCvETs8lVM4QVRx/Z3UztsF9TRQeXuZv/iau8+VVonrwh0Ry0Mn+5XUDbCYIjne4NE/Pej4Qh5E1hwcPPtAMJGpCWAKslgCCvepxqQ06Hx8Gg07VgFvdvx2whcix6fexV8J/r+KnLQYAo6JhhK5/sSxEtCpj8m9DTrcYMfZlrkph73xQOjSKo377khXaBW77sEJwhLlkYHDU0T3M5T+uVtl0sUQKeyQzJt8IhVwCCBIf3qeTzMdGEhd9Lq44n126Mco+rueEbFSuBpU4oAicwyj7dVz/ed2U3kq5x+HRBurmrth8PDMvEhsSQblKFMG4ct8vP2knzwvgwbO5aeMz2AjDS5zJ1x2vezF6F6UHPtE4ic66Btj5guMzAD4gLoVsrO//Z9smQwShv2+xuG7D0mFdQR6dyYJTosntQHSxY4zinuFqQ+HkqSVDgeDL7p7MLKbTm3VGuOUrf9ioWbafHveji9qflnl8zgS5jjke Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id v10-20020a056402184a00b0055f0b3ec5d8sm3863582edy.36.2024.02.13.08.46.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 08:46:59 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Matthias Brugger , AngeloGioacchino Del Regno , 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?= Subject: [PATCH 2/2] arm64: dts: mediatek: mt7988: add PWM controller Date: Tue, 13 Feb 2024 17:46:33 +0100 Message-Id: <20240213164633.25447-2-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240213164633.25447-1-zajec5@gmail.com> References: <20240213164633.25447-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240213_084701_860119_1D1DC42D X-CRM114-Status: GOOD ( 12.41 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org 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"; + 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>;