Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp28425pxu; Thu, 22 Oct 2020 14:24:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmNOG3wNGgqDvxQ8oCL4Wam9t1F91/uF3CNkZ9KDjw0RGa773/uyn+QXMhkgskRbsXEX5v X-Received: by 2002:a17:906:c2d2:: with SMTP id ch18mr4236310ejb.446.1603401899395; Thu, 22 Oct 2020 14:24:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603401899; cv=none; d=google.com; s=arc-20160816; b=zDoUGAGxY1PBm5iRWedBl6XzGnCFp/WLAMZFcPk9gOBlRb8sKbXopUQgGmADy0C+tW 1/BmAZAsZpN17m4y91MNmZJoJiwgHkKZOLrt3b2Xg9qj/f4U9FaUrJQt6QXjRKKCO6NA ImLDrLCXoZin5+WewqlebJRKfvl/jeUiQec2AFy+8lE/Z7+xXxXFPu5PqA4QfEBmxlFs 3SdwozWGkWi1MPbDOL3X5ZmNTt+K+5CFFzxt412vjH2GUS3gba1N6/60VVE/6ldOtRTV VpVHARs/WayyVdPgko6ai5J2JoE4ruBonqq2rfX18kZf/j+w7kAQ31vy/QbAnEZtsDTM TMxA== 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=suctow7OnROATkYCQN1YTqk9AdATYyE1DHxLKwC/LTQ=; b=dk7A2qSqiiTaeCNBQ0UE5/dEy57trJsl6sY12DnQ2VHHH+tfe7IFzTMxJ13qSgEoId /a1wy7AY5wRcHZmNInEFfRhPTiqXqBE5sjyOAMQ8UPin7ukCsNWDEIoLTRFXNnAg5H6o J6HLDX3DOdB5rJf7IQ/5tSr6atshhgWd8c0QIb0fe54VS3oB8bImCFFW4/+/05J6AkMF Os2iom7m2TFeOyUyBlhsy6V0Dbb0zvW42mUIQu0bn6mDlEmT6WCm1Jm7EGRL6rCWTI3k K2rYxj1zY+dZRKy5RC+L4IzmPHuoY7mToo+LJ3vPJ9J9OmqIIIDgHpAijJR/s/GbVmT0 dabg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=EZzCeaMF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id re8si1709792ejb.480.2020.10.22.14.24.32; Thu, 22 Oct 2020 14:24:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=EZzCeaMF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2898720AbgJVMn4 (ORCPT + 99 others); Thu, 22 Oct 2020 08:43:56 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:44200 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2898635AbgJVMnX (ORCPT ); Thu, 22 Oct 2020 08:43:23 -0400 X-UUID: 08f86e02cd254d64bac71d3f10900b64-20201022 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=suctow7OnROATkYCQN1YTqk9AdATYyE1DHxLKwC/LTQ=; b=EZzCeaMFM9C4/SsoIK6ZpCQK3UviVrb8gTKqfRC4HmmSsgklUb0y//lh9IsiuzGtB+UkkExZ4vokbogCOh7I9gw0UdOhzRarFz61iXKxJmEdwSZHxbcbPlPvuPwcpkN+HQNeaqFKRfzMv4tJxi5f2nRYnQ5DjgF6OnrDTLFkrzE=; X-UUID: 08f86e02cd254d64bac71d3f10900b64-20201022 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1955283088; Thu, 22 Oct 2020 20:37:56 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 22 Oct 2020 20:37:55 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 22 Oct 2020 20:37:55 +0800 From: Weiyi Lu To: Matthias Brugger , Rob Herring , Stephen Boyd , Nicolas Boichat CC: , , , , , Weiyi Lu Subject: [PATCH v4 22/34] clk: mediatek: Add MT8192 imp i2c wrapper s clock support Date: Thu, 22 Oct 2020 20:37:15 +0800 Message-ID: <1603370247-30437-23-git-send-email-weiyi.lu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1603370247-30437-1-git-send-email-weiyi.lu@mediatek.com> References: <1603370247-30437-1-git-send-email-weiyi.lu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org QWRkIE1UODE5MiBpbXAgaTJjIHdyYXBwZXIgcyBjbG9jayBwcm92aWRlcg0KDQpTaWduZWQtb2Zm LWJ5OiBXZWl5aSBMdSA8d2VpeWkubHVAbWVkaWF0ZWsuY29tPg0KLS0tDQogZHJpdmVycy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