From patchwork Mon Jan 16 07:14:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sinthu Raja X-Patchwork-Id: 44000 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1061204wrn; Sun, 15 Jan 2023 23:24:49 -0800 (PST) X-Google-Smtp-Source: AMrXdXtlZbqfgMoNusyt+g+sWl2glyt2GO7Nj2iZCd3pWx7jq4Bf3zXU0P+IFeY/VurUOe7+SnrZ X-Received: by 2002:a17:90b:51c5:b0:223:2aa6:7f0f with SMTP id sf5-20020a17090b51c500b002232aa67f0fmr96260559pjb.7.1673853889247; Sun, 15 Jan 2023 23:24:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673853889; cv=none; d=google.com; s=arc-20160816; b=l0Jy8MVEFjBnBiHku/k6Dmk3xFSId2e7WkcyB7VzztQX/d7VClVQ/BRyaQEiG6rj36 aVfI8oQvNQZoxBVzofXLeOk1o8VekuuLlAvTH9TwUYJopFezR20pzQFbQ8afEFs9Stnx mCwLkmGrj9qpASNOxk1sUB2UyRO5gOB+VMzvXGAdhKUk6qRx4dzOXsya8SK/3GKqO+Dq xFMGJJu1IfPpDl9o8FoQ8814Bx145cX9fP3i0gwpSXag9N2SG78dkQcKyIimyimMvnpf qrVqmv1c1LzaJv0qcYSS8ljJOqo8TFxVxtbw219Or4cQ4R7b6WK7+ZcMFvZzdMp0Tv5S gpDA== 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=gN3DM3KkWcZR5XsGbUD2vNQk/vk7I/JC/dpmGMxqX58=; b=Nr3nMrRRiP8oHgexoi4xy6GcoHB/pS/h+EGv7cyIn2hefr5Dumwp2imjJ+N/H2l+cS gI36iD/jRXD+zObEuLbKtnIqSWzBzGR+hJ3nIz06OYw6MpmC7RKhI8Ly6KU/dlYa0mw2 roBmomuxmoGToeaDJnHew5M+oNDHiWv5r0EQ8ISDdIJ9jPcAvY6cQ07jkdPS2zjAlUIh XOUWkt4UWu0uVOBinqxs3fPazykz4CHfOlsYyHeW0oTxWy5KIzlpw98kKQU5PcaV0Hch LMql3d5MunJmNUQ4cYCHZNhEN1dlXs9KpzQ2pc1n+tetlKDTD1OcqAsbqV5kiNtVVR49 4asw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mistralsolutions.com header.s=google header.b=oj4He+vC; 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=QUARANTINE dis=NONE) header.from=mistralsolutions.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mw6-20020a17090b4d0600b002196cd830e6si28412112pjb.11.2023.01.15.23.24.37; Sun, 15 Jan 2023 23:24:49 -0800 (PST) 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=@mistralsolutions.com header.s=google header.b=oj4He+vC; 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=QUARANTINE dis=NONE) header.from=mistralsolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231824AbjAPHWw (ORCPT + 99 others); Mon, 16 Jan 2023 02:22:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231927AbjAPHWm (ORCPT ); Mon, 16 Jan 2023 02:22:42 -0500 Received: from egress-ip33a.ess.de.barracuda.com (egress-ip33a.ess.de.barracuda.com [18.185.115.192]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B051BCDC5 for ; Sun, 15 Jan 2023 23:22:40 -0800 (PST) Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx-outbound13-161.eu-central-1a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 16 Jan 2023 07:22:38 +0000 Received: by mail-pj1-f69.google.com with SMTP id pm1-20020a17090b3c4100b002292b6258a0so2931477pjb.1 for ; Sun, 15 Jan 2023 23:22:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mistralsolutions.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gN3DM3KkWcZR5XsGbUD2vNQk/vk7I/JC/dpmGMxqX58=; b=oj4He+vCsCU4dfXcyxubUw1sPRC2jS5qQEd84QkWvSwjIEXVMda7QyJPAXCQxCfIT8 2IwW9LmrqJtFTeD/m8hHz8XaYVHqga8Bi1egXTmS4/qQp+WgGNdZSEwsY4KkjCGPa7qw 10lW6dRuEaGaUzw5yn4BMtoXemoj4oHwsFa/o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gN3DM3KkWcZR5XsGbUD2vNQk/vk7I/JC/dpmGMxqX58=; b=I8F69pDQigIx95C4rZxsjCq/7pdmbhPI+AAAu/b3R1x82LXjSjBPn+9SxmzfMRAQHg HHBDijVDJjc83Nuy86y+nAdoaNF6BoeH3igGKCYSGgT7bf98M8fxHo4NQ8Mxo5E0Kqxr BhKPPxY56//jaAmuu0XfI0Pp43WHv8iklqZlLDWWP29c3IROxyGTDuRJQzRiXkh8buvp 0CxixgqZgyyahcSLpZiKsGnlyw90aTSJcAKIUxybaEyIJ5+HVRtVdAke8zQXqjmBPFmG t2YqAzdWlZ1Dd4JJc4De+ZBl9e8wMzQoD7ZKGIwarcq+VK1axmx0wi6txhLwQevvKjm+ fS+w== X-Gm-Message-State: AFqh2kpPsAEHj2NsY51tcMT0hdJTu8aU8/8nscS0+ngvnsxmzBv3kplR 4XGg+fifZGasYfjkDXNyajvDyHpoGO4olQJAeOkeIZQoUeav9BxqsBS9ffmNTUMmFy7BU6u2mYj 9c8p8F6u2WvZc4/peXwWAWwNhGVI3gxVWDu7vgrZJhmh3Lw9eB31ywcztUKwS X-Received: by 2002:a17:902:6bc6:b0:192:c36c:f115 with SMTP id m6-20020a1709026bc600b00192c36cf115mr49358212plt.66.1673853756989; Sun, 15 Jan 2023 23:22:36 -0800 (PST) X-Received: by 2002:a17:902:6bc6:b0:192:c36c:f115 with SMTP id m6-20020a1709026bc600b00192c36cf115mr49358202plt.66.1673853756717; Sun, 15 Jan 2023 23:22:36 -0800 (PST) Received: from LAP568U.mistral.in ([106.51.227.150]) by smtp.gmail.com with ESMTPSA id d17-20020a170902ced100b001895f7c8a71sm1770346plg.97.2023.01.15.23.22.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Jan 2023 23:22:36 -0800 (PST) From: Sinthu Raja X-Google-Original-From: Sinthu Raja To: Nishanth Menon , Tero Kristo , Rob Herring Cc: Vignesh Raghavendra , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sinthu Raja Subject: [PATCH V5 2/3] arm64: dts: ti: Add initial support for AM68 SK System on Module Date: Mon, 16 Jan 2023 12:44:45 +0530 Message-Id: <20230116071446.28867-3-sinthu.raja@ti.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20230116071446.28867-1-sinthu.raja@ti.com> References: <20230116071446.28867-1-sinthu.raja@ti.com> MIME-Version: 1.0 X-BESS-ID: 1673853757-303489-5384-466-1 X-BESS-VER: 2019.1_20221214.2106 X-BESS-Apparent-Source-IP: 209.85.216.69 X-BESS-Outbound-Spam-Score: 0.40 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.245498 [from cloudscan18-235.eu-central-1b.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.40 BSF_SC0_SA085b META: Custom Rule SA085b 0.00 BSF_BESS_OUTBOUND META: BESS Outbound 0.00 BSF_SC0_MISMATCH_TO META: Envelope rcpt doesn't match header X-BESS-Outbound-Spam-Status: SCORE=0.40 using account:ESS91090 scores of KILL_LEVEL=7.0 tests=BSF_SC0_SA085b, BSF_BESS_OUTBOUND, BSF_SC0_MISMATCH_TO X-BESS-BRTS-Status: 1 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755163015999402900?= X-GMAIL-MSGID: =?utf-8?q?1755163015999402900?= From: Sinthu Raja AM68 Starter Kit (SK) is a low cost, small form factor board designed for TI’s AM68 SoC. TI’s AM68 SoC comprises of dual core A72, high performance vision accelerators, hardware accelerators, latest C71x DSP, high bandwidth real-time IPs for capture and display. The SoC is power optimized to provide best in class performance for industrial applications. AM68 SK supports the following interfaces: * 16 GB LPDDR4 RAM * x1 Gigabit Ethernet interface * x1 USB 3.1 Type-C port * x2 USB 3.1 Type-A ports * x1 PCIe M.2 M Key * 512 Mbit OSPI flash * x2 CSI2 Camera interface (RPi and TI Camera connector) * 40-pin Raspberry Pi GPIO header SK's System on Module (SoM) contains the SoC and DDR. Therefore, add DT node for the SOC and DDR on the SoM. Schematics: https://www.ti.com/lit/zip/SPRR463 TRM: http://www.ti.com/lit/pdf/spruj28 Signed-off-by: Sinthu Raja Tested-by: Vaishnav Achath --- Changes in V5: ============= Address review comments: - Remove the unessential comment. - Remove alignment property from secure-ddr node, as no memory is allocated out of this region. No changes in V4. Changes in V3: ============= Addressed review comments - Removed the unused nodes that are disabled by default. OSPI support will be added once the OSPI node is enabled for J721s2/AM68 in main DTSI. Changes in V2: ============= Address review comments - drop the empty lines. V1: https://lore.kernel.org/linux-arm-kernel/20221018123849.23695-3-sinthu.raja@ti.com/ V2: https://lore.kernel.org/lkml/20221107123852.8063-3-sinthu.raja@ti.com/ V3: https://lore.kernel.org/lkml/20230110110052.14851-3-sinthu.raja@ti.com/ V4: https://lore.kernel.org/lkml/20230105151740.29436-3-sinthu.raja@ti.com/ arch/arm64/boot/dts/ti/k3-am68-sk-som.dtsi | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am68-sk-som.dtsi diff --git a/arch/arm64/boot/dts/ti/k3-am68-sk-som.dtsi b/arch/arm64/boot/dts/ti/k3-am68-sk-som.dtsi new file mode 100644 index 000000000000..e92431250729 --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-am68-sk-som.dtsi @@ -0,0 +1,29 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/ + */ + +/dts-v1/; + +#include "k3-j721s2.dtsi" +#include + +/ { + memory@80000000 { + device_type = "memory"; + /* 16 GB RAM */ + reg = <0x00 0x80000000 0x00 0x80000000>, + <0x08 0x80000000 0x03 0x80000000>; + }; + + reserved_memory: reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + secure_ddr: optee@9e800000 { + reg = <0x00 0x9e800000 0x00 0x01800000>; + no-map; + }; + }; +};