Commit f7a8d069 authored by Swift Tian's avatar Swift Tian Committed by Benjamin Cabé
Browse files

boards: add mspi base dts to apollo510 boards

Add mspi to board devicetree including pinctrl and mspi devices.

Signed-off-by: default avatarSwift Tian <swift.tian@ambiq.com>
parent 0341e388
Loading
Loading
Loading
Loading
+118 −0
Changes for boards/ambiq/apollo510_evb/apollo510_evb-pinctrl.dtsi: 118 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -11,14 +11,132 @@
		group1 {
			pinmux = <UART0TX_P30>;
		};

		group2 {
			pinmux = <UART0RX_P55>;
			input-enable;
		};
	};

	swo_default: swo_default {
		group0 {
			pinmux = <SWO_P28>;
		};
	};

	mspi0_default: mspi0_default {
		group0 {
			pinmux = <MSPI0_0_P64>,
				 <MSPI0_1_P65>,
				 <MNCE0_0_P199>;
			drive-strength = "0.5";
		};

		group1 {
			pinmux = <MSPI0_8_P72>;
			drive-strength = "0.75";
		};
	};

	mspi1_default: mspi1_default {
		group0 {
			pinmux = <MSPI1_0_P95>,
				 <MSPI1_1_P96>,
				 <MSPI1_8_P103>,
				 <MNCE1_0_P53>;
			drive-strength = "0.5";
		};
	};

	mspi0_sleep: mspi0_sleep {
		group1 {
			pinmux = <GPIO_P64>,
				 <GPIO_P65>,
				 <GPIO_P66>,
				 <GPIO_P67>,
				 <GPIO_P68>,
				 <GPIO_P69>,
				 <GPIO_P70>,
				 <GPIO_P71>,
				 <GPIO_P72>,
				 <GPIO_P73>,
				 <GPIO_P37>,
				 <GPIO_P38>,
				 <GPIO_P39>,
				 <GPIO_P40>,
				 <GPIO_P41>,
				 <GPIO_P42>,
				 <GPIO_P43>,
				 <GPIO_P44>,
				 <GPIO_P45>,
				 <GPIO_P199>;
		};
	};

	mspi1_sleep: mspi1_sleep {
		group1 {
			pinmux = <GPIO_P95>,
				 <GPIO_P96>,
				 <GPIO_P97>,
				 <GPIO_P98>,
				 <GPIO_P99>,
				 <GPIO_P100>,
				 <GPIO_P101>,
				 <GPIO_P102>,
				 <GPIO_P103>,
				 <GPIO_P104>,
				 <GPIO_P53>;
		};
	};

	mspi0_psram: mspi0_psram {
		group0 {
			pinmux = <MSPI0_0_P64>,   /* D0 */
				 <MSPI0_1_P65>,   /* D1 */
				 <MSPI0_2_P66>,   /* D2 */
				 <MSPI0_3_P67>,   /* D3 */
				 <MSPI0_4_P68>,   /* D4 */
				 <MSPI0_5_P69>,   /* D5 */
				 <MSPI0_6_P70>,   /* D6 */
				 <MSPI0_7_P71>,   /* D7 */
				 <MSPI0_9_P73>,   /* DQS0 */
				 <MSPI0_10_P37>,  /* D8 */
				 <MSPI0_11_P38>,  /* D9 */
				 <MSPI0_12_P39>,  /* D10 */
				 <MSPI0_13_P40>,  /* D11 */
				 <MSPI0_14_P41>,  /* D12 */
				 <MSPI0_15_P42>,  /* D13 */
				 <MSPI0_16_P43>,  /* D14 */
				 <MSPI0_17_P44>,  /* D15 */
				 <MSPI0_18_P45>,  /* DQS1 */
				 <MNCE0_0_P199>;  /* CE0 */
			drive-strength = "0.5";
		};

		group1 {
			pinmux = <MSPI0_8_P72>;   /* SCK */
			drive-strength = "0.75";
		};
	};

	mspi1_flash: mspi1_flash {
		group0 {
			pinmux = <MSPI1_0_P95>,
				 <MSPI1_1_P96>,
				 <MSPI1_2_P97>,
				 <MSPI1_3_P98>,
				 <MSPI1_4_P99>,
				 <MSPI1_5_P100>,
				 <MSPI1_6_P101>,
				 <MSPI1_7_P102>,
				 <MSPI1_8_P103>,
				 <MSPI1_9_P104>;
			drive-strength = "1.0";
		};

		group1 {
			pinmux = <MNCE1_0_P53>;
			drive-strength = "0.5";
		};
	};
};
+5 −0
Changes for boards/ambiq/apollo510_evb/apollo510_evb.dts: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -43,14 +43,17 @@

	leds {
		compatible = "gpio-leds";

		led0: led_0 {
			gpios = <&gpio160_191 5 GPIO_ACTIVE_LOW>;
			label = "LED 0";
		};

		led1: led_1 {
			gpios = <&gpio64_95 25 GPIO_ACTIVE_LOW>;
			label = "LED 1";
		};

		led2: led_2 {
			gpios = <&gpio64_95 28 GPIO_ACTIVE_LOW>;
			label = "LED 2";
@@ -60,12 +63,14 @@
	buttons {
		compatible = "gpio-keys";
		polling-mode;

		button0: button_0 {
			gpios = <&gpio64_95 29 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
			label = "BTN0";
			zephyr,code = <INPUT_KEY_0>;
			status = "okay";
		};

		button1: button_1 {
			gpios = <&gpio64_95 30 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
			label = "BTN1";
+1 −0
Changes for boards/ambiq/apollo510_evb/apollo510_evb.yaml: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ supported:
  - watchdog
  - gpio
  - clock_control
  - mspi
testing:
  ignore_tags:
    - net