From patchwork Mon Aug 22 15:26:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Schneider-Pargmann X-Patchwork-Id: 12950810 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 E231CC32774 for ; Mon, 22 Aug 2022 15:29:15 +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=AcOmuywebctTQKaYbdHfe8esX4CpTE1A1TP71cNVV8U=; b=ga9NMeCqisVzp2 VF5at7KkHEuRkkoDxs0/XL8gJPRfHP5KTQYxQuERPwpZ5DZw3X6Wg1WlpB5xTAMQaywbUL8lzGbI3 1Zrr61SfSHNIixkPBEj0gFx1DsHLO/oYvrJegzIOzOR3NH1QNdP7oMcE6xWcmEYAE55nGlpY9qE0R yet06LYJYfwSsVTFEaxPvZnSyyvi0XefohSzxog0Fxzw7FQ/Xe7RPszimOH3piom3pR8+KOg+VHvI xZ5GtE4+37M5L9B5kcNFY4xegTDYgwxeHzGhvU4yHEofH4YuskXQYs215gY1wq2fJHHnItUH+ZXrL nD3HlM3LoEwRmfgb99LA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQ9LS-00CBUq-Fo; Mon, 22 Aug 2022 15:28:06 +0000 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQ9Ku-00CB7L-Jh for linux-arm-kernel@lists.infradead.org; Mon, 22 Aug 2022 15:27:36 +0000 Received: by mail-wr1-x42f.google.com with SMTP id d16so8381145wrr.3 for ; Mon, 22 Aug 2022 08:27:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=+v4yKbwJErYTuQ2Ufma5DTI3KicddoMcYUAjV+10QH4=; b=jOVa5k+VR0xECB0FvAPknlvOs70kbJwGA0M6vShkkwU/M+ofySHJMBFDImFvCfRy43 +porc14Ri8mjhpMzvx7NhnAN900R01op2vihQ+M0GZGwamuFkLPbvmcL4f9AoWBVy3+G CvVfDCVWKrZTo5LXpnv2tC7Ov19YCStZu2DVm2gw+nTI3ChqsiAoho+n80ZJQN1Kul43 QXTkjqiQ3O7Czm8qdTQfkKBLy8TI71V5QoDWAe7k9EZrttHfOY6eoQwTY1TipUQ/Wexi p6+3SMepTaVRgUqL7NNfzAiF4LcN7QSGHsEqX/4QS8LOE/VGxdo/x6mdLeDb+KOZnmva dQjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=+v4yKbwJErYTuQ2Ufma5DTI3KicddoMcYUAjV+10QH4=; b=dAPmMMQZwfKaCTykYMg5Z69K7pRgawdqnNNeuRsmLABbhjdCI9DA9IaMhFwFwEMTRO x0H+65CMQsKjPswW81LjAjtBvzIURsucr+5VGXbUyNJlQj3eIlwXwKPkOu3FkKtlFPLa lplx0rjWwtQAFI8LLwsmNlWcqzhrsqdO+Nl4BOZV4zrYmW8p6xUqiSS/bgrTP7fM3tzd sGrxDl0h4VI+81DKr1hRwzl+3npB/HTVORjHjV2Uor0Cv33QvjymIBMRAfx4PbhxAzKo UGYRtZuxqnx4wlrBcGu6bYEtGf4b61ukU+7/fNTkUSEZpHCcu1J8XIVWiDWlv9HRFpn3 5DfA== X-Gm-Message-State: ACgBeo03IkCFCjLayRRUv1JVeWg1QtsehNq8Sk9pYb/E+rol1yliMcZU sd3IHUeDTa911JZgpvref2YYLA== X-Google-Smtp-Source: AA6agR7oEwBwW1qpYTRjGd7zeB5BXy6D1qbA9ArFwSTnG12IGsnupD9b4ZC3CKX2TbWM1fY8P9y06g== X-Received: by 2002:a05:6000:1a8b:b0:222:cac3:769a with SMTP id f11-20020a0560001a8b00b00222cac3769amr10524573wry.120.1661182048866; Mon, 22 Aug 2022 08:27:28 -0700 (PDT) Received: from blmsp.fritz.box ([2001:4090:a245:8020:2658:1f7c:362:3e99]) by smtp.gmail.com with ESMTPSA id u18-20020adfdb92000000b0021eaf4138aesm14492011wri.108.2022.08.22.08.27.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Aug 2022 08:27:28 -0700 (PDT) From: Markus Schneider-Pargmann To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Fabien Parent , AngeloGioacchino Del Regno Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Markus Schneider-Pargmann Subject: [PATCH v4 0/4] clk: mediatek: Add mt8365 support Date: Mon, 22 Aug 2022 17:26:48 +0200 Message-Id: <20220822152652.3499972-1-msp@baylibre.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220822_082732_712401_AA4B1756 X-CRM114-Status: GOOD ( 12.00 ) 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 Hi, This series adds a clock driver for the mt8365 SoC. Thanks for the feedback so far. Best, Markus Based on https://lore.kernel.org/linux-mediatek/20220813083249.45427-1-y.oudjana@protonmail.com/ Changes in v4: - Rebased onto v6.0-rc1 - Fixed some minor things documented in the patches. Earlier versions: v2 - https://lore.kernel.org/linux-mediatek/20220530214434.1012889-1-fparent@baylibre.com/ v3 - https://lore.kernel.org/linux-mediatek/20220811084433.2598575-1-msp@baylibre.com/ Fabien Parent (2): dt-bindings: clock: mediatek: add bindings for MT8365 SoC clk: mediatek: add driver for MT8365 SoC Markus Schneider-Pargmann (2): clk: mediatek: Provide mtk_devm_alloc_clk_data clk: mediatek: Export required common code symbols .../bindings/clock/mediatek,mt8365-clock.yaml | 42 + .../clock/mediatek,mt8365-sys-clock.yaml | 47 + drivers/clk/mediatek/Kconfig | 50 + drivers/clk/mediatek/Makefile | 7 + drivers/clk/mediatek/clk-mt8365-apu.c | 55 + drivers/clk/mediatek/clk-mt8365-cam.c | 57 + drivers/clk/mediatek/clk-mt8365-mfg.c | 63 + drivers/clk/mediatek/clk-mt8365-mm.c | 112 ++ drivers/clk/mediatek/clk-mt8365-vdec.c | 63 + drivers/clk/mediatek/clk-mt8365-venc.c | 52 + drivers/clk/mediatek/clk-mt8365.c | 1155 +++++++++++++++++ drivers/clk/mediatek/clk-mtk.c | 37 +- drivers/clk/mediatek/clk-mtk.h | 2 + .../dt-bindings/clock/mediatek,mt8365-clk.h | 373 ++++++ 14 files changed, 2110 insertions(+), 5 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/mediatek,mt8365-clock.yaml create mode 100644 Documentation/devicetree/bindings/clock/mediatek,mt8365-sys-clock.yaml create mode 100644 drivers/clk/mediatek/clk-mt8365-apu.c create mode 100644 drivers/clk/mediatek/clk-mt8365-cam.c create mode 100644 drivers/clk/mediatek/clk-mt8365-mfg.c create mode 100644 drivers/clk/mediatek/clk-mt8365-mm.c create mode 100644 drivers/clk/mediatek/clk-mt8365-vdec.c create mode 100644 drivers/clk/mediatek/clk-mt8365-venc.c create mode 100644 drivers/clk/mediatek/clk-mt8365.c create mode 100644 include/dt-bindings/clock/mediatek,mt8365-clk.h