From patchwork Fri Mar 24 17:54:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 74687 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp827237vqo; Fri, 24 Mar 2023 11:20:34 -0700 (PDT) X-Google-Smtp-Source: AKy350bbbX4tiDi042ZwatVjYKB1NjNmZkr+A/CTjlUwvSiVxfc47blZmvpCPrJZzILZOoIFcpAi X-Received: by 2002:aa7:dc10:0:b0:4bd:94b9:b8a8 with SMTP id b16-20020aa7dc10000000b004bd94b9b8a8mr3807014edu.26.1679682034602; Fri, 24 Mar 2023 11:20:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679682034; cv=none; d=google.com; s=arc-20160816; b=lPHu+zTCC8uOB1WxIWbgsEnfZganZXz6erfoyxqgBSg7q41iV7NxT5a6cYx6GucXtL 3QXvk4O4g0yCfNTZrgEFouTbnbItXhq6THP+67R8zuduqH/Ecj1xPtyVGomZwX9kVoIs YcY2Ben2iGjz7yk2hnmt7ApWFIrbrihPR+ldQ2UmKa+yQh0wgCDuJS4FP6HhGB36lfq/ HAUe8hs0l5Df83B5Mj+Z3aUDCIBycObUXYKTpEUDvEc1mcIDGLyxS+73OJz3D34YUSUp m+h3IYC7lRMhhLYFl2Jh07pxyyUNpv7UZl1ayJfVwPP8jTlAYBVcj+xD6Rv/F6yRUaRl cbWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gCQ+MygXunT7oGDuwwdnzm3V02skdS96iMOBpF606CE=; b=PzjUp4TpQ0OreD7MPEaqcnWX2B3OLoqmPHJiMNcgGOvZUN8ACD02aY9WPVBorORuSm fOh+GEJdhKfQE5OyMl7BBpxkC55Wvq9auE0I1SnKGm/CuHI0VwEpMCJ5yPXI0kLByqbn AAL8uQsG4SSihVT4ZYXXlLQ7KDpgvWWjRqQnPQqXOTE/uzEzdN2w+Sa5QWLRg0ZfY5JR vuAd3sWMY7vYHrT9hrEfZP3TBeTUMw1EUkxjCpNooSEAoXkl480LhNO+O2HDvWS0Ig/q 5ekv9SkqnuXwIVlonRJKYZD1j6lC/DkOY8maTFTdlneQJR7KunH7DFfSAVjun+PBtg9d svwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=BrY9pOb1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n19-20020a170906841300b0093b83e8dc21si1714782ejx.26.2023.03.24.11.20.10; Fri, 24 Mar 2023 11:20:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=BrY9pOb1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232022AbjCXR5R (ORCPT + 99 others); Fri, 24 Mar 2023 13:57:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232225AbjCXR47 (ORCPT ); Fri, 24 Mar 2023 13:56:59 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C469CDD3; Fri, 24 Mar 2023 10:56:41 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 045346603140; Fri, 24 Mar 2023 17:55:08 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1679680509; bh=B7Q7CvpVnU7TsRYDdxFDdSefgx35z35TKL9n9ACkUg0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BrY9pOb1/ktYzytyZcHIro3quZaCURbt223oGeOAgW1jDP1jHGAfYjKXHpHhSyOwI 0P2CGT8ULjAAoIoa1NAwAHhdpeWndb80KpEIXw12/Vxhox8shOGFIjLNjmcmEPD0EO /tcJbBxRw7m12v3RXaJJKm5MVCfn0l+pw9aL/b7HitIh5ll6wylhG34SjJ52vk1DUQ R4Z/lJFXqAE6Ma2I1jUPC1+a8fSwSbMVE6sxAgxgSbFV8fBR0fBU97Qs06XQmEM3r9 Gpvz/AnjrOcT2dLSPcmP08KBs4N7OWbK5/rH5BZbSmr0ZSSIs//DfdOjP6dQUDG7t+ k+C0w46WBKswQ== From: AngeloGioacchino Del Regno To: matthias.bgg@gmail.com Cc: qii.wang@mediatek.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, jassisinghbrar@gmail.com, houlong.wei@mediatek.com, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno Subject: [PATCH v1 10/18] arm64: dts: mediatek: mt6795: Add MMSYS node for multimedia clocks Date: Fri, 24 Mar 2023 18:54:48 +0100 Message-Id: <20230324175456.219954-11-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230324175456.219954-1-angelogioacchino.delregno@collabora.com> References: <20230324175456.219954-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761274269031494608?= X-GMAIL-MSGID: =?utf-8?q?1761274269031494608?= Add the MultiMedia System node, providing clocks for the multimedia hardware blocks and their IOMMU/SMIs. Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt6795.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt6795.dtsi b/arch/arm64/boot/dts/mediatek/mt6795.dtsi index 0f903e8fe70f..b721971d4e5e 100644 --- a/arch/arm64/boot/dts/mediatek/mt6795.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt6795.dtsi @@ -634,5 +634,18 @@ mmc3: mmc@11260000 { clock-names = "source", "hclk"; status = "disabled"; }; + + mmsys: syscon@14000000 { + compatible = "mediatek,mt6795-mmsys", "syscon"; + reg = <0 0x14000000 0 0x1000>; + power-domains = <&spm MT6795_POWER_DOMAIN_MM>; + assigned-clocks = <&topckgen CLK_TOP_MM_SEL>; + assigned-clock-rates = <400000000>; + #clock-cells = <1>; + #reset-cells = <1>; + mboxes = <&gce 0 CMDQ_THR_PRIO_HIGHEST>, + <&gce 1 CMDQ_THR_PRIO_HIGHEST>; + mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0 0x1000>; + }; }; };