Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp173142rwe; Fri, 14 Apr 2023 00:34:30 -0700 (PDT) X-Google-Smtp-Source: AKy350aR/M34hqrkXchqgyNSz/7jFZ6glKZeZNK8NuBmjlJiYNfSdNfaWtRdbhG44QROOsde60H+ X-Received: by 2002:a17:90a:de8c:b0:246:7b1d:8817 with SMTP id n12-20020a17090ade8c00b002467b1d8817mr4267749pjv.48.1681457669964; Fri, 14 Apr 2023 00:34:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681457669; cv=none; d=google.com; s=arc-20160816; b=PYZaD35I/RYmtTv83TlqOQS10cKsB1dyLw0CInFWk6hj4lvSFFgkJnVFHIoZx6QnsS t20TS47S36QQbQ4/6w7u4KohXqs35yCX2HrtRBMpRvMEkTZeIrWEkqeSKdth1xu0IFDG 5wweYDF6eySLFFsBb41IApB0KY4Dqk8GB1xfFBHVqnVD7GCUKU07HS1pOhePxNybLdec CJB64MVVbPxhlX7M6IKu2sSNnZUE034yr2b+CPDTPUMf7/mP1XdLjSEM5jcwSK+LNqle 3OVvP5kyROurJpx0DnKHujinsqXfPXZneL8d6tK6EspCqlnsprFnhP7lb3ANjL4Q3E7A ne1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bBA9MF9F5PI1M/+vLYYR6OvKJtgwAEZj6Jd75cVBw2o=; b=CrpRGObzUXB6GiaC+B2f4Reb1Wh7kEfBKZliOQN2ZobCjEIMmMTYewa5qt6l4avdJY zmg2+J+ujnio1dQcgnqCLV3I7UvzKl+w8UBy2hIdG+OISt4z8+jFLbofPMdRA4af+jFP UyaGFi4gnh75viLqKRhfyW9wP8rCLdrIzMpkQVggL8LC+N3ScgxORHW/CcmcSJYJAWyM WoHTyl4I3D2G3loqc/sDqgF6Bw8HF5xGu25S6nbxFffNjdhnJQ7drJmXyZIUAWf9HFjy Wz/YKKGubyp2tt+LrB68kdXLfw8PoeIOLtvKQx5P6lWWvCroBGIcuhLLOg157Od4stc0 RbTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=es3YzTzP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kk11-20020a17090b4a0b00b00246c7fd2f72si4419891pjb.68.2023.04.14.00.34.19; Fri, 14 Apr 2023 00:34:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=es3YzTzP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229479AbjDNHd5 (ORCPT + 99 others); Fri, 14 Apr 2023 03:33:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229663AbjDNHdw (ORCPT ); Fri, 14 Apr 2023 03:33:52 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BE194683; Fri, 14 Apr 2023 00:33:51 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 33E7XZ5C007129; Fri, 14 Apr 2023 02:33:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1681457615; bh=bBA9MF9F5PI1M/+vLYYR6OvKJtgwAEZj6Jd75cVBw2o=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=es3YzTzP66joKwagjX+0vv5mxqELrGX7tzPwZtjLioK+8Wwi+Vr5nRFxSVNMhRxjh DAZ4DVZvzreELxQxkNQ6XSyr+qsNa5TCgz3L1xMxNdBuFLAyHE8HswjuGjf93H2knZ 7gAgxS/hKAtIBgcTcH6ahEOC9pNh0muJk9eICXnE= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 33E7XZue053547 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 14 Apr 2023 02:33:35 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Fri, 14 Apr 2023 02:33:34 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Fri, 14 Apr 2023 02:33:34 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 33E7XYcV055397; Fri, 14 Apr 2023 02:33:34 -0500 From: Nishanth Menon To: Krzysztof Kozlowski , Rob Herring CC: , , , Tero Kristo , Vignesh Raghavendra , Nishanth Menon , Neha Malcom Francis , Nikhil M Jain , Tom Rini Subject: [PATCH 06/10] arm64: dts: ti: k3-am642-evm: Enable main_i2c0 and eeprom Date: Fri, 14 Apr 2023 02:33:24 -0500 Message-ID: <20230414073328.381336-7-nm@ti.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230414073328.381336-1-nm@ti.com> References: <20230414073328.381336-1-nm@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable AT24CM01 on the base board using the corresponding compatible. Signed-off-by: Nishanth Menon --- Note: checkpatch does a simple pattern search and fails to find a match #47: FILE: arch/arm64/boot/dts/ti/k3-am642-evm.dts:353: compatible = "atmel,24c1024"; But, Documentation/devicetree/bindings/eeprom/at24.yaml - items: pattern: cs1024$ Cleanly covers the same and dtbs_check looks clean. arch/arm64/boot/dts/ti/k3-am642-evm.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am642-evm.dts b/arch/arm64/boot/dts/ti/k3-am642-evm.dts index 39feea78a084..6456cc6d739b 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-evm.dts @@ -233,6 +233,13 @@ AM64X_IOPAD(0x0218, PIN_INPUT, 0) /* (A14) SPI0_D1 */ >; }; + main_i2c0_pins_default: main-i2c0-pins-default { + pinctrl-single,pins = < + AM64X_IOPAD(0x0260, PIN_INPUT_PULLUP, 0) /* (A18) I2C0_SCL */ + AM64X_IOPAD(0x0264, PIN_INPUT_PULLUP, 0) /* (B18) I2C0_SDA */ + >; + }; + main_i2c1_pins_default: main-i2c1-pins-default { pinctrl-single,pins = < AM64X_IOPAD(0x0268, PIN_INPUT_PULLUP, 0) /* (C18) I2C1_SCL */ @@ -335,6 +342,19 @@ &main_uart1 { status = "reserved"; }; +&main_i2c0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&main_i2c0_pins_default>; + clock-frequency = <400000>; + + eeprom@50 { + /* AT24CM01 */ + compatible = "atmel,24c1024"; + reg = <0x50>; + }; +}; + &main_i2c1 { status = "okay"; pinctrl-names = "default"; -- 2.40.0