Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp4357298rwe; Tue, 30 Aug 2022 08:44:16 -0700 (PDT) X-Google-Smtp-Source: AA6agR7uW7ENlvXG6lJp7VS1kFln512wWO5I+dl/aQhcNAJIyNWBjDdggxgd8HNv6gQAc3Ih1zDw X-Received: by 2002:a17:90b:4ac3:b0:1fd:ded0:ea80 with SMTP id mh3-20020a17090b4ac300b001fdded0ea80mr8904333pjb.142.1661874256339; Tue, 30 Aug 2022 08:44:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661874256; cv=none; d=google.com; s=arc-20160816; b=EwJHnb7lj4jBjZHRRIxXomxv/EEPPXQoiu0hhFrxee68dWpjg0650vy5ZcsBG3OOIe rQA9AH5dyzceIQUsSFjLTIDxWZYis7phwycDhQjaXkUQrHe4ZkA1jVzB9yLnyHY2+g3W 3ATAfyzeBbJn0iKIR4YCx0AhzNFuNLC8fQ1LDjjtVO+ws+1M/0EvYNOrym2HzT+WLGtw nO6C8U2rzwkuAmjFsWgm1lRIxIp13CB7LqaRfG6zLmSRGB+W+Ip22bOySuIkXym/FclN 1dot5dcRssu8bHknv7dOHgusN5hkGCvdEoDTZ8G7Y1lCqsxaeUu+ormgmOAKl3/2D3Fv KiHg== 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=ywjR1AnDdkkNqmVfBDldnoaMFPQ3GiyLfYVjXZp2PeM=; b=kLgdbMHMkJgnTeJ+iF5cdNDyXOAuAABRjSPBzp7/fg0Ubs9rk8iPWzsfS7Zdw4vrU0 VoVB41SgY6bEyJ0IUt38JxfA9zFI+VFgrLjBQZFdH+HcY/KlLMqOCmCS1DR9WLTuhVRT 1v7TSRZSgn4L8iHAJAOBreacc6mwhmx5atN4mNYH99+Y+pgHutTVFDdzmkNj9eKp9Q51 yDp7Z/iCCyysbyzV2WWLPF9tjOKhuLLJZxOwh3rhwKKWScwTi0KpYHSQqombIWd7hj1H 9+hz+KVqLeL0H54DV/FjeepykRYIXc66B7U7Cd1SRyYSBRn2rGuB/NDXVLRjK/tsE+kn BwUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=wN04J8Fp; 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 k64-20020a638443000000b0042e16e1e70bsi2021667pgd.637.2022.08.30.08.43.54; Tue, 30 Aug 2022 08:44:16 -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=wN04J8Fp; 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 S229594AbiH3PWG (ORCPT + 99 others); Tue, 30 Aug 2022 11:22:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229522AbiH3PVz (ORCPT ); Tue, 30 Aug 2022 11:21:55 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B5E5B6D7D; Tue, 30 Aug 2022 08:21:53 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 27UFLcrj048470; Tue, 30 Aug 2022 10:21:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1661872898; bh=ywjR1AnDdkkNqmVfBDldnoaMFPQ3GiyLfYVjXZp2PeM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=wN04J8FpukUo3AzNw9tTWRViaxC2MAMXflvUj74HWszkF7PHj7F0/26suujN1BqRd fX0G9ME/4D8GL1GQcW0eu8k4A+GUogso/p/QM5OXRV8Mb7o2Dj1IqZovAU4xgg8xOe u4nA3WLLpoD+OYeu9yOddsFyLFvI52uKPusnc4G4= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 27UFLcMR022131 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 30 Aug 2022 10:21:38 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Tue, 30 Aug 2022 10:21:38 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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.6 via Frontend Transport; Tue, 30 Aug 2022 10:21:38 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 27UFLciI061988; Tue, 30 Aug 2022 10:21:38 -0500 From: Nishanth Menon To: Krzysztof Kozlowski , Rob Herring , Vignesh Raghavendra CC: Tero Kristo , Nishanth Menon , Daniel Thompson , , , Subject: [PATCH 1/4] arm64: dts: ti: am65*: Define aliases in board files Date: Tue, 30 Aug 2022 10:21:29 -0500 Message-ID: <20220830152132.23916-2-nm@ti.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220830152132.23916-1-nm@ti.com> References: <20220830152132.23916-1-nm@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.4 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_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Define aliases in board files, instead of in the SoC dts file. Note: the IoT family of boards have their own aliases already defined, we need to carry the definitions forward to ensure things aren't broken. Reported-by: Daniel Thompson Signed-off-by: Nishanth Menon --- .../boot/dts/ti/k3-am65-iot2050-common.dtsi | 12 ++++++++++++ arch/arm64/boot/dts/ti/k3-am65.dtsi | 17 ----------------- arch/arm64/boot/dts/ti/k3-am654-base-board.dts | 17 +++++++++++++++++ 3 files changed, 29 insertions(+), 17 deletions(-) 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 32b797237581..8499754f45bb 100644 --- a/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi @@ -14,6 +14,18 @@ / { aliases { + serial0 = &wkup_uart0; + serial1 = &mcu_uart0; + serial2 = &main_uart0; + serial3 = &main_uart1; + serial4 = &main_uart2; + i2c0 = &wkup_i2c0; + i2c1 = &mcu_i2c0; + i2c2 = &main_i2c0; + i2c3 = &main_i2c1; + i2c4 = &main_i2c2; + i2c5 = &main_i2c3; + ethernet0 = &cpsw_port1; spi0 = &mcu_spi0; mmc0 = &sdhci1; mmc1 = &sdhci0; diff --git a/arch/arm64/boot/dts/ti/k3-am65.dtsi b/arch/arm64/boot/dts/ti/k3-am65.dtsi index c538a0bf3cdd..166d4e02c7e1 100644 --- a/arch/arm64/boot/dts/ti/k3-am65.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am65.dtsi @@ -18,23 +18,6 @@ / { #address-cells = <2>; #size-cells = <2>; - aliases { - serial0 = &wkup_uart0; - serial1 = &mcu_uart0; - serial2 = &main_uart0; - serial3 = &main_uart1; - serial4 = &main_uart2; - i2c0 = &wkup_i2c0; - i2c1 = &mcu_i2c0; - i2c2 = &main_i2c0; - i2c3 = &main_i2c1; - i2c4 = &main_i2c2; - i2c5 = &main_i2c3; - ethernet0 = &cpsw_port1; - mmc0 = &sdhci0; - mmc1 = &sdhci1; - }; - chosen { }; firmware { diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts index 5850582dd4ed..aee866fb55b9 100644 --- a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts +++ b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts @@ -13,6 +13,23 @@ / { compatible = "ti,am654-evm", "ti,am654"; model = "Texas Instruments AM654 Base Board"; + aliases { + serial0 = &wkup_uart0; + serial1 = &mcu_uart0; + serial2 = &main_uart0; + serial3 = &main_uart1; + serial4 = &main_uart2; + i2c0 = &wkup_i2c0; + i2c1 = &mcu_i2c0; + i2c2 = &main_i2c0; + i2c3 = &main_i2c1; + i2c4 = &main_i2c2; + i2c5 = &main_i2c3; + ethernet0 = &cpsw_port1; + mmc0 = &sdhci0; + mmc1 = &sdhci1; + }; + chosen { stdout-path = "serial2:115200n8"; bootargs = "earlycon=ns16550a,mmio32,0x02800000"; -- 2.31.1