Skip to content

Commit 8e72f79

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 <xing.chen@microchip.com>
1 parent 86da19e commit 8e72f79

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

boards/microchip/sam/sama7g54_ek/sama7g54_ek.dts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,28 @@
121121
};
122122
};
123123

124+
&flx11 {
125+
mchp,flexcom-mode = <SAM_FLEXCOM_MODE_SPI>;
126+
status = "okay";
127+
128+
spi11: spi@400 {
129+
pinctrl-0 = <&pinctrl_spi11_default>;
130+
pinctrl-names = "default";
131+
cs-gpios = <&piob 6 GPIO_ACTIVE_LOW>;
132+
status = "okay";
133+
134+
nor_flash: sst26vf064@0 {
135+
compatible ="jedec,spi-nor";
136+
reg = <0>;
137+
spi-max-frequency = <10000000>;
138+
size = <DT_SIZE_M(64)>; /* 64 Mbits */
139+
jedec-id = [bf 26 43];
140+
requires-ulbpr;
141+
status = "okay";
142+
};
143+
};
144+
};
145+
124146
&pinctrl {
125147
pinctrl_flx3_default: flx3_default {
126148
group1 {
@@ -179,6 +201,15 @@
179201
};
180202
};
181203

204+
pinctrl_spi11_default: spi11_default {
205+
group1 {
206+
pinmux = <PIN_PB3__FLEXCOM11_IO0>,
207+
<PIN_PB4__FLEXCOM11_IO1>,
208+
<PIN_PB5__FLEXCOM11_IO2>,
209+
<PIN_PB6__GPIO>; /* GPIO CS */
210+
bias-pull-up;
211+
};
212+
};
182213
};
183214

184215
&pit64b0 {

boards/microchip/sam/sama7g54_ek/sama7g54_ek.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ ram: 128
1111
supported:
1212
- sdhc
1313
- shell
14+
- spi
1415
- uart
1516
vendor: microchip

0 commit comments

Comments
 (0)