devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Add a property to override the quad mode
@ 2023-08-15 15:31 Hsin-Yi Wang
  2023-08-15 15:31 ` [PATCH 1/4] dt-bindings: mtd: jedec,spi-nor: Add disable-quad-mode property Hsin-Yi Wang
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Hsin-Yi Wang @ 2023-08-15 15:31 UTC (permalink / raw)
  To: Tudor Ambarus, Krzysztof Kozlowski, Conor Dooley,
	Matthias Brugger, Bjorn Andersson
  Cc: Pratyush Yadav, Michael Walle, Miquel Raynal ),
	Richard Weinberger ), Vignesh Raghavendra ), Rob Herring,
	linux-mtd, devicetree, linux-kernel, AngeloGioacchino Del Regno,
	linux-arm-kernel, linux-mediatek, cros-qcom-dts-watchers,
	Andy Gross, Konrad Dybcio

On gigadevice gd25lq64c, the quad mode is enabled after BFPT is parsed.
According to datasheet[1], Quad enable (QE) bit needs to be set to 0 to
use write protection (WP) pin. It also recommends setting default value of
QE to 0 to avoid a potential short issue.

Add a disable-quad-mode property in devicetree that platform can use it to
override the quad mode status parsed from BFPT to use write protection.

[1]
https://www.elm-tech.com/ja/products/spi-flash-memory/gd25lq64/gd25lq64.pdf
page 13

Hsin-Yi Wang (4):
  dt-bindings: mtd: jedec,spi-nor: Add disable-quad-mode property
  mtd: spi-nor: sfdp: read disable-quad-mode property
  arm64: dts: mediatek: mt8183: disable quad mode for spi nor
  arm64: dts: qcom: sc7180: disable quad mode for spi nor

 Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml | 7 +++++++
 arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi           | 1 +
 arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi             | 1 +
 drivers/mtd/spi-nor/core.c                               | 5 +++++
 drivers/mtd/spi-nor/core.h                               | 1 +
 drivers/mtd/spi-nor/debugfs.c                            | 1 +
 6 files changed, 16 insertions(+)

-- 
2.41.0.694.ge786442a9b-goog


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-08-16 11:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-15 15:31 [PATCH 0/4] Add a property to override the quad mode Hsin-Yi Wang
2023-08-15 15:31 ` [PATCH 1/4] dt-bindings: mtd: jedec,spi-nor: Add disable-quad-mode property Hsin-Yi Wang
2023-08-15 15:31 ` [PATCH 2/4] mtd: spi-nor: sfdp: read " Hsin-Yi Wang
2023-08-15 15:31 ` [PATCH 3/4] arm64: dts: mediatek: mt8183: disable quad mode for spi nor Hsin-Yi Wang
2023-08-16 11:17   ` Eugen Hristev
2023-08-15 15:31 ` [PATCH 4/4] arm64: dts: qcom: sc7180: " Hsin-Yi Wang
2023-08-15 19:32   ` Doug Anderson
2023-08-15 15:59 ` [PATCH 0/4] Add a property to override the quad mode Michael Walle
2023-08-15 17:21   ` Hsin-Yi Wang
2023-08-15 19:19     ` Krzysztof Kozlowski
2023-08-16 10:48       ` Hsin-Yi Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).