From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 9A223322537 for ; Sat, 31 Jan 2026 15:53:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769874809; cv=none; b=f1YfBHUrvdPPveKC7WF5Z7Revsk35l3rkQNVskIVychG/PITkHX569eQfqf5mWzwGRUr+CxBPfeMl4+5NogLuFksBe0943gNcwMjqsod4vwjNXHrvMwZJNBzUPwbJ+ZQSsX+YOg8ugwXebFEuM5QmoaWnXWcj7nR+RYS7rCC3+Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769874809; c=relaxed/simple; bh=UYAieOC/Sd+Ax/qh7bv2PygLHfhC007jTLqyzImPAxg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=sYIBqMKvVjSeoIMrUTNppNPmhnzM3Wkv48Glfw3DbMg80ZTakmpjnxntjeM162Tv5i/zr3FyBL0Y9ke+0utuduL5KGUtwG+Dw8iF+yF6oBlVpSsuZesc4ndNrPzPE+RA7kprm684mk+2I7/clCCzb8MQAijcS6EG3Q6lwUL+fbY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev; spf=pass smtp.mailfrom=tuxon.dev; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b=qqVN4ap1; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="qqVN4ap1" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-47ee76e8656so40715995e9.0 for ; Sat, 31 Jan 2026 07:53:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1769874806; x=1770479606; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=4/rhOR4DhfaQj1RK0nVCHUbeV/3vvEtnoUlZ/Uv+pIQ=; b=qqVN4ap1OHFkS9p2337iHHfOn4akGihduvLje5ZQ7tuTIIpRjZcuSjaMh5MYhTa25s nCXzU+5webRi19YluMMogCCvCJecjrzkJ9RLLJaTKfUCq/CXU80oDBV9XxHA9B+okRoQ T3POhgy1QPq6nfEXPsdFqme4w8mHNL4+zaZpT/QqbbBoMFXqKZA7oncJn/j2NTJL8xQE WZWcsatOJJrn9PWGs37t5AYd7HesH1s4bpXzQRGOMinFFYZjCAq5VThODApw5Liu3gta 3hwveckonyM02jt3tb69EoyHCfBxNauYfteXPhdmjDhf7J1kTTU/Mqwv02V3F5Cj2ZPC m9Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769874806; x=1770479606; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4/rhOR4DhfaQj1RK0nVCHUbeV/3vvEtnoUlZ/Uv+pIQ=; b=e8OGHO4cL3O8+n7hxHc8vOqHH8pOeVLLcxg0IAWa6DdgKPoHXhNE/GBWuLycGcJLIB PJyCfqxJlIw54F19B3GYo8OGY/LAsA5b14eyLMVFzDSHQA5gGaSfvUmDRvB1SJDnVopi oolPQzCttF7xC0FCBGSLLwL2/yfsSZndSlx0zrZg8/avv9XC/u7+PQPEg0XBxKVrh4IF OYRAk2chVToq7dFVpUu94hUDdB/X9IjIjSQhsnugjrq8n3xra3TVmJG3fsI1FPX5NT8F j0Yjw4HVeC2YMZfeQ0Y9yeyoBhUXcd1jHJcfIpCpR3kgcoGXrhOxD6u/R5IrX31TmxiU fHIg== X-Forwarded-Encrypted: i=1; AJvYcCXxKMz/VrJuyzNaSJfoBY9GOZilF3tanjEawnk+QNQ4kQHohuPIYsw/PQUf6r0JIkuqPob4qdz1ufDKWwI=@vger.kernel.org X-Gm-Message-State: AOJu0YyExsqp/YPq6kR1ijRP74kyPsPVWPTcm+azaEqqU3JdHAU8AD3K 5XjpN9nOkAYQgT4C2kolXWSLGF/9ooaybBQDyeSkHCI3y4F1XOAZcXl6K8JXlb2Ss0aG3JVSfHv Y54Tc X-Gm-Gg: AZuq6aKOR8rOTPVyWrHpofpzDIEP12s9kyCehYzDRj5j8KgP6BY8X4NNnmdxKCp5dab +tcGIPRT28Qx23emc1HMRGeA0EFmY059SmEPg9zR8+ivE3noWcqW7fXI6oWe9CTycPM1Na3h3qP e1iPzOHEPSnEdm2XyLmJNiIQzEMeZk3WPSetvEkTmYBLdxOefhmlBC43EgfYvXn07tF5ZerL2Gh WKs7cToE9bSXX3DTfGFFTszmiB8EdU10wt4oi5ccyfjxMkWWvG8N7L4JmUSoCvn6F+GrLEPhspe BQ2GVK3LJvG6zO2G/NTlZa4JRab+/x5WkO+o2rJ4HUyjqUIKguo31zAOkcfa4btetmtMh5cBaTx Db2L9/np5UC+vvQBQ4/H+0vGggYtKQt3M/eQDZiqbe7XH4OzV2TQQxPEe9g9YW6TC04amNTrbiY e33BWemlityUi5+xg2zqZqrB6k17V9 X-Received: by 2002:a05:600c:a08c:b0:477:6374:6347 with SMTP id 5b1f17b1804b1-482db491ef7mr85082515e9.22.1769874806018; Sat, 31 Jan 2026 07:53:26 -0800 (PST) Received: from [192.168.50.4] ([82.78.167.31]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-482e256482esm41222055e9.12.2026.01.31.07.53.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 31 Jan 2026 07:53:25 -0800 (PST) Message-ID: <920da850-7caf-4385-b4b5-10fe6a828066@tuxon.dev> Date: Sat, 31 Jan 2026 17:53:24 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 12/19] nvmem: microchip-otpc: Add SAM9X60 support To: Alexander Dahl Cc: Nicolas Ferre , Alexandre Belloni , Ryan Wanner , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Srinivas Kandagatla References: <20260120143759.904013-1-ada@thorsis.com> <20260120154502.1280938-1-ada@thorsis.com> <20260120154502.1280938-6-ada@thorsis.com> Content-Language: en-US From: Claudiu Beznea In-Reply-To: <20260120154502.1280938-6-ada@thorsis.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/20/26 17:44, Alexander Dahl wrote: > Register layout is almost identical to SAMA7G5 OTPC. SAMA7G5 has some Can't you just use a fallback to sama7g5 for sam9x60 and drop this patch? > additional bits in common registers, and some additional registers all > related to custom packages in secure world. None of these are currently > used by the driver. > > Signed-off-by: Alexander Dahl > --- > > Notes: > v3: > - no changes > > v2: > - Reword commit message (additional information about SoC differences) > > drivers/nvmem/microchip-otpc.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/nvmem/microchip-otpc.c b/drivers/nvmem/microchip-otpc.c > index bf7e5167152cb..d39f2d57e5f5e 100644 > --- a/drivers/nvmem/microchip-otpc.c > +++ b/drivers/nvmem/microchip-otpc.c > @@ -269,6 +269,7 @@ static int mchp_otpc_probe(struct platform_device *pdev) > > static const struct of_device_id __maybe_unused mchp_otpc_ids[] = { > { .compatible = "microchip,sama7g5-otpc", }, > + { .compatible = "microchip,sam9x60-otpc", }, > { }, > }; > MODULE_DEVICE_TABLE(of, mchp_otpc_ids);