Skip to content

Commit 527e2b9

Browse files
Cyrille Pitchencristibirsan
authored andcommitted
ARM: at91/dt: sama5d2 Xplained: add QSPI0 + SPI NOR memory nodes
This patch enables the QSPI0 controller, configures its pin muxing and declares a jedec,spi-nor memory. Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
1 parent 0c41c47 commit 527e2b9

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

arch/arm/boot/dts/at91-sama5d2_xplained.dts

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,51 @@
7272
};
7373

7474
apb {
75+
qspi0: spi@f0020000 {
76+
pinctrl-names = "default";
77+
pinctrl-0 = <&pinctrl_qspi0_default>;
78+
/*status = "okay";*/ /* conflict with sdmmc1 */
79+
80+
flash@0 {
81+
#address-cells = <1>;
82+
#size-cells = <1>;
83+
compatible = "jedec,spi-nor";
84+
reg = <0>;
85+
spi-max-frequency = <83000000>;
86+
m25p,fast-read;
87+
88+
at91bootstrap@00000000 {
89+
label = "at91bootstrap";
90+
reg = <0x00000000 0x00010000>;
91+
};
92+
93+
bootloaderenv@00010000 {
94+
label = "bootloader env";
95+
reg = <0x00010000 0x00010000>;
96+
};
97+
98+
bootloader@00020000 {
99+
label = "bootloader";
100+
reg = <0x00020000 0x00050000>;
101+
};
102+
103+
dtb@00070000 {
104+
label = "device tree";
105+
reg = <0x00070000 0x00010000>;
106+
};
107+
108+
kernel@00080000 {
109+
label = "kernel";
110+
reg = <0x00080000 0x00380000>;
111+
};
112+
113+
rootfs@00400000 {
114+
label = "rootfs";
115+
reg = <0x00400000 0x00000000>;
116+
};
117+
};
118+
};
119+
75120
spi0: spi@f8000000 {
76121
pinctrl-names = "default";
77122
pinctrl-0 = <&pinctrl_spi0_default>;
@@ -502,6 +547,22 @@
502547
bias-disable;
503548
};
504549

550+
pinctrl_qspi0_default: qspi0_default {
551+
sck_cs {
552+
pinmux = <PIN_PA22__QSPI0_SCK>,
553+
<PIN_PA23__QSPI0_CS>;
554+
bias-disable;
555+
};
556+
557+
data {
558+
pinmux = <PIN_PA24__QSPI0_IO0>,
559+
<PIN_PA25__QSPI0_IO1>,
560+
<PIN_PA26__QSPI0_IO2>,
561+
<PIN_PA27__QSPI0_IO3>;
562+
bias-pull-up;
563+
};
564+
};
565+
505566
pinctrl_sdmmc0_default: sdmmc0_default {
506567
cmd_data {
507568
pinmux = <PIN_PA1__SDMMC0_CMD>,

0 commit comments

Comments
 (0)