From patchwork Mon Jan 14 10:20:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 155422 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3489055jaa; Mon, 14 Jan 2019 02:21:24 -0800 (PST) X-Google-Smtp-Source: ALg8bN4Rg6B5qKLr03ovzsUQ7zZXGcH0jr7xJCnR80eDl+dxJ/mj2kUUWiviQ4UUu6Hlh/0DUvdo X-Received: by 2002:a17:902:b406:: with SMTP id x6mr23659772plr.329.1547461284782; Mon, 14 Jan 2019 02:21:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547461284; cv=none; d=google.com; s=arc-20160816; b=qnzO7+ot2TbfhkWp/pgvpKtzJGXVFa9lmv1TsTbRR7GLfBcFobHIo4kv6MCG5KqPK5 2VqQ1gzeONba7qjo1sZ/rEy6lC2Q7MAGYt46ByWQq/cff+J7ZjVXbDBKSTaMyH8p4/Xr nujuUuJNbiUsd3XXXnJJkIL6130reekHeh+aJpq8oJ5HjxGyUiMSLPbR0z2SQGNK/Lm9 qFfa5YI5uqb48cLOAaq2B3i4dt1e8/2NpBgSg2c6q+3Prjm82jmuHDGBAgCsVUev8lKD sO2KeJ30z1vRxDPEsuNcPv5XzgLQ1SOY0Agevpc9svjlC1Zl3Utjic88oxwFsPNSGNlg yeeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=8ySRluh8UnQNx0w0kOBma0DodxOKHroSYUhNhVj/8Uo=; b=DUiyvaKuBZG+FGC2nqWTPl8f1c7RVPEHhLCemM8aH9eKFMMfKqfDqN196skWuS+74N mLolubnC308UOF4isoiKYkjkhNaOg9Y19aMkQ5bJOuIVMyTIwk1ksLWfl0MEZLbknFVc HtWNva+exODNGHPQsxSINgpLaMkjPDj3sgXw86fe2tRAnacQgNVoS/luUtkiMDMpfKvb Cj7kClvjs3xl4SEKQXROti4U6W9DSgCJHj92kS7Spz/pFRjc/5Q+zlyCNSzgeVMB8LTX dhKOyDgQMtlxlNtaYCAxTMg2cJXqR7/YSCE99BbDuK3b1y9xDVyo4uxGmx5cFBOEkGrx Uocw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Wb1K3ojJ; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f13si1505pln.368.2019.01.14.02.21.24; Mon, 14 Jan 2019 02:21:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Wb1K3ojJ; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726691AbfANKVX (ORCPT + 7 others); Mon, 14 Jan 2019 05:21:23 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:45771 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726676AbfANKVX (ORCPT ); Mon, 14 Jan 2019 05:21:23 -0500 Received: by mail-pf1-f195.google.com with SMTP id g62so10127495pfd.12 for ; Mon, 14 Jan 2019 02:21:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8ySRluh8UnQNx0w0kOBma0DodxOKHroSYUhNhVj/8Uo=; b=Wb1K3ojJ9WYDw5IY72tUVaBYTEMiIkllvaeXLbjWrD0awjhnlymmOz78d1twh1VRej q98292ySiZa4HFm1KDcBpfS51UIR8EqCWP3s4U2fsXYE4HpDyfJb+D9AZfhDkIgm2Bnq I0bLkoEYseF1uAjrnRMdWN8nxGiAvrU2LMRXI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=8ySRluh8UnQNx0w0kOBma0DodxOKHroSYUhNhVj/8Uo=; b=sGUCUbfYR7wOkXGf/Bh8l15UAxFvONAV0uJ9tSX6PLRvQdxrO3nGiDFuAuWNlfGPeF WQQZTUxRJ/+N18IJblkTrgOc+l9XTtMWzkVhLxUDCeh9+4rssFarjOB+R1pmvw/1xEC0 UX6cK3CtxOPUNEtTg8sYkfwlNQGLCHf7vPQvJ0xVdQWCxRJa1RGBEpKRofsVPbZQh6jG xvBpQ0G62xa6bgyhLtEDoUisvLezc2bDdZRdH8KEL8nkcEwR+QxvaMXRavql7VGW2ZeL 9MCoeBqzu+/T4HpiYf4mMw10JTxusakuO5lLVAARDIChdeK4SJBc/+knIV418f6ZhVC3 Yk8g== X-Gm-Message-State: AJcUukelu5I3LiFYku/0DNpGWLLbXPb1P8//4NK6pT9aa4DbYaO3ocxt cOa9glAi9M3Z3JiGAbs02VGp X-Received: by 2002:a63:fb4c:: with SMTP id w12mr12202724pgj.321.1547461282130; Mon, 14 Jan 2019 02:21:22 -0800 (PST) Received: from localhost.localdomain ([2409:4072:6306:f12b:7d9b:d1a4:6536:aa21]) by smtp.gmail.com with ESMTPSA id 15sm36429pfr.55.2019.01.14.02.21.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Jan 2019 02:21:21 -0800 (PST) From: Manivannan Sadhasivam To: shawnguo@kernel.org, leoyang.li@nxp.com, robh+dt@kernel.org Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, a.tropschug@ebs-systart.com, m.bittner@ebs-systart.com, amit.kucheria@linaro.org, Manivannan Sadhasivam Subject: [PATCH v2 3/3] arm64: dts: freescale: Add devicetree for Oxalis Date: Mon, 14 Jan 2019 15:50:53 +0530 Message-Id: <20190114102053.16013-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190114102053.16013-1-manivannan.sadhasivam@linaro.org> References: <20190114102053.16013-1-manivannan.sadhasivam@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add devicetree support for Oxalis SoM board from EBS-SYSTART. This board is one of the 96Boards Enterprise Edition platform. Below are some of the key features of this board: * SoC: NXP Layerscape LS1012A * RAM: 1GB DDR3L * PMU: NXP VR5100 * Storage: 64MByte SPI Flash for bootloader and RCW, MicroSD Card, SATA * Connectivity: 2x Ethernet * USB: 2x USB3.0 More information about this board can be found in 96Boards product page: https://www.96boards.org/product/oxalis/ Ethernet and SPI flash are not supported yet! Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/freescale/Makefile | 1 + .../boot/dts/freescale/fsl-ls1012a-oxalis.dts | 96 +++++++++++++++++++ 2 files changed, 97 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1012a-oxalis.dts -- 2.17.1 diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index f9be2426f83c..d8152cc06b3f 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -1,6 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1012a-frdm.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1012a-frwy.dtb +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1012a-oxalis.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1012a-qds.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1012a-rdb.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-qds.dtb diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1012a-oxalis.dts b/arch/arm64/boot/dts/freescale/fsl-ls1012a-oxalis.dts new file mode 100644 index 000000000000..7c726267ec8f --- /dev/null +++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a-oxalis.dts @@ -0,0 +1,96 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Device Tree file for Oxalis + * + * Copyright (c) 2019 Manivannan Sadhasivam + * + */ + +/dts-v1/; + +#include "fsl-ls1012a.dtsi" + +/ { + model = "Oxalis"; + compatible = "ebs-systart,oxalis", "fsl,ls1012a"; + + sys_mclk: clock-mclk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <25000000>; + }; + + reg_1p8v: regulator-1p8v { + compatible = "regulator-fixed"; + regulator-name = "1P8V"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + sound { + compatible = "simple-audio-card"; + simple-audio-card,format = "i2s"; + simple-audio-card,widgets = + "Microphone", "Microphone Jack", + "Headphone", "Headphone Jack", + "Speaker", "Speaker Ext", + "Line", "Line In Jack"; + simple-audio-card,routing = + "MIC_IN", "Microphone Jack", + "Microphone Jack", "Mic Bias", + "LINE_IN", "Line In Jack", + "Headphone Jack", "HP_OUT", + "Speaker Ext", "LINE_OUT"; + + simple-audio-card,cpu { + sound-dai = <&sai2>; + frame-master; + bitclock-master; + }; + + simple-audio-card,codec { + sound-dai = <&codec>; + frame-master; + bitclock-master; + system-clock-frequency = <25000000>; + }; + }; +}; + +&duart0 { + status = "okay"; +}; + +&duart1 { + status = "okay"; +}; + +&esdhc1 { + status = "okay"; +}; + +&i2c0 { + status = "okay"; + + codec: audio-codec@a { + #sound-dai-cells = <0>; + compatible = "fsl,sgtl5000"; + reg = <0xa>; + VDDA-supply = <®_1p8v>; + VDDIO-supply = <®_1p8v>; + clocks = <&sys_mclk>; + }; +}; + +&i2c1 { + status = "okay"; +}; + +&sai2 { + status = "okay"; +}; + +&sata { + status = "okay"; +};