Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp14569ybh; Mon, 20 Jul 2020 09:15:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYv4yVdMXnv9AD1PWlWgENckdTJRl0bSnEIgOM8h+6k7d5jzrAlBo/6M7wv89Ry1/AeUaG X-Received: by 2002:a50:f413:: with SMTP id r19mr22920911edm.17.1595261707769; Mon, 20 Jul 2020 09:15:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595261707; cv=none; d=google.com; s=arc-20160816; b=OU0IDVs/eCFHS1kYZOfxPrhDdhg7Fmp7CXvxBH/RdVR8l6yJExXT2Of6mC6z8ii4cw yWSnKofGN8iZBpydtNs+Vbc4Eyj5Q7omLovr20IEF/B0lTlwJ3hb2Hw1oTqIOgMvyKR9 Z0Wj0WH0KaWRyBoQj3fJ70M9rb1JlBeYI6hsBlONJ9/tZNDiPrudaD7eAGZlr05K0SeU 49gALbqT6EP+cj+ZQSAZfo0yDk94lcyKZuRPpE6ZdZdyEiDom3y8B1AzBIvh9f/jqA5L BlQj4vLtBWW2u7pv+wo3EXAazVRtOUAK7zgyJ/9kgBwtoTacXKGiCs7XvaOx8pcXDZbe ddbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=YGGS+lJpiE0eLgk6zkqUqROfE8WRidPw66ft3m8PrAw=; b=MfCjadN/eGIKn2C9vE2h2MgwZrpONDjn4rIcRHRSRkslzxvgQ0SR7gCeylSYSsQMJc c4L6dHRrIYPxC8BeZzvNk5riJc3K2raqeh7uHnP9Y2O5CGj9A3UrycvO5pTkFt9Q3+GG JWx3SiRVojJccSLc2dI5CGBaI14tJ1j2+XnfbisZ+P9yK5VGdlhqxUDkA0+iCc/IdL2+ HxS8aJVoHd5EzLCto4V/ktPXl9ugOooviFkSjCNnUDMKHw2O5znxkJ9ZpxiF65Lshn3B 78q+ca1uXxoKRsgkWx5aU3W96tzTxSGsDBn9N278jKcUBwUyO477cVtvzDAZp9kW62qO wdEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bViycVFx; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h11si11253654edl.235.2020.07.20.09.14.44; Mon, 20 Jul 2020 09:15:07 -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=@gmail.com header.s=20161025 header.b=bViycVFx; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388178AbgGTQNx (ORCPT + 99 others); Mon, 20 Jul 2020 12:13:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388168AbgGTQNt (ORCPT ); Mon, 20 Jul 2020 12:13:49 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85222C061794; Mon, 20 Jul 2020 09:13:49 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id c80so97163wme.0; Mon, 20 Jul 2020 09:13:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=YGGS+lJpiE0eLgk6zkqUqROfE8WRidPw66ft3m8PrAw=; b=bViycVFx8iriZx27qZBxJSpd3rB14eEO3Ix1ovgt1PvsYFN1OKJMePH2P6SrHpf4ED L5gN+i7f30DD0zUxuhUEegm1GGQ3EwDcwMSEgZt1CIiWmT/ZyY9AVWmh2uRKW8N9h1kl IgN/sHJdsOU4LmICiOdrzBtNL8OtD4rENHbVcbpZyMM061QrCiSlvnrNXBFibemfTjBG Lehc8ImZr+MWMxuxNWqx6s83kYDNJNZz3v2bDdDn+KUaz6B7//hhtwq3db8Z7wV+5eDO uozjqa4rTkiVyDVyf4Ays0tyfTlg06YjzGSslK3JAdFQS0KDf9aYVpUIufefWx2dIjg4 M7bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=YGGS+lJpiE0eLgk6zkqUqROfE8WRidPw66ft3m8PrAw=; b=UFbtbKbLWf4O4e6dBIct8M7Yq4MxaURs/LopocwMUN9J1aAL2/MbL41t+4ZJiUQaS+ mFHpWUm1Dym35GikgiURnzRCa5USyjjmSiX/3S1V0iJ+O0iVc0B8p/Hy/KbefQhJw70q uqn320khM7fhl8ff9nScw0EBvjvrFz8k7FWOObuUt6St1b77dcreaDfnoCVBk5D7/Jxs 7sCWe1bqgW/62xINHoz6PmKfxA1GxBwVGOxS5NcoyQT1imGuGt2gteXUsiTdrSAYFp4k Zo8wdUisG5xZuG8ObYaBSXf8rosKLfr+uX8B4DutDJaU6llHCibAQ6PHDwZohrJxvHu5 eK7w== X-Gm-Message-State: AOAM530f2W9K1l2vW+kpJQ3KzBpJ4k8HOMwPET464kbbkRPEnzrnfb8B twAxvZtiAvy7AHEZXu1t1fQ= X-Received: by 2002:a05:600c:21cb:: with SMTP id x11mr73928wmj.141.1595261628261; Mon, 20 Jul 2020 09:13:48 -0700 (PDT) Received: from ziggy.stardust (81.172.57.81.dyn.user.ono.com. [81.172.57.81]) by smtp.gmail.com with ESMTPSA id 207sm55718wme.13.2020.07.20.09.13.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Jul 2020 09:13:47 -0700 (PDT) Subject: Re: [PATCH v8 6/7] arm64: dts: add dts nodes for MT6779 To: Hanks Chen Cc: Linus Walleij , Rob Herring , Michael Turquette , Stephen Boyd , Sean Wang , mtk01761 , Andy Teng , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, wsd_upstream@mediatek.com, CC Hwang , Loda Chou References: <1594718402-20813-1-git-send-email-hanks.chen@mediatek.com> <1594718402-20813-7-git-send-email-hanks.chen@mediatek.com> <1b335463-b0af-9010-feed-c4b673ebb6c5@gmail.com> <1594872242.11090.8.camel@mtkswgap22> From: Matthias Brugger Message-ID: <742eefe1-954b-eb3f-98b7-469833df729a@gmail.com> Date: Mon, 20 Jul 2020 18:13:46 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <1594872242.11090.8.camel@mtkswgap22> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/07/2020 06:04, Hanks Chen wrote: > On Tue, 2020-07-14 at 20:14 +0200, Matthias Brugger wrote: >> >> On 14/07/2020 11:20, Hanks Chen wrote: >>> this adds initial MT6779 dts settings for board support, >>> including cpu, gic, timer, ccf, pinctrl, uart, sysirq...etc. >>> >>> Signed-off-by: Hanks Chen >>> --- >>> arch/arm64/boot/dts/mediatek/Makefile | 1 + >>> arch/arm64/boot/dts/mediatek/mt6779-evb.dts | 31 +++ >>> arch/arm64/boot/dts/mediatek/mt6779.dtsi | 271 ++++++++++++++++++++ >>> 3 files changed, 303 insertions(+) >>> create mode 100644 arch/arm64/boot/dts/mediatek/mt6779-evb.dts >>> create mode 100644 arch/arm64/boot/dts/mediatek/mt6779.dtsi >>> >> [...] >>> + >>> + uart0: serial@11002000 { >>> + compatible = "mediatek,mt6779-uart", >>> + "mediatek,mt6577-uart"; >>> + reg = <0 0x11002000 0 0x400>; >>> + interrupts = ; >>> + clocks = <&clk26m>, <&infracfg_ao CLK_INFRA_UART0>; >>> + clock-names = "baud", "bus"; >>> + status = "disabled"; >>> + }; >>> + >>> + uart1: serial@11003000 { >>> + compatible = "mediatek,mt6779-uart", >>> + "mediatek,mt6577-uart"; >>> + reg = <0 0x11003000 0 0x400>; >>> + interrupts = ; >>> + clocks = <&clk26m>, <&infracfg_ao CLK_INFRA_UART1>; >>> + clock-names = "baud", "bus"; >>> + status = "disabled"; >>> + }; >>> + >>> + uart2: serial@11004000 { >>> + compatible = "mediatek,mt6779-uart", >>> + "mediatek,mt6577-uart"; >>> + reg = <0 0x11004000 0 0x400>; >>> + interrupts = ; >>> + clocks = <&clk26m>, <&infracfg_ao CLK_INFRA_UART2>; >>> + clock-names = "baud", "bus"; >>> + status = "disabled"; >>> + }; >> >> Devicetree describes the HW we have. As far as I know, we have 4 UARTs on >> MT6779. So we should list them all here. >> > > Actually, We have only 3 UARTs HW on MT6779, but have 4 UART clk in > header file of clk. Correct, I got confused by the four clocks. With that clarified I'm fine with the patch and will take it as soon as the clock driver patch is accepted. Regards, Matthias > CLK_INFRA_UART3 is a dummy clk interface, it has no effect on the > operation of the read/write instruction. > > If you think it is not good, I can remove it in the header file of clk. > > Thanks > >> Regards, >> Matthias >