spi_ctrl:spi_controller@1fa10000{compatible="econet,ecnt-spi_ctrl";reg=<0x1fa100000x140>,//SPI Controller Base
<0x000000000x1000>;//SPI Controller auto read interrupt test
interrupts=<GIC_SPI51IRQ_TYPE_LEVEL_HIGH>;};spi_spi2nfi:spi_spi2nfi@1fa11000{compatible="econet,ecnt-spi2nfi";reg=<0x1fa110000x160>;//NFI2SPI
};spi_ecc:spi_ecc@1fa12000{compatible="econet,ecnt-spi_ecc";reg=<0x1fa120000x150>;//NFI ECC
};spi_nor_flash:snor{compatible="econet,ecnt-snor";spi-controller=<&spi_ctrl>;};nand_flash:nand@1fa10000{compatible="econet,ecnt-nand";spi-controller=<&spi_ctrl>;spi2nfi=<&spi_spi2nfi>;spi-ecc=<&spi_ecc>;};
on pinctrl i needs use [GPIO21](https://sirherobrine23.com.br/airoha_en7523/docs/src/branch/main/en7562ct.md#:~:text=%3A%20GPIO14%2C%20GPIO15-,SPI%20CS1%3A%20GPIO21,-Audio%20Interfaces) to change to cs1 in spi?
https://sirherobrine23.com.br/airoha_en7523/kernel/compare/e38acb51e0a572b58fae651aa99adf98c058232c..8b22a91a1d2e1b8721de315d487832a01edfb376
Declare group then use it in the target node in the dtsi then enable it in the dts.
You need to enable the function so that the pinctrl sets the correct iomux bit.
The following is what we use with the vendor SDK and the other driver.
```
pio: pinctrl {
compatible = "airoha,en7523-pinctrl";
pinctrl_uart2: uart2grp {
function = "uart2";
groups = "uart2_grp";
};
};
uart2: serial@1fbf0300 {
compatible = "airoha,en7523-uart";
reg = <0x1fbf0300 0x30>;
reg-io-width = <4>;
reg-shift = <2>;
interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
clock-frequency = <7372800>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart2>;
status = "disabled";
};
```
Declare group then use it in the target node in the dtsi then enable it in the dts.
I added the pins to the pinctrl of the EN7523, and added them to the DTS, but it still didn't work. I probably mapped them incorrectly within the pinctrl:
I added the pins to the pinctrl of the EN7523, and added them to the DTS, but it still didn't work. I probably mapped them incorrectly within the pinctrl:
https://sirherobrine23.com.br/airoha_en7523/openwrt/src/commit/47f0f4c15d1567e8ab854f39014f8940a833ba84/target/linux/airoha/dts/en7523.dtsi#L297-L309
https://sirherobrine23.com.br/airoha_en7523/openwrt/src/commit/47f0f4c15d1567e8ab854f39014f8940a833ba84/target/linux/airoha/dts/en7523-mikrotik_e60iugs.dts#L156-L159
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
4d76b59039/sdk/en7529/linux-4.4.115/drivers/mtd/chips/newspiflash.c35cb20be30/sdk/an7551/openwrt-21.02/openwrt-21.02.1_dev/feeds/airoha/target/linux/generic/files/drivers/mtd/chips/newspiflash.con pinctrl i needs use GPIO21 to change to cs1 in spi?
e38acb51e0..8b22a91a1dYou need to enable the function so that the pinctrl sets the correct iomux bit.
The following is what we use with the vendor SDK and the other driver.
Declare group then use it in the target node in the dtsi then enable it in the dts.
I added the pins to the pinctrl of the EN7523, and added them to the DTS, but it still didn't work. I probably mapped them incorrectly within the pinctrl:
Is bit 0 in 0x1FA20214 getting set?
ToDO: spi snorto spi switch cs0 and cs1@merbanan
Mikrotik hEX S 2025
u-boot:
Openwrt:
TP-Link xx230v
u-boot:
Openwrt: