From patchwork Wed Jan 18 16:28:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 45383 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2435662wrn; Wed, 18 Jan 2023 08:33:59 -0800 (PST) X-Google-Smtp-Source: AMrXdXvk+nmPnDiPXxyX/sJGpILHPEqLzijsM1p/CCqzKOm4LKuwpy8afUFDZB2SPQ92+eCfpIU4 X-Received: by 2002:a17:90a:2dce:b0:229:4a04:65eb with SMTP id q14-20020a17090a2dce00b002294a0465ebmr7919921pjm.31.1674059639241; Wed, 18 Jan 2023 08:33:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674059639; cv=none; d=google.com; s=arc-20160816; b=lscH2JDWeHofVb9u8S5LLpXG5DahgWL8xyR4fqmC8rim6tExLSD9g8GnaDCmKy6nJN 98AUd2CDHpwncRh1PPrkqVGchP1DP6fFWLT+8aUDakYCmVoqm8L6JUSp3BwlQZ5LcbUf ZXyTqOGPnRFpCKl04ur8NxKYEKIinzcBkQKG4ns/AAXWvVI9xrYIpcBFyeDg7PxbN1Zp Jto7PxRiamdRo8IOUsvrzAuctSfVIkc38nlKQ5stmidQeM8LakWTM4rNL52drSEE/IrO Y3u/sDqa4G/AlHEH+iIiwreP7N2LdvrwDbU1Zjeboxfismv1U2NT5I92seG9Z9h+Y/eV +OGA== 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=eIToVaVAE8nn2qwXYu/wIiEVcs+AD6cviCDdandgQaK20UZjDlPFhiizaOeYYs8nwM aWpv+o+BTCUR+ArsE2uxsofS1DVuMN5BFjLttIkxDyKSX2bxnCzda/Urru6bVgJZxmYX qAh7X99WoKravrJUCzqzw3PqP1mdVbbRYQeiZllfnXxzQ4hfIstV3UwXEp4BMyw8N352 2PeTtQHQeWdkXH2wZnmBq8bahYZySuIArycDtHEp1+rUZU9wDgIFWTAxX+6Ml9RHTtfQ NVMC4iT7Kj2EiPyC9n56LJXYXqh9dlCNrZLi+wtVCkFG65XnsOoz3iL/VrOs3Z0owhGq B+LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=ZqKa4I5F; 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 n3-20020a6546c3000000b0049f5dc6cf7csi36263337pgr.801.2023.01.18.08.33.47; Wed, 18 Jan 2023 08:33:59 -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=ZqKa4I5F; 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 S230313AbjARQcA (ORCPT + 99 others); Wed, 18 Jan 2023 11:32:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230307AbjARQbd (ORCPT ); Wed, 18 Jan 2023 11:31:33 -0500 X-Greylist: delayed 63 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 18 Jan 2023 08:29:29 PST Received: from mta-64-228.siemens.flowmailer.net (mta-64-228.siemens.flowmailer.net [185.136.64.228]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83FFA59576 for ; Wed, 18 Jan 2023 08:29:26 -0800 (PST) Received: by mta-64-228.siemens.flowmailer.net with ESMTPSA id 20230118162822ed4ab1b3dbf4111be0 for ; Wed, 18 Jan 2023 17:28:22 +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=ZqKa4I5FUI0djHbRQViIsHGuDemx55vTFh0KDuf+UG+M9n+pap646IKTek2dgm/nkGF78D kH6Q2eA+oUmE6JuOxqO0SzFgRdXs+VDl8EqZvdjdmE/I/BAIChZyvPSNKuVLApZIooltvSJU +uexhUzfiUIL7QbaCR9t1h7jzod9Q=; 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 1/3] arm64: dts: ti: iot2050: Add layout of OSPI flash Date: Wed, 18 Jan 2023 17:28:18 +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?1755378759865006958?= X-GMAIL-MSGID: =?utf-8?q?1755378759865006958?= 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 Wed Jan 18 16:28:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 45382 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2435659wrn; Wed, 18 Jan 2023 08:33:59 -0800 (PST) X-Google-Smtp-Source: AMrXdXvUvDGU+rUyHSUzUDqSjGPxLAtT4FLfoVbHKbBaqhJSYufWO1PJ5u6w7R4afBzp0GmqWap0 X-Received: by 2002:a17:902:ef8c:b0:192:fdd3:af5e with SMTP id iz12-20020a170902ef8c00b00192fdd3af5emr6308823plb.48.1674059638735; Wed, 18 Jan 2023 08:33:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674059638; cv=none; d=google.com; s=arc-20160816; b=YrSV20L5aBkW4117OzNbvoZARfgbxCNxo+QlaJwfN5UdPgSZj9AgjBl7y5OjBHp3/S ocVQom862yyw+uzbMMrhoLaOdMEH6WTykWrNWMIbT0VtwPGfYQbmBYJppHz1oq7wPyy+ 0cwLKnzy8+ghqL7vOHtS3pC/haya2LkzdLCvxjUG6pEnriKfcLkDHaGtUJpcZR/JwHGj 8WNKhzU47f1BjcRLHZXUKIlwXDJ2YHRbkfabeU6Or4AQ0YJ4M8/4eVkIkXRb5JB7e7rJ N+Y6xCIBA95VzmOtaY5q0dG443O4mJLCV1ToZOdH1SjEOYURx6STKE1cOsUvLbwGyvtP jNMw== 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=kKCAFwGy2SwmmRR8xa0RRk8D8x4JK6IuQDlTLYzyD/I=; b=xQM5YzJYk4NfyGHc4TDYh83PJYwrTZVHUHrnaYngl7rOZo7ffQlgrSJJjQjI9UxHSr AEyfeLss/qcmEPhL9vrJYd3sm+Tx1lvf/+VkAgEnYAOkurNMeov0aSsRgzAW5EBL5sXZ qUdJnsDtRLzuFcNw8xIHcUe0J1F/hm0EoBoYXDcRKwXX0cWsIYQrkyLhfYIG4FYs5NGO kUsmjFKDByu5gYH6P7LALsXqO6mfKc34S3YoEuxBRis9vPzKB6a0BSlX7y9OYk6POblB bhPaRM+yfW40bzu06Ii5yjrREhSmUcpJC3pZGMNBRQ03W7MXgEtRzqyMSgxkqM0pYQQz B0pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=geJlaDMF; 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 j7-20020a170903024700b001927aa58c73si39431440plh.203.2023.01.18.08.33.45; Wed, 18 Jan 2023 08:33:58 -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=geJlaDMF; 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 S230390AbjARQb4 (ORCPT + 99 others); Wed, 18 Jan 2023 11:31:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230254AbjARQbc (ORCPT ); Wed, 18 Jan 2023 11:31:32 -0500 X-Greylist: delayed 62 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 18 Jan 2023 08:29:28 PST Received: from mta-64-228.siemens.flowmailer.net (mta-64-228.siemens.flowmailer.net [185.136.64.228]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83E9F59541 for ; Wed, 18 Jan 2023 08:29:27 -0800 (PST) Received: by mta-64-228.siemens.flowmailer.net with ESMTPSA id 202301181628221e0356c8fdb985b8b3 for ; Wed, 18 Jan 2023 17:28:23 +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=kKCAFwGy2SwmmRR8xa0RRk8D8x4JK6IuQDlTLYzyD/I=; b=geJlaDMFR3dkdYgDZB/t/3vHbTsK+ekBYmKQoFxVY6FXa3EzNm3qSbTB1ssubOkquej+Ap 8QZl1j2x1n6VMG31goMaYjKWkQu/sv3lrJLQpXwdA/S40OOVjVzwTmB9L58n6wY0ygRnqPPx kkHzLb6LAcJ0UzF6dNsE6MMGookXE=; 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 2/3] dt-bindings: arm: ti: Add binding for Siemens IOT2050 M.2 variant Date: Wed, 18 Jan 2023 17:28:19 +0100 Message-Id: <3f825ff8853b1ffd8228d3283c7da0483ddf55d5.1674059300.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=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?1755378759654886847?= X-GMAIL-MSGID: =?utf-8?q?1755378759654886847?= 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..7af813202f1f 100644 --- a/Documentation/devicetree/bindings/arm/ti/k3.yaml +++ b/Documentation/devicetree/bindings/arm/ti/k3.yaml @@ -43,6 +43,7 @@ properties: - enum: - siemens,iot2050-advanced - siemens,iot2050-advanced-pg2 + - siemens,iot2050-advanced-m2 - siemens,iot2050-basic - siemens,iot2050-basic-pg2 - ti,am654-evm From patchwork Wed Jan 18 16:28:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 45384 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2435675wrn; Wed, 18 Jan 2023 08:34:01 -0800 (PST) X-Google-Smtp-Source: AMrXdXtInuS7Koj0I2riJbdAau3t8yJLZl0xnO/KNXOCow/lOCUAlqWcALYM9X8lX91XkPA3aIs/ X-Received: by 2002:a05:6a20:93a4:b0:b6:7b49:8ed with SMTP id x36-20020a056a2093a400b000b67b4908edmr8655001pzh.16.1674059641643; Wed, 18 Jan 2023 08:34:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674059641; cv=none; d=google.com; s=arc-20160816; b=oZcScN0W/NDBMyAYw+p+nCGjnd1Jae9S7B/VpFJsFDd4jgWbR6El7J+J+A4rgzn9K+ flB4QlhG0a/wjhpToiBnOVZsk10wiZSq1EJdQrh9LUxFIgOWxYgSGOpg10yNNKDScEbg ZA5Lyn2uyUujzeQGE2l2P62DGFd0ymtjB3bFZyWLaIOMlLBvmAtZxKgb8HAeCBbW0GgP BxWsQy7G5LrxJ/t2Hvunk4wcEZ458pkCs6HQb2sh6+qJFy4pRjxbB92kKYxnoTPL4r8V Vz1A0kqmCOqwkP7skPF9bR7lPWSryAq9Mt1xERzS6rtsDP87+XSYnWhqWKlJQ3lse6OL SnsA== 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=3Caob5l0q9fl1lZH64o8jCtERq+1/3UHqT0YSyFX62s=; b=vpHcEmdaQ8mlFpTQTKlQYqgfcDZo4V5bDWTAoNr25Sc53kOm2QCw1eo3ltF2IKn9oR LoH6Sb25znbJBwo4Qd3Zsmzgjz4pD41HTmSaA1xkAlUQMy3Kkyk4/yZkbtEi7Is1R9da O0LtUFuXsTcBl/ezQz44H/Rucggr1qgHHp//7scYhqZb9zos0tNPou7VvDTafSZdFpKp pmaMFOE7+dhTD5tfZe4Dwo659mCbEqdM5rPC2oguoeGkRrxHkBAYrraU1aen6QVgxAac U9FwTN75THtg3To9jqi+6s9FP75TLdCGtzvmCpXfBvhFiwAdGn1ygncxJfzZiVgApJ30 qx1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=LxHXc3yP; 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 38-20020a631966000000b004784f928f15si35542658pgz.91.2023.01.18.08.33.49; Wed, 18 Jan 2023 08:34:01 -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=LxHXc3yP; 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 S229926AbjARQcW (ORCPT + 99 others); Wed, 18 Jan 2023 11:32:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229663AbjARQbk (ORCPT ); Wed, 18 Jan 2023 11:31:40 -0500 X-Greylist: delayed 72 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 18 Jan 2023 08:29:37 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 B954059B4D for ; Wed, 18 Jan 2023 08:29:37 -0800 (PST) Received: by mta-65-226.siemens.flowmailer.net with ESMTPSA id 20230118162823c3ee4325a36ea5a2fe for ; Wed, 18 Jan 2023 17:28:23 +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=3Caob5l0q9fl1lZH64o8jCtERq+1/3UHqT0YSyFX62s=; b=LxHXc3yPGvwdruGGDHlNYNEFW2ufAtHRWcV3bpv33nZZ34to7rBN+wxufxVXEuemPmtgZP fA86ajtF4cYHbzIGM08gRqkJelF2OYQb9w1yHFGjgs38LmI9KgWZjg7r1PLQnTZFl06RLr2+ Yx3JsTvawe9DjWEq+0sR1CmSviHXU=; 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 3/3] arm64: dts: ti: iot2050: Add support for M.2 variant Date: Wed, 18 Jan 2023 17:28:20 +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?1755378762631917521?= X-GMAIL-MSGID: =?utf-8?q?1755378762631917521?= 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 --- arch/arm64/boot/dts/ti/Makefile | 3 + .../dts/ti/k3-am6548-iot2050-advanced-m2.dts | 122 ++++++++++++++++++ 2 files changed, 125 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..13e79bf7e804 100644 --- a/arch/arm64/boot/dts/ti/Makefile +++ b/arch/arm64/boot/dts/ti/Makefile @@ -11,6 +11,9 @@ 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-pg2.dtb +dtb-$(CONFIG_ARCH_K3) += k3-am6548-iot2050-advanced-m2.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 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..3109adac7c93 --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-am6548-iot2050-advanced-m2.dts @@ -0,0 +1,122 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) Siemens AG, 2018-2022 + * + * 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; +};