From patchwork Sat Sep 23 08:00:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 143842 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp46258vqu; Sat, 23 Sep 2023 01:04:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHkWAoLhHvZq5e1/lqTB9Gkmynq+eEnS9HkS5W3LKtR98l5VkVogQT6/3YzePZXgGbpIE5E X-Received: by 2002:a17:902:e552:b0:1c4:16f7:d95b with SMTP id n18-20020a170902e55200b001c416f7d95bmr1332209plf.63.1695456246477; Sat, 23 Sep 2023 01:04:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695456246; cv=none; d=google.com; s=arc-20160816; b=SOWmgP5iKnnyBxrGcdfJ6Txb9t7MJ/ixHso66x2Nm/5q96T4w7VOQH2MD72CHbwIci np8HGR+lw0JzrzIphPiIHofEgwqoULQzdVa6pYyJy+fVLrRF3ltSUZvSyzEOIRtOqDSq vzB5r81xmjWy+kX3EYAzMnMchs3WYSNfuZ6/Eq4VpE1vACPwqQm+zQAYaZX/afH9tZh1 m9SYkyIew+RrgjieqzLwy84qE4aKC5BuWkhjh1kU88ThSEzF+CedhpYbKlD/1SKZc/5X M389aHKnCf/otExko6wrGNeG4Fzx2I0I2t8xJu23fh3VH1GmmttDlO/kGiIr7QGkLWTk xxlw== 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=mue5d0W67gQBamMG3O0r2E4X32KKmHZSlcMKgQ+AYv0=; fh=p4mxfr/KYuHuflwDi4m89pVL+Tqnak5+SO5/qc+1tX8=; b=ev1bs1TI9JAAoy7pn+/FFHqd1PHe8FNwGhaDO+Aeqn7F16wzkqaYHRZaqBraAaaWu7 QWNAxJAB4UJX5HSTv5M4vHjbVgUS+wVcpYP4dOFQlN6XvIvRpUGTeoLbVkvQ7steWbY3 sio6PFRrFeDwyZJTKFt1UeIbLK6k2hnUPzWE2ezSDKRl+K/e8pLZw0bFj2Wb6JBamzY5 w7ZVncr25qnWz34CUOXlsU3SveD04bVpsRu9GUE+n6AWwUR4dFg0bm/KGCq1l430iNQd 8HYPFXJkpmZDXsB5uBmb9UM7l8hnKijH4OlO7rtCF29AwzbHVSrzDEuG83xhDao+Gp6B A6TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=unKuQq9C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id u10-20020a17090341ca00b001c32fe6cdf9si5771214ple.386.2023.09.23.01.04.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 01:04:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=unKuQq9C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id EF71585FED95; Sat, 23 Sep 2023 01:01:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230411AbjIWIBr (ORCPT + 29 others); Sat, 23 Sep 2023 04:01:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230360AbjIWIBm (ORCPT ); Sat, 23 Sep 2023 04:01:42 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CB0A198 for ; Sat, 23 Sep 2023 01:01:36 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65A41C433C9; Sat, 23 Sep 2023 08:01:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695456096; bh=RKLIpEQ5S2mFP6kp/v4L5r5HBMSsXtLcED1ZmKHGQwk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=unKuQq9CnqHnjVy+rDYxhSiuihYrSn88kTPp2wVobfwuEEuJ3q7CNOkmLjj0Z+lcN u/vTgOYyUjrZrPQMTd3z2lElY4N4U7wq43oMGVMFBtLOe8Bm5RD1j64uqabUyB5EbZ WNFHwepluHs0bq+Qy7K0TyfaYn3NtPrEXt1sNDBuBxphVm0f1OWLnu5Xi3tny8dsOv +0Oww9KxUOgwEoKaiMbH4ewhk12c/fuNe9RX+I897k3Ymk52xGCEMZ/E5dcalg1Toe 2qdmkdVH9u1Lf/QbYp9ptlAvngCJ++1a++qQxvLD+l+XiSrnlWjnmxroDmck9xZWMC tMJhS80xA8rDA== From: Roger Quadros To: nm@ti.com, afd@ti.com, robh+dt@kernel.org Cc: vigneshr@ti.com, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, srk@ti.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Roger Quadros Subject: [PATCH v2 1/2] arm64: dts: ti: am642-evm: Add overlay for NAND expansion card Date: Sat, 23 Sep 2023 11:00:45 +0300 Message-Id: <20230923080046.5373-2-rogerq@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230923080046.5373-1-rogerq@kernel.org> References: <20230923080046.5373-1-rogerq@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sat, 23 Sep 2023 01:01:52 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777814729247456268 X-GMAIL-MSGID: 1777814729247456268 The NAND expansion card plugs in over the HSE (High Speed Expansion) connector. Add support for it. Signed-off-by: Roger Quadros --- arch/arm64/boot/dts/ti/Makefile | 3 +- arch/arm64/boot/dts/ti/k3-am642-evm-nand.dtso | 140 ++++++++++++++++++ 2 files changed, 142 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/boot/dts/ti/k3-am642-evm-nand.dtso diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile index e7b8e2e7f083..ad5f688df430 100644 --- a/arch/arm64/boot/dts/ti/Makefile +++ b/arch/arm64/boot/dts/ti/Makefile @@ -28,7 +28,8 @@ dtb-$(CONFIG_ARCH_K3) += k3-am62a7-sk.dtb dtb-$(CONFIG_ARCH_K3) += k3-am62p5-sk.dtb # Boards with AM64x SoC -dtb-$(CONFIG_ARCH_K3) += k3-am642-evm.dtb +k3-am642-evm-nand-dtbs := k3-am642-evm.dtb k3-am642-evm-nand.dtbo +dtb-$(CONFIG_ARCH_K3) += k3-am642-evm-nand.dtb dtb-$(CONFIG_ARCH_K3) += k3-am642-phyboard-electra-rdk.dtb dtb-$(CONFIG_ARCH_K3) += k3-am642-sk.dtb dtb-$(CONFIG_ARCH_K3) += k3-am642-tqma64xxl-mbax4xxl.dtb diff --git a/arch/arm64/boot/dts/ti/k3-am642-evm-nand.dtso b/arch/arm64/boot/dts/ti/k3-am642-evm-nand.dtso new file mode 100644 index 000000000000..12593836eaab --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-am642-evm-nand.dtso @@ -0,0 +1,140 @@ +// SPDX-License-Identifier: GPL-2.0 +/** + * DT overlay for HSE NAND expansion card on AM642 EVM + * + * Copyright (C) 2021-2023 Texas Instruments Incorporated - https://www.ti.com/ + */ + +/dts-v1/; +/plugin/; +#include +#include +#include "k3-pinctrl.h" + +&main_pmx0 { + gpmc0_pins_default: gpmc0-pins-default { + pinctrl-single,pins = < + AM64X_IOPAD(0x0094, PIN_INPUT, 7) /* (T19) GPMC0_BE1n.GPIO0_36 */ + + AM64X_IOPAD(0x003c, PIN_INPUT, 0) /* (T20) GPMC0_AD0 */ + AM64X_IOPAD(0x0040, PIN_INPUT, 0) /* (U21) GPMC0_AD1 */ + AM64X_IOPAD(0x0064, PIN_INPUT, 0) /* (R16) GPMC0_AD10 */ + AM64X_IOPAD(0x0068, PIN_INPUT, 0) /* (W20) GPMC0_AD11 */ + AM64X_IOPAD(0x006c, PIN_INPUT, 0) /* (W21) GPMC0_AD12 */ + AM64X_IOPAD(0x0070, PIN_INPUT, 0) /* (V18) GPMC0_AD13 */ + AM64X_IOPAD(0x0074, PIN_INPUT, 0) /* (Y21) GPMC0_AD14 */ + AM64X_IOPAD(0x0078, PIN_INPUT, 0) /* (Y20) GPMC0_AD15 */ + AM64X_IOPAD(0x0044, PIN_INPUT, 0) /* (T18) GPMC0_AD2 */ + AM64X_IOPAD(0x0048, PIN_INPUT, 0) /* (U20) GPMC0_AD3 */ + AM64X_IOPAD(0x004c, PIN_INPUT, 0) /* (U18) GPMC0_AD4 */ + AM64X_IOPAD(0x0050, PIN_INPUT, 0) /* (U19) GPMC0_AD5 */ + AM64X_IOPAD(0x0054, PIN_INPUT, 0) /* (V20) GPMC0_AD6 */ + AM64X_IOPAD(0x0058, PIN_INPUT, 0) /* (V21) GPMC0_AD7 */ + AM64X_IOPAD(0x005c, PIN_INPUT, 0) /* (V19) GPMC0_AD8 */ + AM64X_IOPAD(0x0060, PIN_INPUT, 0) /* (T17) GPMC0_AD9 */ + AM64X_IOPAD(0x0098, PIN_INPUT_PULLUP, 0) /* (W19) GPMC0_WAIT0 */ + AM64X_IOPAD(0x009c, PIN_INPUT_PULLUP, 0) /* (Y18) GPMC0_WAIT1 */ + AM64X_IOPAD(0x00a8, PIN_OUTPUT_PULLUP, 0) /* (R19) GPMC0_CSn0 */ + AM64X_IOPAD(0x00ac, PIN_OUTPUT_PULLUP, 0) /* (R20) GPMC0_CSn1 */ + AM64X_IOPAD(0x00b0, PIN_OUTPUT_PULLUP, 0) /* (P19) GPMC0_CSn2 */ + AM64X_IOPAD(0x00b4, PIN_OUTPUT_PULLUP, 0) /* (R21) GPMC0_CSn3 */ + AM64X_IOPAD(0x007c, PIN_OUTPUT, 0) /* (R17) GPMC0_CLK */ + AM64X_IOPAD(0x0084, PIN_OUTPUT, 0) /* (P16) GPMC0_ADVn_ALE */ + AM64X_IOPAD(0x0088, PIN_OUTPUT, 0) /* (R18) GPMC0_OEn_REn */ + AM64X_IOPAD(0x008c, PIN_OUTPUT, 0) /* (T21) GPMC0_WEn */ + AM64X_IOPAD(0x0090, PIN_OUTPUT, 0) /* (P17) GPMC0_BE0n_CLE */ + AM64X_IOPAD(0x00a0, PIN_OUTPUT_PULLUP, 0) /* (N16) GPMC0_WPn */ + AM64X_IOPAD(0x00a4, PIN_OUTPUT, 0) /* (N17) GPMC0_DIR */ + >; + }; +}; + +&main_gpio0 { + gpio0-36 { + gpio-hog; + gpios = <36 0>; + input; + line-name = "GPMC0_MUX_DIR"; + }; +}; + +&elm0 { + status = "okay"; +}; + +&gpmc0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&gpmc0_pins_default>; + ranges = <0 0 0x00 0x51000000 0x01000000>; /* CS0 space. Min partition = 16MB */ + #address-cells = <2>; + #size-cells = <1>; + + nand@0,0 { + compatible = "ti,am64-nand"; + reg = <0 0 64>; /* device IO registers */ + interrupt-parent = <&gpmc0>; + interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */ + <1 IRQ_TYPE_NONE>; /* termcount */ + rb-gpios = <&gpmc0 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */ + ti,nand-xfer-type = "prefetch-polled"; + ti,nand-ecc-opt = "bch8"; /* BCH8: Bootrom limitation */ + ti,elm-id = <&elm0>; + nand-bus-width = <8>; + gpmc,device-width = <1>; + gpmc,sync-clk-ps = <0>; + gpmc,cs-on-ns = <0>; + gpmc,cs-rd-off-ns = <40>; + gpmc,cs-wr-off-ns = <40>; + gpmc,adv-on-ns = <0>; + gpmc,adv-rd-off-ns = <25>; + gpmc,adv-wr-off-ns = <25>; + gpmc,we-on-ns = <0>; + gpmc,we-off-ns = <20>; + gpmc,oe-on-ns = <3>; + gpmc,oe-off-ns = <30>; + gpmc,access-ns = <30>; + gpmc,rd-cycle-ns = <40>; + gpmc,wr-cycle-ns = <40>; + gpmc,bus-turnaround-ns = <0>; + gpmc,cycle2cycle-delay-ns = <0>; + gpmc,clk-activation-ns = <0>; + gpmc,wr-access-ns = <40>; + gpmc,wr-data-mux-bus-ns = <0>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "NAND.tiboot3"; + reg = <0x00000000 0x00200000>; /* 2M */ + }; + partition@200000 { + label = "NAND.tispl"; + reg = <0x00200000 0x00200000>; /* 2M */ + }; + partition@400000 { + label = "NAND.tiboot3.backup"; /* 2M */ + reg = <0x00400000 0x00200000>; /* BootROM looks at 4M */ + }; + partition@600000 { + label = "NAND.u-boot"; + reg = <0x00600000 0x00400000>; /* 4M */ + }; + partition@a00000 { + label = "NAND.u-boot-env"; + reg = <0x00a00000 0x00040000>; /* 256K */ + }; + partition@a40000 { + label = "NAND.u-boot-env.backup"; + reg = <0x00a40000 0x00040000>; /* 256K */ + }; + partition@a80000 { + label = "NAND.file-system"; + reg = <0x00a80000 0x3f580000>; + }; + }; + }; +}; From patchwork Sat Sep 23 08:00:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 143843 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp46710vqu; Sat, 23 Sep 2023 01:05:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHXpA3zrmamW1tKLHJiOgO0YlCRFq9EseNpP9yc/9gDkhGF0B7j7+spSjVPyY3hcPbmFNyJ X-Received: by 2002:a05:6808:10d0:b0:3ac:b0ff:ab44 with SMTP id s16-20020a05680810d000b003acb0ffab44mr2485853ois.14.1695456315929; Sat, 23 Sep 2023 01:05:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695456315; cv=none; d=google.com; s=arc-20160816; b=L993yseILg53yDKSCPwznGXp1u6mZd7HV39DIZwOAzm0f644jxyoWEg97FXSJbOL8J GmU5tKjkkcRqPVbBnROjzecWqZZfIe7/4M3e2lw2hu5KWFVcapvL8q0YiDWG0aHFXA2n hnkr/kis/yveFJDeshuYPxsURFoq21SNXJyZ5rjndN6StYRiNjsQsn8koaQPdc7xHKz+ FwSjMHUSFe4JJ17zeY3hfVc0p7oGU7SPFosW98y1Y/wftwCqP1iJU9o8pHgqOR6+Gq9i KvqsksCd6awQcCPJ8CkGRSVn8nOLrBsBqRWpnJSVkvec6FWfu0xNS9sBXK3qa51bNXFi HQGw== 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=ljHxIdQ3Zah0IfgjYHDJVHvMa+KAN2Rxd/9Q7jLszgI=; fh=p4mxfr/KYuHuflwDi4m89pVL+Tqnak5+SO5/qc+1tX8=; b=mo9tYDndZnkDB2an7zltbqG/xgYdIMZnByo9CyXJAbLCNWAprY+Pjdf6jQ036omJlX 4GwfoTsw+oTVlGowNF6MlpIjyNzSGNLZ+zFczKTxU3iPLDzIrxVJPeb2cWVnC5KWRfah +DYuClgpWsK3QwzpoDMfg7KmLClHeeLEASXH/OdN0cAh22VGRpuVTYiJmoCVPApwRBo3 yk1UadJNmbYSniXNcZE/a/qlGzsMETGiosNzdXLK0XF3k57OfX0pwNyg8vxOl9LoFIXl TCneCQtENR9UNNTqve54pYQ6KXHeKjSus1S+MvvxK52YwYsk1HBqkBiH2CvnF/BuAwyR 2HTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cONVAf0R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id o9-20020a170903210900b001c46d3dcebasi5101235ple.449.2023.09.23.01.05.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 01:05:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cONVAf0R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 544C9802B115; Sat, 23 Sep 2023 01:02:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230441AbjIWIBs (ORCPT + 29 others); Sat, 23 Sep 2023 04:01:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230410AbjIWIBp (ORCPT ); Sat, 23 Sep 2023 04:01:45 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7154C180 for ; Sat, 23 Sep 2023 01:01:39 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 817B3C433CC; Sat, 23 Sep 2023 08:01:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695456099; bh=+0bl9JdtpO6RZoE8citmM/PLqhG+QSEn497rexS26YE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cONVAf0RPSXuf0xSZUfskI+UYtgfC3rYPXKa8jYXWC/kUG3+NdAiYZN4x0KHEJ0G/ kzQMmlQZFlIqix/Gpuyv3NMIzhzCvHhMSHdEtHOFQaP5WzJc7X3ntaFR5+tctqxJmt psGPyYbx5Ca8hpnJWL42BXAm/ceTI3HIwis/KxXJa3mfNyNKmHR37tsCXPdwCyZTgz 3B76PVZrtPrdO4Rx93VFY0gKKW/nV/2PBu9XTj9ltW40tjRDixrWxCTNdzTu8I6QCU lyFa5GK9+eVCgc4eCxZrcyYpVv1pvBaqrbG7YOvxf2wiSDPZOjx28wizokUAZG27FJ 7i7RSucWZy5ug== From: Roger Quadros To: nm@ti.com, afd@ti.com, robh+dt@kernel.org Cc: vigneshr@ti.com, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, srk@ti.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Roger Quadros Subject: [PATCH v2 2/2] arm64: dts: ti: k3-am64: Add GPIO expander on I2C0 Date: Sat, 23 Sep 2023 11:00:46 +0300 Message-Id: <20230923080046.5373-3-rogerq@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230923080046.5373-1-rogerq@kernel.org> References: <20230923080046.5373-1-rogerq@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Sat, 23 Sep 2023 01:02:08 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777814801846658276 X-GMAIL-MSGID: 1777814801846658276 A TCA9554 GPIO expander is present on I2C0. Add it. Signed-off-by: Roger Quadros --- arch/arm64/boot/dts/ti/k3-am642-evm.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am642-evm.dts b/arch/arm64/boot/dts/ti/k3-am642-evm.dts index b4a1f73d4fb1..3dccc597f516 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-evm.dts @@ -392,6 +392,15 @@ &main_i2c0 { pinctrl-0 = <&main_i2c0_pins_default>; clock-frequency = <400000>; + gpio@38 { + /* TCA9554 */ + compatible = "nxp,pca9554"; + reg = <0x38>; + gpio-controller; + #gpio-cells = <2>; + gpio-line-names = "HSE_DETECT"; + }; + eeprom@50 { /* AT24CM01 */ compatible = "atmel,24c1024";