From nobody Sun Feb 8 04:05:34 2026 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 503131B5B1; Tue, 13 Feb 2024 08:56:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707814603; cv=none; b=YTw6E7v1URcAJ2FmRHDlApBJpBUVs2A6Qqn8WK0y7T+VqsI6qbOGI0jb30EnSScSPSUKbD3eY3SYfF5pIN++ULdiLPQ0JBm7rhPeXQCOHLgCOW4OlQsJokGxAg1xXRMQAOUET1iW52y6KRxREkCglt789NhJYiCkEgb16yr1Rkw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707814603; c=relaxed/simple; bh=Z9T600NECZrWahsm619Mm8SqCKLiaWqAJuUPPk3JSEE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=R8klCttTLPGbyYRRvUFc4LfWbpNBLedcgGYMyUmiKZBoVDff88Q2jCoY9cAQ0EQXx+sRCKNcH5Pv4bUU0uRiGW+KJcodYCkhVeNqLwz3kp5cVubLndAp5GfI5WKfBU2pTkQdZjJW4ZhJQMeyKc+Qq+HMLr8GjuiCaJek+CuSyD0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=QqHCEJC5; arc=none smtp.client-ip=68.232.154.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="QqHCEJC5" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1707814601; x=1739350601; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Z9T600NECZrWahsm619Mm8SqCKLiaWqAJuUPPk3JSEE=; b=QqHCEJC5NbZUiaTgTord1c2c5mhj2ea2szFOCJiqrlfdiDZ5a1UiuQ1v Ec1HWKhQpFnnSEcSUHlE9XVnbTHZXqTkR8nM9B6So9VnaDz3BE5Qh02JX XmYFJDEU+quY6nx32QIjji1TruGnAohiMuJfBHwOpZbDEC0yK4+AmxDIa t3FIo4S3PmgIB58/8em7XFrCmkfscd/HaQwYbs4IvdweoKfbVSLUYxzwI BV5Pkf17E4l6UZpEzWNtZ1SHQxH0MtqLIAiYEwqTyNBTekBGJfNNsDiMg YKYXTViDct/oP3lJp6q4HSBZRhrx42zYVZhE1tFQltWaHskiQPKMylrcl w==; X-CSE-ConnectionGUID: Tcx08rzESzahUneDj9mfvQ== X-CSE-MsgGUID: h6M8831uRp6QpmqYoV/afw== X-IronPort-AV: E=Sophos;i="6.06,156,1705388400"; d="scan'208";a="183422417" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 13 Feb 2024 01:56:38 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 13 Feb 2024 01:56:26 -0700 Received: from virtualbox.microchip.com (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Tue, 13 Feb 2024 01:56:23 -0700 From: Mihai Sain To: , , , , , , , , , CC: , Mihai Sain Subject: [PATCH 1/3] dt-bindings: ARM: at91: Document Microchip SAMA7G54 Curiosity Date: Tue, 13 Feb 2024 10:56:12 +0200 Message-ID: <20240213085614.26804-2-mihai.sain@microchip.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240213085614.26804-1-mihai.sain@microchip.com> References: <20240213085614.26804-1-mihai.sain@microchip.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Document device tree binding of the Microchip SAMA7G54 Curiosity board. Signed-off-by: Mihai Sain Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/atmel-at91.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/atmel-at91.yaml b/Docume= ntation/devicetree/bindings/arm/atmel-at91.yaml index 89d75fbb1de4..82f37328cc69 100644 --- a/Documentation/devicetree/bindings/arm/atmel-at91.yaml +++ b/Documentation/devicetree/bindings/arm/atmel-at91.yaml @@ -179,6 +179,12 @@ properties: - const: microchip,sama7g5 - const: microchip,sama7 =20 + - description: Microchip SAMA7G54 Curiosity Board + items: + - const: microchip,sama7g54-curiosity + - const: microchip,sama7g5 + - const: microchip,sama7 + - description: Microchip LAN9662 Evaluation Boards. items: - enum: --=20 2.43.0 From nobody Sun Feb 8 04:05:34 2026 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E5DC01B971; Tue, 13 Feb 2024 08:56:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707814603; cv=none; b=VWvptVJWCI2OZ9bk65ODJgXM7xbdDUo3Ot3dPzACfD0CLasIn9PZCGTWDKN3eNDh+hxMsmA3fdJ0hQZozbhvPGKczZuIIOf2PLzprUx17NveCBRJfhlmRZh5+PErxXnbiUhYiS/DkCsd6/RyLFonUO+N8IEgvVl3RScslGINu1A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707814603; c=relaxed/simple; bh=lSx1r2xryKETv5g33mx8+S9nIQylyh29ftD7vemFgG8=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kg4AMHkeW/8NsOhmk+eHVYguKgsw0NH2pz1TZb55nQ+ovMMAzjBTJgxWkdKvCcDv0lMgohFPfWiyEvgg7OOlgIt8efuWHX8t+/dTXGHae1UyFjD/muPbuR4qySg+lcYhYrDLj84755s/mzawWzpGXwcV4mJr4zseUbpSrDZ6oxc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=Ks4+mMwp; arc=none smtp.client-ip=68.232.154.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="Ks4+mMwp" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1707814601; x=1739350601; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=lSx1r2xryKETv5g33mx8+S9nIQylyh29ftD7vemFgG8=; b=Ks4+mMwpGDp/8Oyj+eqSZ30DJvI6ODFCyPjYq+J4ombeuV46H2ngJUGV lhue7wBZdNatqxzxCAn9tb/a3YuXsdbYx4TYbj5lCq6wtyeR7QJ/ePqLH usl4ZG78ebTrT/lj3Q2loMQ9mUioV+Nx+wbIBEA9v6mZvU63BzQvkfHE7 efJtcTvBm9T3F1yUiMyx7ez9YG2mT7PjMrYaUDGwTRoTBghip5swPnraa WFYaKt6NuaXAIB27SVrDB5cMH77dJXy/G4hLPwZrZZn2fz9xi5MkExuZA XLl8VChJua3xAJLr0tD1HhIyeNjgzoSA7mSjlvEe6z6PdG4rZ+QgXmRtY Q==; X-CSE-ConnectionGUID: Tcx08rzESzahUneDj9mfvQ== X-CSE-MsgGUID: mFDW6cKMRoCDNRuyOhGWbw== X-IronPort-AV: E=Sophos;i="6.06,156,1705388400"; d="scan'208";a="183422419" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 13 Feb 2024 01:56:38 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 13 Feb 2024 01:56:29 -0700 Received: from virtualbox.microchip.com (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Tue, 13 Feb 2024 01:56:26 -0700 From: Mihai Sain To: , , , , , , , , , CC: , Mihai Sain Subject: [PATCH 2/3] ARM: dts: microchip: sama7g5: Add flexcom 10 node Date: Tue, 13 Feb 2024 10:56:13 +0200 Message-ID: <20240213085614.26804-3-mihai.sain@microchip.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240213085614.26804-1-mihai.sain@microchip.com> References: <20240213085614.26804-1-mihai.sain@microchip.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add flexcom 10 node for usage on the SAMA7G54 Curiosity board. Signed-off-by: Mihai Sain --- arch/arm/boot/dts/microchip/sama7g5.dtsi | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/microchip/sama7g5.dtsi b/arch/arm/boot/dts/m= icrochip/sama7g5.dtsi index 269e0a3ca269..c90e404e8ed9 100644 --- a/arch/arm/boot/dts/microchip/sama7g5.dtsi +++ b/arch/arm/boot/dts/microchip/sama7g5.dtsi @@ -958,6 +958,32 @@ i2c9: i2c@600 { }; }; =20 + flx10: flexcom@e2820000 { + compatible =3D "atmel,sama5d2-flexcom"; + reg =3D <0xe2820000 0x200>; + clocks =3D <&pmc PMC_TYPE_PERIPHERAL 48>; + #address-cells =3D <1>; + #size-cells =3D <1>; + ranges =3D <0x0 0xe2820000 0x800>; + status =3D "disabled"; + + i2c10: i2c@600 { + compatible =3D "microchip,sama7g5-i2c", "microchip,sam9x60-i2c"; + reg =3D <0x600 0x200>; + interrupts =3D ; + #address-cells =3D <1>; + #size-cells =3D <0>; + clocks =3D <&pmc PMC_TYPE_PERIPHERAL 48>; + atmel,fifo-size =3D <32>; + dmas =3D <&dma0 AT91_XDMAC_DT_PERID(25)>, + <&dma0 AT91_XDMAC_DT_PERID(26)>; + dma-names =3D "rx", "tx"; + atmel,use-dma-rx; + atmel,use-dma-tx; + status =3D "disabled"; + }; + }; + flx11: flexcom@e2824000 { compatible =3D "atmel,sama5d2-flexcom"; reg =3D <0xe2824000 0x200>; --=20 2.43.0 From nobody Sun Feb 8 04:05:34 2026 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0B28922612; Tue, 13 Feb 2024 08:56:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707814615; cv=none; b=TN4aufqZD3eD8d551pY9TzCPg0edg1g9tGc95rzfJmg3ZmGBft18pHsJxJM3NDbpMOXy8U3stXI8r16r0V5G5pIj8GrwjDC6QjBDzwk0mNKFXb5CB+x/Yrd+6sFj8Luen278NM/MDLPXyqVwdTPsFrLn/IAnBU6BzyCsShkBGxQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707814615; c=relaxed/simple; bh=oDcvrCCwhax19c5KaNa0Tp9md63gB7hsziYVUwLp7xE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=k4TfGdHNHcl7mxuzLbv7WEqueseWl0F0ehPjmaCG1xHdWmiJOhUamiPt7OBN1SVe3i4hY8sEy5f7j5VAyahggE1H6doJRzhIpZYiSmnkhMH7d95TCHrwqcYz7pASZ3OSDks2fT8H44FxS27qF366ArcqTME8o2XaOa1yamwWWjU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=rH/4V7aM; arc=none smtp.client-ip=68.232.154.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="rH/4V7aM" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1707814614; x=1739350614; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=oDcvrCCwhax19c5KaNa0Tp9md63gB7hsziYVUwLp7xE=; b=rH/4V7aM94GOZ9zcOn/PEN5ZKuFLNMqe+gvHN00Ly/AhrtcpDZMi7ZMw ptf/Weqh7IPMIvfmsEUp5T9xCyIosgv+L0Z/xAiUchs0IytcacOnJ+/Sm bWMy54Rk64GCtnPOpYGzDsTC8zDnkEHAmIHbCOrLclW4lWjmpGu3zkyRB VclsrjEGWxBqL3tImLV9OOySCnQrQTvogXVbLB0qYSwzu1d8z2jKilPB0 IVolB34CjrtK5W6xLjPzYtSy0ZSJLzY9uMIX0dmkL8rIOIoPG1eWHa4G1 hJhOp/d8Ze3t8gvvvROvjgmuBIV2+41a9PLUV/N2rJsZVtJ19lRnk1uBE Q==; X-CSE-ConnectionGUID: 2bHk2q8gRPqNVMaiPKa/zQ== X-CSE-MsgGUID: eb4zLnSDQgypFu8OYqc+Nw== X-IronPort-AV: E=Sophos;i="6.06,156,1705388400"; d="scan'208";a="183422430" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 13 Feb 2024 01:56:52 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 13 Feb 2024 01:56:32 -0700 Received: from virtualbox.microchip.com (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Tue, 13 Feb 2024 01:56:29 -0700 From: Mihai Sain To: , , , , , , , , , CC: , Mihai Sain Subject: [PATCH 3/3] ARM: dts: microchip: sama7g54_curiosity: Add initial device tree of the board Date: Tue, 13 Feb 2024 10:56:14 +0200 Message-ID: <20240213085614.26804-4-mihai.sain@microchip.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240213085614.26804-1-mihai.sain@microchip.com> References: <20240213085614.26804-1-mihai.sain@microchip.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add initial device tree of the SAMA7G54 Curiosity board. Signed-off-by: Mihai Sain --- arch/arm/boot/dts/microchip/Makefile | 4 +- .../dts/microchip/at91-sama7g54_curiosity.dts | 491 ++++++++++++++++++ 2 files changed, 494 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/microchip/at91-sama7g54_curiosity.dts diff --git a/arch/arm/boot/dts/microchip/Makefile b/arch/arm/boot/dts/micro= chip/Makefile index efde9546c8f4..29b2a788748f 100644 --- a/arch/arm/boot/dts/microchip/Makefile +++ b/arch/arm/boot/dts/microchip/Makefile @@ -12,6 +12,7 @@ DTC_FLAGS_at91-sama5d3_eds :=3D -@ DTC_FLAGS_at91-sama5d3_xplained :=3D -@ DTC_FLAGS_at91-sama5d4_xplained :=3D -@ DTC_FLAGS_at91-sama7g5ek :=3D -@ +DTC_FLAGS_at91-sama7g54_curiosity :=3D -@ dtb-$(CONFIG_SOC_AT91RM9200) +=3D \ at91rm9200ek.dtb \ mpa1600.dtb @@ -87,7 +88,8 @@ dtb-$(CONFIG_SOC_SAM_V7) +=3D \ at91-sama5d4ek.dtb \ at91-vinco.dtb dtb-$(CONFIG_SOC_SAMA7G5) +=3D \ - at91-sama7g5ek.dtb + at91-sama7g5ek.dtb \ + at91-sama7g54_curiosity.dtb =20 dtb-$(CONFIG_SOC_LAN966) +=3D \ lan966x-kontron-kswitch-d10-mmt-6g-2gs.dtb \ diff --git a/arch/arm/boot/dts/microchip/at91-sama7g54_curiosity.dts b/arch= /arm/boot/dts/microchip/at91-sama7g54_curiosity.dts new file mode 100644 index 000000000000..c2955a170658 --- /dev/null +++ b/arch/arm/boot/dts/microchip/at91-sama7g54_curiosity.dts @@ -0,0 +1,491 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * at91-sama7g54_curiosity.dts - Device Tree file for SAMA7G54 Curiosity B= oard + * + * Copyright (C) 2024 Microchip Technology Inc. and its subsidiaries + * + * Author: Mihai Sain + * + */ +/dts-v1/; +#include "sama7g5-pinfunc.h" +#include "sama7g5.dtsi" +#include +#include +#include + +/ { + model =3D "Microchip SAMA7G54 Curiosity"; + compatible =3D "microchip,sama7g54-curiosity", "microchip,sama7g5", "micr= ochip,sama7"; + + chosen { + bootargs =3D "console=3DttyS0,115200 root=3D/dev/mmcblk1p2 rw rootwait"; + stdout-path =3D "serial0:115200n8"; + }; + + aliases { + serial0 =3D &uart3; + i2c0 =3D &i2c10; + }; + + clocks { + slow_xtal { + clock-frequency =3D <32768>; + }; + + main_xtal { + clock-frequency =3D <24000000>; + }; + }; + + gpio-keys { + compatible =3D "gpio-keys"; + + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_key_gpio_default>; + + button-user { + label =3D "user-button"; + gpios =3D <&pioA PIN_PD19 GPIO_ACTIVE_LOW>; + linux,code =3D ; + wakeup-source; + }; + }; + + leds { + compatible =3D "gpio-leds"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_led_gpio_default>; + status =3D "okay"; + + led-red { + label =3D "red"; + gpios =3D <&pioA PIN_PD13 GPIO_ACTIVE_HIGH>; + default-state =3D "off"; + }; + + led-green { + label =3D "green"; + gpios =3D <&pioA PIN_PD14 GPIO_ACTIVE_HIGH>; + default-state =3D "off"; + }; + + led-blue { + label =3D "blue"; + gpios =3D <&pioA PIN_PB15 GPIO_ACTIVE_HIGH>; + linux,default-trigger =3D "heartbeat"; + }; + }; + + memory@60000000 { + device_type =3D "memory"; + reg =3D <0x60000000 0x10000000>; // 256 MiB DDR3L-1066 16-bit + }; +}; + +&adc { + vddana-supply =3D <&vddout25>; + vref-supply =3D <&vddout25>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_mikrobus1_an_default &pinctrl_mikrobus2_an_defaul= t>; + status =3D "okay"; +}; + +&cpu0 { + cpu-supply =3D <&vddcpu>; +}; + +&dma0 { + status =3D "okay"; +}; + +&dma1 { + status =3D "okay"; +}; + +&dma2 { + status =3D "okay"; +}; + +&ebi { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_nand_default>; + status =3D "okay"; + + nand_controller: nand-controller { + status =3D "okay"; + + nand@3 { + reg =3D <0x3 0x0 0x800000>; + atmel,rb =3D <0>; + nand-bus-width =3D <8>; + nand-ecc-mode =3D "hw"; + nand-ecc-strength =3D <8>; + nand-ecc-step-size =3D <512>; + nand-on-flash-bbt; + label =3D "nand"; + status =3D "okay"; + + partitions { + compatible =3D "fixed-partitions"; + #address-cells =3D <1>; + #size-cells =3D <1>; + + at91bootstrap@0 { + label =3D "nand: at91bootstrap"; + reg =3D <0x0 0x40000>; + }; + + bootloader@40000 { + label =3D "nand: u-boot"; + reg =3D <0x40000 0x100000>; + }; + + bootloaderenv@140000 { + label =3D "nand: u-boot env"; + reg =3D <0x140000 0x40000>; + }; + + dtb@180000 { + label =3D "nand: device tree"; + reg =3D <0x180000 0x80000>; + }; + + kernel@200000 { + label =3D "nand: kernel"; + reg =3D <0x200000 0x600000>; + }; + + rootfs@800000 { + label =3D "nand: rootfs"; + reg =3D <0x800000 0x1f800000>; + }; + }; + }; + }; +}; + +&flx3 { + atmel,flexcom-mode =3D ; + status =3D "okay"; + + uart3: serial@200 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_flx3_default>; + status =3D "okay"; + }; +}; + +&flx10 { + atmel,flexcom-mode =3D ; + status =3D "okay"; + + i2c10: i2c@600 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_flx10_default>; + i2c-analog-filter; + i2c-digital-filter; + i2c-digital-filter-width-ns =3D <35>; + status =3D "okay"; + + adc@1f { + compatible =3D "microchip,pac1934"; + reg =3D <0x1f>; + }; + + eeprom@51 { + compatible =3D "atmel,24c02"; + reg =3D <0x51>; + pagesize =3D <16>; + size =3D <256>; + status =3D "okay"; + }; + + mcp16502@5b { + compatible =3D "microchip,mcp16502"; + reg =3D <0x5b>; + status =3D "okay"; + + regulators { + vdd_3v3: VDD_IO { + regulator-name =3D "VDD_IO"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + regulator-initial-mode =3D <2>; + regulator-allowed-modes =3D <2>, <4>; + regulator-always-on; + + regulator-state-standby { + regulator-on-in-suspend; + regulator-suspend-microvolt =3D <3300000>; + regulator-mode =3D <4>; + }; + + regulator-state-mem { + regulator-off-in-suspend; + regulator-mode =3D <4>; + }; + }; + + vddioddr: VDD_DDR { + regulator-name =3D "VDD_DDR"; + regulator-min-microvolt =3D <1350000>; + regulator-max-microvolt =3D <1350000>; + regulator-initial-mode =3D <2>; + regulator-allowed-modes =3D <2>, <4>; + regulator-always-on; + + regulator-state-standby { + regulator-on-in-suspend; + regulator-suspend-microvolt =3D <1350000>; + regulator-mode =3D <4>; + }; + + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt =3D <1350000>; + regulator-mode =3D <4>; + }; + }; + + vddcore: VDD_CORE { + regulator-name =3D "VDD_CORE"; + regulator-min-microvolt =3D <1150000>; + regulator-max-microvolt =3D <1150000>; + regulator-initial-mode =3D <2>; + regulator-allowed-modes =3D <2>, <4>; + regulator-always-on; + + regulator-state-standby { + regulator-on-in-suspend; + regulator-suspend-voltage =3D <1150000>; + regulator-mode =3D <4>; + }; + + regulator-state-mem { + regulator-off-in-suspend; + regulator-mode =3D <4>; + }; + }; + + vddcpu: VDD_OTHER { + regulator-name =3D "VDD_OTHER"; + regulator-min-microvolt =3D <1050000>; + regulator-max-microvolt =3D <1250000>; + regulator-initial-mode =3D <2>; + regulator-allowed-modes =3D <2>, <4>; + regulator-ramp-delay =3D <3125>; + regulator-always-on; + + regulator-state-standby { + regulator-on-in-suspend; + regulator-suspend-voltage =3D <1050000>; + regulator-mode =3D <4>; + }; + + regulator-state-mem { + regulator-off-in-suspend; + regulator-mode =3D <4>; + }; + }; + + vldo1: LDO1 { + regulator-name =3D "LDO1"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-always-on; + + regulator-state-standby { + regulator-suspend-voltage =3D <1800000>; + regulator-on-in-suspend; + }; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vldo2: LDO2 { + regulator-name =3D "LDO2"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + regulator-always-on; + + regulator-state-standby { + regulator-suspend-voltage =3D <3300000>; + regulator-on-in-suspend; + }; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + }; + }; + }; +}; + +&qspi1 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_qspi1_default>; + status =3D "okay"; + + flash@0 { + compatible =3D "jedec,spi-nor"; + reg =3D <0x0>; + spi-max-frequency =3D <100000000>; + spi-tx-bus-width =3D <4>; + spi-rx-bus-width =3D <4>; + m25p,fast-read; + status =3D "okay"; + }; +}; + +&pioA { + pinctrl_flx3_default: flx3-default { + pinmux =3D , + ; + bias-pull-up; + }; + + pinctrl_flx10_default: flx10-default { + pinmux =3D , + ; + bias-pull-up; + }; + + pinctrl_key_gpio_default: key-gpio-default { + pinmux =3D ; + bias-pull-up; + }; + + pinctrl_led_gpio_default: led-gpio-default { + pinmux =3D , + , + ; + bias-pull-up; + }; + + pinctrl_mikrobus1_an_default: mikrobus1-an-default { + pinmux =3D ; + bias-disable; + }; + + pinctrl_mikrobus2_an_default: mikrobus2-an-default { + pinmux =3D ; + bias-disable; + }; + + pinctrl_nand_default: nand-default { + pinmux =3D , + , + , + , + , + , + , + , + , + , + , + , + , + ; + bias-disable; + slew-rate =3D <0>; + }; + + pinctrl_qspi1_default: qspi1-default { + pinmux =3D , + , + , + , + , + ; + bias-pull-up; + slew-rate =3D <0>; + }; + + pinctrl_sdmmc0_default: sdmmc0-default { + pinmux =3D , + , + , + , + , + , + ; + bias-pull-up; + slew-rate =3D <0>; + }; + + pinctrl_sdmmc1_default: sdmmc1-default { + pinmux =3D , + , + , + , + , + , + ; + bias-pull-up; + slew-rate =3D <0>; + }; +}; + +&rtt { + atmel,rtt-rtc-time-reg =3D <&gpbr 0x0>; +}; + +// M.2 slot for wireless card +&sdmmc0 { + bus-width =3D <4>; + cd-gpios =3D <&pioA 31 GPIO_ACTIVE_LOW>; + disable-wp; + sdhci-caps-mask =3D <0x0 0x00200000>; + vmmc-supply =3D <&vdd_3v3>; + vqmmc-supply =3D <&vdd_3v3>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_sdmmc0_default>; + status =3D "okay"; +}; + +// micro SD socket +&sdmmc1 { + bus-width =3D <4>; + disable-wp; + sdhci-caps-mask =3D <0x0 0x00200000>; + vmmc-supply =3D <&vdd_3v3>; + vqmmc-supply =3D <&vdd_3v3>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_sdmmc1_default>; + status =3D "okay"; +}; + +&shdwc { + debounce-delay-us =3D <976>; + status =3D "okay"; + + input@0 { + reg =3D <0>; + }; +}; + +&tcb0 { + timer0: timer@0 { + compatible =3D "atmel,tcb-timer"; + reg =3D <0>; + }; + + timer1: timer@1 { + compatible =3D "atmel,tcb-timer"; + reg =3D <1>; + }; +}; + +&trng { + status =3D "okay"; +}; + +&vddout25 { + vin-supply =3D <&vdd_3v3>; + status =3D "okay"; +}; --=20 2.43.0