From patchwork Thu Jan 19 13:29:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dasnavis Sabiya X-Patchwork-Id: 13108005 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6D87CC6379F for ; Thu, 19 Jan 2023 13:32:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CyeDbxISeOBgTP4Ye+n45IuQ+pH4ALSvrQZuxcwmS+I=; b=1WBKzbiPL6Hhq5 ftaBQmt9Xt9a9YW2ishoDXctDWuXt8xG+DAPiH+F3k2Ceob4N1Nvjm5QEm3EclfbFc5DFMmfS69DO PkSR/xkIEBJzP4fuJgVMAfZNA4iSbnEaAQOirHicVPQV61oEt56HnVbNVg0qy+FmFpKEr9+9AktnN r70bGiZiAdFkqtWdy6Up4dS8WGYjjdoNRwaYrgLt/6hK+Bmb2IVvbDF3VxkoZFYvdfjcTxq4L4QLk O4SDSiq15VW56Sjx8mZ+BqRQxks27x0eJFt+7c+4/iNPIQq4FI9mAWhicrnoc3RwVfS3YU6QHnXwL uQoUeeVc9TnpBzN7n2Hw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIV0Z-00575f-MX; Thu, 19 Jan 2023 13:31:11 +0000 Received: from egress-ip4b.ess.de.barracuda.com ([18.185.115.208]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIV0V-00574Z-GN for linux-arm-kernel@lists.infradead.org; Thu, 19 Jan 2023 13:31:09 +0000 Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx-outbound46-115.eu-central-1c.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 19 Jan 2023 13:31:02 +0000 Received: by mail-pj1-f71.google.com with SMTP id oa8-20020a17090b1bc800b002292ab4cc4cso3380241pjb.0 for ; Thu, 19 Jan 2023 05:31:02 -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=b6zkev0JIFiEPvI2nPxwx8i8t5FDgQlGRipodj6u7CI=; b=XgjFckN1eaHdywiIyFQw5k/tzZRPYvVPZaFqCRIXTmXAW/n0IaWwNYeHE29WtA1C2A fiy9m7p3Q8M2djOLFh2J18ZPAHrPG6RK6SLGlPCr4SWL+lFQQXMQzoRRD3lbtC4+WUUD wSkGEcHAGhNJQi8xDBooOiUPEjLHNP9PLKdVc= 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=b6zkev0JIFiEPvI2nPxwx8i8t5FDgQlGRipodj6u7CI=; b=KQ4IcD/ytx2QplS+KN9H320x/YE4BkIm2u90Pxj6V25BKmWYqBGT1Lacz35FgX7lru 2N4gAHk5fCFJKjd/xw3Tm2mIhurHSHfb60i5XtgSHvOMnPfeHea8JRmkFmlF33LykWBP EX/do3j2unnwd1yhnsZbwDl9S9aURGzFPIEkzwIE7URrhEa/r7/5HC7J7dUVLFnXZI6R S1drcDHUkPt1ILHv6DWtXA/YAsouYZ7jNgDM2t/Q75ZSJQKqYNoKGBXBK5Bbq3pzS3WQ URzhiP6qdpeh1NjTAaEU6wG6ty+ebpdDidjfIN2xXcy8of3sKT9t/QC96KPwkSo/x56F BI/A== X-Gm-Message-State: AFqh2kraFaoAqTY982IjOi5F9qoALlqRhbuYX702WtTmXOoYWsFyb/K4 Lt3BNZ0u7hy7t1soBG8tBECHXTIj3SWFRBUsuCo0t3+bqXZs7e9COf30C2mkAhTVsV95QjKal0C 5NdAYYYg4GGO33aF8iXwyO+abHzpTqjbOTWxVbQhlABkfebAWg9072JJGEmaNzk7Jc17XvUI= X-Received: by 2002:a62:1615:0:b0:587:df0a:804d with SMTP id 21-20020a621615000000b00587df0a804dmr11925368pfw.27.1674135060905; Thu, 19 Jan 2023 05:31:00 -0800 (PST) X-Google-Smtp-Source: AMrXdXv8YfViyfEk8kzS4n7BrYaeR08667Rj8DYwEIaQzzZs6i2TWPXXNXYiH0FO0zKAU5+QcVd5Lw== X-Received: by 2002:a62:1615:0:b0:587:df0a:804d with SMTP id 21-20020a621615000000b00587df0a804dmr11925336pfw.27.1674135060566; Thu, 19 Jan 2023 05:31:00 -0800 (PST) Received: from LAP789U.mistral.in ([106.51.227.150]) by smtp.gmail.com with ESMTPSA id l123-20020a622581000000b005818d429d98sm23949210pfl.136.2023.01.19.05.30.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 05:31:00 -0800 (PST) From: sabiya.d@mistralsolutions.com X-Google-Original-From: sabiya.d@ti.com To: nm@ti.com, vigneshr@ti.com, kristo@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linus.walleij@linaro.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Dasnavis Sabiya Subject: [PATCH 1/2] dt-bindings: arm: ti: Add binding for AM69 Starter Kit Date: Thu, 19 Jan 2023 18:59:57 +0530 Message-Id: <20230119132958.124435-2-sabiya.d@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230119132958.124435-1-sabiya.d@ti.com> References: <20230119132958.124435-1-sabiya.d@ti.com> MIME-Version: 1.0 X-BESS-ID: 1674135061-311891-5426-7952-1 X-BESS-VER: 2019.1_20221214.2106 X-BESS-Apparent-Source-IP: 209.85.216.71 X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.245566 [from cloudscan19-133.eu-central-1b.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_SC0_MISMATCH_TO META: Envelope rcpt doesn't match header 0.00 BSF_BESS_OUTBOUND META: BESS Outbound 0.00 NO_REAL_NAME HEADER: From: does not include a real name X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS91090 scores of KILL_LEVEL=7.0 tests=BSF_SC0_MISMATCH_TO, BSF_BESS_OUTBOUND, NO_REAL_NAME X-BESS-BRTS-Status: 1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230119_053108_007642_740D44A9 X-CRM114-Status: GOOD ( 11.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Dasnavis Sabiya AM69 Starter Kit is a single board designed for TI AM69 SoC. The AM69 SoC belongs to the K3 Multicore SoC architecture platform, providing advanced system integration in automotive ADAS applications, autonomous mobile robot and edge AI applications. Add DT binding for AM69 Starter Kit. Signed-off-by: Dasnavis Sabiya Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/ti/k3.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/ti/k3.yaml b/Documentation/devicetree/bindings/arm/ti/k3.yaml index b28cce4a9157..d5fd058e4aa9 100644 --- a/Documentation/devicetree/bindings/arm/ti/k3.yaml +++ b/Documentation/devicetree/bindings/arm/ti/k3.yaml @@ -81,6 +81,7 @@ properties: - description: K3 J784s4 SoC items: - enum: + - ti,am69-sk - ti,j784s4-evm - const: ti,j784s4 From patchwork Thu Jan 19 13:29:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dasnavis Sabiya X-Patchwork-Id: 13108006 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2B771C46467 for ; Thu, 19 Jan 2023 13:32:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7121XC+1/BXUBFvPOC+NUiWlunuKHcSkHHc4Kast5xc=; b=qdZLHelPX3W9R5 7GIWFjl3TgdsS8PD6HuyuptO9UDBBxUqWYAgFaE0jQrQFeo4KloZWP3B1/Fm5VwCBZPpMxC6Aj+Zl zGpaRvpSGNXniLMLAtFnhIZPUS8KzSLnv748BeXwKJF2p+AGN+A7GmFKd2nCZ9SDCmZ/Cx/DsHLT7 E3eUOwXseXHE5QTf4k0DuHuorIs/e23TNoE3xcQ6moR/CkIVjO9sTzu/5gpQlEgbdFIEHcdXck173 KDflr8BSpzL4XqP597VGipykNkLe6c4RlNajKlbXIbiDRh224mTr5h9L8m3GiikSW+6YLMI0MqktC XxToPgxahmt7NHgXdstw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIV0q-00578d-QO; Thu, 19 Jan 2023 13:31:28 +0000 Received: from egress-ip4b.ess.de.barracuda.com ([18.185.115.208]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIV0Y-00575D-66 for linux-arm-kernel@lists.infradead.org; Thu, 19 Jan 2023 13:31:12 +0000 Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by mx-outbound46-115.eu-central-1c.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 19 Jan 2023 13:31:05 +0000 Received: by mail-pf1-f200.google.com with SMTP id 74-20020a62184d000000b0058b9f769609so939375pfy.3 for ; Thu, 19 Jan 2023 05:31:06 -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=ij+LKypRyC4ET1YOYoExmQTJSo7+G67OGUgekgJ94Yg=; b=IRFYsRaD3I302AXwlsHkOJZzKQHYhQBWslTiVQsarDNNbZMFI9zYx00lHQ7aYchuZb EOLu2p+bx26HGkcVmY9AjwUYBJm7DPo/YHG2k59lcvERuyF19CLHJW2DzvYFdDL7iUHa MRarZbk9AahGmNWep1EDRUB6mFhC4HyA0wP0s= 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=ij+LKypRyC4ET1YOYoExmQTJSo7+G67OGUgekgJ94Yg=; b=h1nw8aTm2BARqI1vymw5CgoBbwJma8/hhcYTG/rrhQTqP8C5R+1e/n0r0Nxy9cJvcQ 8L1RapQ4yrEGesvZ6kQFt3lAmMEXMYIZd01yDMPMVE3sZ1hHw4tWtkA0d4WIYDoIBDBY xec6pyXwRDxQBmz9v4zX9TqoeEHNDOAzTFANH6IXa2IZ3oorcLve1uj0lLYTVOVxlhqg Sd39u0wKbqGr9C1kSNW2a7siz+etVpmmUVSGqRC2egPk5gTUK8z8oqisT02ZBLtA5cGM y7Xq2Dkw1QeM905fo98HjO5/N2yXZ1WCQnE91ml4XT4neEYp7RwGvkHrKHu82LDG+68E biFQ== X-Gm-Message-State: AFqh2krRWyzxR2ieHmQzSnXr+k87oD5Y8wTOespP9snRMBH+FGw1AsoW B014lYczEFkyFfZxGlrx5MFxzyVOmipxEYsYrmZnT+oKsatbicmdCc9SCAJ8jhGNCuXC8M5iAnG EV9qC+1miWbVvq8ZX5Kbmgt1rGo40SMYgYqE26CLymj/e4wYYCIWZj+MtkgZk6qVTGhyt7h8= X-Received: by 2002:a62:63c6:0:b0:576:ddd4:6a02 with SMTP id x189-20020a6263c6000000b00576ddd46a02mr11386269pfb.22.1674135064561; Thu, 19 Jan 2023 05:31:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXtSilHtZxuUmQzIhtirA57CSvuBMsp+pEpNPo/LV67F9fFfUijD8PDM6qo9lanw/gfKgyaohg== X-Received: by 2002:a62:63c6:0:b0:576:ddd4:6a02 with SMTP id x189-20020a6263c6000000b00576ddd46a02mr11386245pfb.22.1674135064263; Thu, 19 Jan 2023 05:31:04 -0800 (PST) Received: from LAP789U.mistral.in ([106.51.227.150]) by smtp.gmail.com with ESMTPSA id l123-20020a622581000000b005818d429d98sm23949210pfl.136.2023.01.19.05.31.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 05:31:03 -0800 (PST) From: sabiya.d@mistralsolutions.com X-Google-Original-From: sabiya.d@ti.com To: nm@ti.com, vigneshr@ti.com, kristo@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linus.walleij@linaro.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Dasnavis Sabiya Subject: [PATCH 2/2] arch: arm64: dts: Add support for AM69 Starter Kit Date: Thu, 19 Jan 2023 18:59:58 +0530 Message-Id: <20230119132958.124435-3-sabiya.d@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230119132958.124435-1-sabiya.d@ti.com> References: <20230119132958.124435-1-sabiya.d@ti.com> MIME-Version: 1.0 X-BESS-ID: 1674135065-311891-5426-7955-1 X-BESS-VER: 2019.1_20221214.2106 X-BESS-Apparent-Source-IP: 209.85.210.200 X-BESS-Outbound-Spam-Score: 0.50 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.245566 [from cloudscan18-254.eu-central-1b.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_SC0_MISMATCH_TO META: Envelope rcpt doesn't match header 0.50 BSF_RULE7568M META: Custom Rule 7568M 0.00 NO_REAL_NAME HEADER: From: does not include a real name 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.50 using account:ESS91090 scores of KILL_LEVEL=7.0 tests=BSF_SC0_MISMATCH_TO, BSF_RULE7568M, NO_REAL_NAME, BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230119_053110_541368_08DB2640 X-CRM114-Status: GOOD ( 16.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Dasnavis Sabiya AM69 Starter Kit is a single board designed for TI AM69 SOC that provides advanced system integration in automotive ADAS applications, autonomous mobile robot and edge AI applications. The SOC comprises of Cortex-A72s in dual clusters, lockstep capable dual Cortex-R5F MCUs, Vision Processing Accelerators (VPAC) with Image Signal Processor (ISP) and multiple vision assist accelerators, Depth and Motion Processing Accelerators (DMPAC), Deep-learning Matrix Multiply Accelerator(MMA) and C7x floating point vector DSP AM69 SK supports the following interfaces: * 32 GB LPDDR4 RAM * x1 Gigabit Ethernet interface * x3 USB 3.0 Type-A ports * x1 USB 3.0 Type-C port * x1 UHS-1 capable micro-SD card slot * x4 MCAN instances * 32 GB eMMC Flash * 512 Mbit OSPI flash * x2 Display connectors * x1 PCIe M.2 M Key * x1 PCIe M.2 E Key * x1 4L PCIe Card Slot * x3 CSI2 Camera interface * 40-pin Raspberry Pi header Add initial support for the AM69 SK board. Design Files: https://www.ti.com/lit/zip/SPRR466 TRM: https://www.ti.com/lit/zip/spruj52 Signed-off-by: Dasnavis Sabiya --- arch/arm64/boot/dts/ti/Makefile | 1 + arch/arm64/boot/dts/ti/k3-am69-sk.dts | 180 ++++++++++++++++++++++++++ 2 files changed, 181 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am69-sk.dts diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile index e7c2c7dd0b25..04b1a7611096 100644 --- a/arch/arm64/boot/dts/ti/Makefile +++ b/arch/arm64/boot/dts/ti/Makefile @@ -20,6 +20,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-j7200-common-proc-board.dtb dtb-$(CONFIG_ARCH_K3) += k3-j721s2-common-proc-board.dtb +dtb-$(CONFIG_ARCH_K3) += k3-am69-sk.dtb dtb-$(CONFIG_ARCH_K3) += k3-j784s4-evm.dtb dtb-$(CONFIG_ARCH_K3) += k3-am642-evm.dtb diff --git a/arch/arm64/boot/dts/ti/k3-am69-sk.dts b/arch/arm64/boot/dts/ti/k3-am69-sk.dts new file mode 100644 index 000000000000..bc49ba534790 --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-am69-sk.dts @@ -0,0 +1,180 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/ + * + * Design Files: https://www.ti.com/lit/zip/SPRR466 + * TRM: https://www.ti.com/lit/zip/spruj52 + */ + +/dts-v1/; + +#include +#include +#include "k3-j784s4.dtsi" + +/ { + compatible = "ti,am69-sk", "ti,j784s4"; + model = "Texas Instruments AM69 SK"; + + chosen { + stdout-path = "serial2:115200n8"; + }; + + aliases { + serial2 = &main_uart8; + mmc1 = &main_sdhci1; + i2c0 = &main_i2c0; + }; + + memory@80000000 { + device_type = "memory"; + /* 32G RAM */ + reg = <0x00 0x80000000 0x00 0x80000000>, + <0x08 0x80000000 0x07 0x80000000>; + }; + + reserved_memory: reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + secure_ddr: optee@9e800000 { + reg = <0x00 0x9e800000 0x00 0x01800000>; + no-map; + }; + }; + + vusb_main: regulator-vusb-main5v0 { + /* USB MAIN INPUT 5V DC */ + compatible = "regulator-fixed"; + regulator-name = "vusb-main5v0"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + regulator-boot-on; + }; + + vsys_5v0: regulator-vsys5v0 { + /* Output of LM61460 */ + compatible = "regulator-fixed"; + regulator-name = "vsys_5v0"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&vusb_main>; + regulator-always-on; + regulator-boot-on; + }; + + vsys_3v3: regulator-vsys3v3 { + /* Output of LM5143 */ + compatible = "regulator-fixed"; + regulator-name = "vsys_3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vusb_main>; + regulator-always-on; + regulator-boot-on; + }; + + vdd_mmc1: regulator-sd { + /* Output of TPS22918 */ + compatible = "regulator-fixed"; + regulator-name = "vdd_mmc1"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + enable-active-high; + vin-supply = <&vsys_3v3>; + gpio = <&exp1 2 GPIO_ACTIVE_HIGH>; + }; + + vdd_sd_dv: regulator-tlv71033 { + /* Output of TLV71033 */ + compatible = "regulator-gpio"; + regulator-name = "tlv71033"; + pinctrl-names = "default"; + pinctrl-0 = <&vdd_sd_dv_pins_default>; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + vin-supply = <&vsys_5v0>; + gpios = <&main_gpio0 49 GPIO_ACTIVE_HIGH>; + states = <1800000 0x0>, + <3300000 0x1>; + }; +}; + +&main_pmx0 { + main_uart8_pins_default: main-uart8-pins-default { + pinctrl-single,pins = < + J784S4_IOPAD(0x0d0, PIN_INPUT, 11) /* (AP38) SPI0_CS1.UART8_RXD */ + J784S4_IOPAD(0x0d4, PIN_OUTPUT, 11) /* (AN38) SPI0_CLK.UART8_TXD */ + >; + }; + + main_i2c0_pins_default: main-i2c0-pins-default { + pinctrl-single,pins = < + J784S4_IOPAD(0x0e0, PIN_INPUT_PULLUP, 0) /* (AN36) I2C0_SCL */ + J784S4_IOPAD(0x0e4, PIN_INPUT_PULLUP, 0) /* (AP37) I2C0_SDA */ + >; + }; + + main_mmc1_pins_default: main-mmc1-pins-default { + pinctrl-single,pins = < + J784S4_IOPAD(0x104, PIN_INPUT, 0) /* (AB38) MMC1_CLK */ + J784S4_IOPAD(0x108, PIN_INPUT, 0) /* (AB36) MMC1_CMD */ + J784S4_IOPAD(0x100, PIN_INPUT, 0) /* (No Pin) MMC1_CLKLB */ + J784S4_IOPAD(0x0fc, PIN_INPUT, 0) /* (AA33) MMC1_DAT0 */ + J784S4_IOPAD(0x0f8, PIN_INPUT, 0) /* (AB34) MMC1_DAT1 */ + J784S4_IOPAD(0x0f4, PIN_INPUT, 0) /* (AA32) MMC1_DAT2 */ + J784S4_IOPAD(0x0f0, PIN_INPUT, 0) /* (AC38) MMC1_DAT3 */ + J784S4_IOPAD(0x0e8, PIN_INPUT, 8) /* (AR38) TIMER_IO0.MMC1_SDCD */ + >; + }; + + vdd_sd_dv_pins_default: vdd-sd-dv-pins-default { + pinctrl-single,pins = < + J784S4_IOPAD(0x0C4, PIN_INPUT, 7) /* (AD36) ECAP0_IN_APWM_OUT.GPIO0_49 */ + >; + }; +}; + +&main_uart8 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&main_uart8_pins_default>; +}; + +&main_i2c0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&main_i2c0_pins_default>; + clock-frequency = <400000>; + + exp1: gpio@21 { + compatible = "ti,tca6416"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + gpio-line-names = "BOARDID_EEPROM_WP", "CAN_STB", "GPIO_uSD_PWR_EN", + "IO_EXP_MCU_RGMII_RST#", "IO_EXP_PCIe0_4L_PERST#", + "IO_EXP_PCIe1_M.2_RTSz", "IO_EXP_PCIe3_M.2_RTSz", + "PM_INA_BUS_EN", "ENET1_EXP_PWRDN", "EXP1_ENET_RSTz", + "ENET1_I2CMUX_SEL", "PCIe0_CLKREQ#", "PCIe1_M.2_CLKREQ#", + "PCIe3_M2_CLKREQ#", "PCIe0_PRSNT2#_1", "PCIe0_PRSNT2#_2"; + }; +}; + +&main_sdhci1 { + /* SD card */ + status = "okay"; + pinctrl-0 = <&main_mmc1_pins_default>; + pinctrl-names = "default"; + disable-wp; + vmmc-supply = <&vdd_mmc1>; + vqmmc-supply = <&vdd_sd_dv>; +}; + +&main_gpio0 { + status = "okay"; +};