Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2895059pxb; Sun, 8 Nov 2020 18:06:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJw6V+6KCE2EcDpl53RATDo4PW4hzMXCwbxAwwSvxDpdsDw5F3mQahK9q7/OkONchWLRLWqp X-Received: by 2002:a17:907:420d:: with SMTP id oh21mr13187037ejb.429.1604887611973; Sun, 08 Nov 2020 18:06:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604887611; cv=none; d=google.com; s=arc-20160816; b=gOSIGUR6dEURraay6PpiQm4S3wldIPkXN0V9DRf27u486bCml6U643+bVUNcNgb0xU +6m0C7CJTF+xraJ1hUglonjZvXCBR/O96o8lQJjDTnxQfOiij3A0f+uwFLl9vqP+RoRW GF91ugoM8W7yifTp5PCUTeVsjUGf1hhhR9F875ouChlHxkVN98nwAosTidR1iYRcOvCp wVH2HQltl+D8LnQvyUAtqS/rbcS5cWzWDD5HKM8JjrYkrG/VDXKu/Ai/nbrnlKJNKlCh dK2HSEzDw23fTX8lkPUjL3VAq9lNTeNH+H0QUuV6UE9Wam0d8VqEhWIqETo7A5Z1Wv/h CAvw== 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=rqzjSrs16WT8Fy2dnILPvvmpIilJnPqv6SaHqtUyJBQ=; b=u/90hL+DfHhAyJVT36R1XJHDDgXkfPET3LZ6VJ5xAvPDf7T+4k0t5zFVNPBLKh6ism O45xfHyF/SwFnAVdoDVYYz+2Dyd2cm3AjgLO0faX+G7bIuAv/OiV1q+AnsKm0FdKyvKM Y5tzuolNhmxiuJ362rNt+Ib/ZBArLKve3Lj7ZK+gPAf6Kr3baZs9SCk5VxakNxQINkOg 4kqbRNhWmt0tiUbbJ80OL2lvBGH6X58NkadCEhd/oBwm/DCeEvO1A6UKcCQ6RqTAE7b0 A18Yaq+3FsTSBylMuUXCr71BnF6Fm1LjTVqNGHLsuDIHDYUkQNlxXouNTiuGeZJ8Tkud tU/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=rgsWrX19; 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 z22si5928169ejx.130.2020.11.08.18.06.29; Sun, 08 Nov 2020 18:06:51 -0800 (PST) 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=rgsWrX19; 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 S1729096AbgKICEF (ORCPT + 99 others); Sun, 8 Nov 2020 21:04:05 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:57267 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728038AbgKICED (ORCPT ); Sun, 8 Nov 2020 21:04:03 -0500 X-UUID: 70b9254027234a21aca0f77f92de2369-20201109 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=rqzjSrs16WT8Fy2dnILPvvmpIilJnPqv6SaHqtUyJBQ=; b=rgsWrX19k6TZXd6aYAV16GZaq5nVflqcQCD7QsgPAdpQGAxC/pXeZDoHpBLrIIaus2mfeBrI2XYRzvUj9otAJRZfd1BlLSwytKDnkxn4EYv5URrvYbGH4VfJQDa+nR0vXCc0NlQnGp1brZWuK8SCWk6XXUIPkje8re2HWICLRa0=; X-UUID: 70b9254027234a21aca0f77f92de2369-20201109 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 625308529; Mon, 09 Nov 2020 10:03:54 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 9 Nov 2020 10:03:53 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 9 Nov 2020 10:03:53 +0800 From: Weiyi Lu To: Matthias Brugger , Rob Herring , Stephen Boyd , Nicolas Boichat CC: , , , , , Weiyi Lu , Yingjoe Chen Subject: [PATCH v5 12/24] clk: mediatek: Add MT8192 camsys clock support Date: Mon, 9 Nov 2020 10:03:37 +0800 Message-ID: <1604887429-29445-13-git-send-email-weiyi.lu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1604887429-29445-1-git-send-email-weiyi.lu@mediatek.com> References: <1604887429-29445-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 QWRkIE1UODE5MiBjYW1zeXMgYW5kIGNhbXN5cyByYXcgY2xvY2sgcHJvdmlkZXJzDQoNClNpZ25l ZC1vZmYtYnk6IFdlaXlpIEx1IDx3ZWl5aS5sdUBtZWRpYXRlay5jb20+DQotLS0NCiBkcml2ZXJz L2Nsay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