From patchwork Tue Nov 1 06:11:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tinghan Shen X-Patchwork-Id: 952 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2766105wru; Mon, 31 Oct 2022 23:16:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6tiUkOy5zgMEjPB8GVtNTnNIm0x5tK40lmDniSrE/1mg+3SRJPeZgcLBQj1dTgGNIyTZut X-Received: by 2002:a17:907:b08:b0:78e:2f4c:882c with SMTP id h8-20020a1709070b0800b0078e2f4c882cmr16328657ejl.293.1667283417346; Mon, 31 Oct 2022 23:16:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667283417; cv=none; d=google.com; s=arc-20160816; b=vCULF0aooAIqxX9CCfKXa5EvjSmNTpsmZPnXGNdn6r39+7isQGVSBMeapHQhp4JsY/ m4kPGBMpcsO4zQqivSnDFrZ+09RjtfRG7dLezHJ8AsfkLx1MBFERw68H1qvMfDl+FJy8 oayBPKq9FWKx9j/GEdktrbj3O+RXt6gwmUEljhh2y0UDYdrVXj7LQQSt550LIfW4Y5p6 eIwkj79X9waaUJbzzm8Br784Eks6K/HaFIrhUnR+8SbAsjSItCZdmPv6peUrcQkcx9ew gI5YB0YVycB33OXXgqRB+d3MJF3aPMbSuKsznouX4HckwCv2X8q8npV48ZNsG7xgJEDn sPrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=GxTScHc95rAlhDh/s52djMefw1krEYgEA7nv6cnnb8A=; b=myp4l2YSPXef/KSnrLtoHhtM0rolIrtVVJk40A//PEbVH4G0F6lr/Ntoo7SKVQPgPT tyfADcnOErnSdgccNEaOiRaOSCk37wU7pS4D4K1brUq2s8TEHbLemUnebp70JrKFKcIS YRN3PNyS+8fBL94Bm4lkcMhYBHyDWgZd4Dpf0BIkJ1BEQ59haScLXbTtE/eIt3O4ebJS 51DPDIxG7YF1CIx4zSxGZ9KaMcDZm6d+LIWRT+S7dwvAIbFq5rqxQzAF5AHZQJ2WwDoJ r7ciR4nAR7qigBPx3RSmEbsqg1fcnGuHTbVOBJAz9nSDiIuGCt4g7Lqd+Bf0loBijV4c MNsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Z00mFAFZ; 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=mediatek.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g18-20020a1709065d1200b0078e27ef9501si11824315ejt.750.2022.10.31.23.16.33; Mon, 31 Oct 2022 23:16:57 -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=@mediatek.com header.s=dk header.b=Z00mFAFZ; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229917AbiKAGLs (ORCPT + 99 others); Tue, 1 Nov 2022 02:11:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229872AbiKAGLq (ORCPT ); Tue, 1 Nov 2022 02:11:46 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1763FD12; Mon, 31 Oct 2022 23:11:43 -0700 (PDT) X-UUID: de6589935b0e41e78e0fb48dd639a5b9-20221101 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=GxTScHc95rAlhDh/s52djMefw1krEYgEA7nv6cnnb8A=; b=Z00mFAFZlNTpt4nb5ZCIDDjaCCJjJA8W5pv2/hCkaCNAaWgbeqREZrj6FZEt7TfexhnWPZ4Km7fLco83l5i2zbmrd2bCXi5hDnmRb+sCgyBKdoIsy2rPX7l9QGdBZu/t3OHBsFuXpysiVVcYx9/m7SxPaXJqNgpweq9EKK0xGLM=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.12,REQID:c16064ff-58d2-491b-861b-a9c5d5323c00,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:62cd327,CLOUDID:896f3e81-3116-4fbc-b86b-83475c3df513,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: de6589935b0e41e78e0fb48dd639a5b9-20221101 Received: from mtkmbs11n2.mediatek.inc [(172.21.101.187)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 133397477; Tue, 01 Nov 2022 14:11:40 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Tue, 1 Nov 2022 14:11:39 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Tue, 1 Nov 2022 14:11:39 +0800 From: Tinghan Shen To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Pierre-Louis Bossart , Liam Girdwood , Peter Ujfalusi , Bard Liao , Ranjani Sridharan , Kai Vehmanen , Daniel Baluta , Mark Brown , Jaroslav Kysela , Takashi Iwai , Tinghan Shen , Yaochun Hung CC: , , , , , , Subject: [PATCH v1 0/2] Revise mt8186 ADSP clock driver Date: Tue, 1 Nov 2022 14:11:35 +0800 Message-ID: <20221101061137.25731-1-tinghan.shen@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY autolearn=ham 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?1748273376655456644?= X-GMAIL-MSGID: =?utf-8?q?1748273376655456644?= Initialize the dependent clock sources for mt8186 ADSP and fix the enable/disable order of ADSP clocks. --- Tinghan Shen (2): dt-bindings: dsp: mediatek: Add default clock sources for mt8186 dsp ASoC: SOF: mediatek: Revise mt8186 ADSP clock driver .../bindings/dsp/mediatek,mt8186-dsp.yaml | 12 +++++-- sound/soc/sof/mediatek/mt8186/mt8186-clk.c | 35 +++++++++++++++---- sound/soc/sof/mediatek/mt8186/mt8186-clk.h | 2 ++ 3 files changed, 39 insertions(+), 10 deletions(-)