From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7730B3624A3 for ; Mon, 27 Apr 2026 03:44:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777261489; cv=none; b=AW3UGaBwFvYzjEXhGogUZhaSWYPTLxvfCVkRp3N/ElSveu9q9lb38Rhm6VECFYnIL36IcgaycHULBnzYyfLisH0VwtIS404ezxAymZNk7tP65sQ3U12UUgsaIQuKfrZ8es1RXvvOJGxnUjOTztPuoss1W+BQPy/Borw9nIZ/VzM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777261489; c=relaxed/simple; bh=A343E43pW95EP9AO8BFmFQukqMiRwvLdirbY6h+orZI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VE7qr121vviVz8c/YTDYjZjpYDXmy6oRa3NQgDkytSvnS9cYHCvunu3WjvJzyJI6brNKXd0mE8w2mmcRPcd0xN42c3NvLVsedU1Nr6KGNb8+Hwdxo15vkzx2Az6SZCJsOmWr1jCWVKWOqXLSsLWGzk0dqpLeM4OBszVg9f3jaug= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=st20g3eS; arc=none smtp.client-ip=209.85.214.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="st20g3eS" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-2addb31945aso61655365ad.1 for ; Sun, 26 Apr 2026 20:44:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777261488; x=1777866288; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6LnJZvLH9bwq8rkIs+Lcwlv8aSN2xQ6iGFhBeGaXxuk=; b=st20g3eSaLO4SR5RZZy5U+ro4XhaAUD4EDcUnClaEoStmSW1uzftJswByLnDm2Exzu 3XGjbTy+s6K/Q0fS7acAUmlQ5milQXKvKIuiJN4/x0PDvL44aydKSyEiw1mu1BERNKX0 2bHlo5eSMDj4YysrZgg4KJAfxl5stb3grzm9znxCyUP6f5tMdkoRfFDvKo1tqqcC+In1 4O8LFLX2WjLUrkA1whvNeKHKoDgj7PasfQlE7Ga1Ae6EChPWr0jspMbl0NsWRSTP1mGX PoedB1ApUWTkimv7XHUwKuIbCfqJv6SBqQFm5Ffj2I04gAi3jsfzMLLYg0TmpalPRG+f Vg2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777261488; x=1777866288; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=6LnJZvLH9bwq8rkIs+Lcwlv8aSN2xQ6iGFhBeGaXxuk=; b=PhLVuCmQhv+s9b7aZnnWIyA9mwKmv6ieN3NRbOJmZXXkfBZe2/wjUoF5eoMohnpze9 dnlLCqs7N2KLzjlna8c7wrsJ0llQfOuz2qMlFx6Oz48xkPJmTEfYf/FpeaHhZIbxseHo /rmUeOCcEhcCi/0wnYjF/0D5UDf6KAENDTFCXoKsZPvQCdzAyN8+6UKR3KmjTyvhc5sj 1Z9SfPM5WHvAhYhZL6f4EsQksdWdRFC0hOq0/N6wNQlGihqmpLvbag12yhnGC4qt7dth 8+UF0tMpooDwCizMj0k+Us9YodAAYN1HDwOtAvni2G/K9IQDN8OWyQ9VUe32+X5Tu1Zr pWYA== X-Forwarded-Encrypted: i=1; AFNElJ87QAZeJ+72q9iYsrgwya8/cov4ek1BIJc8oT3Ao6nlDEEJEgDPbK0GlKi8Puon+ed74yf7e9Yz5zf+@vger.kernel.org X-Gm-Message-State: AOJu0Yz8zOcl3yQJxMto60gJc1+yOVO+aNlr+GyJJa5U8AWvy0tRNWSc gqNLFhz7Swrl8aaic825gh1UmfJOvn9LLWDpOPLmi9BQt9Jn8nS96Ecb X-Gm-Gg: AeBDietphK5PFzaqp0FqMFypQmhWcY702HD4DpeIo+Hmzezi6cpkM1AY8MOlhsU8MRU SfAuyLYOL5/OJUVQD3+ytLK0zUG8L6zwBbiExzl8J732EVpbg3pbY9Dz6eqF5Fs69fwfv0Mb4hu 1YhK3HKPyX7PFyVAzr3DBwu7DGp36JLb/Jc0xho0w+3qROTRDH9cuaSMlP+0oxdhcvn2bawgP2g Gh4a7OAJjCtb+PATPukxFsi+zpYvcwiU3TjNOLA3tMVdwd2WCC84j51NchmqrzOq9DBcDqZdOqH 4G/b60Za9FtqPiFZwkUjZCLAw0t2+J0Za400Cg3On1S5NVwFDew67ubZRY1rAR98sBsIIk6Axlj xEwRnX+ioj1EmqM3w3llv7rcczOyw++kX78TaWwYbB73yjK99AaQyvXZDELUcBULvxVRtZFdUsd BS8+Iw3aCZ5kTYahoWOtIAPnh6SXBwL26wQC0e5K6ZxS/APIEdSAXCTnj4ZfiJywJMyYO2PszXL WoLZztGibaAI+Dqd4hVFqNuyQ== X-Received: by 2002:a17:903:120d:b0:2b2:489a:f46a with SMTP id d9443c01a7336-2b5f9fbc5a1mr463142335ad.36.1777261487655; Sun, 26 Apr 2026 20:44:47 -0700 (PDT) Received: from ryzen ([2601:644:8000:5b5d::8bd]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b5faa4f092sm290610585ad.36.2026.04.26.20.44.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Apr 2026 20:44:46 -0700 (PDT) From: Rosen Penev To: devicetree@vger.kernel.org Cc: Felix Fietkau , Lorenzo Bianconi , Ryder Lee , Shayne Chen , Sean Wang , Johannes Berg , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Thomas Bogendoerfer , linux-wireless@vger.kernel.org (open list:MEDIATEK MT76 WIRELESS LAN DRIVER), linux-kernel@vger.kernel.org (open list:ARM/Mediatek SoC support), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Mediatek SoC support), linux-mediatek@lists.infradead.org (moderated list:ARM/Mediatek SoC support), linux-mips@vger.kernel.org (open list:MIPS) Subject: [PATCH 1/3] MIPS: dts: ralink: gardena_smart_gateway_mt7688: use nvmem for EEPROM Date: Sun, 26 Apr 2026 20:44:25 -0700 Message-ID: <20260427034427.881389-2-rosenp@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260427034427.881389-1-rosenp@gmail.com> References: <20260427034427.881389-1-rosenp@gmail.com> Precedence: bulk X-Mailing-List: linux-mips@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit mediatek,mtd-eeprom is a deprecated binding for extracting data on MTD devices which has been replaced by NVMEM. The latter is already in wide use with mt76. As this is the only user, transition to NVMEM. Signed-off-by: Rosen Penev --- .../dts/ralink/gardena_smart_gateway_mt7688.dts | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts b/arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts index 0bfb1dde9764..a8a8efbaf527 100644 --- a/arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts +++ b/arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts @@ -155,10 +155,20 @@ partition@b0000 { reg = <0xb0000 0x10000>; }; - factory: partition@c0000 { + partition@c0000 { label = "factory"; reg = <0xc0000 0x10000>; read-only; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #nvmem-cell-cells = <1>; + + eeprom_factory_0: eeprom@0 { + reg = <0x0 0x400>; + }; + }; }; }; }; @@ -201,5 +211,8 @@ &watchdog { &wmac { status = "okay"; - mediatek,mtd-eeprom = <&factory 0x0000>; + + nvmem-cells = <&eeprom_factory_0>; + nvmem-cell-names = "eeprom" + }; -- 2.54.0