From patchwork Wed Nov 18 12:01:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsin-Hsiung Wang X-Patchwork-Id: 11915011 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 080E6C63777 for ; Wed, 18 Nov 2020 12:18:41 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 675C3221FB for ; Wed, 18 Nov 2020 12:18:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="bTiuVaAP"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="Tze01Uvq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 675C3221FB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: 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=TE4AZJgH1G4Hf+QU+QrJl2T6w9fPGJuY/cAZMPTNZBw=; b=bTiuVaAPQpROmYat44tvY7dJlx hX18637mbZIP/qCBDMexhX5g/uEOGN9lnRy6fHpNm5L/b+k9vKRF0CGqcXu2VEYzGr6JUXqTGqaj5 lEq8xRRbaivakSAYLNxXuZBNMH4EG4xfxd8Lmt1IKkE147SKV8FAwo8iRL/Vn9G6kSliIUpOBYaCy CzrVD5+F4+8T96WVigFbKpqkzSpnn72M03exHlhl7s37AP3KK+Q//wD0jXpvqUHo2QXeU/zaNGOYA i1YWZCbUa2J1n2KoeA34mTK/Q0si7lcLGHfrixzXXHnojfsucWUhYl8r9fI6JNcGHZ3+Ue9uhznKH WsCuJgOA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kfMPb-0000ZJ-NB; Wed, 18 Nov 2020 12:18:11 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kfMPV-0000Wh-4i; Wed, 18 Nov 2020 12:18:06 +0000 X-UUID: d10e086836e14ddbabe53f11de3137d5-20201118 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:Message-ID:Date:Subject:CC:To:From; bh=K8L2lLMrZ5zB5NcxiRVsQcok4TZyBEeHrw9CcbG+AOo=; b=Tze01UvqdmgihipWgF1H2SgluSRh82SJutIl/Ku2EWUzcNz1Ze79QH88W4LZLzodBIENgSt6HSO2ev5878m4b2Ltlbsy+xHFAKjKPrzEaVC7DvTKrEdTGBa9XBQe5KizGfNDbgUtOgjXSVdlpKxHvv1afnk3vnE5EkyU01u6AwA=; X-UUID: d10e086836e14ddbabe53f11de3137d5-20201118 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1236900420; Wed, 18 Nov 2020 04:17:46 -0800 Received: from mtkmbs05n2.mediatek.inc (172.21.101.140) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 18 Nov 2020 04:07:58 -0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 18 Nov 2020 20:07:57 +0800 Received: from mtksdaap41.mediatek.inc (172.21.77.4) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 18 Nov 2020 20:07:56 +0800 From: Hsin-Hsiung Wang To: Rob Herring , Matthias Brugger , , Argus Lin Subject: [PATCH v4 0/5] Add PMIC wrapper support for Mediatek MT6873/8192 SoC IC Date: Wed, 18 Nov 2020 20:01:29 +0800 Message-ID: <1605700894-32699-1-git-send-email-hsin-hsiung.wang@mediatek.com> X-Mailer: git-send-email 2.6.4 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201118_071805_331913_EB49FCC3 X-CRM114-Status: GOOD ( 12.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, srv_heupstream@mediatek.com, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Hsin-Hsiung Wang Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series adds support for new SoC MT6873/8192 to the pmic-wrap driver. changes since v3: - refine some coding style about PWRAP_CAP_ARB capacity for better code quality. - make struct pwrap_mt6873 const. - add pwrap node into Mediatek MT8192 dtsi. Hsin-Hsiung Wang (5): soc: mediatek: pwrap: use BIT() macro soc: mediatek: pwrap: add arbiter capability dt-bindings: mediatek: add compatible for MT6873/8192 pwrap soc: mediatek: pwrap: add pwrap driver for MT6873/8192 SoCs arm64: dts: mt8192: add pwrap node .../devicetree/bindings/soc/mediatek/pwrap.txt | 1 + arch/arm64/boot/dts/mediatek/mt8192.dtsi | 12 +++ drivers/soc/mediatek/mtk-pmic-wrap.c | 90 +++++++++++++++++++--- 3 files changed, 92 insertions(+), 11 deletions(-)