From patchwork Thu Oct 3 07:48:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Argus Lin X-Patchwork-Id: 11172241 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3913015AB for ; Thu, 3 Oct 2019 07:48:43 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 161DE21D71 for ; Thu, 3 Oct 2019 07:48:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="iEmfcFct" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 161DE21D71 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-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.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=xTslhR+Y0D0IyDbzfpJvhVgLWduJj/K8rR720hqIBX4=; b=iEmfcFct/e6Zaa 6OHeTWwMVQtHCVn2Qb5qNSAcMhY8aMV21ekEq2pZIfGlWav6jF7RoBopEwS/Uht0vk/lf/OTz+MV/ r+cHuQNDgoJmoV/6ZvDw0lnTB2BCr4fhClUj4G9QbwBTWm3PqYIJDfHjVtmZDiyVZ0r4JXPwF0LtR FMqkGs6t7h+bjB4pA7iFAvJQzqMqTFrGejv1Q/vOjDYcuL40GPqKNlFdlCGhFZH2WYKCkebLh2VDI aTnBTzw7SP7WK9lZ9uP/qQjQTRGaXDMQ9rlBF3QKtl9XgWDxUd8qDx/+6IgSCVuBfM8yODVlAtbb3 TjjXGOHwPoKDxHHv8CnA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.2 #3 (Red Hat Linux)) id 1iFvqs-0003Q4-3X; Thu, 03 Oct 2019 07:48:42 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.92.2 #3 (Red Hat Linux)) id 1iFvqp-0003OE-S8; Thu, 03 Oct 2019 07:48:41 +0000 X-UUID: 5cd2c83c834a4ccca298875da8e19130-20191002 X-UUID: 5cd2c83c834a4ccca298875da8e19130-20191002 Received: from mtkcas67.mediatek.inc [(172.29.193.45)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 661549060; Wed, 02 Oct 2019 23:48:29 -0800 Received: from MTKMBS07N2.mediatek.inc (172.21.101.141) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 3 Oct 2019 00:48:29 -0700 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 3 Oct 2019 15:48:26 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 3 Oct 2019 15:48:27 +0800 From: Argus Lin To: Rob Herring , Mark Rutland , Matthias Brugger , Catalin Marinas , Will Deacon Subject: [PATCH 0/3] Pwrap: Mediatek pwrap driver for MT6779 Date: Thu, 3 Oct 2019 15:48:18 +0800 Message-ID: <1570088901-23211-1-git-send-email-argus.lin@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191003_004839_914587_3B163DFB X-CRM114-Status: UNSURE ( 8.76 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines X-BeenThere: linux-mediatek@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, argus.lin@mediatek.com, wsd_upstream@mediatek.com, Chenglin Xu , Sean Wang , linux-kernel@vger.kernel.org, henryc.chen@mediatek.com, flora.fu@mediatek.com, Christophe Jaillet , linux-mediatek@lists.infradead.org, Chen Zhong , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org Here's version 1 of the patch series, include 3 patches: 1. Add compatible for MT6779 pwrap 2. Add pwrap driver for MT6779 SoCs. Keep PWRAP_HIPRIO_ARB_EN, PWRAP_WDT_UNIT, and PWRAP_WDT_SRC_EN value if it has initialized. When we enable interrupt flag, read current value then do logical OR opersion with wrp->master->int_en_all. 3. Add MT6359 support for MT6779 SoCs. Argus Lin (3): dt-bindings: pwrap: mediatek: add pwrap support for MT6779 soc: mediatek: pwrap: add pwrap driver for MT6779 SoCs soc: mediatek: pwrap: add support for MT6359 PMIC .../devicetree/bindings/soc/mediatek/pwrap.txt | 1 + drivers/soc/mediatek/mtk-pmic-wrap.c | 157 +++++++++++++++++++-- 2 files changed, 150 insertions(+), 8 deletions(-) --- 1.8.1.1.dirty