Skip to content

Commit cf02adf

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 8060163 commit cf02adf

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

boards/microchip/sam/sama7g54_ek/sama7g54_ek.dts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,28 @@
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+
122144
&pinctrl {
123145
pinctrl_flx3_default: flx3_default {
124146
group1 {
@@ -135,6 +157,16 @@
135157
bias-disable;
136158
};
137159
};
160+
161+
pinctrl_spi11_default: spi11_default {
162+
group1 {
163+
pinmux = <PIN_PB3__FLEXCOM11_IO0>,
164+
<PIN_PB4__FLEXCOM11_IO1>,
165+
<PIN_PB5__FLEXCOM11_IO2>,
166+
<PIN_PB6__GPIO>; /* GPIO CS */
167+
bias-pull-up;
168+
};
169+
};
138170
};
139171

140172
&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)