From patchwork Tue May 31 11:45:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 12865433 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 78B11C433EF for ; Tue, 31 May 2022 11:47:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id: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=4TY2c0YNUJiRvVvPmQQ+wSfqHDG9KnbxatPnxsjQTFo=; b=sg5zc4FtuUvcZv bSQd999IgyTk60450U/l3EpW+syGkVNgb2hK1RLYfvq4V6PPK7aSDbkzqOwudoGHyvjfZvs+eUNcw 8dav8ppfkXZIVNafkxPzufVElx+FiyRpTfWOwpmHr+EgaaeMvaMtvsCqhlweoFprUin1EUk1aLnfz zfXAiG/plc7fpVadr5uAHw32+VGjcVv5f/IA2xwUUyKP772Ovh4Hndc3dIJoIENsdjhc5f5jZ/D/i mBS94/eOruXDqZA0XEJAVrYbHZVQYHxZtuQawPvxZmOkFByUNVJlSx7ocEWDshSMgpah9bmmWKu4p PWRKJeJYGPtA7AVbzyVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nw0KA-00AYsV-8L; Tue, 31 May 2022 11:46:10 +0000 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nw0Jt-00AYkH-SS for linux-arm-kernel@lists.infradead.org; Tue, 31 May 2022 11:45:55 +0000 Received: by mail-wm1-x32e.google.com with SMTP id c5-20020a1c3505000000b0038e37907b5bso1102963wma.0 for ; Tue, 31 May 2022 04:45:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vQ/9SuRW2gSNxyY7HSFEc0S6z28TQqq+nMHdkwJ6Hjs=; b=eShVvcrfk3gqYk2CaIpk67IugOw/7xJh08X9rt5dq/FTYWlqCHjqocwOSulr6rc/SZ 0pN/1bbnmr9jDniFi1PhCd/EFfPtEwx/6M1d3KzJIGpFwUjBwyu7G9OHbP/+ra01qnyk L5N0C2IxkBFrqrEIJDtb4c1QFogW3rvLHvHTSs/lRGz+gVbJqtcFV2/mRN7RBPvonQeI Flmg752rG11r8oF352pxCHrDetidSJn3QzDJ+VrHT7tSuf3iQ5TcZA2pKlMBeRLstHNs pbZr/LYgOTivalc9VeAfiz9ddSB/Ulw8NfnZjKQRnc4djzSsiRpcuA/GAgwKXCuzlXYA 9bDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vQ/9SuRW2gSNxyY7HSFEc0S6z28TQqq+nMHdkwJ6Hjs=; b=vqoW85tpNbnmjuORuKQEIPcdp01r006wPkfVnSyga01YMM6vgqT9EAZFl353K2XUGW cDKhPSQpkbLK4Oc6GOrStTVmx8OdQ2Fy9QY5iNRGOugjfvojlFAkqN5BOzbMwVFBSXCm 7KqQDX9x8xA15AlzhWW97WraewPlNfLJeQgOzb+2MWnwqH+7jFL/ii644jX8y9izfy6a 2R+bIulSXCSV5vDfai+ksm3eE22Yz7DpbRiB4dMWXOYnLZjUrLkcEn4l0mPBpm7DOsS5 0sjFVB1pGhkjRmkfCYzf7uKKVoPaIvTsYw4Hmcir1TXT3d49hxxRtz+sG6jhI0YIJnmY 7Veg== X-Gm-Message-State: AOAM531mT5qQprVtpGTyVG+v2wsPLzQqItN5OJQcs8zpa/2dBGAkwXbT 8aAuarCuzS8RFJ3JxDRPeaQODw== X-Google-Smtp-Source: ABdhPJwJjhIwNfHDxLSY/eNUnC7ZtsMB76qjz5vk7LG+i1TjoIDN2lSFL9muj7ndGdSsaK4RYxe/Fw== X-Received: by 2002:a05:600c:c5:b0:39c:1396:b489 with SMTP id u5-20020a05600c00c500b0039c1396b489mr7093277wmm.146.1653997551291; Tue, 31 May 2022 04:45:51 -0700 (PDT) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id i12-20020a05600c354c00b0039765a7add4sm2064154wmq.29.2022.05.31.04.45.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 May 2022 04:45:50 -0700 (PDT) From: Fabien Parent To: Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6n?= =?utf-8?q?ig?= , Lee Jones , Rob Herring , Krzysztof Kozlowski , Matthias Brugger Cc: Fabien Parent , 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 Subject: [PATCH 1/2] dt-bindings: pwm: mediatek: add pwm binding for MT8195 Date: Tue, 31 May 2022 13:45:43 +0200 Message-Id: <20220531114544.144785-1-fparent@baylibre.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220531_044554_024157_185EDDE8 X-CRM114-Status: GOOD ( 11.62 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org MT8195's PWM IP is compatible with the MT8183 PWM IP. Signed-off-by: Fabien Parent Acked-by: Rob Herring Reviewed-by: AngeloGioacchino Del Regno Acked-by: Uwe Kleine-König --- Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt index 25ed214473d7..7b53355470d6 100644 --- a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt +++ b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt @@ -8,6 +8,7 @@ Required properties: - "mediatek,mt7628-pwm": found on mt7628 SoC. - "mediatek,mt7629-pwm": found on mt7629 SoC. - "mediatek,mt8183-pwm": found on mt8183 SoC. + - "mediatek,mt8195-pwm", "mediatek,mt8183-pwm": found on mt8195 SoC. - "mediatek,mt8516-pwm": found on mt8516 SoC. - reg: physical base address and length of the controller's registers. - #pwm-cells: must be 2. See pwm.yaml in this directory for a description of From patchwork Tue May 31 11:45:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 12865441 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 CC697C433EF for ; Tue, 31 May 2022 11:47:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id: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=OM6JVI59fRlbw0v/YMPb4QdhSpq7OCjDi2XL4KQ4juM=; b=ixuV5uhZ+hPaS0 BO+tgJp90NA99rcwGrsm1rJjhruGlwRJVyHz9hgdPQKeCyBxVrJELP9ogayPRmjNByT8FbMzkVT3E YHD9AuB5GBIOEtHQgd2mfVc9EHoD8xK/pwlLUSUht9aM3Xous54pVD5Eb5VxUThYrdxNYheUiuwAL ttIN4Se2+mt/yVUXL5WybuEyKekFKoWq4pzFmUdeloATR4uSv/CkOiwyASBR6zqHjVVE3878yz+ZX cRNB/9k2vf0cdYz1qmR2NnC4C+YfraMVbyUjnJci7YLp0Op8PrGYXcl40MePv1HuTibJS9vVSu/OM 0qNZ7vcjxtKk1NJhImow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nw0KT-00AZ16-GA; Tue, 31 May 2022 11:46:30 +0000 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nw0Jv-00AYkw-2U for linux-arm-kernel@lists.infradead.org; Tue, 31 May 2022 11:45:57 +0000 Received: by mail-wr1-x42d.google.com with SMTP id k19so10128280wrd.8 for ; Tue, 31 May 2022 04:45:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UYSEyUlsKgFpMImQK8ePQlB37MdL0HrdJFsY0FXbKmA=; b=JT5l3xMYkAt+4TZYJ5fHveeJWZa96eRE0vHFuBF3Zjv+2XhDxCbnddvfhAawHbou3O nmLtys+/mYZKVxGVA4M2oacHrWqtFQr/aJmYYDT9i3GWqO+GeGTur7j+wBhSy1y2zSUS W+AF+ZWnuP+wrHaWmWonlM5MuziB7iv4m/+0F8BGxiEuHtEO7FjOE/W9p5WHzLpRTSKv NGX52+vK3k+I+EpnQmtsfhqb6lm8e7Vojo0JmMVQBzr4aFHGMSofBq1qEpvwXYMiiGmO sJoSABKT6sCy55cZIlY/Ei3P06cwCOzA4P+XW0yKXRPtWNRSxNwYXiuXLD6qZnZRkmo1 Q3Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UYSEyUlsKgFpMImQK8ePQlB37MdL0HrdJFsY0FXbKmA=; b=Uy4aleCoi7rc4AiLceIXa6JQZnvX6IqPbetthIfR966lWwdfVVfuzXyeBdilJUEAC2 AcZT5xDG+TvSupc4LvqNOJ3f5z/0qSsJo/0uwjE35SNW+OQsihrgm8KquQHs/ezsbJmX 0ktiQ9Lr57JbNP2QJzrAHXn8VRCXGVE01C1ekAUAevsImksGDOSnWiUljoLmFu+SQnDU ru2baSNsAn+mESZPBpAFpA1eQ78mPch9xIe77ozZGZJ5at4fDSrOHQYQLIYC2wNCy0Gk cX1dHBgG98VAqUJcq89pAnpjtk3QUIknGZGANnXPbUWwKjydbkCW8pAi5HqagxXXgXwT fEqA== X-Gm-Message-State: AOAM533JmcUXVM3O/xtWT3gc+0XvS46ZuT/LvlvOi4DY/aPRajRG/Jui hOI3GM10Sftcx165ceQcwWStVA== X-Google-Smtp-Source: ABdhPJyePNMa/IHOGRQ08K1lGsWNcl+BGJTvraImexb5JIbQoAQ4i/xDhuHPCpbkE5fkVdYO3IGe+A== X-Received: by 2002:a5d:4450:0:b0:210:e8b:7896 with SMTP id x16-20020a5d4450000000b002100e8b7896mr20712199wrr.490.1653997552679; Tue, 31 May 2022 04:45:52 -0700 (PDT) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id i12-20020a05600c354c00b0039765a7add4sm2064154wmq.29.2022.05.31.04.45.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 May 2022 04:45:52 -0700 (PDT) From: Fabien Parent To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger Cc: Fabien Parent , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: mediatek: mt8195: add pwm node Date: Tue, 31 May 2022 13:45:44 +0200 Message-Id: <20220531114544.144785-2-fparent@baylibre.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220531114544.144785-1-fparent@baylibre.com> References: <20220531114544.144785-1-fparent@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220531_044555_182768_2F8E9453 X-CRM114-Status: GOOD ( 10.58 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org MT8195's PWM IP has 4 PWM blocks. Signed-off-by: Fabien Parent Reviewed-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi index d076a376bdcc..366543f27a99 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi @@ -367,6 +367,21 @@ pwrap: pwrap@10024000 { assigned-clock-parents = <&topckgen CLK_TOP_ULPOSC1_D10>; }; + pwm0: pwm@10048000 { + compatible = "mediatek,mt8195-pwm", + "mediatek,mt8183-pwm"; + reg = <0 0x10048000 0 0x1000>; + #pwm-cells = <2>; + clocks = <&infracfg_ao CLK_INFRA_AO_PWM_H>, + <&infracfg_ao CLK_INFRA_AO_PWM>, + <&infracfg_ao CLK_INFRA_AO_PWM1>, + <&infracfg_ao CLK_INFRA_AO_PWM2>, + <&infracfg_ao CLK_INFRA_AO_PWM3>, + <&infracfg_ao CLK_INFRA_AO_PWM4>; + clock-names = "top", "main", "pwm1", "pwm2", "pwm3", + "pwm4"; + }; + scp_adsp: clock-controller@10720000 { compatible = "mediatek,mt8195-scp_adsp"; reg = <0 0x10720000 0 0x1000>;