From patchwork Wed Oct 4 11:12:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nitin Yadav X-Patchwork-Id: 148233 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:254a:b0:403:3b70:6f57 with SMTP id hf10csp52132vqb; Wed, 4 Oct 2023 04:14:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH/foF6g8BuHbacXn2zFo68ruKekPfockF8+97aLP96dJQvhweJSjYbhWI9HkquVjQennE/ X-Received: by 2002:a05:6a20:4423:b0:15e:71c9:7d47 with SMTP id ce35-20020a056a20442300b0015e71c97d47mr2554060pzb.26.1696418043044; Wed, 04 Oct 2023 04:14:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696418043; cv=none; d=google.com; s=arc-20160816; b=RyeLiIDh3xnRdmJKtQB5xkDX+/CMWP6YCk/Epo4tRA6mOVJgPokjXQKXmqmXAZMc1C 2tn9gmOuRwA6DJDaMVEhQYVy33xWDVljZQTKu7WWlG4N4lxUNXhcn8gvRrLkNHfVT2K6 PQ75xP72LIaSdXckkID/hZ5lObVmBzxi0qQudlXNr8CYSAAijqFB4P8uixlG/xwm+V3v afGTiFGdTdYkG3kSxawBaxWYPBvjPj0RKKGyXO999rQwmluRwqnXn9lYyoP/hOG8R4JE 4c9OBwVw4FvY3ymU05QUXFOzluNn5TQqFtqSAL/qJKgfU8JwJlmqkmCCGwyTfXHZajzk yoRg== 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=hcEGmJaTca5mJ5+a9zfv03AuWfc5b7/qRiW8nMZRQz0=; fh=ItDZ1AlsJaw3kyqViSseSXbyzpBD3hg/21y0OsGPN20=; b=ZiiVLi+xopzdWLT76e5tmF4hcFW0J8XVvJMpYauoH7FyxNEt55AA4n0jFxZZojq05K BJWar56UHRtrS73iRvObM8dvpIUzRKK1D4AAm30CFSt0RzmMdCsMneYFqzrzoFtuRmNi tlwbH+zzCe5yoDEulM+78Fj78mk7heLqFQXSauk+uomRRv9zOMwh+xpuh/acHdmddLUK yPLlIe5WNrp+jeji480yAkf58TSEeFxz2tQfToKPt9z24zFjDHtoyvhnYSpLNsDPGTZS zXPNcxzvADZCiEAX2kgZ/7VgpVVEgFzp6E7voZNCp0qB5efZQNgMIxEEW/LcqdfkDX98 ulWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=vLGo+nWV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id fj14-20020a056a003a0e00b00690c1e51cdfsi3704969pfb.188.2023.10.04.04.14.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 04:14:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=vLGo+nWV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id ECD6E80C3A13; Wed, 4 Oct 2023 04:14:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242223AbjJDLNB (ORCPT + 18 others); Wed, 4 Oct 2023 07:13:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242212AbjJDLM7 (ORCPT ); Wed, 4 Oct 2023 07:12:59 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15AFFA1; Wed, 4 Oct 2023 04:12:56 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 394BCgMb021501; Wed, 4 Oct 2023 06:12:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1696417962; bh=hcEGmJaTca5mJ5+a9zfv03AuWfc5b7/qRiW8nMZRQz0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=vLGo+nWVzXAFoe+/4ESLpdkR7RIgKfPNEmDEC2MZcUgEMdjJNYpj5iZ0XuwBCgmYw DKy3JIKlWk512pShx5PBhGBKTSrElcaymLezXzA8ne4osCMU7rz4TAT7InxHDFLGo9 cNqpPy+Es3wjJuGTcmJU9xb/My+34GDabcaNe0pg= Received: from DFLE101.ent.ti.com (dfle101.ent.ti.com [10.64.6.22]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 394BCggZ056321 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 4 Oct 2023 06:12:42 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 4 Oct 2023 06:12:42 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 4 Oct 2023 06:12:42 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 394BCf3F004007; Wed, 4 Oct 2023 06:12:41 -0500 From: Nitin Yadav To: , , CC: , , , , , , , , Subject: [PATCH v2 1/3] arm64: dts: ti: Add GPMC support for AM62x LP SK Date: Wed, 4 Oct 2023 16:42:36 +0530 Message-ID: <20231004111238.3968984-2-n-yadav@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231004111238.3968984-1-n-yadav@ti.com> References: <20231004111238.3968984-1-n-yadav@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Wed, 04 Oct 2023 04:14:01 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778823245870651368 X-GMAIL-MSGID: 1778823245870651368 Add gpmc0 and elm0 nodes in k3-am62-main. Add GPMC0_CFG and GPMC0_DATA entry in cbass_main node. Signed-off-by: Nitin Yadav --- arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 29 ++++++++++++++++++++++++ arch/arm64/boot/dts/ti/k3-am62.dtsi | 2 ++ 2 files changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi index ac760d9b831d..f854369dfc27 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi @@ -965,4 +965,33 @@ mcasp2: audio-controller@2b20000 { power-domains = <&k3_pds 192 TI_SCI_PD_EXCLUSIVE>; status = "disabled"; }; + gpmc0: memory-controller@3b000000 { + compatible = "ti,am64-gpmc"; + reg = <0x00 0x03b000000 0x00 0x400>, + <0x00 0x050000000 0x00 0x8000000>; + reg-names = "cfg", "data"; + interrupts = ; + clocks = <&k3_clks 80 0>; + clock-names = "fck"; + power-domains = <&k3_pds 80 TI_SCI_PD_EXCLUSIVE>; + gpmc,num-cs = <3>; + gpmc,num-waitpins = <2>; + #address-cells = <2>; + #size-cells = <1>; + interrupt-controller; + #interrupt-cells = <2>; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + elm0: ecc@25010000 { + compatible = "ti,am3352-elm"; + reg = <0x00 0x25010000 0x00 0x2000>; + interrupts = ; + clocks = <&k3_clks 54 0>; + clock-names = "fck"; + power-domains = <&k3_pds 54 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + }; }; diff --git a/arch/arm64/boot/dts/ti/k3-am62.dtsi b/arch/arm64/boot/dts/ti/k3-am62.dtsi index f1e15206e1ce..b9b1e522d74c 100644 --- a/arch/arm64/boot/dts/ti/k3-am62.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62.dtsi @@ -77,6 +77,8 @@ cbass_main: bus@f0000 { <0x00 0x70000000 0x00 0x70000000 0x00 0x00010000>, /* OCSRAM */ <0x01 0x00000000 0x01 0x00000000 0x00 0x00310000>, /* A53 PERIPHBASE */ <0x05 0x00000000 0x05 0x00000000 0x01 0x00000000>, /* FSS0 DAT3 */ + <0x00 0x3b000000 0x00 0x3b000000 0x00 0x00000400>, /* GPMC0 CFG */ + <0x00 0x50000000 0x00 0x50000000 0x00 0x08000000>, /* GPMC0 DATA */ /* MCU Domain Range */ <0x00 0x04000000 0x00 0x04000000 0x00 0x01ff1400>, From patchwork Wed Oct 4 11:12:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nitin Yadav X-Patchwork-Id: 148231 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:254a:b0:403:3b70:6f57 with SMTP id hf10csp51636vqb; Wed, 4 Oct 2023 04:13:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH/i3qnD/V/x+DjinxaGEqkshV9URYXsTr7tPfTHXAZQp5z5jijNRuUvZiEut46IJjsNGXt X-Received: by 2002:a17:90a:4292:b0:279:be6:bf73 with SMTP id p18-20020a17090a429200b002790be6bf73mr1803800pjg.11.1696417983064; Wed, 04 Oct 2023 04:13:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696417983; cv=none; d=google.com; s=arc-20160816; b=EbDQxqW2yQUpbnT7sDjjP9/obz2YdDFTyawva3pF3qtE2P0YRP7QomuJVd4NV8hUpo 2KFyAQQuB/gS1oJXIigqJNIyJvj2LCxBjkI21wvC4i558JSZaULHgUJYcGoL6bNK8MSd iU34z01c3PJZ3aeirBSVzuhP5Wq1ivbxZfajaIfzIyShhBieWasMLvZiPkYiTXaqJubj mBSS8RI+l+OJjsaoFm6Ng0OrHEVakTpQduGgCiJk1Mv7GNYhKmTZtKNSz6SfJOwnpdlp VwOW6QreGd83JrdOEHqtcavag9MnNq+fVKZMwWXSEuD5c1+s7MLHBrXjsaNjf3n38Irh vy0A== 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=ysgksL1LXn3FvdtwuJVC0V85TqhLXo4rQ01frRy6LIs=; fh=ItDZ1AlsJaw3kyqViSseSXbyzpBD3hg/21y0OsGPN20=; b=dElG6Ofw51srq86JH1EssDI1nEAXysGI46MCR+Lz685OIJuRZfsgUSlRcQtuRSE2MK Zpjm4cR6QbA4W+jaExyNwVj2QZ/jwNVwvO6y/gvxiKgy+eaJKZwLwS+g9iQ/CNXOH+om kEIkeAJ+cC8M9GngtS/HbK676Ov1/r+JI0XnuBgHf3qyo5hSpMITIxp3uDloXOe+HGeD VyH86nXXxClcw1ocsWiVOFWRpfdxbsQlTS/O4h4X72jTHJZUl6boqAZ8Pbz2zWrr6OY+ 48Bt2SX2BVb9BO4AqKLHWk0/wKAQqQzq1SVPFKNoRuvJdBWXrUV0lYQ29nE8dutuV+6/ 8gJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=YVh+7tlL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id x3-20020a17090ab00300b0027b0acd55d2si1201808pjq.101.2023.10.04.04.13.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 04:13:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=YVh+7tlL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 34F9E8212A93; Wed, 4 Oct 2023 04:13:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242211AbjJDLM7 (ORCPT + 18 others); Wed, 4 Oct 2023 07:12:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242191AbjJDLM5 (ORCPT ); Wed, 4 Oct 2023 07:12:57 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 181DCA6; Wed, 4 Oct 2023 04:12:54 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 394BCh0O015582; Wed, 4 Oct 2023 06:12:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1696417963; bh=ysgksL1LXn3FvdtwuJVC0V85TqhLXo4rQ01frRy6LIs=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=YVh+7tlLbDrChUQX3uPM1pwt0Bb527S9GILIkwEIi+TA4HUonwsrCLX5aUE0uOZnC bPpHh3DRB8j7vUiQLF8SCLyNRjaJB9ti2iwhHQ5CAulyuYv9h/FZD+COXVYiWvdQkN ZT+vIIB/fOaWrNh6DqUs9WG2P/Kdzye9McMRCuh4= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 394BChAe024262 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 4 Oct 2023 06:12:43 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 4 Oct 2023 06:12:43 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 4 Oct 2023 06:12:43 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 394BCgJ8022763; Wed, 4 Oct 2023 06:12:43 -0500 From: Nitin Yadav To: , , CC: , , , , , , , , Subject: [PATCH v2 2/3] arm64: dts: ti: Add overlay for NAND daughter card Date: Wed, 4 Oct 2023 16:42:37 +0530 Message-ID: <20231004111238.3968984-3-n-yadav@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231004111238.3968984-1-n-yadav@ti.com> References: <20231004111238.3968984-1-n-yadav@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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_PASS,SPF_PASS,URIBL_BLOCKED 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 (snail.vger.email [0.0.0.0]); Wed, 04 Oct 2023 04:13:02 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778823183026829710 X-GMAIL-MSGID: 1778823183026829710 Introduce k3-am62-lp-sk-nand.dtso overlay file to support the X8 NAND EXPANSION BOARD card (PROC143E1) for AM62x LP SK board. NAND has partitions for different boot components as below: 0x000000000000-0x000000200000 : "NAND.tiboot3 0x000000200000-0x000000400000 : "NAND.tispl 0x000000400000-0x000000600000 : "NAND.tiboot3.backup 0x000000600000-0x000000a00000 : "NAND.u-boot 0x000000a00000-0x000000a40000 : "NAND.u-boot-env 0x000000a40000-0x000000a80000 : "NAND.u-boot-env.backup 0x000000a80000-0x000040000000 : "NAND.file-system Disable mcasp1 node in DT to avoid pinmux conflict. Update Makefile to include k3-am62-lp-sk-nand.dtso. Signed-off-by: Nitin Yadav Reviewed-by: Roger Quadros --- arch/arm64/boot/dts/ti/Makefile | 2 + .../arm64/boot/dts/ti/k3-am62-lp-sk-nand.dtso | 119 ++++++++++++++++++ 2 files changed, 121 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am62-lp-sk-nand.dtso diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile index b3516419f95d..9aea8bdea44f 100644 --- a/arch/arm64/boot/dts/ti/Makefile +++ b/arch/arm64/boot/dts/ti/Makefile @@ -19,6 +19,8 @@ dtb-$(CONFIG_ARCH_K3) += k3-am625-verdin-wifi-dahlia.dtb dtb-$(CONFIG_ARCH_K3) += k3-am625-verdin-wifi-dev.dtb dtb-$(CONFIG_ARCH_K3) += k3-am625-verdin-wifi-yavia.dtb dtb-$(CONFIG_ARCH_K3) += k3-am62-lp-sk.dtb +k3-am62-lp-sk-nand-dtbs := k3-am62-lp-sk.dtb k3-am62-lp-sk-nand.dtbo +dtb-$(CONFIG_ARCH_K3) += k3-am62-lp-sk-nand.dtb dtb-$(CONFIG_ARCH_K3) += k3-am62x-sk-hdmi-audio.dtbo # Boards with AM62Ax SoC diff --git a/arch/arm64/boot/dts/ti/k3-am62-lp-sk-nand.dtso b/arch/arm64/boot/dts/ti/k3-am62-lp-sk-nand.dtso new file mode 100644 index 000000000000..0f4e26db534b --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-am62-lp-sk-nand.dtso @@ -0,0 +1,119 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/ + */ + +/dts-v1/; +/plugin/; + + +#include +#include + +#include "k3-pinctrl.h" + +&mcasp1 { + status = "disabled"; +}; + +&main_pmx0 { + gpmc0_pins_default: gpmc0-pins-default { + pinctrl-single,pins = < + AM62X_IOPAD(0x003c, PIN_INPUT, 0) /* (M25) GPMC0_AD0 */ + AM62X_IOPAD(0x0040, PIN_INPUT, 0) /* (N23) GPMC0_AD1 */ + AM62X_IOPAD(0x0044, PIN_INPUT, 0) /* (N24) GPMC0_AD2 */ + AM62X_IOPAD(0x0048, PIN_INPUT, 0) /* (N25) GPMC0_AD3 */ + AM62X_IOPAD(0x004c, PIN_INPUT, 0) /* (P24) GPMC0_AD4 */ + AM62X_IOPAD(0x0050, PIN_INPUT, 0) /* (P22) GPMC0_AD5 */ + AM62X_IOPAD(0x0054, PIN_INPUT, 0) /* (P21) GPMC0_AD6 */ + AM62X_IOPAD(0x0058, PIN_INPUT, 0) /* (R23) GPMC0_AD7 */ + AM62X_IOPAD(0x0084, PIN_OUTPUT, 0) /* (L23) GPMC0_ADVn_ALE */ + AM62X_IOPAD(0x0088, PIN_OUTPUT, 0) /* (L24) GPMC0_OEn_REn */ + AM62X_IOPAD(0x008c, PIN_OUTPUT, 0) /* (L25) GPMC0_WEn */ + AM62X_IOPAD(0x0090, PIN_OUTPUT, 0) /* (M24) GPMC0_BE0n_CLE */ + AM62X_IOPAD(0x00a8, PIN_OUTPUT, 0) /* (M21) GPMC0_CSn0 */ + AM62X_IOPAD(0x0098, PIN_INPUT, 0) /* (U23) GPMC0_WAIT0 */ + >; + }; +}; + +&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>; + + nand0_0: 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>; + }; + }; + }; +}; + +&elm0{ + status = "okay"; +}; From patchwork Wed Oct 4 11:12:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nitin Yadav X-Patchwork-Id: 148232 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:254a:b0:403:3b70:6f57 with SMTP id hf10csp51715vqb; Wed, 4 Oct 2023 04:13:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGAUUmBY+BVWCkxGs6MQRi1yd8eBeZX5vwArLp0Po9YXGQFCqJh1RXQLjJxItrf5BSrDjqg X-Received: by 2002:a05:6808:1919:b0:3ae:5442:ed1b with SMTP id bf25-20020a056808191900b003ae5442ed1bmr2963067oib.43.1696417993212; Wed, 04 Oct 2023 04:13:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696417993; cv=none; d=google.com; s=arc-20160816; b=ClqoshHeY0w765xB6/EeOmXh9jEYTvA9BpEhY971vAHlUwbQjsSqa5YnNTya4Jqu+0 rFuxCqGtCrKlNy4xb22IsNjXX0307rYCkPG55hliCNBJJdx4QcMcPt/HsAsTthfsDB2t FWVxC47gVlbtyRyw569mpYLsmm0/0e46nENoVmd0zacRqjPiGqAWb2MLzrhGjj8dRYRj B+tFB7IkV11crRMl4sFxEmmp9sz6n8cZRfzw6f1nsYIlbJiWLuOqEJrKwvBHY38+mvc1 1pkzNf2Yni609IKaLaLocDchS1MvFwmxVHToAtgPT1eYHUz6LSeWPbsF7y987MGwTZkg LtJg== 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=AWm94OcSYQMiV0cbA4Ey3lwR6RIUb40JJctj6csgig0=; fh=ItDZ1AlsJaw3kyqViSseSXbyzpBD3hg/21y0OsGPN20=; b=cc3ILDe/tuYI7Zgk0Qb22WCwZKwJymsag0K4AwABc/j/omQqvTkpJHncYNBL2WzZ9w I4rfoeEk95EqjRxSNWXXPUHI8NJH5zNCeoEfigr8tgkht0tZj6zrqA8ukqrigq7c7PaP Lxr1GbkVFQVFVP6TTzLd9bMBn8gyvfSlbiqfgaJaZvChd2+sRdwlyKdI7R3/ix40kfPo wpOpKxdtZ5L5PLqcvNK+kRXVbgz3bKb9ep/K/zvND9hGifn0otxhuithjQlvl61RMA0F EmcqR9bQnQoriPpAwF6rsJAHdTvgMVMmjfEkYwdFa9r3j8BsH+dRHdfMhSFxQ30or//a tiNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Nx5VTWx7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id r20-20020a6560d4000000b00573ff1f360bsi3395917pgv.479.2023.10.04.04.13.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 04:13:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Nx5VTWx7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 859EB8212AA8; Wed, 4 Oct 2023 04:13:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242218AbjJDLNI (ORCPT + 18 others); Wed, 4 Oct 2023 07:13:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242232AbjJDLNF (ORCPT ); Wed, 4 Oct 2023 07:13:05 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C010BF; Wed, 4 Oct 2023 04:12:59 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 394BCjxI021513; Wed, 4 Oct 2023 06:12:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1696417965; bh=AWm94OcSYQMiV0cbA4Ey3lwR6RIUb40JJctj6csgig0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Nx5VTWx7mEt2k1p0K5QV+0w4Lm42hQkR7WlCZtb1Rht/cQopqC+ckUWlHm+IsRFLD zRrtrMeju4rVqrZPX9I1AjAYFXZlRZLsRPIOihvaUnafVbpO85KDWXFACH7YKm+ZJm Y/dWvIT6Yn7WesgHpPRp13ggjTcp6eHZRiVbhUUY= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 394BCjux039939 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 4 Oct 2023 06:12:45 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 4 Oct 2023 06:12:44 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 4 Oct 2023 06:12:44 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 394BCiI9022785; Wed, 4 Oct 2023 06:12:44 -0500 From: Nitin Yadav To: , , CC: , , , , , , , , Subject: [PATCH v2 3/3] arm64: defconfig: Enable GPMC NAND support Date: Wed, 4 Oct 2023 16:42:38 +0530 Message-ID: <20231004111238.3968984-4-n-yadav@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231004111238.3968984-1-n-yadav@ti.com> References: <20231004111238.3968984-1-n-yadav@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, UPPERCASE_50_75,URIBL_BLOCKED autolearn=no 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 (snail.vger.email [0.0.0.0]); Wed, 04 Oct 2023 04:13:12 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778823193511392811 X-GMAIL-MSGID: 1778823193511392811 Enable config required to support GPMC NAND on AM62x LP SK and AM64x SKEVM. Signed-off-by: Nitin Yadav --- arch/arm64/configs/defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 66bfbef73324..a2758ac73f87 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -270,6 +270,8 @@ CONFIG_MTD_DATAFLASH=y CONFIG_MTD_SST25L=y CONFIG_MTD_RAW_NAND=y CONFIG_MTD_NAND_DENALI_DT=y +CONFIG_MTD_NAND_OMAP2=m +CONFIG_MTD_NAND_OMAP_BCH=y CONFIG_MTD_NAND_MARVELL=y CONFIG_MTD_NAND_BRCMNAND=m CONFIG_MTD_NAND_FSL_IFC=y @@ -1357,6 +1359,7 @@ CONFIG_ARM_MEDIATEK_CCI_DEVFREQ=m CONFIG_EXTCON_PTN5150=m CONFIG_EXTCON_USB_GPIO=y CONFIG_EXTCON_USBC_CROS_EC=y +CONFIG_OMAP_GPMC=m CONFIG_RENESAS_RPCIF=m CONFIG_IIO=y CONFIG_EXYNOS_ADC=y