From patchwork Fri Apr 14 16:59:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Brugger X-Patchwork-Id: 13211844 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 BF73DC77B6E for ; Fri, 14 Apr 2023 17:00:38 +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-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Subject:From:Cc:To:MIME-Version:Date:Message-ID: 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=x9evnHUwJ6TH0dIoxu0qx0eDk3vik8r/xmcICnyntPc=; b=TYaBwQpEt2t7Pu2Rp/fyFgbmEs NyZt7jX2h4/aID3z9fh/0BmOuHrNmmmq8CL+TUQFLUCBau2f5R3dczLXF54vv5UfmFqiUWY5ZzoCH LdirxbChCsNHW0l2ZoXmNchKQCK9dWhZm47vhmeeUoEqxuQ7pIGcpfU8YcEak7PlcBNrojxd0xbyl iT0O0+TjMPMkfvzXOalhEqETqf3uLEsL0heZE6E06W/A2hLOWDuTPpVRdHPp06nGvduhDjNOdeMT7 Y8Wfb9XESKkPEQemyrQNX/w/81A+IemfKjwX82MsYp2xhqPyJVaIwmw9Hh/BO0U0yl1TNMBf1/pVT zoNF6Q6w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pnMlx-00AB3u-02; Fri, 14 Apr 2023 16:59:41 +0000 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pnMlt-00AB2t-35; Fri, 14 Apr 2023 16:59:39 +0000 Received: by mail-wr1-x42c.google.com with SMTP id j15so4471506wrb.11; Fri, 14 Apr 2023 09:59:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681491576; x=1684083576; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=CBZjxhldsg3e/rUv5W9EGoVPxYq7pJz0Cui5thpzTkk=; b=RXJ9RVm20sgSeCC/ZIfwFLiK+socgeRbvuHRZ6ZGFJFQvgdGL9rOt53jWp+0zg66kF IetC0pDMdQqFUjq1vUQ0yF95SiXHCXr+V97sPnLjLPlEhg7Dver6N6LdIettIpPTXDVd nTUHZPgBbJELXqXM5Ez5xiNgGPYcajMFPSMc3fFJxUppnHw1rDNfaSXkauNX0KyFck8L TVbG0ycqR0H9wlMQJUsYoJipss+zKdRGob8ISTdDsxzOluarp+deFRch4IqV9Z0xf2I1 +1v0+pYZs9o0Bp1fUj/wcUHrtx5EnqqyM8/7IkTUJAlsunlttfcMKqSm9FmGlVkn+JDd ej0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681491576; x=1684083576; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=CBZjxhldsg3e/rUv5W9EGoVPxYq7pJz0Cui5thpzTkk=; b=SqJ+aAPiihKrKkJPHghcRuRJF6J/0AcXdWhFd7LtU3r7fTmNqoynUmOxo3tNwJp1M/ 7y+Gtx394EjywH/bk4rKLaJaNEUriMj5mbDo/an2VeLAWtTzzNLK7frNmco8MDpQ6XmR ySRqKrCB6xFQhIq5vy/FxyWkOusUd8GrFJhYoYqPdvlNaSt94z2qLHeYx3XzsDhA/0hp XsHnHQbAzaMokXkk5UTpkYOng+imGk5jWHdRkFS1W2Wk1WC20iYgWtEDarDETdjul+4C vPAJkOMEbcNOtUlCajw3t+fpZJk7F6DAi4bsOotaEmEhSBUPKHRlhIxHzI45T2mf2dfv CF6w== X-Gm-Message-State: AAQBX9dXchVf6VktwDtN4SFn1DDx4RA1w5ta3XuDOPS0BKt7XAOxPaTN nRtTs/cZghtsa+VGdAirN4zXKYexPE8Ueg== X-Google-Smtp-Source: AKy350YiVv4lb19iJ4ALg0PejO8rvzEV+6Ntrgb6KT6qLozfiV5jxmWD+j30wWG+8GJ3OFrBWOGN5w== X-Received: by 2002:a5d:4091:0:b0:2ef:af48:7b0e with SMTP id o17-20020a5d4091000000b002efaf487b0emr4413246wrp.69.1681491575693; Fri, 14 Apr 2023 09:59:35 -0700 (PDT) Received: from [192.168.2.177] ([207.188.167.132]) by smtp.gmail.com with ESMTPSA id g2-20020adffc82000000b002cff0e213ddsm3955666wrr.14.2023.04.14.09.59.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 Apr 2023 09:59:34 -0700 (PDT) Message-ID: Date: Fri, 14 Apr 2023 18:59:32 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Content-Language: en-US To: arm-soc , SoC Team Cc: "moderated list:ARM/Mediatek SoC support" , "linux-arm-kernel@lists.infradead.org" , Alexandre Mergnat , AngeloGioacchino Del Regno , Roger Lu , "Roy-CW.Yeh" , ye xingchen From: Matthias Brugger Subject: [GIT PULL] MediaTek SoC driver updates for 6.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230414_095937_995028_12E414CA X-CRM114-Status: GOOD ( 14.76 ) 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 Arnd and Olof, Please take into account the SoC driver patches for v6.4 In the last round Arnd had some comments, unfortunately not all of the are addressed, but I track them and hopefully all of them will be done in the next merge window. Most important changes here is the support of MT6795 for the MMSYS driver. As well as mutex support for mt8365 display and mt8195 VPP. Regards, Matthias --- The following changes since commit fe15c26ee26efa11741a7b632e9f23b01aca4cc6: Linux 6.3-rc1 (2023-03-05 14:52:03 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git/ tags/v6.3-next-soc for you to fetch changes up to 5ce5e0d08e340ab13169a5f33ed5f98000891a61: soc: mediatek: Kconfig: Add MTK_CMDQ dependency to MTK_MMSYS (2023-04-11 17:15:10 +0200) ---------------------------------------------------------------- mtk-svs: smaller coding style changes mtk-mutex: - add support for mt8365 display and mt8195 VPP mutex - add support for more then 32 mods - use module_platform_driver instead of open coding mtk-mmsys: - add support for mt8195 RSZ switching - add remove function - use module_platform_driver instead of open coding - split out mt8173 routing table from the legacy table - bump up resets in mt8173 to 64 - add support for mt6795 (Helio X10) - clean-up IS_REACHABLE code for cmdq ---------------------------------------------------------------- Alexandre Mergnat (2): dt-bindings: soc: mediatek: specify which compatible requires clocks property dt-bindings: soc: mediatek: add display mutex for MT8365 SoC AngeloGioacchino Del Regno (13): soc: mediatek: mtk-mmsys: Add .remove() callback soc: mediatek: mtk-mmsys: Use module_platform_driver() macro soc: mediatek: mtk-mmsys: Compress of_device_id array entries soc: mediatek: mtk-mmsys: Add MODULE_DEVICE_TABLE() to allow auto-load soc: mediatek: mtk-mutex: Compress of_device_id array entries soc: mediatek: mtk-mutex: Replace max handles number with definition soc: mediatek: mtk-mutex: Use module_platform_driver() macro soc: mediatek: cmdq: Add inline functions for !CONFIG_MTK_CMDQ soc: mediatek: Cleanup ifdefs for IS_REACHABLE(CONFIG_MTK_CMDQ) soc: mediatek: mtk-mmsys: Split out MT8173 mmsys DDP routing table soc: mediatek: mtk-mmsys: Change MT8173 num_resets to 64 soc: mediatek: mtk-mmsys: Add support for MT6795 Helio X10 soc: mediatek: Kconfig: Add MTK_CMDQ dependency to MTK_MMSYS Matthias Brugger (1): soc: mediatek: mtk-svs: delete node name check Roger Lu (4): soc: mediatek: mtk-svs: use svs get efuse common function soc: mediatek: mtk-svs: use common function to disable restore voltages soc: mediatek: mtk-svs: fix passing zero to 'PTR_ERR' soc: mediatek: mtk-svs: add thermal voltage compensation if needed Roy-CW.Yeh (4): dt-bindings: soc: mediatek: Add support for MT8195 VPPSYS soc: mediatek: mmsys: add config api for RSZ switching and DCM soc: mediatek: mutex: Add mtk_mutex_set_mod support to set MOD1 soc: mediatek: mutex: support MT8195 VPPSYS Ye Xingchen (1): soc: mediatek: mutex: Use dev_err_probe() .../bindings/soc/mediatek/mediatek,mutex.yaml | 22 ++- drivers/soc/mediatek/Kconfig | 1 + drivers/soc/mediatek/mt8173-mmsys.h | 95 +++++++++ drivers/soc/mediatek/mt8195-mmsys.h | 13 ++ drivers/soc/mediatek/mtk-mmsys.c | 195 +++++++++--------- drivers/soc/mediatek/mtk-mmsys.h | 2 +- drivers/soc/mediatek/mtk-mutex.c | 218 ++++++++++++++------- drivers/soc/mediatek/mtk-svs.c | 149 ++++++-------- include/linux/soc/mediatek/mtk-cmdq.h | 114 +++++++++++ include/linux/soc/mediatek/mtk-mmsys.h | 6 + include/linux/soc/mediatek/mtk-mutex.h | 35 ++++ 11 files changed, 596 insertions(+), 254 deletions(-) create mode 100644 drivers/soc/mediatek/mt8173-mmsys.h