Skip to contentSkip to conversation

mips: mt7688: gardena-smart-gateway: Update mtdparts/mtdids for Kernel 4.19

PATCH New Stefan Roese 2 participants 4 messages Jan 15, 2019 – Jan 16, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 mips: mt7688: gardena-smart-gateway: Update mtdparts/mtdids for Kernel 4.19

With the new SPI NOR framework in v4.19, we need to adapt the MTD parts so that the kernel cmdline parameter "mtdparts=" uses the correct naming for the devices.

Cc Daniel Schwierzeck <[email protected]>
---
 configs/gardena-smart-gateway-mt7688-ram_defconfig | 4 ++--
 configs/gardena-smart-gateway-mt7688_defconfig     | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
configs/gardena-smart-gateway-mt7688-ram_defconfig +2 -2
index ae8bf2981f..bfd9bada2a 100644
@@ -33,8 +33,8 @@ CONFIG_CMD_BOOTCOUNT=y
 CONFIG_CMD_TIME=y
 CONFIG_CMD_UUID=y
 CONFIG_CMD_MTDPARTS=y
-CONFIG_MTDIDS_DEFAULT="spi-nand0=gd5f,nor0=spi0.0"
-CONFIG_MTDPARTS_DEFAULT="spi0.0:640k(uboot),64k(uboot_env0),64k(uboot_env1),64k(factory),-(unused);gd5f:-(nand)"
+CONFIG_MTDIDS_DEFAULT="spi-nand0=spi0.1,nor0=spi0.0"
+CONFIG_MTDPARTS_DEFAULT="spi0.0:640k(uboot),64k(uboot_env0),64k(uboot_env1),64k(factory),-(unused);spi0.1:-(nand)"
 CONFIG_CMD_UBI=y
 CONFIG_DEFAULT_DEVICE_TREE="gardena-smart-gateway-mt7688"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
configs/gardena-smart-gateway-mt7688_defconfig +2 -2
index b7024e3dec..d844932c33 100644
@@ -36,8 +36,8 @@ CONFIG_CMD_BOOTCOUNT=y
 CONFIG_CMD_TIME=y
 CONFIG_CMD_UUID=y
 CONFIG_CMD_MTDPARTS=y
-CONFIG_MTDIDS_DEFAULT="spi-nand0=gd5f,nor0=spi0.0"
-CONFIG_MTDPARTS_DEFAULT="spi0.0:640k(uboot),64k(uboot_env0),64k(uboot_env1),64k(factory),-(unused);gd5f:-(nand)"
+CONFIG_MTDIDS_DEFAULT="spi-nand0=spi0.1,nor0=spi0.0"
+CONFIG_MTDPARTS_DEFAULT="spi0.0:640k(uboot),64k(uboot_env0),64k(uboot_env1),64k(factory),-(unused);spi0.1:-(nand)"
 CONFIG_CMD_UBI=y
 CONFIG_DEFAULT_DEVICE_TREE="gardena-smart-gateway-mt7688"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
Signature · 1 line
2.20.1
#1 lore raw

PATCH 2/2 mips: mt7688: gardena-smart-gateway: Enable green power LED on startup

Set the correct power-up state (default-state) of the green power LED.

Cc Daniel Schwierzeck <[email protected]>
---
 arch/mips/dts/gardena-smart-gateway-mt7688.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/dts/gardena-smart-gateway-mt7688.dts +1 -1
index d8d88686bb..75f6037e96 100644
@@ -34,7 +34,7 @@
 		power_green {
 			label = "smartgw:power:green";
 			gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
-			default-state = "off";
+			default-state = "on";
 		};
 
 		power_red {
Signature · 1 line
2.20.1
#2 lore raw

PATCH 2/2 mips: mt7688: gardena-smart-gateway: Enable green power LED on startup

Am 15.01.19 um 13:54 schrieb Stefan Roese:

Quoted 8 lines

Set the correct power-up state (default-state) of the green power LED.

Cc Daniel Schwierzeck <[email protected]>
---
 arch/mips/dts/gardena-smart-gateway-mt7688.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

applied to u-boot-mips, thanks.

Signature · 1 line
- Daniel
#3 lore raw

PATCH 1/2 mips: mt7688: gardena-smart-gateway: Update mtdparts/mtdids for Kernel 4.19

In reply to Stefan Roese

Am 15.01.19 um 13:54 schrieb Stefan Roese:

Quoted 11 lines

With the new SPI NOR framework in v4.19, we need to adapt the MTD parts so that the kernel cmdline parameter "mtdparts=" uses the correct naming for the devices.

Cc Daniel Schwierzeck <[email protected]>
---
 configs/gardena-smart-gateway-mt7688-ram_defconfig | 4 ++--
 configs/gardena-smart-gateway-mt7688_defconfig     | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

applied to u-boot-mips, thanks.

Signature · 1 line
- Daniel