From patchwork Sat Aug 10 21:14:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Stuebner X-Patchwork-Id: 13759631 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 2E14BC3DA7F for ; Sat, 10 Aug 2024 21:15:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8u500IpoGZ/NnY41XL//K7KakGpvUbbHEYqIeNYIHpc=; b=zZ+J4lW63GAUde OmvErx2M1XLS4Z4E9LEwgqgsckAftSwDO7U2oewBWA//r/eK3s2+qEhI5ray/xINKsksIFzlmjLiq NpqWbicSdQiOqJAvZlqTEjDBfR+ITtmdLuAxm4867/p5z6hk0hp9d5EHf3G3wNnYnPyFgKr23yT9k STzTnC/CYwemcVV8aN8D82X9iWtr/YhJ1aLNdNL/h5QcnMWUqpssHuBdugues9he2t0Ocw/AWBVKZ /bFf7gQF0FDXSOjc2kxBKdxE2vITQiVXKDvC9ruint1Ik1SDcVHlBpdoOoRRHcpSufqBsN++xRdzp chZf+a+WTvKyr/J2kv1g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sctQz-0000000Ebjm-090i; Sat, 10 Aug 2024 21:15:33 +0000 Received: from gloria.sntech.de ([185.11.138.130]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sctQN-0000000EbbQ-2P58; Sat, 10 Aug 2024 21:14:56 +0000 Received: from i53875b02.versanet.de ([83.135.91.2] helo=phil.lan) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sctQH-0007Ui-LJ; Sat, 10 Aug 2024 23:14:49 +0200 From: Heiko Stuebner To: brgl@bgdev.pl Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de, ukleinek@debian.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: [PATCH 1/2] dt-bindings: eeprom: at24: Add compatible for Giantec GT24C04A Date: Sat, 10 Aug 2024 23:14:37 +0200 Message-Id: <20240810211438.286441-2-heiko@sntech.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240810211438.286441-1-heiko@sntech.de> References: <20240810211438.286441-1-heiko@sntech.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240810_141455_632220_02A649C5 X-CRM114-Status: GOOD ( 10.05 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org The gt24c04a is just yet another 2404 compatible eeprom, and does not follow the generic naming matching, so add a separate compatible for it. Signed-off-by: Heiko Stuebner Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/eeprom/at24.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/eeprom/at24.yaml b/Documentation/devicetree/bindings/eeprom/at24.yaml index e396e47b2f13c..b6239ec3512b3 100644 --- a/Documentation/devicetree/bindings/eeprom/at24.yaml +++ b/Documentation/devicetree/bindings/eeprom/at24.yaml @@ -116,6 +116,7 @@ properties: - const: atmel,24c02 - items: - enum: + - giantec,gt24c04a - onnn,cat24c04 - onnn,cat24c05 - rohm,br24g04 From patchwork Sat Aug 10 21:14:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Stuebner X-Patchwork-Id: 13759632 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 05AA7C3DA7F for ; Sat, 10 Aug 2024 21:16:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SlTqGB06cnyLt3svyUQPMSM+XqwuntADRFn+dy37+6I=; b=Fjw/MtQpn15pHM EecXHZ3J4lY/tKN8sbSN2hejMyHj5HqQtwzi2gUJmtfY/V7sx6tA82Z7JT2lBDQaqslwZmcuGSkz+ F7PpPU8b0vlD7OnFR3QGMtABb6Q5QUmVIquRglFJrz8bP3223iCUGEIRl3h87/JYWjsmtRaiuuTCH GKxotYFPB7mywyqLxaq6t1i4oJmBjHx+x4mcOBSGDeDFESEbbrlfLb4CkEMgozY9YdR9R8u/JpGZt /AW84ARmvFszrsg6/DkKont3ciMlilpD1jCRXu4g6Z5Ffi7p+rKzwQ/ID1fDrIqt8LAiFYsh/VJbU hGAzG7MteAHBWCdROTHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sctRW-0000000EbpP-3CcD; Sat, 10 Aug 2024 21:16:06 +0000 Received: from gloria.sntech.de ([185.11.138.130]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sctQO-0000000Ebbi-45Wq; Sat, 10 Aug 2024 21:14:58 +0000 Received: from i53875b02.versanet.de ([83.135.91.2] helo=phil.lan) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sctQI-0007Ui-67; Sat, 10 Aug 2024 23:14:50 +0200 From: Heiko Stuebner To: brgl@bgdev.pl Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de, ukleinek@debian.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: [PATCH 2/2] arm64: dts: rockchip: add product-data eeproms to QNAP TS433 Date: Sat, 10 Aug 2024 23:14:38 +0200 Message-Id: <20240810211438.286441-3-heiko@sntech.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240810211438.286441-1-heiko@sntech.de> References: <20240810211438.286441-1-heiko@sntech.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240810_141457_221769_1DD375D7 X-CRM114-Status: GOOD ( 11.99 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org The device contains two i2c-connected eeproms holding some product- specific values. One sitting on the mainboard and one on the statically connected backplane. While the eeprom chips themself have a size of 512 byte, the eeprom data only uses 256 byte each, probably to stay compatible with other models. Signed-off-by: Heiko Stuebner --- .../boot/dts/rockchip/rk3568-qnap-ts433.dts | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-qnap-ts433.dts b/arch/arm64/boot/dts/rockchip/rk3568-qnap-ts433.dts index 110c323786848..7bd32d230ad2f 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-qnap-ts433.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-qnap-ts433.dts @@ -458,6 +458,26 @@ rtc_rv8263: rtc@51 { reg = <0x51>; wakeup-source; }; + + /* eeprom for vital-product-data on the mainboard */ + eeprom@54 { + compatible = "giantec,gt24c04a", "atmel,24c04"; + reg = <0x54>; + label = "VPD_MB"; + num-addresses = <2>; + pagesize = <16>; + read-only; + }; + + /* eeprom for vital-product-data on the backplane */ + eeprom@56 { + compatible = "giantec,gt24c04a", "atmel,24c04"; + reg = <0x56>; + label = "VPD_BP"; + num-addresses = <2>; + pagesize = <16>; + read-only; + }; }; &mdio0 {