From patchwork Tue Sep 22 02:43:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Matheus Castello X-Patchwork-Id: 11791425 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B3C186CB for ; Tue, 22 Sep 2020 02:47:47 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8360623A79 for ; Tue, 22 Sep 2020 02:47:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="iDOOVJuJ"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=castello.eng.br header.i=@castello.eng.br header.b="hJzSnzJB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8360623A79 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=castello.eng.br Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=eqfYb7ZXWmb0LaXb8hDqUEK/g5CUCP+sPTWr1NUqMiU=; b=iDOOVJuJTFrSROHTLLG5B/Udu XGGo2Zj3RVR5u2KJL2mn4o2RUNPnIBf3Q1bcLFElAU3KwzENsOpYZjSBPD5FVfR5H/O6q2PGKrZq2 u2grAm+Vuj3pta0S+Vad2DjltPdLgwSufocUp2E0wkdGWEFtPI+ZQTLXcFL+Z609XroXPbrv2bXMY l6XcMW0WWIp1M160JwjpqcYuptdolMp7DRhJFopy6lJGvsQZH8pRFTN0hICU+ARBWhIUrWWRkglXm 76IRzT3x6GpM+ndrlWmP/DwcqYeKz82SqEYWlPckmdMwrxHhiwMWcNFzLxe8Rt8+ozAykHD4cc8rQ D7g16UbKw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kKYKE-0003XH-7q; Tue, 22 Sep 2020 02:46:38 +0000 Received: from gateway34.websitewelcome.com ([192.185.148.196]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kKYK8-0003VO-GK for linux-arm-kernel@lists.infradead.org; Tue, 22 Sep 2020 02:46:34 +0000 Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway34.websitewelcome.com (Postfix) with ESMTP id 67E27E1BEA0 for ; Mon, 21 Sep 2020 21:46:31 -0500 (CDT) Received: from br164.hostgator.com.br ([192.185.176.180]) by cmsmtp with SMTP id KYK7k4EQwBD8bKYK7kFlvy; Mon, 21 Sep 2020 21:46:31 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=castello.eng.br; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=nMLNyHL3gCzVy5M5DswFBS+GjX6PNKx5n7eP7xYOTc4=; b=hJzSnzJBCPHiEHZ9hgmQKOicV9 tOup6Kh9rg29jIqzG3jhTLJ2UIOPa/5zS0wuljqbWmDlueCsZePjluqQ1M+aTKQGGG5yoq59g3EIo /Hxy8IitikOXlk3AcMwZI3u1D/a1wUjkgFnp2lUM6Zp2TlL2f3sPoZbSRRa9nwtbgLY2zo8Mcnr9+ 3Om4t2i0Hg34SylUMaVizsLej9h+bRIZODGnzPy+bqUWSziF+e82UP0xKHNelOjZ8/SjkYr/zPbCh 701v202SBkcnjzQnt1ChNNriZynkHteg6QTrv3VsTxH3XthBIbdYN5ELVN53Jt3afIFV7cwwXPCpN w8gWkV7Q==; Received: from 179-197-124-241.user.veloxzone.com.br ([179.197.124.241]:43534 helo=localhost.localdomain) by br164.hostgator.com.br with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1kKYK6-000jSR-OZ; Mon, 21 Sep 2020 23:46:31 -0300 From: Matheus Castello To: manivannan.sadhasivam@linaro.org, afaerber@suse.de, mark.rutland@arm.com, robh+dt@kernel.org Subject: [PATCH v7 4/4] arm64: dts: Add Caninos Loucos Labrador v3 Date: Mon, 21 Sep 2020 23:43:02 -0300 Message-Id: <20200922024302.205062-5-matheus@castello.eng.br> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200922024302.205062-1-matheus@castello.eng.br> References: <20200922024302.205062-1-matheus@castello.eng.br> MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - br164.hostgator.com.br X-AntiAbuse: Original Domain - lists.infradead.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - castello.eng.br X-BWhitelist: no X-Source-IP: 179.197.124.241 X-Source-L: No X-Exim-ID: 1kKYK6-000jSR-OZ X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 179-197-124-241.user.veloxzone.com.br (localhost.localdomain) [179.197.124.241]:43534 X-Source-Auth: matheus@castello.eng.br X-Email-Count: 59 X-Source-Cap: Y2FzdGUyNDg7Y2FzdGUyNDg7YnIxNjQuaG9zdGdhdG9yLmNvbS5icg== X-Local-Domain: yes X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200921_224632_695189_75B8CEC2 X-CRM114-Status: GOOD ( 11.80 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [192.185.148.196 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [192.185.148.196 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Matheus Castello , linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org, helen.koike@collabora.com, igor.lima@lsitec.org.br, edgar.righi@lsitec.org.br, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Add Device Trees for Caninos Loucos Labrador CoM Core v3 and base board M v2. Based on the work of Andreas Färber on Cubieboard 7 device tree. Signed-off-by: Matheus Castello --- arch/arm64/boot/dts/actions/Makefile | 2 + .../dts/actions/s700-labrador-base-m2.dts | 34 +++++ .../boot/dts/actions/s700-labrador-v3.dtsi | 122 ++++++++++++++++++ 3 files changed, 158 insertions(+) create mode 100644 arch/arm64/boot/dts/actions/s700-labrador-base-m2.dts create mode 100644 arch/arm64/boot/dts/actions/s700-labrador-v3.dtsi -- 2.28.0 diff --git a/arch/arm64/boot/dts/actions/Makefile b/arch/arm64/boot/dts/actions/Makefile index b57fd2372ecd..3765697fa91e 100644 --- a/arch/arm64/boot/dts/actions/Makefile +++ b/arch/arm64/boot/dts/actions/Makefile @@ -2,4 +2,6 @@ dtb-$(CONFIG_ARCH_ACTIONS) += s700-cubieboard7.dtb +dtb-$(CONFIG_ARCH_ACTIONS) += s700-labrador-base-m2.dtb + dtb-$(CONFIG_ARCH_ACTIONS) += s900-bubblegum-96.dtb diff --git a/arch/arm64/boot/dts/actions/s700-labrador-base-m2.dts b/arch/arm64/boot/dts/actions/s700-labrador-base-m2.dts new file mode 100644 index 000000000000..63bbca46475b --- /dev/null +++ b/arch/arm64/boot/dts/actions/s700-labrador-base-m2.dts @@ -0,0 +1,34 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2020 Matheus Castello + */ + +/dts-v1/; + +#include "s700-labrador-v3.dtsi" + +/ { + compatible = "caninos,labrador-base-m2", + "caninos,labrador-v3", "actions,s700"; + model = "Caninos Labrador Core v3 on Labrador Base-M v2"; + + aliases { + serial3 = &uart3; + }; + + chosen { + stdout-path = "serial3:115200n8"; + }; +}; + +&uart3 { + status = "okay"; +}; + +&i2c0 { + status = "okay"; +}; + +&i2c1 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/actions/s700-labrador-v3.dtsi b/arch/arm64/boot/dts/actions/s700-labrador-v3.dtsi new file mode 100644 index 000000000000..91addba6382b --- /dev/null +++ b/arch/arm64/boot/dts/actions/s700-labrador-v3.dtsi @@ -0,0 +1,122 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2020 Matheus Castello + */ + +#include "s700.dtsi" + +/ { + compatible = "caninos,labrador-v3", "actions,s700"; + model = "Caninos Labrador Core v3.1"; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x0 0x0 0x80000000>; + }; + + memory@1,e0000000 { + device_type = "memory"; + reg = <0x1 0xe0000000 0x0 0x0>; + }; + + /* Labrador v3 firmware does not support PSCI */ + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu0: cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x0>; + enable-method = "spin-table"; + cpu-release-addr = <0 0x1f000020>; + next-level-cache = <&L2>; + }; + + cpu1: cpu@1 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x1>; + enable-method = "spin-table"; + cpu-release-addr = <0 0x1f000020>; + next-level-cache = <&L2>; + }; + + cpu2: cpu@2 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x2>; + enable-method = "spin-table"; + cpu-release-addr = <0 0x1f000020>; + next-level-cache = <&L2>; + }; + + cpu3: cpu@3 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x3>; + enable-method = "spin-table"; + cpu-release-addr = <0 0x1f000020>; + next-level-cache = <&L2>; + }; + }; + + L2: l2-cache { + compatible = "cache"; + cache-level = <2>; + }; +}; + +&timer { + clocks = <&hosc>; +}; + +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_default>; +}; + +&i2c1 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c1_default>; +}; + +&i2c2 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c2_default>; +}; + +&pinctrl { + i2c0_default: i2c0_default { + pinmux { + groups = "i2c0_mfp"; + function = "i2c0"; + }; + pinconf { + pins = "i2c0_sclk", "i2c0_sdata"; + bias-pull-up; + }; + }; + + i2c1_default: i2c1_default { + pinmux { + groups = "i2c1_dummy"; + function = "i2c1"; + }; + pinconf { + pins = "i2c1_sclk", "i2c1_sdata"; + bias-pull-up; + }; + }; + + i2c2_default: i2c2_default { + pinmux { + groups = "i2c2_dummy"; + function = "i2c2"; + }; + pinconf { + pins = "i2c2_sclk", "i2c2_sdata"; + bias-pull-up; + }; + }; +};