From patchwork Thu Jan 10 08:08:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 155125 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1618056jaa; Thu, 10 Jan 2019 00:08:53 -0800 (PST) X-Google-Smtp-Source: ALg8bN57u1B/1Dvsfn+tOaQg51zC4ADJCw4tv2+bvMccDpgCgxXNQeZbDVrfCCwwGICrGV+1DjDB X-Received: by 2002:a62:4587:: with SMTP id n7mr9156761pfi.118.1547107733048; Thu, 10 Jan 2019 00:08:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547107733; cv=none; d=google.com; s=arc-20160816; b=0qrn4iRxRNWbO4V5G8MVkPvs3AwvnfZbvKUwAJEzNhuRk55nUSvuKqZd9UoAIt/Q7Y s2JIJt6asdv2djPcWe6+CyA6/qB40eP3tU39+S/MQPPIDrUstO+QEHYONyviBSDyGa44 ptV/gXIcdVE2EuIgw6/Bk2x+mlHUJSHyGF1d6bSxMmy0ve5R12uwOHJY5EMlwUfgF0Bp g+dePlvy7cGeoj8354Pr6ntxh/VPu6NnOO4xke6MxTOM0b5JTHCm4U8Kpem9Ag4bCzKX UD6VhhabZ1b4lwVqkhaFPo4l/7EAuuQ32OSCekE1viG514SSGsAiVbdGaoCif4rantS8 c6OA== 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=SRHhc+5Wq5F+eOh1TPssYo4IwZz8sRcNierx3amv9Og=; b=dXzxV9Jg3n70AlWbpfeIx/PkAELQASN3rcdcdtvB056uCA6ctN9fAnI0N5g0cgAKS/ 7GiVgRa1gwzLbpiGqVFBxUqfc74bYpjHVlZAV6/TIp0GoddyZfBtAHROfYypbPfLHOLH uiHPFdg0TIWZj7uKNUSi1os46MCaX34u+kokwQ+LLq0MJF5JwMfd0HBvQRUWzXB7BPTW cBKBc+6Sy/Z4xobZeezdgnt1j7Hd065BipCdpcae6DnbX8Z3easHrg5F4jYt/UWJKiGw ysNLbWYWehVsVp9qkQgBZPdMEP1jz0yM7i2g8jF+d3N1dgzrEgbvSXmKJ3ZwUxlTP2oH fKyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Yy3ZX90W; 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 4si3703138pff.161.2019.01.10.00.08.52; Thu, 10 Jan 2019 00:08:53 -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=Yy3ZX90W; 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 S1727788AbfAJIIw (ORCPT + 7 others); Thu, 10 Jan 2019 03:08:52 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:43802 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726605AbfAJIIv (ORCPT ); Thu, 10 Jan 2019 03:08:51 -0500 Received: by mail-pl1-f195.google.com with SMTP id gn14so4851446plb.10 for ; Thu, 10 Jan 2019 00:08:51 -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=SRHhc+5Wq5F+eOh1TPssYo4IwZz8sRcNierx3amv9Og=; b=Yy3ZX90Ww1M0ZpN7QdbvokfQemmR4c9FNcWuHaCR/YrkQ/U6SPJUmQujSqzyTCYeM6 o2KbANzkrjSut0WmrqXq+GAMXSM+8Ry2dBPoKbdFTMh11Gm6I4fFfuQkzYVfVb2esQMz GjpNqhiDaAE7GED3jXPeQwN9c/163hIW+dlTA= 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=SRHhc+5Wq5F+eOh1TPssYo4IwZz8sRcNierx3amv9Og=; b=MQOEJ5Pe3OYXgjAa2FY8Uj9F0V5er4s2U/1hQ4zzQgO9rhbeAWk0KtwexAgJLi6Q8l +AFm3TvAAX/S0vVcCSaMwajzFrOhiEFzK+VUUaBeJmod/1j31Mm8mHyaI1zIGySNun0t TarRaEFLzXvetiFEvPyqdqqCJvR4p37blrVH7a7UhzUxuosXRlkoZDke3GZQV39uuSk+ OSyIBwr3Q4dPGPvnp8r4FLNqEMJzzcGFbrDTwGhXNuzdLg5yQ+PsskTeDvM6VSv3Itsp tmhnYZUv+FXwqgW/hB6rHum5/8HotJ9wuyZj/5L+igrKogFQNJFlDSmNJb4Fp0+sV0fM UhAw== X-Gm-Message-State: AJcUukdgQUQFKeBL/RNu+p+L9kWdbmmR0TUAUHGKlVmex1DqiOequDzJ N9QS2UdrpolG3a8hgnYyyxmt X-Received: by 2002:a17:902:d911:: with SMTP id c17mr9619883plz.151.1547107731095; Thu, 10 Jan 2019 00:08:51 -0800 (PST) Received: from localhost.localdomain ([2409:4072:89d:654d:749c:afde:a8a6:224d]) by smtp.gmail.com with ESMTPSA id w23sm27401007pgc.72.2019.01.10.00.08.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Jan 2019 00:08:50 -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 3/3] arm64: dts: freescale: Add devicetree for Oxalis Date: Thu, 10 Jan 2019 13:38:21 +0530 Message-Id: <20190110080821.30280-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190110080821.30280-1-manivannan.sadhasivam@linaro.org> References: <20190110080821.30280-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..760a3e258c96 --- /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: sgtl5000@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"; +};