Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: dts: mediatek: asurada: Add SPI NOR flash memory

Add support for the SPI NOR flash memory present on the Asurada
platform.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tested-by: Chen-Yu Tsai <wenst@chromium.org>
Link: https://lore.kernel.org/r/20220629155956.1138955-20-nfraprado@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>

authored by

Nícolas F. R. A. Prado and committed by
Matthias Brugger
b0e50a1f b10e80b1

+40
+40
arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi
··· 241 241 mediatek,mic-type-2 = <2>; /* DMIC */ 242 242 }; 243 243 244 + &nor_flash { 245 + status = "okay"; 246 + 247 + pinctrl-names = "default"; 248 + pinctrl-0 = <&nor_flash_pins>; 249 + assigned-clocks = <&topckgen CLK_TOP_SFLASH_SEL>; 250 + assigned-clock-parents = <&topckgen CLK_TOP_UNIVPLL_D6_D8>; 251 + 252 + flash@0 { 253 + compatible = "winbond,w25q64jwm", "jedec,spi-nor"; 254 + reg = <0>; 255 + spi-max-frequency = <52000000>; 256 + spi-rx-bus-width = <2>; 257 + spi-tx-bus-width = <2>; 258 + }; 259 + }; 260 + 244 261 &pcie { 245 262 pinctrl-names = "default"; 246 263 pinctrl-0 = <&pcie_pins>; ··· 672 655 input-enable; 673 656 drive-strength = <8>; 674 657 bias-pull-down = <MTK_PUPD_SET_R1R0_10>; 658 + }; 659 + }; 660 + 661 + nor_flash_pins: nor-flash-default-pins { 662 + pins-cs-io1 { 663 + pinmux = <PINMUX_GPIO24__FUNC_SPINOR_CS>, 664 + <PINMUX_GPIO28__FUNC_SPINOR_IO1>; 665 + input-enable; 666 + bias-pull-up; 667 + drive-strength = <10>; 668 + }; 669 + 670 + pins-io0 { 671 + pinmux = <PINMUX_GPIO27__FUNC_SPINOR_IO0>; 672 + bias-pull-up; 673 + drive-strength = <10>; 674 + }; 675 + 676 + pins-clk { 677 + pinmux = <PINMUX_GPIO25__FUNC_SPINOR_CK>; 678 + input-enable; 679 + bias-pull-up; 680 + drive-strength = <10>; 675 681 }; 676 682 }; 677 683