Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp554089rdb; Thu, 5 Oct 2023 14:02:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHmShfnFYLhuwnqg2MU+nEH0Y6AbtAntkVMl2PD2M772mE4MATXiEm0sh4NYPWQ7A2jLlbB X-Received: by 2002:a17:902:bc42:b0:1c7:41ed:1bb with SMTP id t2-20020a170902bc4200b001c741ed01bbmr6342693plz.62.1696539755206; Thu, 05 Oct 2023 14:02:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696539755; cv=none; d=google.com; s=arc-20160816; b=TtwCm2KiPgwjLaSL3bXp0bUKjpMNCNRXS5WW8QcExauP9LNl5t3LpY9r0Dbchpx/2Z rohqYdw7UC1FuYSMdRDEim4Fmfnfj9/blHwPUqsbv45IiMRQJDI58oZ2qhsyGEp0c+sa ckLHDTIdVxUVDucIZ4yq/luH1f4c7b8fOagHGfVZsgOIZPUFbK7C0s9APZr7iH2iZM4v cKnVUx1aZWQNawvUBRwqcmXeT7MXyRDe6SAwWEVL4F50UxSi5Q4iDZ+2XJGRyYpydVux a7heEQW2Wqu/dB6GHvYC8P9yJJ5NXpM5Jlz6EogK19vabTTcZ8nTLLPHE3qzbkEC6Sn3 lkVg== 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=0Gn6/PYIoJpPuNDgc2yeQHtFCNiWP22YX5Y9NvePorw=; fh=ItDZ1AlsJaw3kyqViSseSXbyzpBD3hg/21y0OsGPN20=; b=ut3ypHOe+ehMHuv47ZmAp/cuG9dIzsIREqgU0z3HUmDWhjLb8X1c3D40WBPhitO8KV PFyJOXQ+0sMysb4uqeFvUAzBsEO+DsTmuTfssnBcTolGj/dFlWp1ZHoDIkKfXQYSdDmj 5+01kTD0mZAqNNUoSa2+4venoKaa8c9lFfEHbfNnfrLF6wNgIKO3bs+GPdFz68X6Bff1 OULUIsese5VIviMjEv/+ufcYenV9SO7phQViPEqslSIMNUFjWtlLPAV8X0XQ3L7c6dLi sjcNLbflZcLfAcIrwnx8n5wgQkh1df0qUiQkTmWO1m0jfdkd3Jz9cyQBJXgjtOjTHJzN 9PJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=U9nURZmv; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id kv7-20020a17090328c700b001b8c4168e20si2178147plb.58.2023.10.05.14.02.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 14:02:35 -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=@ti.com header.s=ti-com-17Q1 header.b=U9nURZmv; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id F11F687A32C9; Thu, 5 Oct 2023 14:02:28 -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 S231668AbjJEVCT (ORCPT + 99 others); Thu, 5 Oct 2023 17:02:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231773AbjJEVCR (ORCPT ); Thu, 5 Oct 2023 17:02:17 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AB70A6; Thu, 5 Oct 2023 14:02:13 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3959bgMw075038; Thu, 5 Oct 2023 04:37:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1696498662; bh=0Gn6/PYIoJpPuNDgc2yeQHtFCNiWP22YX5Y9NvePorw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=U9nURZmvVMbH3mqem4z4ZuiVQkDpLiHZMLJoXFYuXVpdppXVJCZfnHfT73U7iVrqB zG5YbeQmtSeptmmyWv8tjue45sMMd6xiuc86whDT0tSl+q8gIa/wa3DiEsnCViGplO UJyqgBjJy9zm8qRLbEcndqlEu1z/L8n2m4klktAU= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3959bgos014587 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 5 Oct 2023 04:37:42 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 5 Oct 2023 04:37:42 -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; Thu, 5 Oct 2023 04:37:42 -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 3959bfqi038670; Thu, 5 Oct 2023 04:37:41 -0500 From: Nitin Yadav To: , , CC: , , , , , , , , Subject: [PATCH v3 1/3] arm64: dts: ti: Add GPMC support for AM62x LP SK Date: Thu, 5 Oct 2023 15:07:37 +0530 Message-ID: <20231005093739.4071934-2-n-yadav@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231005093739.4071934-1-n-yadav@ti.com> References: <20231005093739.4071934-1-n-yadav@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=-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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Thu, 05 Oct 2023 14:02:29 -0700 (PDT) AM62 SoC has GPMC ( General Purpose Memory Controller) and ELM ( Error Location Module) which allow to interface Parallel memory like NAND/NOR and FPGAs etc. Add DT nodes for the same. Include the ranges for GPMC CFG and DATA region in top level dtsi file. Keep these nodes disabled as they are incomplete without required board level pinmux and client node definitions. Signed-off-by: Nitin Yadav --- arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 30 ++++++++++++++++++++++++ arch/arm64/boot/dts/ti/k3-am62.dtsi | 2 ++ 2 files changed, 32 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..8fb47fbae4ca 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi @@ -965,4 +965,34 @@ 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"; /* Needs pinmux */ + }; + + 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"; /* Depends on NAND to be present */ + }; }; diff --git a/arch/arm64/boot/dts/ti/k3-am62.dtsi b/arch/arm64/boot/dts/ti/k3-am62.dtsi index f1e15206e1ce..5fa272eb0ac2 100644 --- a/arch/arm64/boot/dts/ti/k3-am62.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62.dtsi @@ -68,11 +68,13 @@ cbass_main: bus@f0000 { <0x00 0x30200000 0x00 0x30200000 0x00 0x00010000>, /* DSS */ <0x00 0x31000000 0x00 0x31000000 0x00 0x00050000>, /* USB0 DWC3 Core window */ <0x00 0x31100000 0x00 0x31100000 0x00 0x00050000>, /* USB1 DWC3 Core window */ + <0x00 0x3b000000 0x00 0x3b000000 0x00 0x00000400>, /* GPMC0 CFG */ <0x00 0x40900000 0x00 0x40900000 0x00 0x00030000>, /* SA3UL */ <0x00 0x43600000 0x00 0x43600000 0x00 0x00010000>, /* SA3 sproxy data */ <0x00 0x44043000 0x00 0x44043000 0x00 0x00000fe0>, /* TI SCI DEBUG */ <0x00 0x44860000 0x00 0x44860000 0x00 0x00040000>, /* SA3 sproxy config */ <0x00 0x48000000 0x00 0x48000000 0x00 0x06400000>, /* DMSS */ + <0x00 0x50000000 0x00 0x50000000 0x00 0x08000000>, /* GPMC0 DATA */ <0x00 0x60000000 0x00 0x60000000 0x00 0x08000000>, /* FSS0 DAT1 */ <0x00 0x70000000 0x00 0x70000000 0x00 0x00010000>, /* OCSRAM */ <0x01 0x00000000 0x01 0x00000000 0x00 0x00310000>, /* A53 PERIPHBASE */ -- 2.25.1