From patchwork Fri Apr 22 15:41:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: icenowy@outlook.com X-Patchwork-Id: 12823685 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AF1C2C433F5 for ; Fri, 22 Apr 2022 15:46:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=GuK2lstFCbQ+yIjMsXegvcplaiBwNZ8ZxnsCkQXSYc0=; b=krZU2A0e0/lyJl cJmJvyZKqKZAqpfMV4oWx9gSuEeCQuKGxkTaCPK1s3smwkId+cKIudD5t++8fagqXKP9fuYAJ+t3I 9JZ2Arg+OcLtphD7+4ljgVGRFcqkkeM0VxsHSrAGW6yDP/jvCnnL8zpQL5pRNuUHyAJHZJyfk98/c sYhpa22OhNrBqc8W1jisswP6DpmQaSd0c4Roatn/0hQQ15GJfn26rbRCPK1SI/ajfNGJbIWJrWfQx qUXFsPVCZ8xFHMXmrlmSBscdXwsQKyFMwg2GuuiOXKpyY8gbbN4pwl7B2t8ZwQ2kwKXFA8Y5raPm1 udAbSs5vqa1eg0buQ9Fg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhvTP-001C7p-Qz; Fri, 22 Apr 2022 15:45:32 +0000 Received: from mail-dm6nam12olkn20803.outbound.protection.outlook.com ([2a01:111:f400:fe59::803] helo=NAM12-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhvQy-001B3n-Ak for linux-arm-kernel@lists.infradead.org; Fri, 22 Apr 2022 15:43:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cbgyaVazkYmMUFqN6uEtdextqshiu9sUvPXGvLArXq5J2hTNp63LkEKAdO4AB6J4o6jMlLSsKiEMIMmOW1wep8hfdOjaHoHsBPJLOme3uUTVsZe7RCorseiLcalmVGVskedAYrQo76O4nb1ETmljMBUhXF/M58nxaZE65Wh719R1qKj23QENAqlnwOdz4b6AlFnVAhQDXNwrsHjtjYmFgcJli0MeZoX3s8rcDswBJeVm0V6oL8bPQ4MNeKOR3gA6qUbt4WmRmEdnlEfSzEWyQWG7jUxO5NbDPhbqPZmZLKCU4eL2IRhlJxR3gbNHLeZRWWNZtO5C+53goeXfJ0ZbEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=BvJHw1ekFeQ/5or066Kmv/UA5wbK0ZQ6EoGiQ1Pdgc8=; b=dVGwWGO9ircRdMrHTGZ0T7bZa4iHluaBMGqL01fhN79ydfwlf15aIPc93TRXxT4O01p/55pzz1rqySGuJFvuLnS8ZQtANS1GXBI2tCvUcuu32Xc0/F9anJdJRhTsfx1m5QWkRuEZTprtt5UKD+UWIMBzOnylcPIZ+oz1S3G2Qm8gpP1NqJEHK8F8CA1HV6jcT6CV150Fvf+ysLnWJBrtH4K09Ury7PLDwGbhQC3fhUXZnEfi92WmUoZ1jwsLKVVwEsBItFLEuPCxH4a1GqUw1/yUuFWsQhFaxK2VJ3yTaLZtbRMBXfeDJaJp7p0Lsjel2+O/vHaLkBfSsG9iVKGrJw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BvJHw1ekFeQ/5or066Kmv/UA5wbK0ZQ6EoGiQ1Pdgc8=; b=XvoE/MsOC7rUNYr+2aox6Kw9gDSs+iCXecQwomDgP8d1CnaCMicR3VVTxLHBs49HNUps0d1aivYHv0m3bhvDJ3YbZYlphmKhQYe6PCjadR5dckL/9NM9BybL5j14xt0A9hD0iXNvMETmLwkgWq297hr1q2vOkmBeY9ieKA73Eoq9cqnoWgOYgsPz3HFi/jom4f8p98V/VaEVVRmUoVxTV91Xhu1XiMeKAJE2z8T5yOVuIyHa3NahZ1/GYLM7kxPMPTqFCGFcrUquU2TL9nHCUL5r8h2HxxMN2qHFsmFDBvgxLGF9FVnAxSY0NFerBKaCyVETCeUmpLZEIgLchdrEOw== Received: from BYAPR20MB2472.namprd20.prod.outlook.com (2603:10b6:a03:155::16) by DM5PR2001MB1836.namprd20.prod.outlook.com (2603:10b6:4:17::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.15; Fri, 22 Apr 2022 15:42:57 +0000 Received: from BYAPR20MB2472.namprd20.prod.outlook.com ([fe80::3480:160a:eb92:d6e3]) by BYAPR20MB2472.namprd20.prod.outlook.com ([fe80::3480:160a:eb92:d6e3%6]) with mapi id 15.20.5186.015; Fri, 22 Apr 2022 15:42:57 +0000 From: icenowy@outlook.com To: Rob Herring , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Ulf Hansson , Linus Walleij , Andre Przywara Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Icenowy Zheng Subject: [PATCH 10/12] arm64: allwinner: dts: add DTSI file for R329 SoC Date: Fri, 22 Apr 2022 23:41:13 +0800 Message-ID: X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220422140902.1058101-1-icenowy@aosc.io> References: <20220422140902.1058101-1-icenowy@aosc.io> X-TMN: [rjxwSqcypWDq2tJfHZzDxqAz4veJeXTo] X-ClientProxiedBy: HK0PR03CA0116.apcprd03.prod.outlook.com (2603:1096:203:b0::32) To BYAPR20MB2472.namprd20.prod.outlook.com (2603:10b6:a03:155::16) X-Microsoft-Original-Message-ID: <20220422154115.1068642-8-icenowy@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 084024c5-ed35-4091-3685-08da2476c611 X-MS-TrafficTypeDiagnostic: DM5PR2001MB1836:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kEKG/ir5JA4ISrkOT2cV5hT2YtoKA3LiA6ew66kNpmrgYjYeH6IMtTk9IoZjYdKTrWK8Qj6f6k/2mK4qDKF/yD1D11XAzgUmpsWY6Pq+mR4f7DeCZ0HaPZg2FrLJYNfkJEoG0x+ssfCUUXoSvi2002H3ZChD8YEuq/PLJWmkOBDRZGrTnFn84PyIVnQict8MQ/pamDQkU5IO0R2HfJxka8SkNhjCgqz36FyqDqPAIRGvZ/K9Gd3LNO67dIGLrKk/N58wOn47YC4eBXrXxubf5vbM5ciKdcFSf0nfqHSGWma6pd9ZmI8aoXTDBq5HYP6+lHzXswV31pbQZSU2yKusjmEp51Dq4Ht0BLaWq2jWn9QJMYW4xYqFrcH3c9/viOCHVDAXuy6usQOwa2FEKkXcHB8jVaewyphxge4dqUchp8oAosIGq52YoYq5eMp0H+yCe3H9ML2i95oe2919FGtmR8I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14ICEnc9YlW1COaU0L7/RJ2WzrYtCq9lBShUPL2KCDIycQq0pycc5/wSYhZX4hQDQ8OryDIoQhx5PmnfIwRbtHKH0dAkj6e/JrKRgK6OLUeIR8yn1E3ZL38el/8DXpxQh/f5m/mZPAjL3YcgS9P1GNvdW2dhtZ3sL+PUs0iuKlaIhU1JnEt3i4J7bzpNig18YcYbCMW8h4JDWpwQL/OEXdtGRdSzQnMPz3Wwqnt13maGm69aEkhi7h9yu3Wo+S/wx0mIwV774wte7/pAUPnkNI2bBJ1qSFQn9diwei9Px2m50jnrzZvtu8zBeguZrbsrTgMmOraKRvrSmOsj0b3kiKBuZK6NhWjg6/VDJZxE21WGenCj3sCfqePmcl2Qr/q+XHL8ThjCUjdctrtLmnO0Ti9UqkITihSHBFTFITvBW9zEL9yIVHQK6pHP88OB1xu4qRWeZsNHy7XIfuelUFeygVtY63g3H3p1sdbvSXGsoCZv0dwkfudUAmc1GNLzaeReauuMsXgIqZJBKqRRDAYxRupk4tFgewoQpBVDxBKOpKTLr1Y= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 084024c5-ed35-4091-3685-08da2476c611 X-MS-Exchange-CrossTenant-AuthSource: BYAPR20MB2472.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2022 15:42:57.6760 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2001MB1836 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220422_084300_521222_484A331B X-CRM114-Status: GOOD ( 12.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Icenowy Zheng Allwinner R329 is a new SoC focused on smart audio devices. Add a DTSI file for it. Signed-off-by: Icenowy Zheng --- .../arm64/boot/dts/allwinner/sun50i-r329.dtsi | 275 ++++++++++++++++++ 1 file changed, 275 insertions(+) create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-r329.dtsi diff --git a/arch/arm64/boot/dts/allwinner/sun50i-r329.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-r329.dtsi new file mode 100644 index 000000000000..249ed9ff0c5c --- /dev/null +++ b/arch/arm64/boot/dts/allwinner/sun50i-r329.dtsi @@ -0,0 +1,275 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +// Copyright (c) 2021 Sipeed + +#include +#include +#include +#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"; + device_type = "cpu"; + reg = <0>; + enable-method = "psci"; + }; + + cpu1: cpu@1 { + compatible = "arm,cortex-a53"; + device_type = "cpu"; + reg = <1>; + enable-method = "psci"; + }; + }; + + osc24M: osc24M_clk { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <24000000>; + clock-output-names = "osc24M"; + }; + + psci { + compatible = "arm,psci-0.2"; + method = "smc"; + }; + + timer { + compatible = "arm,armv8-timer"; + arm,no-tick-in-suspend; + interrupts = , + , + , + ; + }; + + soc { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + watchdog: watchdog@20000a0 { + compatible = "allwinner,sun50i-r329-wdt-reset", + "allwinner,sun50i-r329-wdt", + "allwinner,sun6i-a31-wdt"; + reg = <0x020000a0 0x20>; + interrupts = ; + clocks = <&osc24M>; + }; + + pio: pinctrl@2000400 { + compatible = "allwinner,sun50i-r329-pinctrl"; + reg = <0x02000400 0x400>; + interrupts = , + , + , + ; + clocks = <&ccu CLK_APB1>, <&osc24M>, <&rtc CLK_OSC32K>; + clock-names = "apb", "hosc", "losc"; + gpio-controller; + #gpio-cells = <3>; + interrupt-controller; + #interrupt-cells = <3>; + + uart0_pb_pins: uart0-pb-pins { + pins = "PB4", "PB5"; + function = "uart0"; + }; + + mmc0_pf_pins: mmc0-pf-pins { + pins = "PF0", "PF1", "PF2", + "PF3", "PF4", "PF5"; + function = "mmc0"; + }; + + mmc1_clk_pg0: mmc1-clk-pg0 { + pins = "PG0"; + function = "mmc1_clk"; + }; + + mmc1_cmd_pg1: mmc1-clk-pg1 { + pins = "PG1"; + function = "mmc1_cmd"; + }; + + mmc1_d0_pg2: mmc1-clk-pg2 { + pins = "PG2"; + function = "mmc1_d0"; + }; + + mmc1_d1_pg3: mmc1-clk-pg3 { + pins = "PG3"; + function = "mmc1_d1"; + }; + + mmc1_d2_pg4: mmc1-clk-pg4 { + pins = "PG4"; + function = "mmc1_d2"; + }; + + mmc1_d3_pg5: mmc1-clk-pg5 { + pins = "PG5"; + function = "mmc1_d3"; + }; + }; + + ccu: clock@2001000 { + compatible = "allwinner,sun50i-r329-ccu"; + reg = <0x02001000 0x1000>; + clocks = <&osc24M>, <&rtc CLK_OSC32K>, <&rtc CLK_IOSC>, + <&r_ccu CLK_PLL_CPUX>, + <&r_ccu CLK_PLL_PERIPH>, + <&r_ccu CLK_PLL_PERIPH_2X>, + <&r_ccu CLK_PLL_PERIPH_800M>, + <&r_ccu CLK_PLL_AUDIO0>, + <&r_ccu CLK_PLL_AUDIO0_DIV2>, + <&r_ccu CLK_PLL_AUDIO0_DIV5>, + <&r_ccu CLK_PLL_AUDIO1>, + <&r_ccu CLK_PLL_AUDIO1_2X>, + <&r_ccu CLK_PLL_AUDIO1_4X>; + clock-names = "hosc", "losc", "iosc", + "pll-cpux", + "pll-periph", + "pll-periph-2x", + "pll-periph-800m", + "pll-audio0", + "pll-audio0-div2", + "pll-audio0-div5", + "pll-audio1", + "pll-audio1-2x", + "pll-audio1-4x"; + #clock-cells = <1>; + #reset-cells = <1>; + }; + + uart0: serial@2500000 { + compatible = "snps,dw-apb-uart"; + reg = <0x02500000 0x400>; + interrupts = ; + reg-shift = <2>; + reg-io-width = <4>; + clocks = <&ccu CLK_BUS_UART0>; + resets = <&ccu RST_BUS_UART0>; + status = "disabled"; + }; + + uart1: serial@2500400 { + compatible = "snps,dw-apb-uart"; + reg = <0x02500400 0x400>; + interrupts = ; + reg-shift = <2>; + reg-io-width = <4>; + clocks = <&ccu CLK_BUS_UART1>; + resets = <&ccu RST_BUS_UART1>; + status = "disabled"; + }; + + uart2: serial@2500800 { + compatible = "snps,dw-apb-uart"; + reg = <0x02500800 0x400>; + interrupts = ; + reg-shift = <2>; + reg-io-width = <4>; + clocks = <&ccu CLK_BUS_UART2>; + resets = <&ccu RST_BUS_UART2>; + status = "disabled"; + }; + + uart3: serial@2500c00 { + compatible = "snps,dw-apb-uart"; + reg = <0x02500c00 0x400>; + interrupts = ; + reg-shift = <2>; + reg-io-width = <4>; + clocks = <&ccu CLK_BUS_UART3>; + resets = <&ccu RST_BUS_UART3>; + status = "disabled"; + }; + + gic: interrupt-controller@3021000 { + compatible = "arm,gic-400"; + reg = <0x03021000 0x1000>, + <0x03022000 0x2000>, + <0x03024000 0x2000>, + <0x03026000 0x2000>; + interrupts = ; + interrupt-controller; + #interrupt-cells = <3>; + }; + + mmc0: mmc@4020000 { + compatible = "allwinner,sun50i-r329-mmc"; + reg = <0x04020000 0x1000>; + clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>; + clock-names = "ahb", "mmc"; + resets = <&ccu RST_BUS_MMC0>; + reset-names = "ahb"; + interrupts = ; + max-frequency = <150000000>; + status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; + }; + + mmc1: mmc@4021000 { + compatible = "allwinner,sun50i-r329-mmc"; + reg = <0x04021000 0x1000>; + clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>; + clock-names = "ahb", "mmc"; + resets = <&ccu RST_BUS_MMC1>; + reset-names = "ahb"; + interrupts = ; + max-frequency = <150000000>; + status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; + }; + + r_ccu: clock@7010000 { + compatible = "allwinner,sun50i-r329-r-ccu"; + reg = <0x07010000 0x10000>; + clocks = <&osc24M>, <&rtc CLK_OSC32K>, <&rtc CLK_IOSC>; + clock-names = "hosc", "losc", "iosc"; + #clock-cells = <1>; + #reset-cells = <1>; + }; + + r_pio: pinctrl@7022000 { + compatible = "allwinner,sun50i-r329-r-pinctrl"; + reg = <0x07022000 0x400>; + interrupts = , + , + ; + clocks = <&r_ccu CLK_R_APB1>, <&osc24M>, <&rtc CLK_OSC32K>; + clock-names = "apb", "hosc", "losc"; + gpio-controller; + #gpio-cells = <3>; + interrupt-controller; + #interrupt-cells = <3>; + }; + + rtc: rtc@7090000 { + compatible = "allwinner,sun50i-r329-rtc"; + reg = <0x07090000 0x400>; + interrupts = ; + clocks = <&r_ccu CLK_R_BUS_RTC>, <&osc24M>, <&r_ccu CLK_R_AHB>; + clock-names = "bus", "hosc", "ahb"; + #clock-cells = <1>; + }; + }; +};