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: 13759634 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 9B0F5C3DA4A for ; Sat, 10 Aug 2024 21:15:42 +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:References:In-Reply-To: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:List-Owner; bh=dg0vHK0icafJD7+dx7yvwbgEdKAPnG36BdjWJtMMkbg=; b=48fGgs18KOjMtNj61CwYZ+mQSW 07MocE5zX+EwxfL/tlYYvREDrVCgrm+I9s/1lDdH68DRkGH4DON+nueMwze2mmPZgYQLNj0EVp2NO SO7Xw5CQTYIstNgJG0GRv6cJcuzWRyPCmlU6yxEAfAv0Ye827CCljj7rDJwFkOGt2nhmkd32FJaqH JpsNonbYZD54kYBlRE2VlnbpRHtmCUbrxcy+wVws0Xg/g+JS5IasGH6sbHbabSbxe9djGfgRunfEI f3ngI85iPGG9fYi1YampE8AgioO4UhBR5c0HffbhMPdOCWsQEehBugQIV8tE7KQ9/nVxC1mH0COTh 8QHpIzog==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sctQy-0000000Ebjg-1yeX; Sat, 10 Aug 2024 21:15:32 +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-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 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: 13759635 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 9717CC3DA7F for ; Sat, 10 Aug 2024 21:16:17 +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:References:In-Reply-To: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:List-Owner; bh=THDJrfWNtymXzcgP9G3Q5r7ngf6yjPQQ9nltm4yLuS0=; b=G3KtM2NWqmsrtk7+WVxCIcq7nK uZ2AdTxKRQDIeRnRq9HhxJBaghEEEJLkVQIU+RX8l9FBkfcKl5plWlhQmCMiu61sLFJJq8NHNnsGK ik441kasT1QIX8LlVgY4WQc9o5l6WSvVcyEfQPZqnm+QCq4dEBEUuVktmd9Y1szVn3IE0aY/gAyAe kP83EHRB8pILdXTys4As5w10NLP6XtzFfP0PqOfuCoNmrhtlsarJY1HgjQVfmgRtqSdyPv/3y0Y5E 0+pixS3jU57BDJbJOEKSpGjxguPeiQNax2l2tEobChqmvWTi5SXF/Br3KDMUvEIYBvi+AKYUUZOKw RnbBp97A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sctRW-0000000Ebp9-0pLc; 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-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 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 {