Received: by 10.192.165.148 with SMTP id m20csp1325466imm; Wed, 2 May 2018 19:23:21 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpwvnG8QjGGOQnV781BanAM11wXlS3YwaCtlxGpG66uAJQNBPlQoaQPqS3K6kHnGSexu4aL X-Received: by 2002:a63:9a09:: with SMTP id o9-v6mr18140180pge.130.1525314201389; Wed, 02 May 2018 19:23:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525314201; cv=none; d=google.com; s=arc-20160816; b=paLQE55mp4wabzUvV4M2L1C95jpiDFhn3RXvGkY76pJczNu3F9U1yY22i8KNlhT0fE jpNjObIymloeFfgyARviSiu+LNlzOrcGicr0xA/tcIa6U3bRvaov/uG8ZzmoPSiDJfQW qkV1w/tu0DTkjDfsBPqB1r+6S7l6QbqsyDUylYmdw1WimyJojuEOtfKiscZScvl6YP+r T2M4AcZYbJkl5JWD1B74wnwYww+4Vg4GhM7VpXFrxRkEWQ6TH737VRKCX5+FJocsD4Bv 23/isyQ/0KuOvZR9XGuNwmL1Om9LZPn/UEF/V4ldT3ny/zoU+ibDvk7dgviREr6FaDaz joFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=2QDhQeNze5fLdHJjfEiJIiJ24Efrkl5lKq/8KhrUS3c=; b=RToiBMW60Av2m/hejVd/u5ChLTs4oM5ccA8iKPx39K8ykaaECJ5upCdwWTeleVI0GD V35xOHkRIXG6d7dyrHG79g+vgKBCurTeg7Irk4BcAGcT9lsZ/TyEi+zVKtHoOolc7idP xREM8UGHqrpiGPOEQmiWfXA799KASiCGjS5S9hvBjcAgsUdwqnRukYIy8jVPwB8+0CrQ XsEi2wZ6vwZ1XIyi5Ld4sIsj79MBgR3bm6RhG2hFNn+plfokWM0sYE1z/Iqhx+XkocVH zd5nza/P1jrWYRFc1pU7Ax1Gu5JlqmSgPIOLhIu1CJMAtCg4RaSrCejPe6Dfn4KMCZ79 sJlQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z18si4099566pfd.357.2018.05.02.19.23.06; Wed, 02 May 2018 19:23:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752005AbeECCWv (ORCPT + 99 others); Wed, 2 May 2018 22:22:51 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:30904 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751889AbeECCWu (ORCPT ); Wed, 2 May 2018 22:22:50 -0400 X-UUID: 39cb3dc5fa9047788d9104c70f209c94-20180503 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1222397983; Thu, 03 May 2018 10:22:46 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs03n1.mediatek.inc (172.21.101.181) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Thu, 3 May 2018 10:22:44 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Thu, 3 May 2018 10:22:44 +0800 Message-ID: <1525314164.14792.43.camel@mtkswgap22> Subject: Re: [PATCH V4 8/8] arm64: dts: mt6797: add pwrap support for mt6797 From: Sean Wang To: CC: Rob Herring , Mark Rutland , Matthias Brugger , Catalin Marinas , Will Deacon , Chenglin Xu , , , , Chen Zhong , Christophe Jaillet , "shailendra . v" , , , , Date: Thu, 3 May 2018 10:22:44 +0800 In-Reply-To: <20180502092112.3991-9-argus.lin@mediatek.com> References: <20180502092112.3991-1-argus.lin@mediatek.com> <20180502092112.3991-9-argus.lin@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2018-05-02 at 17:21 +0800, argus.lin@mediatek.com wrote: > From: Argus Lin > > mt6797 is a highly integrated SoCs, and it uses > mt6351 as Power Management IC. > We need to add pwrap device to communicate with > mt6351 by SPI. > The base address of pwrap is 0x1000d000, and IRQ > number is 178. It also using fixed 26Mhz clock > as SPI CLK. > > Signed-off-by: Argus Lin > --- > arch/arm64/boot/dts/mediatek/mt6797.dtsi | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/arch/arm64/boot/dts/mediatek/mt6797.dtsi b/arch/arm64/boot/dts/mediatek/mt6797.dtsi > index 4beaa71107d7..485546efc9bf 100644 > --- a/arch/arm64/boot/dts/mediatek/mt6797.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt6797.dtsi > @@ -161,6 +161,20 @@ > <0 0x10220690 0 0x10>; > }; > > + pwrap: pwrap@1000d000 { > + compatible = "mediatek,mt6797-pwrap"; > + reg = <0 0x1000d000 0 0x1000>; > + reg-names = "pwrap"; > + interrupts = ; > + clocks = <&clk26m>, <&clk26m>; > + clock-names = "spi", "wrap"; > + > + pmic: mt6351 { > + compatible = "mediatek,mt6351"; > + interrupt-controller; the child node can't be added until MT6351 support is added to dt-binding > + }; > + }; > + > uart0: serial@11002000 { > compatible = "mediatek,mt6797-uart", > "mediatek,mt6577-uart";