From patchwork Tue Jun 4 16:23:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13685638 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 438B8C27C52 for ; Tue, 4 Jun 2024 16:28:40 +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:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=L93kHs6UCkPhtkGDXAJFR1MzVN0vcr4lFlK9EfNDpBs=; b=zQoD5HblqPBxN206XEJOfCjTPd thDFtxdwEbhst+0ScCKQ5/ZS/nHZUuCSvwMWPZnHEOwxUSH1qWYAe1OjDVORhneY+kPjmq/fs3L1L /Pa+CDJMNbJ8o3yGwc2YRKLNTMZyo51WFmpxnzKrbIckqHCf2HnaL3DftEcUtPi+7p3j9PEBG+luf O7dLVrVo7cfdetipsq73W9b0uAVZXVfunoGy//ucQ9ep5MB0bDFW7HsrWeOIEeewUF+5sngX4Zyg3 8QPB0u+P6AOPwIvElxnfajtZSWmH9KPif7KqOagfu1ZRlq1bxPbHL5MdAdh2bYa5TwIuqXGvYstG/ iZO/cYew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEX1X-000000037WL-2Scw; Tue, 04 Jun 2024 16:28:35 +0000 Received: from mail-db5eur01on072f.outbound.protection.outlook.com ([2a01:111:f400:fe02::72f] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEX1U-000000037VB-22F9; Tue, 04 Jun 2024 16:28:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PkYc6b0q4hV5hJFFLxdMwHVJ8sqB7gCwsx60dO9Bo/8v3+XMZ9MakUe6I7e26ZrYk/V8rgsO9E+tLmnZ8LDmdcxviF4wjinhLaw32ByqEt5Kd8EamFKJIES+u+M70Q/kX0RfsSlGpGlmikbzFJlP8BperlfRuwcOkM6MZ9OdcMeS41rxrIS6SX2P6dJipoH5N549xTaAdLBIN3iL6ZCkdkbTHFU/7E3ZIazXm0cBa+odlSJzXJuFa7DR8ex3eVbc0hAnXeACFGXxvVJL5z97xkOahzbxnPjRAP6DuOsCh7GSgMIMeZRyksSGxbqyvV1KYZgjpDTF3kZrYaSlXJGkwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=On0oVvcix4kz32EkquB9/gcU0H9k4vE/nZRTBC1fi4M=; b=BsQjM74xYGLR79AgOSYtiim1g2VfWfi4eKSaBt4mWpC/DkngGLfNAvTtkxAuE2Zn5o6l7ALzEiPmgaFMP8JHIf+Mu84gSONCAA/srk4jGNZ9n1kyW9f/41TeHuDtN6i4NKaYFFhtuLSDxdGmDrAglyNhphSeD//yfdN9QHiY35/d5F/nnqH/CRSoT7iBr1lCySYijSNdBO2M5Q/hjgnlDEHXMtEgV1T/yD5xHusPVPyvCITu+OOp8pdAPJsjMUeaAU3amWYqZ2GlwnZJsPh5LYD+u5vVBUvE/z513OBqk42aD2yUu06/MdEzX4rdwLgYhZtvLV9bbMtaIVu4esp4Wg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cherry.de; dmarc=pass action=none header.from=cherry.de; dkim=pass header.d=cherry.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cherry.de; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=On0oVvcix4kz32EkquB9/gcU0H9k4vE/nZRTBC1fi4M=; b=oPVzuqQk8gpTN/dgBaGhqUWN+4ZceUJbEDU7RNd4qKZ+cfagV6IHftVvNRvj6d/l+EzqL23QVUpoH2cQXDEdWHGtBXLV1zl0HuzRJ/wvjN63wRQvVUAOHDLKuVaPWG/bj5zfmNknk9W3x0n5XBrdDHLdGLlg3TaXXEpjQ5kWBl0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cherry.de; Received: from VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) by PAXPR04MB8893.eurprd04.prod.outlook.com (2603:10a6:102:20c::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.25; Tue, 4 Jun 2024 16:28:27 +0000 Received: from VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::2a24:328:711:5cd6]) by VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::2a24:328:711:5cd6%5]) with mapi id 15.20.7633.021; Tue, 4 Jun 2024 16:28:27 +0000 From: Farouk Bouabid Date: Tue, 04 Jun 2024 18:23:52 +0200 Subject: [PATCH 2/4] arm64: dts: rockchip: add mule nvram/rom to px30-ringneck Message-Id: <20240604-nvmem-v1-2-b784260a36a6@cherry.de> References: <20240604-nvmem-v1-0-b784260a36a6@cherry.de> In-Reply-To: <20240604-nvmem-v1-0-b784260a36a6@cherry.de> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Farouk Bouabid , quentin.schulz@cherry.de X-Mailer: b4 0.13.0 X-ClientProxiedBy: VE1PR08CA0003.eurprd08.prod.outlook.com (2603:10a6:803:104::16) To VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6382:EE_|PAXPR04MB8893:EE_ X-MS-Office365-Filtering-Correlation-Id: d059a260-2ef3-49a5-841f-08dc84b35c9e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|366007|1800799015|52116005|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?+KeGhJbNmicl1rNKu817STNaz4/J2PU?= =?utf-8?q?63dZDr+FgrkiidDwVQLeQ19WfXTEfFySh4lhnYoocpJAc3Xajx2Yt3o74kWsUWsqp?= =?utf-8?q?yRBixvZGMTCizcum/lBt3baWuEIu/GJ1Uw+O+vnh9glCznNYj7Sibg8IrwbsUwkTz?= =?utf-8?q?C81g7Ls1DGXHSWglzsH0Uz92+NjNjAdhqs6r2C0sIMMTh2lOmjxefgBeUmJXoxCXw?= =?utf-8?q?irHKf02FeKmrploB+zRMhNNrgwVCtMawuOEhX2A7W4H8P6hYicTGAQ1ikxGksn2nQ?= =?utf-8?q?2SaUOLaodAl6YafOUNkUiMusLe1PrpoBj8DEB2wINi9b4cfUfGJMtfp3JhYTsJDjd?= =?utf-8?q?Bz3r4puWQoFtwFXwiv3Ts03qmauUVMkc1iIXQudSNut7KYZKvQ5eyo/cgI9oaxVqh?= =?utf-8?q?UBZQsWsRZzLrKwmJlJTNrODPL6acD3bYFxflOCdkd66piUSdr83LD3+xYqzJeGwkr?= =?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am-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR04MB6382.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(366007)(1800799015)(52116005)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?W0xkqGiU6IZP4IyhVGhCs3MW5KRR?= =?utf-8?q?EYXMqih1Mwpj24OjDCOmPj+BaLyAXT/CUppYVc1g61zpzAPoD9duMWOMwCL47K7kD?= =?utf-8?q?/WmL5VlUoEpbPiNfNxlyUO2dyQcnqaC65n6UGn1H9KEqTql+swgehteOSYCDeoTRP?= =?utf-8?q?CvlUiELVDWpQJMbwPnHZFPgr5nX+IPgrKpo02mevQp2YAwbyK6joHHMewUpWzudDE?= =?utf-8?q?lAOZHoJlLZL5sxLcf4oUKoUqhO1yMk1a8Os9wct/aH/1e0gDJ6oNqNemO7PXgxqLJ?= =?utf-8?q?dLPPkh+ch/jT3we8pRsAfCkI6eF6znCuI7WlDuycUHG+VlpvVz8tqTsf64SuxMNQi?= =?utf-8?q?wdfg97jd0lKyFq4aT7k7St9qWqUImAIReIpUVkzNZVvI9VzVnKsXYgi0iiPdZC5uL?= =?utf-8?q?YIpJs7DFdmEipLgh/8hpFyctW72q1ONc6G5MCz2K6sgL/be8LXbLxQTDoa2ZyoqOO?= =?utf-8?q?5nagCI22rUT+Hzq19HW6NGmKqsu1lEoJmzW2kWL6gOyNUKmO1CPIOaIN/eXOjSXXu?= =?utf-8?q?pen9ZEHysb5F1esEtJMmHuR0RmsIWxg4r1/h5awM7n7ZHH5TkHizWfxXat9LEK2al?= =?utf-8?q?9hr0GjqJ/XK78RVwjuWDXjlbrPslqnyOkrNxkoxVMU6z54QRhzPRXINir7fy1dlqs?= =?utf-8?q?x7CNCfxg7yLKssSpW4LQ/q1wUWAyFpoeGJ24HQRlVFEfbtI+azoO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rg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: d059a260-2ef3-49a5-841f-08dc84b35c9e X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6382.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2024 16:28:26.8420 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5e0e1b52-21b5-4e7b-83bb-514ec460677e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Qz806gTBh22myQAiUDuckiJ6KGQy6x95Zo9ti6cegsMny02HSufCQ2uUThqLFgM7wY+jhH2v24/8rOnj2luq61p8AbtProI2F43+pUej/gg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8893 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240604_092832_629397_2372599C X-CRM114-Status: UNSURE ( 9.81 ) X-CRM114-Notice: Please train this message. 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 Add mule NVRAM and ROM on the Mule I2C mux (0x18). Signed-off-by: Farouk Bouabid --- arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi | 45 +++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi b/arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi index eea906379983..62591972df02 100644 --- a/arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi +++ b/arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi @@ -10,6 +10,8 @@ / { aliases { i2c10 = &i2c10; + i2c12 = &i2c12; + i2c13 = &i2c13; mmc0 = &emmc; mmc1 = &sdio; rtc0 = &rtc_twi; @@ -309,6 +311,49 @@ fan: fan@18 { #cooling-cells = <2>; }; }; + + i2c12: i2c@2 { + reg = <0x2>; + #address-cells = <1>; + #size-cells = <0>; + + eeprom@18 { + compatible = "atmel,24c02"; + reg = <0x18>; + size = <8>; + }; + }; + + i2c13: i2c@3 { + reg = <0x3>; + #address-cells = <1>; + #size-cells = <0>; + + eeprom@18 { + compatible = "atmel,24c02"; + reg = <0x18>; + read-only; + size = <32>; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + mule-variant@0 { + reg = <0x0 0x1>; + }; + + mule-bl-version@1 { + reg = <0x1 0x8>; + }; + + mule-version@9 { + reg = <0x9 0x8>; + }; + }; + }; + }; }; rtc_twi: rtc@6f {