ipq40xx: dts: fix SPI chip select GPIO polarity

The SPI chip select GPIO polarity is active low by default. We must
use "spi-cs-high" dts property to toggle the polarity. The polarity
on "cs-gpios" won't take effect at all[1]. Fix these incorrect GPIO
polarities to silence the kernel warnings.

[1] Refer to Linux/Documentation/devicetree/bindings/spi/spi-controller.yaml
```
      device node     | cs-gpio       | CS pin state active | Note
      ================+===============+=====================+=====
      spi-cs-high     | -             | H                   |
      -               | -             | L                   |
      spi-cs-high     | ACTIVE_HIGH   | H                   |
      -               | ACTIVE_HIGH   | L                   | 1
      spi-cs-high     | ACTIVE_LOW    | H                   | 2
      -               | ACTIVE_LOW    | L                   |

      Notes:
      1) Should print a warning about polarity inversion.
         Here it would be wise to avoid and define the gpio as
         ACTIVE_LOW.
      2) Should print a warning about polarity inversion
         because ACTIVE_LOW is overridden by spi-cs-high.
         Should be generally avoided and be replaced by
         spi-cs-high + ACTIVE_HIGH.
```

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19845
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Shiji Yang 2025-08-24 20:56:54 +08:00 committed by Hauke Mehrtens
parent 160a3a2fd7
commit dd7087aa17
59 changed files with 71 additions and 71 deletions

View File

