From patchwork Thu Oct 17 19:09:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 13840756 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 937F1D3C52C for ; Thu, 17 Oct 2024 19:13:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=V1K0rrehWqifWgC92YbC5mRbc/LwHLiXPIyw+pJanAM=; b=Vc99I96PFc9L+3qVNQMCnCnIOh cjy4miFziQJrfxd0uTYdlErhQSuKo80NpmbVQZYDrigkDofyj8RQFccWUYAshft3ZkagjtRhmQRL3 Qg8Li9Qc3Ink4gu/JEYNbgsriv87aeSgV7kSVLZxgwb8nbrSXkM7pzko1dsse4yV3G8fZMoNbvGjO 2/Hlbk/LyZBk5ZaxWvP0AOO6kyR6ee/oJYU0y442RGkkg4crf8QO85q4KeIcjl7kzODaR3bggjfFv ET6C8OoTzYmzR+uJjscgBe8Na2rScRP98rTTaHkA/RZrO6ieLFtffuzx/mrCJIaUtX2PnMY5BTz27 NZh53LtQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t1Vw7-0000000G0At-2xFC; Thu, 17 Oct 2024 19:13:27 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t1Vse-0000000FzVj-0g2E for linux-arm-kernel@bombadil.infradead.org; Thu, 17 Oct 2024 19:09:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=V1K0rrehWqifWgC92YbC5mRbc/LwHLiXPIyw+pJanAM=; b=DsEBhLZXGt13ECbFo98lxyuA/i duqPRgf3k3IwVwAiraAQwDOlr+NI1WZvrIyKSAyNuFwL+j3G3menUqBJo35VvVZQtDkJxEgLsbL24 H/w64s/tABL3cVyTGh2hz5pExp8YGGFAr6DFsA/Spb26szLUdGtmVwTflq+aMGT2urlFzd5z2cXNB c/jBEKMUAFi2e/LOoMI8GVB4iscfq+MojoNQ87bOQ8EXlA+ouutpnfXT5I50V6zvnMQwUvPJlNk9S 1g0OgU8Vl2b4PZy7olq8TH5B/gx64aaII1sjjTNssFLUOXEskUpeSGrjxCj3N2OrQd/JFFf4r/PTR snNKJNzA==; Received: from phobos.denx.de ([85.214.62.61]) by desiato.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t1VsY-00000007CT6-2Swe for linux-arm-kernel@lists.infradead.org; Thu, 17 Oct 2024 19:09:50 +0000 Received: from tr.lan (ip-86-49-120-218.bb.vodafone.cz [86.49.120.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id D4C5589024; Thu, 17 Oct 2024 21:09:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1729192184; bh=V1K0rrehWqifWgC92YbC5mRbc/LwHLiXPIyw+pJanAM=; h=From:To:Cc:Subject:Date:From; b=E+NvFb8SWxJ0DS7Xhihi+no/YM3kBbIrS+1mKfttRW48VU7JtQAwVZFETXKf37Oc1 BIIdICDeWSIOJvbKekLWzdYXcFqP2x/tNZgMdd/8YshtIwQccB8LOK3lr9P9dUTCaM TukrLy1PHwJ0FV0QpPwY0l5BdGdUyLraTAjlba2rHqxMvB6aEaXKgoRIsLTPIj//Gk 1sH7qqHX+qFncutU5foEQrnrMIeYmTXdXEqsZXOWOB5SuaiWbnryixlMxXiHNFTEJ1 jfMGj0J6BriRDwoYrj/iykhQaKF9pgscn3zMxxt7k/3MPYUHrafw0rdQsp7s45ordx RWFyaThCZGpjw== From: Marek Vasut To: linux-arm-kernel@lists.infradead.org Cc: Marek Vasut , Alexandre Torgue , Christoph Niedermaier , Conor Dooley , Krzysztof Kozlowski , Maxime Coquelin , Rob Herring , devicetree@vger.kernel.org, kernel@dh-electronics.com, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v2] ARM: dts: stm32: Describe M24256E write-lockable page in DH STM32MP13xx DHCOR SoM DT Date: Thu, 17 Oct 2024 21:09:18 +0200 Message-ID: <20241017190933.131441-1-marex@denx.de> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241017_200946_902263_BAB35DAE X-CRM114-Status: GOOD ( 10.94 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The STM32MP13xx DHCOR SoM is populated with M24256E EEPROM which has Additional Write lockable page at separate I2C address. Describe the page in DT to make it available. Note that the WLP page on this device is hardware write-protected by R37 which pulls the nWC signal high to VDD_3V3_1V8 power rail. Signed-off-by: Marek Vasut --- Cc: Alexandre Torgue Cc: Christoph Niedermaier Cc: Conor Dooley Cc: Krzysztof Kozlowski Cc: Maxime Coquelin Cc: Rob Herring Cc: devicetree@vger.kernel.org Cc: kernel@dh-electronics.com Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: linux-stm32@st-md-mailman.stormreply.com --- V2: Fix up the M25256E in Subject --- DEPENDS: - https://lore.kernel.org/linux-i2c/20241017184152.128395-1-marex@denx.de/ - https://lore.kernel.org/linux-i2c/20241017184152.128395-2-marex@denx.de/ --- arch/arm/boot/dts/st/stm32mp13xx-dhcor-som.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/st/stm32mp13xx-dhcor-som.dtsi b/arch/arm/boot/dts/st/stm32mp13xx-dhcor-som.dtsi index 5c633ed548f37..07133bd82efa6 100644 --- a/arch/arm/boot/dts/st/stm32mp13xx-dhcor-som.dtsi +++ b/arch/arm/boot/dts/st/stm32mp13xx-dhcor-som.dtsi @@ -202,6 +202,12 @@ eeprom0: eeprom@50 { pagesize = <64>; }; + eeprom0wl: eeprom@58 { + compatible = "st,24256e-wl"; /* ST M24256E WL page of 0x50 */ + pagesize = <64>; + reg = <0x58>; + }; + rv3032: rtc@51 { compatible = "microcrystal,rv3032"; reg = <0x51>;