Received: by 10.223.185.116 with SMTP id b49csp1567820wrg; Sun, 11 Feb 2018 15:28:10 -0800 (PST) X-Google-Smtp-Source: AH8x225JW6FCwT98TH1eTl9NtreQdVWoh5TuXLPCBO44Is18BHAewD5EgZyrhdLrISvDkeRTF+rU X-Received: by 10.98.60.142 with SMTP id b14mr9919485pfk.120.1518391690212; Sun, 11 Feb 2018 15:28:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518391690; cv=none; d=google.com; s=arc-20160816; b=H/aVRLU+CsxqinrDNh0WlGFNYYcOU/iLbuLZJp8fKnDlEoQO8pqcYtrme+tllbY4Qx HAyqZrSIPh2GtCJVNlVOr5LQJl8nseertBIjhTjNGMf9OuMOPwCFE4AnZj2T8sDwfvXz Tz3inbbxq8Y9c2vdkPeVAq/skJPGppKWC9C8NuuYxxjOr7RRpn85r7eRWAY7WqpzH1St Qyw+z4MJhwQFR2EzDnPQcySiZOzXmla9pVhECkBENsGH+wKJOHo/zN3lb8iXhukuswyM mMLGdWgwgRvwLv+GwPwILChBR5X5ZiNzARRyPE/G8nVnkjMtLa7xYUfK/Dor7EEJJuzt 8/lQ== 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:in-reply-to :mime-version:user-agent:date:message-id:organization:cc:references :to:subject:from:arc-authentication-results; bh=UPpWTiorzewORxuTvvWoe8+vLyXSVZ9KzX49uCAoroA=; b=zSJ+Up+ezoSWVsaUnTIPoTU5Ap1OOJ5xQGPIenMVGcVQ5jqExVcQReSW3vTKn59om8 nZrrNzxOO0YFzwemlEspXVTDfIC8k8Sf6zflVV/JwJC18qE/WW/FupiS1kbQwH7dSXUk FOjw49Gjpi1GXN6wGeQw6HHnWHtyhoXrFfFeW1IOe/SA/oQ6lMexQvXqo4HDsPcmu+0Z DtXfYZ0MmOrTJCEL5lk4+PwXQfNOZOQMuv8+tekwQJQMNA83hNsIc8844hwmXvn7YsIi VCf5yCVwPVoMH5lDITf7nD8Le/VvzNRpoBxHcMg5+uTv3euctTENxeBAjQlrsIkw017q 6EhQ== 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 a15si4425052pgw.241.2018.02.11.15.27.55; Sun, 11 Feb 2018 15:28:10 -0800 (PST) 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 S932268AbeBKX1H (ORCPT + 99 others); Sun, 11 Feb 2018 18:27:07 -0500 Received: from foss.arm.com ([217.140.101.70]:35098 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932249AbeBKX1F (ORCPT ); Sun, 11 Feb 2018 18:27:05 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 44D6C1529; Sun, 11 Feb 2018 15:27:05 -0800 (PST) Received: from [192.168.3.111] (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 578CB3F487; Sun, 11 Feb 2018 15:27:03 -0800 (PST) From: =?UTF-8?Q?Andr=c3=a9_Przywara?= Subject: Re: [linux-sunxi] [PATCH v2 5/6] arm64: allwinner: h6: add the basical Allwinner H6 DTSI file To: icenowy@aosc.io, Rob Herring , Maxime Ripard , Chen-Yu Tsai , Linus Walleij References: <20180203154942.63566-1-icenowy@aosc.io> <20180203154942.63566-6-icenowy@aosc.io> Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-sunxi@googlegroups.com Organization: ARM Ltd. Message-ID: Date: Sun, 11 Feb 2018 23:26:23 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20180203154942.63566-6-icenowy@aosc.io> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 03/02/18 15:49, Icenowy Zheng wrote: > Allwinner H6 is a new SoC with Cortex-A53 cores from Allwinner, with its > memory map fully reworked and some high-speed peripherals (PCIe, USB > 3.0) introduced. > > This commit adds the basical DTSI file of it, including the clock > support and UART support. Checked the MMIO addresses and the interrupt numbers against the manual. > Signed-off-by: Icenowy Zheng Reviewed-by: Andre Przywara Thanks! Andre. > --- > Changes in v2: > - Add APB1 clock as PIO's APB clock. > - Switched to SPDX license identifier. > > arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 178 +++++++++++++++++++++++++++ > 1 file changed, 178 insertions(+) > create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > new file mode 100644 > index 000000000000..d4697bb42496 > --- /dev/null > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > @@ -0,0 +1,178 @@ > +/* > + * Copyright (C) 2017 Icenowy Zheng > + * > + * SPDX-License-Identifier: (GPL-2.0+ or MIT) > + */ > + > +#include > +#include > +#include > + > +/ { > + interrupt-parent = <&gic>; > + #address-cells = <1>; > + #size-cells = <1>; > + > + cpus { > + #address-cells = <1>; > + #size-cells = <0>; > + > + cpu0: cpu@0 { > + compatible = "arm,cortex-a53", "arm,armv8"; > + device_type = "cpu"; > + reg = <0>; > + enable-method = "psci"; > + }; > + > + cpu1: cpu@1 { > + compatible = "arm,cortex-a53", "arm,armv8"; > + device_type = "cpu"; > + reg = <1>; > + enable-method = "psci"; > + }; > + > + cpu2: cpu@2 { > + compatible = "arm,cortex-a53", "arm,armv8"; > + device_type = "cpu"; > + reg = <2>; > + enable-method = "psci"; > + }; > + > + cpu3: cpu@3 { > + compatible = "arm,cortex-a53", "arm,armv8"; > + device_type = "cpu"; > + reg = <3>; > + enable-method = "psci"; > + }; > + }; > + > + iosc: internal-osc-clk { > + #clock-cells = <0>; > + compatible = "fixed-clock"; > + clock-frequency = <16000000>; > + clock-accuracy = <300000000>; > + clock-output-names = "iosc"; > + }; > + > + osc24M: osc24M_clk { > + #clock-cells = <0>; > + compatible = "fixed-clock"; > + clock-frequency = <24000000>; > + clock-output-names = "osc24M"; > + }; > + > + osc32k: osc32k_clk { > + #clock-cells = <0>; > + compatible = "fixed-clock"; > + clock-frequency = <32768>; > + clock-output-names = "osc32k"; > + }; > + > + psci { > + compatible = "arm,psci-0.2"; > + method = "smc"; > + }; > + > + timer { > + compatible = "arm,armv8-timer"; > + interrupts = + (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, > + + (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, > + + (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, > + + (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; > + }; > + > + soc { > + compatible = "simple-bus"; > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + > + ccu: clock@3001000 { > + compatible = "allwinner,sun50i-h6-ccu"; > + reg = <0x03001000 0x1000>; > + clocks = <&osc24M>, <&osc32k>; > + clock-names = "hosc", "losc"; > + #clock-cells = <1>; > + #reset-cells = <1>; > + }; > + > + gic: interrupt-controller@3021000 { > + compatible = "arm,gic-400"; > + reg = <0x03021000 0x1000>, > + <0x03022000 0x2000>, > + <0x03024000 0x2000>, > + <0x03026000 0x2000>; > + interrupts = ; > + interrupt-controller; > + #interrupt-cells = <3>; > + }; > + > + pio: pinctrl@300b000 { > + compatible = "allwinner,sun50i-h6-pinctrl"; > + reg = <0x0300b000 0x400>; > + interrupts = , > + , > + , > + ; > + clocks = <&ccu CLK_APB1>, <&osc24M>, <&osc32k>; > + clock-names = "apb", "hosc", "losc"; > + gpio-controller; > + #gpio-cells = <3>; > + interrupt-controller; > + #interrupt-cells = <3>; > + > + uart0_ph_pins: uart0-ph { > + pins = "PH0", "PH1"; > + function = "uart0"; > + }; > + }; > + > + uart0: serial@5000000 { > + compatible = "snps,dw-apb-uart"; > + reg = <0x05000000 0x400>; > + interrupts = ; > + reg-shift = <2>; > + reg-io-width = <4>; > + clocks = <&ccu CLK_BUS_UART0>; > + resets = <&ccu RST_BUS_UART0>; > + status = "disabled"; > + }; > + > + uart1: serial@5000400 { > + compatible = "snps,dw-apb-uart"; > + reg = <0x05000400 0x400>; > + interrupts = ; > + reg-shift = <2>; > + reg-io-width = <4>; > + clocks = <&ccu CLK_BUS_UART1>; > + resets = <&ccu RST_BUS_UART1>; > + status = "disabled"; > + }; > + > + uart2: serial@5000800 { > + compatible = "snps,dw-apb-uart"; > + reg = <0x05000800 0x400>; > + interrupts = ; > + reg-shift = <2>; > + reg-io-width = <4>; > + clocks = <&ccu CLK_BUS_UART2>; > + resets = <&ccu RST_BUS_UART2>; > + status = "disabled"; > + }; > + > + uart3: serial@5000c00 { > + compatible = "snps,dw-apb-uart"; > + reg = <0x05000c00 0x400>; > + interrupts = ; > + reg-shift = <2>; > + reg-io-width = <4>; > + clocks = <&ccu CLK_BUS_UART3>; > + resets = <&ccu RST_BUS_UART3>; > + status = "disabled"; > + }; > + }; > +}; >