Message ID | 20230503093310.85779-3-n-francis@ti.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1197266vqo; Wed, 3 May 2023 02:44:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6k/JDfGGf1ini2LI8jUMETgceEBeW4ahnkU912+W8/fr9r72zZN/zr3A1hijwqiy7Wh4K2 X-Received: by 2002:a05:6a00:b4c:b0:643:9cb:1f1 with SMTP id p12-20020a056a000b4c00b0064309cb01f1mr3123782pfo.24.1683107099648; Wed, 03 May 2023 02:44:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683107099; cv=none; d=google.com; s=arc-20160816; b=JFcgzktKeHeZWFhW4l7T9BHZi7JAX093jBpN5BKXkuxjhMWfr5BUTNgPelzzxpBes3 CsFCdDtygWvgt1ZYX23x9VvGWqUx5Ng1YjCA4GU3n5qDbaiefC7OoIPJDVThwwV1c40S rXSW4XheY6/a1h6pB7QT9GKocPO4xdmaUecQlY1NySGA3FnDVLc00E5OCaTSSDnCYrTq yt9kgkoPFPtA+JLpUmfjTpufX9M1CIN5JfVVR8WM/TaJ5w2GtgQdtqtUoa6hShWdOqKU LGuiqNDUIvbHKbBeaKuEGPtlmcdDQ0/RRhe1kzQx9SLklfAvG1WY/0yWSRWLm1VlcgGI XHxQ== 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=Nbm2okQd9GOX9MLJ9GJdK7KWRgaCLc9q1CvXPRB4DTY=; b=SGjap78d1C1eG1mKDLSYMhIEKNB2xXatTnyWRc7G2b5wUx/swXlBEbftfJbfHj+PpR gmFOBkII/BPiMj95ol4nQx6Gc6IhbQYNBjJKVlbJqRh0SP/kQ+DzH6O0/OsDUE8Naseu 49VbyzoN2XVhzhhVdpAWs113gUpzT68B13ci3C6kCAVsJW0ZuUaye/w4W4OFSilMCtGu ylWLDtfDvX6oukCw4yStiPiwUkm7Cj3vrBTinZeLaeZ32pyDJi2VGRBbrm0VGaK+dLVI 6lI8N6Mv4TjBi9NfX4Qtg6REzUs/q+lB93KUbaf+uBf89i9Lp6ejmLIkVGLDmFzaMGOF 1D0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=mAovSUpO; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f24-20020aa79698000000b0063b8eb340b1si32406516pfk.274.2023.05.03.02.44.47; Wed, 03 May 2023 02:44:59 -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=mAovSUpO; 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 S229883AbjECJdk (ORCPT <rfc822;heyuhang3455@gmail.com> + 99 others); Wed, 3 May 2023 05:33:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbjECJdb (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 3 May 2023 05:33:31 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2DC13C14; Wed, 3 May 2023 02:33:30 -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 3439XKZv002894; Wed, 3 May 2023 04:33:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683106400; bh=Nbm2okQd9GOX9MLJ9GJdK7KWRgaCLc9q1CvXPRB4DTY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=mAovSUpOGLJcZLw55jIFn0H/2ZQvHUNFeuvSF72Oj8nmtfM9uz0d0ujwwTqrV2TbT 8dQ+44LMuRNUOQujc3gJOyQGlGW005kpLskF4/EJK1dGB9HoU0BH/7pX3ggXc7otua LRyjB5QCdQf4oWbNrNp/mRzqNQlhcL6yougxUH7M= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3439XKgx006946 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 3 May 2023 04:33:20 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 3 May 2023 04:33:20 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE103.ent.ti.com (10.64.6.24) 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, 3 May 2023 04:33:20 -0500 Received: from ula0497641.dhcp.ti.com (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3439XAIn084380; Wed, 3 May 2023 04:33:17 -0500 From: Neha Malcom Francis <n-francis@ti.com> To: <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org> CC: <n-francis@ti.com>, <nm@ti.com>, <vigneshr@ti.com>, <kristo@kernel.org>, <u-kumar1@ti.com> Subject: [PATCH v4 2/3] arm64: dts: ti: k3-j721e: Add ESM support Date: Wed, 3 May 2023 15:03:09 +0530 Message-ID: <20230503093310.85779-3-n-francis@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230503093310.85779-1-n-francis@ti.com> References: <20230503093310.85779-1-n-francis@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=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764865710066939010?= X-GMAIL-MSGID: =?utf-8?q?1764865710066939010?= |
Series |
Add support for ESM
|
|
Commit Message
Neha Malcom Francis
May 3, 2023, 9:33 a.m. UTC
Add address entry mapping ESM on J721E.
Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
---
arch/arm64/boot/dts/ti/k3-j721e.dtsi | 1 +
1 file changed, 1 insertion(+)
Comments
On 15:03-20230503, Neha Malcom Francis wrote: > Add address entry mapping ESM on J721E. > > Signed-off-by: Neha Malcom Francis <n-francis@ti.com> > --- > arch/arm64/boot/dts/ti/k3-j721e.dtsi | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/boot/dts/ti/k3-j721e.dtsi b/arch/arm64/boot/dts/ti/k3-j721e.dtsi > index b912143b6a11..52bcde601eb8 100644 > --- a/arch/arm64/boot/dts/ti/k3-j721e.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-j721e.dtsi Why is'nt esm node introduced here? > @@ -131,6 +131,7 @@ cbass_main: bus@100000 { > #size-cells = <2>; > ranges = <0x00 0x00100000 0x00 0x00100000 0x00 0x00020000>, /* ctrl mmr */ > <0x00 0x00600000 0x00 0x00600000 0x00 0x00031100>, /* GPIO */ > + <0x00 0x00700000 0x00 0x00700000 0x00 0x00001000>, /* ESM */ > <0x00 0x00900000 0x00 0x00900000 0x00 0x00012000>, /* serdes */ > <0x00 0x00a40000 0x00 0x00a40000 0x00 0x00000800>, /* timesync router */ > <0x00 0x06000000 0x00 0x06000000 0x00 0x00400000>, /* USBSS0 */ > -- > 2.34.1 >
Hi Nishanth, On 03/05/23 17:18, Nishanth Menon wrote: > On 15:03-20230503, Neha Malcom Francis wrote: >> Add address entry mapping ESM on J721E. >> >> Signed-off-by: Neha Malcom Francis <n-francis@ti.com> >> --- >> arch/arm64/boot/dts/ti/k3-j721e.dtsi | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/arch/arm64/boot/dts/ti/k3-j721e.dtsi b/arch/arm64/boot/dts/ti/k3-j721e.dtsi >> index b912143b6a11..52bcde601eb8 100644 >> --- a/arch/arm64/boot/dts/ti/k3-j721e.dtsi >> +++ b/arch/arm64/boot/dts/ti/k3-j721e.dtsi > > Why is'nt esm node introduced here? > As it stands esm node is already in arch/arm/dts/k3-j721e-r5-common-proc-board.dts in u-boot and since this patch is motivated to keep the u-boot and kernel dts in sync, I haven't added it here. Although... I could add it here similar to j7200 and take action to move to the same in u-boot... maybe that is better route. >> @@ -131,6 +131,7 @@ cbass_main: bus@100000 { >> #size-cells = <2>; >> ranges = <0x00 0x00100000 0x00 0x00100000 0x00 0x00020000>, /* ctrl mmr */ >> <0x00 0x00600000 0x00 0x00600000 0x00 0x00031100>, /* GPIO */ >> + <0x00 0x00700000 0x00 0x00700000 0x00 0x00001000>, /* ESM */ >> <0x00 0x00900000 0x00 0x00900000 0x00 0x00012000>, /* serdes */ >> <0x00 0x00a40000 0x00 0x00a40000 0x00 0x00000800>, /* timesync router */ >> <0x00 0x06000000 0x00 0x06000000 0x00 0x00400000>, /* USBSS0 */ >> -- >> 2.34.1 >> >
On 17:25-20230503, Neha Malcom Francis wrote: > Hi Nishanth, > > On 03/05/23 17:18, Nishanth Menon wrote: > > On 15:03-20230503, Neha Malcom Francis wrote: > > > Add address entry mapping ESM on J721E. > > > > > > Signed-off-by: Neha Malcom Francis <n-francis@ti.com> > > > --- > > > arch/arm64/boot/dts/ti/k3-j721e.dtsi | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/arch/arm64/boot/dts/ti/k3-j721e.dtsi b/arch/arm64/boot/dts/ti/k3-j721e.dtsi > > > index b912143b6a11..52bcde601eb8 100644 > > > --- a/arch/arm64/boot/dts/ti/k3-j721e.dtsi > > > +++ b/arch/arm64/boot/dts/ti/k3-j721e.dtsi > > > > Why is'nt esm node introduced here? > > > > As it stands esm node is already in > arch/arm/dts/k3-j721e-r5-common-proc-board.dts in u-boot and since this > patch is motivated to keep the u-boot and kernel dts in sync, I haven't > added it here. > > Although... I could add it here similar to j7200 and take action to move to > the same in u-boot... maybe that is better route. The core problem we have is that part of the hardware description is in u-boot and a large part is in kernel. That is wrong. eventually, we will drop u-boot.dtsi and r5-xyz.dts files.. This cleanup journey is towards that action. we want kernel to be the canonical description of the hardware. which means u-boot or zephyr or something else will eventually just copy the kernel dts and it has information enough about the hardware to be able to boot. each of the dependent ecosystems (u-boot, zephyr etc..) have a little bit of their own binding extensions (such as binman for u-boot), which is maintained in their own repos. But, the SoC hardware description, entirely should be available in kernel device tree. So, please ensure esm is completely described as well.
Hi Nishanth On 03/05/23 17:32, Nishanth Menon wrote: > On 17:25-20230503, Neha Malcom Francis wrote: >> Hi Nishanth, >> >> On 03/05/23 17:18, Nishanth Menon wrote: >>> On 15:03-20230503, Neha Malcom Francis wrote: >>>> Add address entry mapping ESM on J721E. >>>> >>>> Signed-off-by: Neha Malcom Francis <n-francis@ti.com> >>>> --- >>>> arch/arm64/boot/dts/ti/k3-j721e.dtsi | 1 + >>>> 1 file changed, 1 insertion(+) >>>> >>>> diff --git a/arch/arm64/boot/dts/ti/k3-j721e.dtsi b/arch/arm64/boot/dts/ti/k3-j721e.dtsi >>>> index b912143b6a11..52bcde601eb8 100644 >>>> --- a/arch/arm64/boot/dts/ti/k3-j721e.dtsi >>>> +++ b/arch/arm64/boot/dts/ti/k3-j721e.dtsi >>> >>> Why is'nt esm node introduced here? >>> >> >> As it stands esm node is already in >> arch/arm/dts/k3-j721e-r5-common-proc-board.dts in u-boot and since this >> patch is motivated to keep the u-boot and kernel dts in sync, I haven't >> added it here. >> >> Although... I could add it here similar to j7200 and take action to move to >> the same in u-boot... maybe that is better route. > > The core problem we have is that part of the hardware description is in > u-boot and a large part is in kernel. That is wrong. eventually, we will > drop u-boot.dtsi and r5-xyz.dts files.. This cleanup journey is towards > that action. > > we want kernel to be the canonical description of the hardware. which > means u-boot or zephyr or something else will eventually just copy the > kernel dts and it has information enough about the hardware to be able > to boot. > > each of the dependent ecosystems (u-boot, zephyr etc..) have a little > bit of their own binding extensions (such as binman for u-boot), which > is maintained in their own repos. But, the SoC hardware description, > entirely should be available in kernel device tree. > > So, please ensure esm is completely described as well. > Right got it, will add the node in v5, thanks!
diff --git a/arch/arm64/boot/dts/ti/k3-j721e.dtsi b/arch/arm64/boot/dts/ti/k3-j721e.dtsi index b912143b6a11..52bcde601eb8 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721e.dtsi @@ -131,6 +131,7 @@ cbass_main: bus@100000 { #size-cells = <2>; ranges = <0x00 0x00100000 0x00 0x00100000 0x00 0x00020000>, /* ctrl mmr */ <0x00 0x00600000 0x00 0x00600000 0x00 0x00031100>, /* GPIO */ + <0x00 0x00700000 0x00 0x00700000 0x00 0x00001000>, /* ESM */ <0x00 0x00900000 0x00 0x00900000 0x00 0x00012000>, /* serdes */ <0x00 0x00a40000 0x00 0x00a40000 0x00 0x00000800>, /* timesync router */ <0x00 0x06000000 0x00 0x06000000 0x00 0x00400000>, /* USBSS0 */