Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3995990pxu; Mon, 30 Nov 2020 15:13:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJwcGWs+gfTd9V4V4sJHlZvgXfB7htCHRljL5F7RrIsvEPU/6eDSLDANnAUNkF/b9tTJLDB7 X-Received: by 2002:a50:9e29:: with SMTP id z38mr70616ede.220.1606777991369; Mon, 30 Nov 2020 15:13:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606777991; cv=none; d=google.com; s=arc-20160816; b=C2M2JoqolIrpnETpZP+ZbeZ+/SNv/tNTdpJEvx27aoRRVwhvhJh4Kd6BMtDrx/sAYI RrcT8ERw671CjGd0H+0UsEAWbWarmoB1Tyej+JZxLSYwFGYSRIMRLRvlljVPZ2IFTw0o PdeglW7HPsGWkEx1S/tRhW6o7qp9xo5V6t0x6F5B1VkzmWtfQdTjSI2SJdPPi7i6ax/v AFrIvtqKDxRAaolgju2uExwiqh3EqxhxnHayZCmsBSIgZtYDrZG1+zhDsDd224mBFefj Mrg0NMjneHpZgyXy7bZEeV2x5fUAGE7IO4oJSTTLTbyobDA0lhcY4rGHNsftI6y6SjHQ jfsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=j1o8Z1G2dtitXOlimluovlxKc4vbfO3wabNM431FbrM=; b=OANu/KAhT7bDd+3x0ta9604Y1KjkvjjzrU4awGL3QfyRLFjw4J8tKYm8dSQ2E/z3g4 ZS9ZWHmBfsryIUGXjER9mVKrMUnSwWajV6xl2Bu3Ojfil6Zxq15ZjTZxqnVcrimqU+QY P/D6WIzqC7lULaRbQYMJcfmG+QJQRLzXp5IV6O8UXsODjiyb89W3+oFRTVIst/wTthEw 0ajvR4nycphl/4RZ6+96vfFFuJxKpgRE9ouFclf38D6Xr+4bN1mVT98P03bjBpHrJ2qa XtvlTZRPZTg97aFu4yGxpHkxWEcNeGj92/5KBNhGi5dQ6AuO3ufjUR2Gb2fAslEQFWPH fdJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=wLXCzGza; 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=NONE dis=NONE) header.from=alliedtelesis.co.nz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h8si9562783edl.562.2020.11.30.15.12.48; Mon, 30 Nov 2020 15:13:11 -0800 (PST) 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=@alliedtelesis.co.nz header.s=mail181024 header.b=wLXCzGza; 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=NONE dis=NONE) header.from=alliedtelesis.co.nz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730843AbgK3Wfz (ORCPT + 99 others); Mon, 30 Nov 2020 17:35:55 -0500 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]:40607 "EHLO gate2.alliedtelesis.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730753AbgK3Wfy (ORCPT ); Mon, 30 Nov 2020 17:35:54 -0500 Received: from mmarshal3.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 670C9806A8; Tue, 1 Dec 2020 11:35:11 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1606775711; bh=j1o8Z1G2dtitXOlimluovlxKc4vbfO3wabNM431FbrM=; h=From:To:Cc:Subject:Date; b=wLXCzGzaVF+m+7uOhnKjEUuCAJSY8f7EPU/Rdic74LgnxVcodBaWDPTE6bVU2cslh zW6GvmD4GTwHw4UEHgbYYW25piBtB8BAmAwIa+fhlSZlXH42r7843eNi0RtA1Y+rWS bqNEGoSarWEkpXlTI4ozs3mlcuzf4X630i3DwBgJcAreGUF+35CWonLXBkp8Br+XYV gSjFPlX5RrXv8txTTEZudYwLktjbIyY3+QWqWi4ZhrJRuwEO1ExwCyif1kBkgKEncU rcbdX5qdNTLJ4Yfz9vhSu6D9yDikUtaZ5qCW/PPNNzU0UbCG556dqDTvKMbAN/JFWe jyj90r7pV2Z4g== Received: from smtp (Not Verified[10.32.16.33]) by mmarshal3.atlnz.lc with Trustwave SEG (v7,5,8,10121) id ; Tue, 01 Dec 2020 11:35:10 +1300 Received: from aryans-dl.ws.atlnz.lc (aryans-dl.ws.atlnz.lc [10.33.21.30]) by smtp (Postfix) with ESMTP id E6A5213EEBB; Tue, 1 Dec 2020 11:35:09 +1300 (NZDT) Received: by aryans-dl.ws.atlnz.lc (Postfix, from userid 1844) id 1B41014C2F7F; Tue, 1 Dec 2020 11:35:11 +1300 (NZDT) From: Aryan Srivastava To: robh+dt@kernel.org, andrew@lunn.ch, gregory.clement@bootlin.com, sebastian.hesselbarth@gmail.com Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, chris.packham@alliedtelesis.co.nz, Aryan Srivastava Subject: [PATCH v2] ARM: dts: mvebu: Add device tree for ATL-x530 Board Date: Tue, 1 Dec 2020 11:35:07 +1300 Message-Id: <20201130223507.23571-1-aryan.srivastava@alliedtelesis.co.nz> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable x-atlnz-ls: pat Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add device tree file for x530 board. This has an Armada 385 SoC. Has NAND-flash for user storage and SPI for booting. Covers majority of x530 and GS980MX variants. Signed-off-by: Aryan Srivastava Reviewed-by: Chris Packham --- Notes: Changes in v2: -Adding to Makefile arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/armada-385-atl-x530.dts | 235 ++++++++++++++++++++++ 2 files changed, 236 insertions(+) create mode 100644 arch/arm/boot/dts/armada-385-atl-x530.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index a60407ad7347..d65d84e9bf9c 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1320,6 +1320,7 @@ dtb-$(CONFIG_MACH_ARMADA_375) +=3D \ armada-375-db.dtb dtb-$(CONFIG_MACH_ARMADA_38X) +=3D \ armada-382-rd-ac3x-48g4x2xl.dtb \ + armada-385-atl-x530.dtb\ armada-385-clearfog-gtr-s4.dtb \ armada-385-clearfog-gtr-l8.dtb \ armada-385-db-88f6820-amc.dtb \ diff --git a/arch/arm/boot/dts/armada-385-atl-x530.dts b/arch/arm/boot/dt= s/armada-385-atl-x530.dts new file mode 100644 index 000000000000..2041bf09c578 --- /dev/null +++ b/arch/arm/boot/dts/armada-385-atl-x530.dts @@ -0,0 +1,235 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Device Tree file for Armada 385 Allied Telesis x530/GS980MX Board. + (x530/AT-GS980MX) + * + Copyright (C) 2020 Allied Telesis Labs + */ + +/dts-v1/; +#include "armada-385.dtsi" + +#include + +/ { + model =3D "x530/AT-GS980MX"; + compatible =3D "alliedtelesis,gs980mx", "alliedtelesis,x530", "marvell,= armada385", "marvell,armada380"; + + chosen { + stdout-path =3D "serial1:115200n8"; + }; + + memory { + device_type =3D "memory"; + reg =3D <0x00000000 0x40000000>; /* 1GB */ + }; + + soc { + ranges =3D ; + + internal-regs { + i2c0: i2c@11000 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&i2c0_pins>; + status =3D "okay"; + }; + + uart0: serial@12000 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&uart0_pins>; + status =3D "okay"; + }; + }; + }; +}; + +&pciec { + status =3D "okay"; +}; + +&pcie1 { + status =3D "okay"; + reset-gpios =3D <&gpio1 23 GPIO_ACTIVE_LOW>; + reset-delay-us =3D <400000>; +}; + +&pcie2 { + status =3D "okay"; +}; + +&devbus_cs1 { + compatible =3D "marvell,mvebu-devbus"; + status =3D "okay"; + + devbus,bus-width =3D <8>; + devbus,turn-off-ps =3D <60000>; + devbus,badr-skew-ps =3D <0>; + devbus,acc-first-ps =3D <124000>; + devbus,acc-next-ps =3D <248000>; + devbus,rd-setup-ps =3D <0>; + devbus,rd-hold-ps =3D <0>; + + /* Write parameters */ + devbus,sync-enable =3D <0>; + devbus,wr-high-ps =3D <60000>; + devbus,wr-low-ps =3D <60000>; + devbus,ale-wr-ps =3D <60000>; + + nvs@0 { + status =3D "okay"; + + compatible =3D "mtd-ram"; + reg =3D <0 0x00080000>; + bank-width =3D <1>; + label =3D "nvs"; + }; +}; + +&pinctrl { + i2c0_gpio_pins: i2c-gpio-pins-0 { + marvell,pins =3D "mpp2", "mpp3"; + marvell,function =3D "gpio"; + }; +}; + +&i2c0 { + clock-frequency =3D <100000>; + status =3D "okay"; + + pinctrl-names =3D "default", "gpio"; + pinctrl-0 =3D <&i2c0_pins>; + pinctrl-1 =3D <&i2c0_gpio_pins>; + scl-gpio =3D <&gpio0 2 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; + sda-gpio =3D <&gpio0 3 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; + + i2c0mux: mux@71 { + #address-cells =3D <1>; + #size-cells =3D <0>; + compatible =3D "nxp,pca9544"; + reg =3D <0x71>; + i2c-mux-idle-disconnect; + + i2c@0 { /* POE devices MUX */ + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <0>; + }; + + i2c@1 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <1>; + + adt7476_2e: hwmon@2e { + compatible =3D "adi,adt7476"; + reg =3D <0x2e>; + }; + + adt7476_2d: hwmon@2d { + compatible =3D "adi,adt7476"; + reg =3D <0x2d>; + }; + }; + + i2c@2 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <2>; + + rtc@68 { + compatible =3D "dallas,ds1340"; + reg =3D <0x68>; + }; + }; + + i2c@3 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <3>; + + gpio@20 { + compatible =3D "nxp,pca9554"; + gpio-controller; + #gpio-cells =3D <2>; + reg =3D <0x20>; + }; + }; + }; +}; + +&usb0 { + status =3D "okay"; +}; + +&spi1 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&spi1_pins>; + status =3D "okay"; + + spi-flash@0 { + #address-cells =3D <1>; + #size-cells =3D <1>; + compatible =3D "jedec,spi-nor"; + reg =3D <1>; /* Chip select 1 */ + spi-max-frequency =3D <54000000>; + + partitions { + compatible =3D "fixed-partitions"; + #address-cells =3D <1>; + #size-cells =3D <1>; + partition@u-boot { + reg =3D <0x00000000 0x00100000>; + label =3D "u-boot"; + }; + partition@u-boot-env { + reg =3D <0x00100000 0x00040000>; + label =3D "u-boot-env"; + }; + partition@unused { + reg =3D <0x00140000 0x00e80000>; + label =3D "unused"; + }; + partition@idprom { + reg =3D <0x00fc0000 0x00040000>; + label =3D "idprom"; + }; + }; + }; +}; + +&nand_controller { + status =3D "okay"; + + nand@0 { + reg =3D <0>; + label =3D "pxa3xx_nand-0"; + nand-rb =3D <0>; + nand-on-flash-bbt; + nand-ecc-strength =3D <4>; + nand-ecc-step-size =3D <512>; + + marvell,nand-enable-arbiter; + + partitions { + compatible =3D "fixed-partitions"; + #address-cells =3D <1>; + #size-cells =3D <1>; + partition@user { + reg =3D <0x00000000 0x0f000000>; + label =3D "user"; + }; + partition@errlog { + /* Maximum mtdoops size is 8MB, so set to that. */ + reg =3D <0x0f000000 0x00800000>; + label =3D "errlog"; + }; + partition@nand-bbt { + reg =3D <0x0f800000 0x00800000>; + label =3D "nand-bbt"; + }; + }; + }; +}; + --=20 2.29.2