Skip to content

Commit cc57bb0

Browse files
boards: microchip: sam: add spi device for sama7g5
Add flexcom11 spi device, mount a sst26vf064 qspi flash on it. Signed-off-by: CHEN Xing <[email protected]>
1 parent c28e7c1 commit cc57bb0

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

boards/microchip/sam/sama7g54_ek/sama7g54_ek.dts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,29 @@
119119
};
120120
};
121121

122+
&flx11 {
123+
mchp,flexcom-mode = <SAM_FLEXCOM_MODE_SPI>;
124+
status = "okay";
125+
126+
spi11: spi@400 {
127+
pinctrl-0 = <&pinctrl_spi11_default>;
128+
pinctrl-names = "default";
129+
cs-gpios = <&piob 6 GPIO_ACTIVE_LOW>;
130+
status = "okay";
131+
132+
nor_flash: sst26vf064@0 {
133+
compatible ="jedec,spi-nor";
134+
reg = <0>;
135+
spi-max-frequency = <10000000>;
136+
size = <DT_SIZE_M(64)>; /* 64 Mbits */
137+
jedec-id = [bf 26 43];
138+
requires-ulbpr;
139+
status = "okay";
140+
};
141+
};
142+
};
143+
144+
122145
&pinctrl {
123146
pinctrl_flx3_default: flx3_default {
124147
group1 {
@@ -135,6 +158,16 @@
135158
bias-disable;
136159
};
137160
};
161+
162+
pinctrl_spi11_default: spi11_default {
163+
group1 {
164+
pinmux = <PIN_PB3__FLEXCOM11_IO0>,
165+
<PIN_PB4__FLEXCOM11_IO1>,
166+
<PIN_PB5__FLEXCOM11_IO2>,
167+
<PIN_PB6__GPIO>; /* GPIO CS */
168+
bias-pull-up;
169+
};
170+
};
138171
};
139172

140173
&pit64b0 {

boards/microchip/sam/sama7g54_ek/sama7g54_ek.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ toolchain:
1010
ram: 128
1111
supported:
1212
- shell
13+
- spi
1314
- uart
1415
vendor: microchip

0 commit comments

Comments
 (0)