Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3182624imm; Fri, 10 Aug 2018 05:16:41 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyMgvqYKeGrCZ1Q/LfFPXJpmXGvyJ1UFTS3Gg6BqbCE8njH0OOymEO22HtE0WsoMcwzHWcV X-Received: by 2002:a17:902:8506:: with SMTP id bj6-v6mr5970889plb.210.1533903400949; Fri, 10 Aug 2018 05:16:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533903400; cv=none; d=google.com; s=arc-20160816; b=K8b95B4fJAOEkiFPeMD5wvETPtrDVilg1Qmz1zSzkWQYtjWFfyF1OkDqt5IEI1bT4E xG7fNPqhHCQTG7EE26feC89jmCeqbmtSWC64Rjs2j/3iMPnBiQBaQAwMDz+BvSCXif3t 2bpZVgdPIKkA2Ciu3Bqgb+Ifp8P55lLFI4OV2PxGb6zU46kYmtdJ/I5xAIklzA7X7D1k E/rdvJARKOTavK0uGI0D4TImbf1FVApdO7dhAiRJq0Uqrcfx5c5tQuvIg7NYHeRIrirw PDopjM6zjvvHnspdayfBKrajQ53+HxGwC+Ne+ddLw28xSIKOojWzrXLKwzLi3eMCXLAz UTvw== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature:arc-authentication-results; bh=4MzyXpHqbFH3x1p7JI/B4cXbI0ZrmuolRNcoDV2ZL4E=; b=PhCw6uHuqDTPJyS00bKyEFB6H+O1IEnQq7gKj54NbxI5ivaoNtUgRxXhQWBEmJzk8e b6hQ6UlbDSx0a3X4QKZha17z9CjuEOXoGjj4ZfV+ztw6+KKJnJZC7HZnkImibrr399fV t15myNHFOjnOBZ1t6uJ36fku6Es9XoA1dPhy1s4az+OGZxNaM9F60JM8EcvDpJdRCH67 Wy4OGnAmb6rNHgddvUOBev6BaMcGEi3D+gDWBwcNugvJ/WY9xLPVbvCR5xU4LvraXDIG D766Qu1fEpp5qiZev6Yez2ATeG0mcA6K2j6W1a8R0OD5z7tNOmy0b7romvOEDUdsDyde 1sBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=ulLbEmfc; 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 cf10-v6si7670515plb.9.2018.08.10.05.16.26; Fri, 10 Aug 2018 05:16:40 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=ulLbEmfc; 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 S1727575AbeHJO21 (ORCPT + 99 others); Fri, 10 Aug 2018 10:28:27 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:40029 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726181AbeHJO20 (ORCPT ); Fri, 10 Aug 2018 10:28:26 -0400 Received: by mail-wm0-f66.google.com with SMTP id y9-v6so1624660wma.5 for ; Fri, 10 Aug 2018 04:58:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=4MzyXpHqbFH3x1p7JI/B4cXbI0ZrmuolRNcoDV2ZL4E=; b=ulLbEmfcex2k8eWuKeZTkyCguC5t9rVgmIGQzk9qz5v8bYj9kw1lBbBi91sP45337A 5w6ELPMri6Uldhl7p527Im9aDJ8lqSx4XfU2QrJUaMUlK6bL37fLtAvOkMFOWcuOeqgg JpsTpOmzQUH+nbuH64W3vcyMHlyC3ohxy96TPudjaf2D2fRpQ01NBtgXwusGIWhWnlZd aYDk9yLEW4cJrywnH1hhfdvcFNKvrH255nNFCUFKyWTbRAuAeLL8Xn8jOpuvgeikLwko cnw9TgbGKZQX8ukqPHCS5Y0wtGFDHbtQcDoUCFE9rhelHod5KbpGi/lCFTDIhwSjC1VS ZY+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=4MzyXpHqbFH3x1p7JI/B4cXbI0ZrmuolRNcoDV2ZL4E=; b=Y2J5uynwW/IwKyeUwXqfL62r8DfMYebetCe1InlXOHVWgeureoypVuz8OfN2vzlwSv 2UHcBAfYNgsmFjlJGWV8McsBAlJULpZTsv8HrFfVfTw1sM/tw+ovedSNXwrjwUzrTaBb SRndLLyTN9ht+d8wa8FzmM+pyEjuS0U/frkWcz53TqWHankOnnm+t4bqJaPpfUfFnaFC etn1PFL5U0I7Gu6n+CCt9VgviaRw65MUXhmgF6cIfQBLbSq5WcKAHvNr8Fm1Q4iCFyDv 6dpom1Yd8Uk7JEC+0E0ZD4bqCWuod490UdvAzDGfQu4gsrEk5Oy3xxSa8enfr9b7K4RD Ld7Q== X-Gm-Message-State: AOUpUlE2DbRq4Ion2t2xp/jHaJVxIF1Aqb/ACbJOxHVjs/22nTWi3eTO /VlwL/4soPM33BAl9V/E9SyGyQ== X-Received: by 2002:a1c:b984:: with SMTP id j126-v6mr1255553wmf.25.1533902327986; Fri, 10 Aug 2018 04:58:47 -0700 (PDT) Received: from boomer (cag06-3-82-243-161-21.fbx.proxad.net. [82.243.161.21]) by smtp.gmail.com with ESMTPSA id t186-v6sm1851675wmf.14.2018.08.10.04.58.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 Aug 2018 04:58:46 -0700 (PDT) Message-ID: Subject: Re: [PATCH 2/2] arm64: dts: meson-g12a: add initial g12a s905d2 SoC DT support From: Jerome Brunet To: Jianxin Pan , Kevin Hilman , linux-amlogic@lists.infradead.org Cc: Rob Herring , Neil Armstrong , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Carlo Caione , Jian Hu , Yixun Lan , Hanjie Lin , Victor Wan Date: Fri, 10 Aug 2018 13:58:34 +0200 In-Reply-To: <1533802951-49919-3-git-send-email-jianxin.pan@amlogic.com> References: <1533802951-49919-1-git-send-email-jianxin.pan@amlogic.com> <1533802951-49919-3-git-send-email-jianxin.pan@amlogic.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-1.fc28) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-08-09 at 16:22 +0800, Jianxin Pan wrote: > Try to add basic DT support for the Amlogic's Meson-G12A S905D2 SoC, > which describe components as follows: Reserve Memory, CPU, GIC, IRQ, > Timer, UART. It's capable of booting up into the serial console. > > Signed-off-by: Jianxin Could please fix your signoff here ? Your last name went missing > --- > arch/arm64/boot/dts/amlogic/Makefile | 1 + > arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts | 22 +++ > arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 174 ++++++++++++++++++++++++ > 3 files changed, 197 insertions(+) > create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts > create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12a.dtsi > > diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile > index a97c0e2..c31f29d6 100644 > --- a/arch/arm64/boot/dts/amlogic/Makefile > +++ b/arch/arm64/boot/dts/amlogic/Makefile > @@ -1,5 +1,6 @@ > # SPDX-License-Identifier: GPL-2.0 > dtb-$(CONFIG_ARCH_MESON) += meson-axg-s400.dtb > +dtb-$(CONFIG_ARCH_MESON) += meson-g12a-u200.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-gxbb-nanopi-k2.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-gxbb-nexbox-a95x.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-gxbb-odroidc2.dtb > diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts b/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts > new file mode 100644 > index 0000000..d267a37 > --- /dev/null > +++ b/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts > @@ -0,0 +1,22 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + * Copyright (c) 2018 Amlogic, Inc. All rights reserved. > + */ > + > +/dts-v1/; > + > +#include "meson-g12a.dtsi" > + > +/ { > + compatible = "amlogic,u200", "amlogic,g12a"; > + model = "Amlogic Meson G12A U200 Development Board"; > + > + aliases { > + serial0 = &uart_AO; > + }; > +}; > + > +&uart_AO { > + status = "okay"; > +}; > + > diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi > new file mode 100644 > index 0000000..64a0f2e > --- /dev/null > +++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi > @@ -0,0 +1,174 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + * Copyright (c) 2018 Amlogic, Inc. All rights reserved. > + */ > + > +#include > +#include > +#include > + > +/ { Could you please order the subnodes alphabetically ? In general, we should try to order nodes by addresses when there is one and alphabetically when there is none. This is something we have to fix for the AXG as well. > + compatible = "amlogic,g12a"; > + > + interrupt-parent = <&gic>; > + #address-cells = <2>; > + #size-cells = <2>; > + > + reserved-memory { > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; > + > + /* Alternate 3 MiB reserved for ARM Trusted Firmware (BL31) */ It's the only one (for now at least) so it's not really an alternate, isn't it ? > + secmon_reserved: secmon@5000000 { > + reg = <0x0 0x05000000 0x0 0x300000>; > + no-map; > + }; > + }; > + > + cpus { > + #address-cells = <0x2>; > + #size-cells = <0x0>; > + > + cpu0: cpu@0 { > + device_type = "cpu"; > + compatible = "arm,cortex-a53", "arm,armv8"; > + reg = <0x0 0x0>; > + enable-method = "psci"; > + next-level-cache = <&l2>; > + }; > + > + cpu1: cpu@1 { > + device_type = "cpu"; > + compatible = "arm,cortex-a53", "arm,armv8"; > + reg = <0x0 0x1>; > + enable-method = "psci"; > + next-level-cache = <&l2>; > + }; > + > + cpu2: cpu@2 { > + device_type = "cpu"; > + compatible = "arm,cortex-a53", "arm,armv8"; > + reg = <0x0 0x2>; > + enable-method = "psci"; > + next-level-cache = <&l2>; > + }; > + > + cpu3: cpu@3 { > + device_type = "cpu"; > + compatible = "arm,cortex-a53", "arm,armv8"; > + reg = <0x0 0x3>; > + enable-method = "psci"; > + next-level-cache = <&l2>; > + }; > + > + l2: l2-cache0 { > + compatible = "cache"; > + }; > + }; > + > + psci { > + compatible = "arm,psci-1.0"; > + method = "smc"; > + }; > + > + timer { > + compatible = "arm,armv8-timer"; > + interrupts = + (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, > + + (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, > + + (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, > + + (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>; > + }; > + > + xtal: xtal-clk { > + compatible = "fixed-clock"; > + clock-frequency = <24000000>; > + clock-output-names = "xtal"; > + #clock-cells = <0>; > + }; > + > + soc { > + compatible = "simple-bus"; > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; Could you please order the different bus by ascending addresses ? > + > + apb: apb@ffe00000 { > + compatible = "simple-bus"; > + reg = <0x0 0xffe00000 0x0 0x200000>; > + #address-cells = <2>; > + #size-cells = <2>; > + ranges = <0x0 0x0 0x0 0xffe00000 0x0 0x200000>; > + }; > + > + cbus: bus@ffd00000 { > + compatible = "simple-bus"; > + reg = <0x0 0xffd00000 0x0 0x25000>; > + #address-cells = <2>; > + #size-cells = <2>; > + ranges = <0x0 0x0 0x0 0xffd00000 0x0 0x25000>; > + > + }; > + > + gic: interrupt-controller@ffc01000 { > + compatible = "arm,gic-400"; > + reg = <0x0 0xffc01000 0 0x1000>, > + <0x0 0xffc02000 0 0x2000>, > + <0x0 0xffc04000 0 0x2000>, > + <0x0 0xffc06000 0 0x2000>; > + interrupt-controller; > + interrupts = + (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>; > + #interrupt-cells = <3>; > + #address-cells = <0>; > + }; > + > + hiubus: bus@ff63c000 { > + compatible = "simple-bus"; > + reg = <0x0 0xff63c000 0x0 0x1c00>; > + #address-cells = <2>; > + #size-cells = <2>; > + ranges = <0x0 0x0 0x0 0xff63c000 0x0 0x1c00>; > + > + }; > + > + periphs: periphs@ff634000 { > + compatible = "simple-bus"; > + reg = <0x0 0xff634000 0x0 0x2000>; > + #address-cells = <2>; > + #size-cells = <2>; > + ranges = <0x0 0x0 0x0 0xff634000 0x0 0x2000>; > + }; > + > + aobus: bus@ff800000 { > + compatible = "simple-bus"; > + reg = <0x0 0xff800000 0x0 0x100000>; > + #address-cells = <2>; > + #size-cells = <2>; > + ranges = <0x0 0x0 0x0 0xff800000 0x0 0x100000>; > + > + uart_AO: serial@3000 { > + compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart"; > + reg = <0x0 0x3000 0x0 0x18>; > + interrupts = ; > + clocks = <&xtal>, <&xtal>, <&xtal>; > + clock-names = "xtal", "pclk", "baud"; > + status = "disabled"; > + }; > + > + uart_AO_B: serial@4000 { > + compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart"; > + reg = <0x0 0x4000 0x0 0x18>; > + interrupts = ; > + clocks = <&xtal>, <&xtal>, <&xtal>; > + clock-names = "xtal", "pclk", "baud"; > + status = "disabled"; > + }; > + > + }; > + }; > +};