Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1092374rdg; Fri, 11 Aug 2023 09:25:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFRQtZEZOYD7ZvdlvpWGig+bRs9m4EmEtGf46m5bUXXf5M/MhxKdaid0VCgXr+3lnBOuqDl X-Received: by 2002:a05:6a00:14d2:b0:686:6fa8:2b0d with SMTP id w18-20020a056a0014d200b006866fa82b0dmr2420896pfu.4.1691771128402; Fri, 11 Aug 2023 09:25:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691771128; cv=none; d=google.com; s=arc-20160816; b=cOl3iVqUNOQcY7N8yW48PLLHO4pzqLPrcTWum9WbdtXycm2vXKO9EuAPmRAiiR0ykB piyrIjO6Dm7B5L0ncQ0GJqnYB1xDQrIJWoxZiQ4fimsulNDxrrS88zP24EY5IKFE4/xD x41rusnWkPinMdQcgXL6QeLJxeWtT96haUAsKnrP9YRgToBVt2rrWKgF1Yd1x2RZYKdh dxQkTeVEC9PsE6ufZdptICcp9JYFt0CJWEw7XsN0yBYQx+5HZ+tIQe/mEIlWHNct5bJA Ry2wadreTGl1PORJ3+4C4ZXOVx6HmfSTfS5BhJYWsrKCjh/wb6DebLZBBDuwH6zoReuP V6Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=J5xzeSvut8lwYl0c+dZtQmCY067FHSBin0flo7DS4CE=; fh=+WvjQEP3Ioslrx8h+hKvu6gYXbrtE4fsttQNIw3aurM=; b=dZtRrRLfy+C1tVo26TK1fsmM7TfnbxwNJTBeax2A7EKgrezqLdsB/5by7CUBE5ebNc RdcqJPVUndQJluJhoR5xE31XHJ+ESxorDhhzKfRS2vxtbGXJgGY5iQWbf1G4Gh+/De+S Oy5TFy6yCW0YdjGNjSJQdO0UNVgUquX0AYLL9z50PkhAj5Zuo9ogdnoCKuY96ILu2ObM KZ2BrsLMDID/2E5o1kMF8u+S/uG9oEMRehhqVjmy8nVL2bai2GeAXg7UNGEQfh2Kgf9b GDpodM2TmL6HanOY63xIhGA1h/SLfy9s3vpFAf7MNNsLxANy0FVotibaUrc0lrp7jl4a vRnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=LETYV7gx; 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=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l2-20020a056a00140200b006870b0a14cfsi3693809pfu.134.2023.08.11.09.25.16; Fri, 11 Aug 2023 09:25:28 -0700 (PDT) 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=@ti.com header.s=ti-com-17Q1 header.b=LETYV7gx; 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=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234892AbjHKP0N (ORCPT + 99 others); Fri, 11 Aug 2023 11:26:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234059AbjHKP0K (ORCPT ); Fri, 11 Aug 2023 11:26:10 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2BCADC; Fri, 11 Aug 2023 08:26:08 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 37BFQ0p5076425; Fri, 11 Aug 2023 10:26:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1691767560; bh=J5xzeSvut8lwYl0c+dZtQmCY067FHSBin0flo7DS4CE=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=LETYV7gxpka0uhnEqdM63FAXgPbYO7dRS961mSdw1oVrF+FCujWmSk9TOpoGhS9dX gqJH//DS6PWFtAxRGNY7Xc7v7L8Pag7WxMv2AWTzOQb5/Lsl5cO5QZDv7rz9sZeRUW XialfbNP/Wo0uzdytxIRCgsn84CDxdzHozywLnKs= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 37BFQ0q7012698 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 11 Aug 2023 10:26:00 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 11 Aug 2023 10:26:00 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) 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; Fri, 11 Aug 2023 10:26:00 -0500 Received: from [172.24.227.94] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 37BFPvQ4046616; Fri, 11 Aug 2023 10:25:58 -0500 Message-ID: Date: Fri, 11 Aug 2023 20:55:56 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 3/3] arm64: dts: ti: Add support for the AM62P5-SK Content-Language: en-US To: Andrew Davis , Nishanth Menon , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , References: <20230810045314.2676833-1-vigneshr@ti.com> <20230810045314.2676833-4-vigneshr@ti.com> <581a2e01-323c-8127-7ddc-05d0ac5d3a80@ti.com> From: Vignesh Raghavendra In-Reply-To: <581a2e01-323c-8127-7ddc-05d0ac5d3a80@ti.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, 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 On 11/08/23 02:49, Andrew Davis wrote: > On 8/9/23 11:53 PM, Vignesh Raghavendra wrote: >> From: Bryan Brattlof >> >> Add basic support for the AM62P5-SK platform with UART and ramdisk as > > We usually call the boards "SK-AM6xx", with the SK- first, assuming this SK-AM62P-LP is the orderable part number but the silk screen reads AM62P SK and so does the EEPROM Board_name field. So I am going just use that in the bindings as well as file name similar have we have been naming so far. > board is named the same way you should fix that here and in the files. > >> rootfs. >> >> Schematics is at https://www.ti.com/lit/zip/sprr487 >> >> Signed-off-by: Bryan Brattlof >> Signed-off-by: Vignesh Raghavendra >> --- >>   arch/arm64/boot/dts/ti/Makefile         |   3 + >>   arch/arm64/boot/dts/ti/k3-am62p5-sk.dts | 169 ++++++++++++++++++++++++ >>   2 files changed, 172 insertions(+) >>   create mode 100644 arch/arm64/boot/dts/ti/k3-am62p5-sk.dts >> >> diff --git a/arch/arm64/boot/dts/ti/Makefile >> b/arch/arm64/boot/dts/ti/Makefile >> index 437a3d7e8e3a..5a09cad74c44 100644 >> --- a/arch/arm64/boot/dts/ti/Makefile >> +++ b/arch/arm64/boot/dts/ti/Makefile >> @@ -23,6 +23,9 @@ dtb-$(CONFIG_ARCH_K3) += k3-am62-lp-sk.dtb >>   # Boards with AM62Ax SoC >>   dtb-$(CONFIG_ARCH_K3) += k3-am62a7-sk.dtb >>   +# Boards with AM62Px SoC >> +dtb-$(CONFIG_ARCH_K3) += k3-am62p5-sk.dtb >> + >>   # Boards with AM64x SoC >>   dtb-$(CONFIG_ARCH_K3) += k3-am642-evm.dtb >>   dtb-$(CONFIG_ARCH_K3) += k3-am642-phyboard-electra-rdk.dtb >> diff --git a/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts >> b/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts >> new file mode 100644 >> index 000000000000..b0882211448e >> --- /dev/null >> +++ b/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts >> @@ -0,0 +1,169 @@ >> +// SPDX-License-Identifier: GPL-2.0 >> +/* >> + * Device Tree file for the AM62P5-SK >> + * Copyright (C) 2023 Texas Instruments Incorporated - >> https://www.ti.com/ >> + * >> + * Schematics: https://www.ti.com/lit/zip/sprr487 >> + */ >> + >> +/dts-v1/; >> + >> +#include "k3-am62p5.dtsi" >> + >> +/ { >> +    compatible = "ti,am62p5-sk", "ti,am62p5"; >> +    model = "Texas Instruments AM62P5 SK"; >> + >> +    aliases { >> +        serial0 = &wkup_uart0; >> +        serial2 = &main_uart0; >> +        serial3 = &main_uart1; >> +    }; >> + >> +    chosen { >> +        stdout-path = "serial2:115200n8"; > > You can set the path here directly to the node: > > stdout-path = &main_uart0; > > Then the default baud rate can be defined/selected in > the node with: > > current-speed = <115200>; > Make sense... >> +    }; >> + >> +    memory@80000000 { >> +        /* 8G RAM */ >> +        reg = <0x00000000 0x80000000 0x00000000 0x80000000>, >> +              <0x00000008 0x80000000 0x00000001 0x80000000>; >> +        device_type = "memory"; >> +        bootph-pre-ram; >> +    }; >> + >> +    reserved-memory { >> +        #address-cells = <2>; >> +        #size-cells = <2>; >> +        ranges; >> + >> +        secure_tfa_ddr: tfa@9e780000 { >> +            reg = <0x00 0x9e780000 0x00 0x80000>; >> +            alignment = <0x1000>; > > You cannot allocate from this memory, no need for alignment. > >> +            no-map; >> +        }; >> + >> +        secure_ddr: optee@9e800000 { >> +            reg = <0x00 0x9e800000 0x00 0x01800000>; /* for OP-TEE */ >> +            alignment = <0x1000>; > > Same. > >> +            no-map; >> +        }; >> + >> +        wkup_r5fss0_core0_memory_region: r5f-dma-memory@9c900000 { >> +            compatible = "shared-dma-pool"; >> +            reg = <0x00 0x9c900000 0x00 0x01e00000>; >> +            no-map; >> +        }; >> +    }; >> +}; >> + >> +&cbass_main { >> +    bootph-pre-ram; > > I'm thinking we will need this for any AM62P based board, should > we bubble this up into the common .dtsi files? Same for most of the > other instances at the end of this file. will fill all the above. Thanks! > > Andrew > >> +}; >> + >> +&main_pmx0 { >> +    status = "okay"; >> +    bootph-pre-ram; >> + >> +    main_uart0_pins_default: main-uart0-default-pins { >> +        bootph-pre-ram; >> +        pinctrl-single,pins = < >> +            AM62PX_IOPAD(0x1c8, PIN_INPUT, 0)    /* (A22) UART0_RXD */ >> +            AM62PX_IOPAD(0x1cc, PIN_OUTPUT, 0)    /* (B22) UART0_TXD */ >> +            AM62PX_IOPAD(0x1d0, PIN_INPUT, 0)    /* (A23) UART0_CTSn */ >> +            AM62PX_IOPAD(0x1d4, PIN_OUTPUT, 0)    /* (C22) UART0_RTSn */ >> +        >; >> +    }; >> + >> +    main_uart1_pins_default: main-uart1-default-pins { >> +        bootph-pre-ram; >> +        pinctrl-single,pins = < >> +            AM62PX_IOPAD(0x194, PIN_INPUT, 2)    /* (D25) MCASP0_AXR3 */ >> +            AM62PX_IOPAD(0x198, PIN_OUTPUT, 2)    /* (E25) >> MCASP0_AXR2 */ >> +            AM62PX_IOPAD(0x1ac, PIN_INPUT, 2)    /* (G23) MCASP0_AFSR */ >> +            AM62PX_IOPAD(0x1b0, PIN_OUTPUT, 2)    /* (G20) >> MCASP0_ACLKR */ >> +        >; >> +    }; >> +}; >> + >> +&main_timer0 { >> +    bootph-pre-ram; >> +}; >> + >> +&main_uart0 { >> +    pinctrl-names = "default"; >> +    pinctrl-0 = <&main_uart0_pins_default>; >> +    status = "okay"; >> +    bootph-pre-ram; >> +}; >> + >> +&main_uart1 { >> +    /* Main UART1 is used by TIFS firmware */ >> +    pinctrl-names = "default"; >> +    pinctrl-0 = <&main_uart1_pins_default>; >> +    status = "reserved"; >> +    bootph-pre-ram; >> +}; >> + >> +&cbass_mcu { >> +    bootph-pre-ram; >> +}; >> + >> +&mcu_pmx0 { >> +    status = "okay"; >> +    bootph-pre-ram; >> + >> +    wkup_uart0_pins_default: wkup-uart0-default-pins { >> +        bootph-pre-ram; >> +        pinctrl-single,pins = < >> +            AM62PX_MCU_IOPAD(0x02c, PIN_INPUT, 0)    /* (C7) >> WKUP_UART0_CTSn */ >> +            AM62PX_MCU_IOPAD(0x030, PIN_OUTPUT, 0)    /* (C6) >> WKUP_UART0_RTSn */ >> +            AM62PX_MCU_IOPAD(0x024, PIN_INPUT, 0)    /* (D8) >> WKUP_UART0_RXD */ >> +            AM62PX_MCU_IOPAD(0x028, PIN_OUTPUT, 0)    /* (D7) >> WKUP_UART0_TXD */ >> +        >; >> +    }; >> +}; >> + >> +&cbass_wakeup { >> +    bootph-pre-ram; >> +}; >> + >> +&wkup_uart0 { >> +    /* WKUP UART0 is used by DM firmware */ >> +    pinctrl-names = "default"; >> +    pinctrl-0 = <&wkup_uart0_pins_default>; >> +    status = "reserved"; >> +    bootph-pre-ram; >> +}; >> + >> +&wkup_conf { >> +    bootph-pre-ram; >> +}; >> + >> +&chipid { >> +    bootph-pre-ram; >> +}; >> + >> +&dmss { >> +    bootph-pre-ram; >> +}; >> + >> +&dmsc { >> +    bootph-pre-ram; >> +}; >> + >> +&k3_pds { >> +    bootph-pre-ram; >> +}; >> + >> +&k3_clks { >> +    bootph-pre-ram; >> +}; >> + >> +&k3_reset { >> +    bootph-pre-ram; >> +}; >> + >> +&secure_proxy_main { >> +    bootph-pre-ram; >> +}; -- Regards Vignesh