@ -139,7 +139,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
flash@0 {
#address-cells = <1>;

View File

@ -124,8 +124,8 @@
pinctrl-0 = <&spi0_pins>;
pinctrl-names = "default";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
<&tlmm 4 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>,
<&tlmm 4 GPIO_ACTIVE_LOW>;
flash@0 {
compatible = "jedec,spi-nor";

View File

@ -155,7 +155,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
flash@0 {
reg = <0>;

View File

@ -138,7 +138,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
flash@0 {
compatible = "jedec,spi-nor";

View File

@ -82,7 +82,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
flash@0 {
compatible = "jedec,spi-nor";

View File

@ -175,8 +175,8 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
<&tlmm 59 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>,
<&tlmm 59 GPIO_ACTIVE_LOW>;
flash@0 {
compatible = "jedec,spi-nor";

View File

@ -127,7 +127,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
m25p80@0 {
compatible = "jedec,spi-nor";

View File

@ -158,7 +158,7 @@
pinctrl-0 = <&spi0_pins>;
pinctrl-names = "default";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 4 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>, <&tlmm 4 GPIO_ACTIVE_LOW>;
flash@0 {
compatible = "jedec,spi-nor";

View File

@ -122,7 +122,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
flash@0 {
compatible = "jedec,spi-nor";

View File

@ -119,7 +119,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
m25p80@0 {
compatible = "jedec,spi-nor";

View File

@ -143,7 +143,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
flash@0 {
#address-cells = <1>;

View File

@ -185,7 +185,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
mx25l12805d@0 {
compatible = "jedec,spi-nor";

View File

@ -154,7 +154,7 @@
status = "okay";
/delete-property/ dmas;
/delete-property/ dma-names;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
flash@0 {
compatible = "jedec,spi-nor";

View File

@ -125,7 +125,7 @@
pinctrl-0 = <&spi0_pins>;
pinctrl-names = "default";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 5 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>, <&tlmm 5 GPIO_ACTIVE_LOW>;
flash@0 {
compatible = "jedec,spi-nor";

View File

@ -109,7 +109,7 @@
pinctrl-0 = <&spi0_pins>;
pinctrl-names = "default";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 5 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>, <&tlmm 5 GPIO_ACTIVE_LOW>;
flash@0 {
status = "okay";

View File

@ -150,7 +150,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
flash@0 {
reg = <0>;

View File

@ -112,7 +112,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 59 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>, <&tlmm 59 GPIO_ACTIVE_LOW>;
flash@0 {
status = "okay";

View File

@ -169,7 +169,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
flash@0 {
compatible = "jedec,spi-nor";

View File

@ -30,9 +30,9 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
<&tlmm 59 GPIO_ACTIVE_HIGH>,
<&tlmm 1 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>,
<&tlmm 59 GPIO_ACTIVE_LOW>,
<&tlmm 1 GPIO_ACTIVE_LOW>;
flash@0 {
compatible = "jedec,spi-nor";

View File

@ -30,9 +30,9 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
<&tlmm 59 GPIO_ACTIVE_HIGH>,
<&tlmm 1 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>,
<&tlmm 59 GPIO_ACTIVE_LOW>,
<&tlmm 1 GPIO_ACTIVE_LOW>;
flash@0 {
compatible = "jedec,spi-nor";

View File

@ -48,8 +48,8 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>,
<&tlmm 54 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>,
<&tlmm 54 GPIO_ACTIVE_LOW>;
flash@0 {
compatible = "jedec,spi-nor";

View File

@ -165,7 +165,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
flash@0 {
compatible = "jedec,spi-nor";

View File

@ -131,7 +131,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
flash@0 {
#address-cells = <1>;

View File

@ -170,8 +170,8 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
<&tlmm 59 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>,
<&tlmm 59 GPIO_ACTIVE_LOW>;
flash@0 {
/*

View File

@ -141,7 +141,7 @@
&blsp1_spi1 {
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 63 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>, <&tlmm 63 GPIO_ACTIVE_LOW>;
num-cs = <2>;
status = "okay";

View File

@ -154,7 +154,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
flash@0 {
reg = <0>;

View File

@ -201,8 +201,8 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
<&tlmm 59 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>,
<&tlmm 59 GPIO_ACTIVE_LOW>;
flash@0 {
compatible = "jedec,spi-nor";

View File

@ -118,7 +118,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
flash@0 {
reg = <0>;

View File

@ -83,7 +83,7 @@
status = "okay";
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 4 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>, <&tlmm 4 GPIO_ACTIVE_LOW>;
nor@0 {
reg = <0>;

View File

@ -92,7 +92,7 @@
&blsp1_spi1 {
status = "okay";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";

View File

@ -149,7 +149,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
mx25l12805d@0 {
compatible = "jedec,spi-nor";

View File

@ -92,8 +92,8 @@
&blsp1_spi1 {
status = "okay";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
<&tlmm 59 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>,
<&tlmm 59 GPIO_ACTIVE_LOW>;
pinctrl-0 = <&spi0_pins>;
pinctrl-names = "default";

View File

@ -146,7 +146,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
flash@0 {
#address-cells = <1>;

View File

@ -90,7 +90,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
flash@0 {
#address-cells = <1>;

View File

@ -128,7 +128,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
flash@0 {
compatible = "jedec,spi-nor";

View File

@ -210,7 +210,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
flash@0 {
compatible = "jedec,spi-nor";

View File

@ -184,7 +184,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
flash@0 {
reg = <0>;

View File

@ -221,7 +221,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
flash@0 {
reg = <0>;

View File

@ -86,7 +86,7 @@
};
&blsp1_spi1 {
cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";

View File

@ -166,7 +166,7 @@
&blsp1_spi1 {
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
status = "okay";
m25p80@0 {

View File

@ -147,7 +147,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
flash@0 {
/* u-boot is looking for "n25q128a11" property */

View File

@ -129,7 +129,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
flash@0 {
/* u-boot is looking for "n25q128a11" property */

View File

@ -123,7 +123,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
flash@0 {
/* u-boot is looking for "n25q128a11" property */

View File

@ -132,8 +132,8 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>,
<&tlmm 54 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>,
<&tlmm 54 GPIO_ACTIVE_LOW>;
flash@0 {
compatible = "jedec,spi-nor";

View File

@ -165,7 +165,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
flash@0 {
#address-cells = <1>;

View File

@ -134,7 +134,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
flash@0 {
#address-cells = <1>;

View File

@ -188,7 +188,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 59 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>, <&tlmm 59 GPIO_ACTIVE_LOW>;
flash@0 {
/*"n25q128a11" is required for proper nand recognition in u-boot. */

View File

@ -188,7 +188,7 @@
pinctrl-0 = <&spi_1_pins>;
pinctrl-names = "default";
cs-gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 45 GPIO_ACTIVE_LOW>;
zigbee@0 {
compatible = "silabs,em3581";

View File

@ -396,7 +396,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
flash@0 {
compatible = "jedec,spi-nor";
@ -409,7 +409,7 @@
pinctrl-0 = <&spi_1_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 45 GPIO_ACTIVE_LOW>;
/*
* This "spidev" was included in the manufacturer device tree. I

View File

@ -203,7 +203,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>, <&tlmm 41 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>, <&tlmm 41 GPIO_ACTIVE_LOW>;
num-cs = <2>;
flash0@0 {

View File

@ -160,7 +160,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
m25p80@0 {
compatible = "jedec,spi-nor";

View File

@ -63,7 +63,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
flash@0 {
compatible = "jedec,spi-nor";

View File

@ -238,7 +238,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>, <&tlmm 59 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>, <&tlmm 59 GPIO_ACTIVE_LOW>;
flash@0 {
compatible = "jedec,spi-nor";

View File

@ -84,7 +84,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
flash@0 {
compatible = "jedec,spi-nor";

View File

@ -130,7 +130,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
mx25l25635f@0 {
compatible = "jedec,spi-nor";

View File

@ -126,7 +126,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
flash@0 {
compatible = "jedec,spi-nor";

View File

@ -189,7 +189,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
flash@0 {
compatible = "jedec,spi-nor";

View File

@ -264,7 +264,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
flash@0 {
compatible = "jedec,spi-nor";

View File

@ -183,7 +183,7 @@
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
cs-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
flash@0 {
compatible = "jedec,spi-nor";