Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp3060ybe; Thu, 5 Sep 2019 16:24:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqjA6lrYOgohJUDQ9ajwjtwlz1fFag5AsL6vX6xdpiARpPCRvMiTroKo19r/yjUHMyx032 X-Received: by 2002:a17:90a:5d0d:: with SMTP id s13mr6623425pji.133.1567725857844; Thu, 05 Sep 2019 16:24:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567725857; cv=none; d=google.com; s=arc-20160816; b=xQY5G+J2H+f6JRcD+Qd07hnRyoKtSqPWun0y6BeluafQM5OFaUrMUvc4rUkaJTtm3n Ya05aG9vvK+i0pXmXGGbKbT48xGUclMtG+s2MC806gx8TZzuLv+hVbousUiBoBnGgptt S+BSU78ahrumrRyCpU38ujRRGm8oIsKmNqCGPomDUz9/L7a7np4LvAFQv5juYTQVSqX/ S/HrvCCiOQrSc+L4l10ZEf3F2JrNZMf8T68r/k8GIy9fTHOaUkmDo53zZiE9KC1hipKT AJpiEDAltdMVHSrGnwzbOQc0vIHXpgT+n24ddsAFMQ2EX64NcTaoWswQTq+ZBCS770Ot x/Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=f4Km6SD866R0K00m5TcRPMaTtKdzrbq/4ljlsuFwyq4=; b=VPwmL+IUi2BCzdPBXCVG+Tm1jR9yz0D9QEGRm31HAtDqtu+VjY2hcvmSEkv1o1LVRn bO2Y6+11WqgDPWBJ3AZ1B1mIcjufCJjm9luS7lyzoP6+KTnE8qAmedLWRFM416G2DAtw svzgU/mnm9Hw3TuXq0rM/ro3mR1okR24s1QMSYbKhz6cowdQ/ZN2tps5avExG0fuMoj+ m1Ih1T6G178GX3iVRbgna3l1YvkMVZ6tEsR6cI1hETbYChg398okOj3HlEtKoDHuBLlH 7WQdxtRf/PdbUVxUvtmg+9o198TdJ6eEzqG1EE2VClTOrnBwdjZUMHskFJhas59uAG6w Mcsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=t3et7p6L; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v4si3564280pfn.132.2019.09.05.16.24.01; Thu, 05 Sep 2019 16:24:17 -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; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=t3et7p6L; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389143AbfIEUPr (ORCPT + 99 others); Thu, 5 Sep 2019 16:15:47 -0400 Received: from mail-oi1-f194.google.com ([209.85.167.194]:35122 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731390AbfIEUPq (ORCPT ); Thu, 5 Sep 2019 16:15:46 -0400 Received: by mail-oi1-f194.google.com with SMTP id a127so3044660oii.2; Thu, 05 Sep 2019 13:15:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=f4Km6SD866R0K00m5TcRPMaTtKdzrbq/4ljlsuFwyq4=; b=t3et7p6L0/whLJE/CMRrP2K3uNDjk8pWYu6Z+iHJ/66Y1V1Y6L0cwifYXlDTXXLZU3 3MBi7QwdaNrwDJDSiIIvPoke8D4qYmR5KifsoiZvryw5rCskksgTXJIgtTdbkyJgh8qV MJtYVr3BW9cjCbQ41WAa98hOnuGLeq4iDZN56LFw/ekt4nC8vTPzq264Qt5ezYI9sCTJ +c4RKH3NC5pp7zQoE+JvgkdxisarX3FPxmxyzSpxbX7RfbIIJzrBHCmsifjnzFTn+wL+ HLYJB/guTPodagOyMZiPuYILX1K2IHMxDbuYFdTogyBfGFbE2z+fgHbQK52gQmjRpO/4 8WXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=f4Km6SD866R0K00m5TcRPMaTtKdzrbq/4ljlsuFwyq4=; b=fkXZ1IDOaJtcW861V3DME/qmh7874GbQ1H7KFgh2NwhLp9NCTh6luCk3FAPrKEf1gh 8RnbZSdSpNIWiSc4Qk5KwVlSqlero9g9BK41xWfVn+C6/+N/A/5uwc34xJQ/ZxMFh/sH MZi7r/QbUs0/1Px6wpAPwnWxTbTkDiXYi4vxqVxbdZP7PKf7RBIUN32w4zmn00HnCn7R 9JzGb9JXRK43beXFJOwL1fj/+QGJ8c9BGnOq3r6CvdOjv6gEYdhCDNpq3w4nX1HSTIJ5 kd3RP3yhopJIBv1VmBuA3yEe0OIEPxk54EUZ5pTdtiChivmzreFZzuNjuEhDh3DPCrA5 1FPw== X-Gm-Message-State: APjAAAWwZyW4xL4nnqOTtF5D6RPOJgXhkrsrAWqywiAKVzt3+cDOPvh8 ukW4DoZghc4Z7H5VHbnxUQqiYLvfaICRwxV34eo= X-Received: by 2002:a05:6808:b14:: with SMTP id s20mr4202379oij.15.1567714545391; Thu, 05 Sep 2019 13:15:45 -0700 (PDT) MIME-Version: 1.0 References: <1567667251-33466-1-git-send-email-jianxin.pan@amlogic.com> <1567667251-33466-5-git-send-email-jianxin.pan@amlogic.com> In-Reply-To: <1567667251-33466-5-git-send-email-jianxin.pan@amlogic.com> From: Martin Blumenstingl Date: Thu, 5 Sep 2019 22:15:34 +0200 Message-ID: Subject: Re: [PATCH v2 4/4] arm64: dts: add support for A1 based Amlogic AD401 To: Jianxin Pan Cc: Kevin Hilman , linux-amlogic@lists.infradead.org, Rob Herring , Carlo Caione , Neil Armstrong , Jerome Brunet , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Jian Hu , Hanjie Lin , Xingyu Chen , Victor Wan , Qiufang Dai , Tao Zeng Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jianxin, (it's great to see that you and your team are upstreaming this early) On Thu, Sep 5, 2019 at 9:08 AM Jianxin Pan wrote: [...] > + memory@0 { > + device_type = "memory"; > + reg = <0x0 0x0 0x0 0x8000000>; > + /*linux,usable-memory = <0x0 0x0 0x0 0x8000000>;*/ why do we need that comment here (I don't understand it - why doesn't the "reg" property cover this)? > + }; > +}; > + > +&uart_AO_B { > + status = "okay"; > +}; > diff --git a/arch/arm64/boot/dts/amlogic/meson-a1.dtsi b/arch/arm64/boot/dts/amlogic/meson-a1.dtsi > new file mode 100644 > index 00000000..4d476ac > --- /dev/null > +++ b/arch/arm64/boot/dts/amlogic/meson-a1.dtsi > @@ -0,0 +1,122 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + * Copyright (c) 2019 Amlogic, Inc. All rights reserved. > + */ > + > +#include > +#include > + > +/ { > + compatible = "amlogic,a1"; > + > + interrupt-parent = <&gic>; > + #address-cells = <2>; > + #size-cells = <2>; > + > + cpus { > + #address-cells = <0x2>; > + #size-cells = <0x0>; only now I notice that all our other .dtsi also use hex values (instead of decimal as just a few lines above) here do you know if there is a particular reason for this? [...] > + uart_AO_B: serial@fe002000 { > + compatible = "amlogic,meson-gx-uart", > + "amlogic,meson-ao-uart"; > + reg = <0x0 0xfe002000 0x0 0x18>; the indentation of the "reg" property is off here also I'm a bit surprised to see no busses (like aobus, cbus, periphs, ...) here aren't there any busses defined in the A1 SoC implementation or are were you planning to add them later? Martin