From patchwork Thu Jan 19 06:40:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 45613 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp179509wrn; Wed, 18 Jan 2023 22:58:43 -0800 (PST) X-Google-Smtp-Source: AMrXdXv77JC4M3NJCPJpO/LOR0zwq6K4TNQ+WCKj4AvNdI+WuS9h8k8blISbmk6HvLaSM43xWjgq X-Received: by 2002:a17:907:d23:b0:877:6873:70b9 with SMTP id gn35-20020a1709070d2300b00877687370b9mr3801425ejc.29.1674111523380; Wed, 18 Jan 2023 22:58:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674111523; cv=none; d=google.com; s=arc-20160816; b=jFxixr48Uc2h9sVWBn9whZX27tTEapMJkD0NDhoCaLjvazHyD+ZsLQGrnNjfwdwotX E4U/kfezn8Tv8QmOAo6/5P+gtoEGWEOOQ8KUOVU0H1BH0+e2Z5lkURIY6BWBKyrWO+T2 Y7rUMrk1PcpI46n4qtBNAxdTAopoVBgwV7HQByqeSntVFRLER92SByHpvwNCwTTdvgz2 PTOKiSYg+9zdrOuICPyzOvxlOg/FfzqdkVMe62voDvcMuxhcoQrIdOBzkCQgkmsH6owd h6F7ZccNOHkJY5Qx3Uws25ivv8B94Prxz+bSjSypK+uXgWjJ65NvHvHlt5a8J0ADlSEi wNxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=o0QGfu5aYlJSGJDDc5cQ+AgSfA70JLHN2RUhvaqAiZU=; b=mbx1Y/Njham7qf6CX4EXxCYgFayojg+r9y1kirtbuKtWs9HXH9EuPdhbnQFSVXqCaW fu7RTjN8FLlhEDdN/eZrPf/xoZj0+uFg02WW+CvpJqgU18AyCpJBmEMgN0Wlo8WCmRsC Tb+MXvf4BDAPJodFltue0OxFHQQ98kv5Kf6usdMrGikup703SslN4Ci9tXfU3aGn3K23 GCqb2fIYPtQ9eKRi7ATXouGvTukRwSnkdKtgbGlZQtP/WzjgNgF3oxtv5fRttUCwTY+t bvdEK+pC87tbxD/uTfQWxSNnQkeLY5sscE/DDXAWIg64DlWaqHBr/obkWGrxuOMGYqJZ 6Qqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=TmSXeKOJ; 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=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc3-20020a1709078a0300b0087769779d12si2402567ejc.820.2023.01.18.22.58.19; Wed, 18 Jan 2023 22:58:43 -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=@siemens.com header.s=fm1 header.b=TmSXeKOJ; 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=NONE sp=NONE dis=NONE) header.from=siemens.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229851AbjASGm1 (ORCPT + 99 others); Thu, 19 Jan 2023 01:42:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229724AbjASGmD (ORCPT ); Thu, 19 Jan 2023 01:42:03 -0500 X-Greylist: delayed 69 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 18 Jan 2023 22:41:58 PST Received: from mta-65-226.siemens.flowmailer.net (mta-65-226.siemens.flowmailer.net [185.136.65.226]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C10C65F05 for ; Wed, 18 Jan 2023 22:41:51 -0800 (PST) Received: by mta-65-226.siemens.flowmailer.net with ESMTPSA id 202301190640435230c9ab1b311a69cb for ; Thu, 19 Jan 2023 07:40:43 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=jan.kiszka@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=o0QGfu5aYlJSGJDDc5cQ+AgSfA70JLHN2RUhvaqAiZU=; b=TmSXeKOJMPIs1rcDsjxeB6GArEXKdbQEj9jV2mC7ydx/7MsH7FvUpj482QuuUDh9WX3Skr 5+1H6fQiZNhrKxFJ8We42EOkiUm6XhXuL/SkUOdUZP9TDxoTVmjBUQrJZhfeAFUDX9puXbex wU+RiGkC68QoSxjSgieOyYjGKhAM4=; From: Jan Kiszka To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Bao Cheng Su , Chao Zeng Subject: [PATCH v2 1/3] arm64: dts: ti: iot2050: Add layout of OSPI flash Date: Thu, 19 Jan 2023 07:40:40 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-294854:519-21489:flowmailer X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2, 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 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?1755433165202342757?= X-GMAIL-MSGID: =?utf-8?q?1755433165202342757?= From: Jan Kiszka Describe the layout of the OSPI flash as the latest firmware uses it. Specifically the location of the U-Boot envs is important for userspace in order to access it. Signed-off-by: Jan Kiszka --- .../boot/dts/ti/k3-am65-iot2050-common.dtsi | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi b/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi index 3cced26b520a..96ac2b476b11 100644 --- a/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi @@ -609,6 +609,52 @@ flash@0 { cdns,tchsh-ns = <60>; cdns,tslch-ns = <60>; cdns,read-delay = <2>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + seboot@0 { + label = "seboot"; + reg = <0x0 0x180000>; /* 1.5M */ + }; + + tispl@180000 { + label = "tispl"; + reg = <0x180000 0x200000>; /* 2M */ + }; + + u-boot@380000 { + label = "u-boot"; + reg = <0x380000 0x300000>; /* 3M */ + }; + + env@680000 { + label = "env"; + reg = <0x680000 0x20000>; /* 128K */ + }; + + env-backup@6a0000 { + label = "env.backup"; + reg = <0x6a0000 0x20000>; /* 128K */ + }; + + otpcmd@6c0000 { + label = "otpcmd"; + reg = <0x6c0000 0x10000>; /* 64K */ + }; + + unused@6d0000 { + label = "unused"; + reg = <0x6d0000 0x7b0000>; /* 7872K */ + }; + + seboot-backup@e80000 { + label = "seboot.backup"; + reg = <0xe80000 0x180000>; /* 1.5M */ + }; + }; }; }; From patchwork Thu Jan 19 06:40:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 45612 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp179424wrn; Wed, 18 Jan 2023 22:58:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXtACYGpRSPqZCq7MgxPau3dF6iM6rOA2IJfGStXM8uynBLZyjVA18fmvWhu169UBcvOT9KP X-Received: by 2002:a17:906:af8f:b0:7c1:5098:9074 with SMTP id mj15-20020a170906af8f00b007c150989074mr6305421ejb.0.1674111501719; Wed, 18 Jan 2023 22:58:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674111501; cv=none; d=google.com; s=arc-20160816; b=WBrTm9nto9a2l0D0tGvwVKc6nUXJpD6QSFXPXg6BH1w99oT/9m+ofopPREmV9Ry9II hdNjiH4a5fIWfHE2rDbQT6QywEAkeh+pFbVLsZzy0i9ySghwHyjW8Wm1UOYVQohpsbWx i9Rno9T2oYOL7duls4OYlcNIGHNVLEcp5H5XFrljyTuzsdvfo28hMmiA0/zsFYhAS42i egfJuakwou0dlf9HFcVAXMaW3swl7LcZVccysVO8K2ZvV9mY9CDMTJ+yGytsaX5Rkn56 9p35visOmefr/N0iaZClhSABewo+Vzf1x7JmJDkutOBrl/++a/V1l/CyKmoPlDQ3lBgC 1IQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Uz8plPgBqNBgdN6ehW26Ppifew0Lvajs1xVbwR3IZxo=; b=AFRhKpmD0QgtCxE7ZbMkDIxn79srOadqKnCRQvRYWItoCybSoYw+6VlmrrQNyl4KIT 6zkj+RQqmS2Al2H7G6k0Hi2opNqpk6Is/nIKSMH+2JQ2qBNGdGf51oU2LA44NeCwswcC bTKvQeWPNVNEKmERZAWbFgKBDVYhZiicqpbi1FDDkBTyliYg6eOcDUsESnhyDtyT0uL+ vEfTMCk4ZsaI+J9pX43nQ7SSmlwFjcjYuQ0oMb+9McFlPnIWkD+qepVONOWJir2OXAjV TGTk8MZLDezjiBMCh4tCqGAvv1D9uMlAhAM9hvdyR/zX4eJRCRd20VV+ZVVz14W57Nol ER9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=IpTCs0+3; 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=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa34-20020a1709076d2200b008736ed0a13asi6380065ejc.343.2023.01.18.22.57.55; Wed, 18 Jan 2023 22:58:21 -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=@siemens.com header.s=fm1 header.b=IpTCs0+3; 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=NONE sp=NONE dis=NONE) header.from=siemens.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229862AbjASGmQ (ORCPT + 99 others); Thu, 19 Jan 2023 01:42:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjASGl7 (ORCPT ); Thu, 19 Jan 2023 01:41:59 -0500 X-Greylist: delayed 68 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 18 Jan 2023 22:41:55 PST Received: from mta-64-225.siemens.flowmailer.net (mta-64-225.siemens.flowmailer.net [185.136.64.225]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF0A3656C3 for ; Wed, 18 Jan 2023 22:41:51 -0800 (PST) Received: by mta-64-225.siemens.flowmailer.net with ESMTPSA id 20230119064043e1a9ba0aa920b92518 for ; Thu, 19 Jan 2023 07:40:44 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=jan.kiszka@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=Uz8plPgBqNBgdN6ehW26Ppifew0Lvajs1xVbwR3IZxo=; b=IpTCs0+3SvoLBfda96eiS+sY+ShzKN1wVzniZxHVoRbQ+aW710eUeobIoX678/wcL4ybB4 sJFkuTTiOb6RZvNp9jKoMUA9fCtYJLAK0w7iA3oVbsdAz9HJScOcAdsVlVMtFWiuneaO1TUP Auib/feDIb0rXGv3RCKtvhAVaCdgA=; From: Jan Kiszka To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Bao Cheng Su , Chao Zeng , Krzysztof Kozlowski Subject: [PATCH v2 2/3] dt-bindings: arm: ti: Add binding for Siemens IOT2050 M.2 variant Date: Thu, 19 Jan 2023 07:40:41 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-294854:519-21489:flowmailer X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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?1755433142076614115?= X-GMAIL-MSGID: =?utf-8?q?1755433142076614115?= From: Jan Kiszka This new variant is derived from the Advanced PG2 board, replacing the MiniPCI slot with B and E-keyed M.2 slots. Signed-off-by: Jan Kiszka 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 203faab80142..0ed4e973753f 100644 --- a/Documentation/devicetree/bindings/arm/ti/k3.yaml +++ b/Documentation/devicetree/bindings/arm/ti/k3.yaml @@ -42,6 +42,7 @@ properties: items: - enum: - siemens,iot2050-advanced + - siemens,iot2050-advanced-m2 - siemens,iot2050-advanced-pg2 - siemens,iot2050-basic - siemens,iot2050-basic-pg2 From patchwork Thu Jan 19 06:40:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 45611 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp177628wrn; Wed, 18 Jan 2023 22:51:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXvpxnBza5pa3IaPOXas0FC9Fw/134dGhMzxPRyjr6FenkwKCR/bQcNPZGqxNoOoEH8wDdyJ X-Received: by 2002:a05:6a20:a5a2:b0:b8:8a94:5bf with SMTP id bc34-20020a056a20a5a200b000b88a9405bfmr4622981pzb.21.1674111086745; Wed, 18 Jan 2023 22:51:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674111086; cv=none; d=google.com; s=arc-20160816; b=YoBH/+2owEuNkQS7smkI0GnL4Nt0mTwryA+NFSNWmOidhRYuN1oMkgZ6VGm78nQBlq X91bebWdXFIIeBD1YEzHq/GSYpIyHR/8qTIf1KIdclJ2wKFCHz7q55ihtBDaYjDe95hT IXXIX/GpAJUm1V71ejc0kh0sTKlDVupuSsfekNNzhbPh/orIeqw3fst0zu68QUZyPplm +9L9bKSK7TiZqcvFxY2yyhSIE+wpv0MSaQXXexDMGL+9RTgLqN6SfCdQVcm/ydvAmKuM F56PwvFQvqcmpEvhNaQJPWdTEmYJuQd2igwBpCbE70WgjCmOtn3r28NKBw6+XHPHX5xu K7qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Dcf04xi6uIGTMAmtMttis/LhQI/XZantTrG75v5MBDg=; b=bEE0U60yNtEF96Guf+mxPVA2JqQcD4dNFmOK2/SFi+Pj+2WzwRmKXV79BD2FCVUtYH c+aYynX1BeZyxVVGh75HRwgk4bmF71kRwPn6tGAcDG91FpTEEWYjPLVNQ+b+aqbytMV1 3KCr1xUJDVvcdezttxMVxfBoaHEz8haE4W4FMcUE8Bh6t7UPt5g+4Y3K3qluIdI8fW7R WdMGl7QkIgmaqwb3SaSx7E/2Q3vl+Nnol2I33ue+tZn26ELTmO0WpXFVKV0pc6iG8Yu6 cIgRhi8frnm4GSl11yYvWHSME7wM6RjntKZlpsB3/A/vajFufLNGtzqXtkD0QWfZGufC SyXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=JFCIapRO; 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=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s11-20020a65584b000000b004a26c35feeesi39566307pgr.859.2023.01.18.22.51.14; Wed, 18 Jan 2023 22:51:26 -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=@siemens.com header.s=fm1 header.b=JFCIapRO; 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=NONE sp=NONE dis=NONE) header.from=siemens.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229615AbjASGle (ORCPT + 99 others); Thu, 19 Jan 2023 01:41:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjASGl1 (ORCPT ); Thu, 19 Jan 2023 01:41:27 -0500 Received: from mta-64-227.siemens.flowmailer.net (mta-64-227.siemens.flowmailer.net [185.136.64.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5CA531E3D for ; Wed, 18 Jan 2023 22:40:46 -0800 (PST) Received: by mta-64-227.siemens.flowmailer.net with ESMTPSA id 20230119064044c5fb25d881533b493f for ; Thu, 19 Jan 2023 07:40:44 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=jan.kiszka@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=Dcf04xi6uIGTMAmtMttis/LhQI/XZantTrG75v5MBDg=; b=JFCIapROzfeUfZKj6a5ldtMdKtjYEQcrb5E5mpVEdOKiEMKhHcCCc5DLWgk2OvR/ZdqWac K7Rgrl9pjjulBenOQ4BzBLURiha86YskK8burnXG5JmIG5N3r7OexFGN4+du9KpWcI/IvLW3 vGiwOHT/H/qw6T+Z/oNci0dUtXR3Y=; From: Jan Kiszka To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Bao Cheng Su , Chao Zeng Subject: [PATCH v2 3/3] arm64: dts: ti: iot2050: Add support for M.2 variant Date: Thu, 19 Jan 2023 07:40:42 +0100 Message-Id: <878e3a023767b5a6d9d2cff09015678aaba13fce.1674110442.git.jan.kiszka@siemens.com> In-Reply-To: References: MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-294854:519-21489:flowmailer X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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?1755432707076009898?= X-GMAIL-MSGID: =?utf-8?q?1755432707076009898?= From: chao zeng The M.2 variant comes with 2 slots, one B-keyed and another one E-keyed. They are configured by the firmware during startup. Also the device tree will be adjusted according to the detect or manually configured interface mode by the firmware. The kernel only carries a single configuration as base device tree. It has to be built with a symbols node so that the firmware can apply overlays for the connector modes. Signed-off-by: chao zeng [Jan: refactored to a single DT] Signed-off-by: Jan Kiszka Reviewed-by: Siddharth Vadapalli --- arch/arm64/boot/dts/ti/Makefile | 3 + .../dts/ti/k3-am6548-iot2050-advanced-m2.dts | 121 ++++++++++++++++++ 2 files changed, 124 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am6548-iot2050-advanced-m2.dts diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile index cf7c509538a4..bfb16b62c58d 100644 --- a/arch/arm64/boot/dts/ti/Makefile +++ b/arch/arm64/boot/dts/ti/Makefile @@ -10,8 +10,11 @@ dtb-$(CONFIG_ARCH_K3) += k3-am654-base-board.dtb dtb-$(CONFIG_ARCH_K3) += k3-am6528-iot2050-basic.dtb dtb-$(CONFIG_ARCH_K3) += k3-am6528-iot2050-basic-pg2.dtb dtb-$(CONFIG_ARCH_K3) += k3-am6548-iot2050-advanced.dtb +dtb-$(CONFIG_ARCH_K3) += k3-am6548-iot2050-advanced-m2.dtb dtb-$(CONFIG_ARCH_K3) += k3-am6548-iot2050-advanced-pg2.dtb +DTC_FLAGS_k3-am6548-iot2050-advanced-m2 += -@ + dtb-$(CONFIG_ARCH_K3) += k3-j721e-beagleboneai64.dtb dtb-$(CONFIG_ARCH_K3) += k3-j721e-common-proc-board.dtb dtb-$(CONFIG_ARCH_K3) += k3-j721e-sk.dtb diff --git a/arch/arm64/boot/dts/ti/k3-am6548-iot2050-advanced-m2.dts b/arch/arm64/boot/dts/ti/k3-am6548-iot2050-advanced-m2.dts new file mode 100644 index 000000000000..9400e35882a6 --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-am6548-iot2050-advanced-m2.dts @@ -0,0 +1,121 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) Siemens AG, 2018-2023 + * + * Authors: + * Chao Zeng + * Jan Kiszka + * + * AM6548-based (quad-core) IOT2050 M.2 variant (based on Advanced Product + * Generation 2), 2 GB RAM, 16 GB eMMC, USB-serial converter on connector X30 + * + * Product homepage: + * https://new.siemens.com/global/en/products/automation/pc-based/iot-gateways/simatic-iot2050.html + */ + +#include "k3-am6548-iot2050-advanced-common.dtsi" +#include "k3-am65-iot2050-common-pg2.dtsi" + +/ { + compatible = "siemens,iot2050-advanced-m2", "ti,am654"; + model = "SIMATIC IOT2050 Advanced M2"; +}; + +&mcu_r5fss0 { + /* lock-step mode not supported on this board */ + ti,cluster-mode = <0>; +}; + +&main_pmx0 { + main_m2_enable_pins_default: main-m2-enable-pins-default { + pinctrl-single,pins = < + AM65X_IOPAD(0x01c4, PIN_INPUT_PULLUP, 7) /* (AH13) GPIO1_17 */ + >; + }; + + main_bkey_pcie_reset: main-bkey-pcie-reset { + pinctrl-single,pins = < + AM65X_IOPAD(0x01bc, PIN_OUTPUT_PULLUP, 7) /* (AG13) GPIO1_15 */ + >; + }; + + main_pmx0_m2_config_pins_default: main-pmx0-m2-config-pins-default { + pinctrl-single,pins = < + AM65X_IOPAD(0x01c8, PIN_INPUT_PULLUP, 7) /* (AE13) GPIO1_18 */ + AM65X_IOPAD(0x01cc, PIN_INPUT_PULLUP, 7) /* (AD13) GPIO1_19 */ + >; + }; + + main_m2_pcie_mux_control: main-m2-pcie-mux-control { + pinctrl-single,pins = < + AM65X_IOPAD(0x0148, PIN_INPUT_PULLUP, 7) /* (AG22) GPIO0_82 */ + AM65X_IOPAD(0x0160, PIN_INPUT_PULLUP, 7) /* (AE20) GPIO0_88 */ + AM65X_IOPAD(0x0164, PIN_INPUT_PULLUP, 7) /* (AF19) GPIO0_89 */ + >; + }; +}; + +&main_pmx1 { + main_pmx1_m2_config_pins_default: main-pmx1-m2-config-pins-default { + pinctrl-single,pins = < + AM65X_IOPAD(0x0018, PIN_INPUT_PULLUP, 7) /* (B22) GPIO1_88 */ + AM65X_IOPAD(0x001c, PIN_INPUT_PULLUP, 7) /* (C23) GPIO1_89 */ + >; + }; +}; + +&main_gpio0 { + pinctrl-names = "default"; + pinctrl-0 = < + &main_m2_pcie_mux_control + &arduino_io_d4_to_d9_pins_default + >; +}; + +&main_gpio1 { + pinctrl-names = "default"; + pinctrl-0 = < + &main_m2_enable_pins_default + &main_pmx0_m2_config_pins_default + &main_pmx1_m2_config_pins_default + &cp2102n_reset_pin_default + >; +}; + +/* + * Base configuration for B-key slot with PCIe x2, E-key with USB 2.0 only. + * Firmware switches to other modes via device tree overlays. + */ + +&serdes0 { + assigned-clocks = <&k3_clks 153 4>, <&serdes0 AM654_SERDES_CMU_REFCLK>; + assigned-clock-parents = <&k3_clks 153 8>, <&k3_clks 153 4>; +}; + +&pcie0_rc { + pinctrl-names = "default"; + pinctrl-0 = <&main_bkey_pcie_reset>; + + num-lanes = <2>; + phys = <&serdes0 PHY_TYPE_PCIE 1>, <&serdes1 PHY_TYPE_PCIE 1>; + phy-names = "pcie-phy0","pcie-phy1"; + reset-gpios = <&main_gpio1 15 GPIO_ACTIVE_HIGH>; + status = "okay"; +}; + +&pcie1_rc { + status = "disabled"; +}; + +&dwc3_0 { + assigned-clock-parents = <&k3_clks 151 4>, /* set REF_CLK to 20MHz i.e. PER0_PLL/48 */ + <&k3_clks 151 9>; /* set PIPE3_TXB_CLK to CLK_12M_RC/256 (for HS only) */ + /delete-property/ phys; + /delete-property/ phy-names; +}; + +&usb0 { + maximum-speed = "high-speed"; + /delete-property/ snps,dis-u1-entry-quirk; + /delete-property/ snps,dis-u2-entry-quirk; +};