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: 818304 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5ACE183CA1; Sat, 10 Aug 2024 21:14:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.11.138.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723324498; cv=none; b=m3HIvtiGRwUjXkVK7EjGzPa82CnD57eiGXGat/r0TWFLqNdOl5lviSG6piVadlAjYqno3OvVJDeb/XBXKVMBrEoCVsksi5KrqeF4dMlkCKRTt6FnzZi70DqmcVkdV2WsO2l3upy5/7sYje3PgLyLQDdtk8diTgU6+YeMXrSYsUQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723324498; c=relaxed/simple; bh=PA+2RBGwMVxSW4LJOF4UM3Ay/Bs+Ef8O6uPxqBMAAy0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=jCT3IC5vtUKtW7JU90bUOIb7JQB++epIXs9czftKEYXN4Ma8o05M8K/GWcJ0J/j0xA58xBZvu3GHC0x51968xFxhJb/NIAQFqJvL2PebbbTx6pYup7X823duuJwHDGIU90cFfIAIay64lyFUl2F0r29VESgL5334fep25tMeeOo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de; spf=pass smtp.mailfrom=sntech.de; arc=none smtp.client-ip=185.11.138.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de 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> Precedence: bulk X-Mailing-List: linux-i2c@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 818305 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09A4E3AC36; Sat, 10 Aug 2024 21:14:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.11.138.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723324496; cv=none; b=Hr353KgipWFDpVhgqauT1AwJgfwNSSFEvOW1/DffiKUE+ZBddG2QFyHCzKXHEnEe4fPFzPyfldnYVV99SlB5MhqzOO3bkYbqHAMtPMEmhTgwFRNKCxxY0aJclEjlfbW0d5oRh0NccH1MtmuBWzf0f8CjGfTLh9czmm3gUythhxo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723324496; c=relaxed/simple; bh=3WndJr1VPCz32UZRt2j8a6HZa9mwEJ2Y/SDp/cfPBbU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=tDqmIZtr/8PMyxIwWXtpj4IWV9AyJz6j0ggX32BVYBr/jxMuLbM5jzW8kFP/T13gGHoJEBlkwkKvl1uhoUQSRsy1Nytiqyg2wY5vHHvwU7+WSkWJ0VNBDB6zdMTOz2ZAHpNdbCQ6724kQMfXoL5OGgLd9AIzIC1py+egNNigykg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de; spf=pass smtp.mailfrom=sntech.de; arc=none smtp.client-ip=185.11.138.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de 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> Precedence: bulk X-Mailing-List: linux-i2c@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 {