boards: arm: apollo4p_evb Shield Support

Correct pinctrl for rev2 board.
Rename IOM properly in ambiq_apollo4p.dtsi

Signed-off-by: Richard Wheatley <richard.wheatley@ambiq.com>
This commit is contained in:
Richard Wheatley 2024-01-22 08:39:07 -06:00 committed by Carles Cufí
parent d2e090d1b1
commit c6f21b2017
4 changed files with 97 additions and 11 deletions

View file

@ -98,6 +98,7 @@
};
group2 {
pinmux = <NCE11_P11>;
drive-strength = "0.5";
drive-push-pull;
ambiq,iom-nce-module = <4>;
};

View file

@ -69,7 +69,7 @@
status = "okay";
};
&iom0 {
&iom0_i2c {
compatible = "ambiq,i2c";
pinctrl-0 = <&i2c0_default>;
pinctrl-names = "default";
@ -77,7 +77,7 @@
status = "okay";
};
&iom1 {
&iom1_spi {
compatible = "ambiq,spi";
pinctrl-0 = <&spi1_default>;
pinctrl-names = "default";
@ -91,6 +91,18 @@
status = "okay";
};
&mspi1 {
pinctrl-0 = <&mspi1_default>;
pinctrl-names = "default";
status = "okay";
};
&mspi2 {
pinctrl-0 = <&mspi2_default>;
pinctrl-names = "default";
status = "okay";
};
&gpio0_31 {
status = "okay";
};

View file

@ -118,4 +118,4 @@
};
};
ambiq_spi: &iom1 {};
spi1: &iom1_spi {};

View file

@ -106,7 +106,7 @@
ambiq,pwrcfg = <&pwrcfg 0x4 0x1000>;
};
iom0: iom@40050000 {
iom0_spi: spi@40050000 {
reg = <0x40050000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
@ -115,7 +115,16 @@
ambiq,pwrcfg = <&pwrcfg 0x4 0x2>;
};
iom1: iom@40051000 {
iom0_i2c: i2c@40050000 {
reg = <0x40050000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <6 0>;
status = "disabled";
ambiq,pwrcfg = <&pwrcfg 0x4 0x2>;
};
iom1_spi: spi@40051000 {
reg = <0x40051000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
@ -124,7 +133,16 @@
ambiq,pwrcfg = <&pwrcfg 0x4 0x4>;
};
iom2: iom@40052000 {
iom1_i2c: i2c@40051000 {
reg = <0x40051000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <7 0>;
status = "disabled";
ambiq,pwrcfg = <&pwrcfg 0x4 0x4>;
};
iom2_spi: spi@40052000 {
reg = <0x40052000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
@ -133,7 +151,16 @@
ambiq,pwrcfg = <&pwrcfg 0x4 0x8>;
};
iom3: iom@40053000 {
iom2_i2c: i2c@40052000 {
reg = <0x40052000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <8 0>;
status = "disabled";
ambiq,pwrcfg = <&pwrcfg 0x4 0x8>;
};
iom3_spi: spi@40053000 {
reg = <0x40053000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
@ -141,7 +168,17 @@
status = "disabled";
ambiq,pwrcfg = <&pwrcfg 0x4 0x10>;
};
iom4: iom@40054000 {
iom3_i2c: i2c@40053000 {
reg = <0x40053000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <9 0>;
status = "disabled";
ambiq,pwrcfg = <&pwrcfg 0x4 0x10>;
};
iom4_spi: spi@40054000 {
reg = <0x40054000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
@ -150,7 +187,16 @@
ambiq,pwrcfg = <&pwrcfg 0x4 0x20>;
};
iom5: iom@40055000 {
iom4_i2c: i2c@40054000 {
reg = <0x40054000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <10 0>;
status = "disabled";
ambiq,pwrcfg = <&pwrcfg 0x4 0x20>;
};
iom5_spi: spi@40055000 {
reg = <0x40055000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
@ -159,7 +205,16 @@
ambiq,pwrcfg = <&pwrcfg 0x4 0x40>;
};
iom6: iom@40056000 {
iom5_i2c: i2c@40055000 {
reg = <0x40055000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <11 0>;
status = "disabled";
ambiq,pwrcfg = <&pwrcfg 0x4 0x40>;
};
iom6_spi: spi@40056000 {
reg = <0x40056000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
@ -168,7 +223,25 @@
ambiq,pwrcfg = <&pwrcfg 0x4 0x80>;
};
iom7: iom@40057000 {
iom6_i2c: i2c@40056000 {
reg = <0x40056000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <12 0>;
status = "disabled";
ambiq,pwrcfg = <&pwrcfg 0x4 0x80>;
};
iom7_spi: spi@40057000 {
reg = <0x40057000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <13 0>;
status = "disabled";
ambiq,pwrcfg = <&pwrcfg 0x4 0x100>;
};
iom7_i2c: i2c@40057000 {
reg = <0x40057000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;