From patchwork Tue Feb 13 13:01:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Katsuhiro Suzuki X-Patchwork-Id: 128228 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp4228838ljc; Tue, 13 Feb 2018 05:02:12 -0800 (PST) X-Google-Smtp-Source: AH8x2276Ksz8iT4E0SuTCuCtU9V4Zyfa7KecjRzVV81ObF7xnD77VY2lwIpoYx5nAVdrNdX5K9QX X-Received: by 10.99.157.193 with SMTP id i184mr943262pgd.197.1518526932506; Tue, 13 Feb 2018 05:02:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518526932; cv=none; d=google.com; s=arc-20160816; b=hve9B5ucTDBwbJ2DHggFhd5P6LEvVXirvPskJ+JajgIYaGzCtpDuCMFXpIkHz2zu8G LYkBkm5RlCZxHFu5X8x6ogx9aK+ZrBJmshAAxqDW8Mxg0eqlirLdcUOubVdresu5G/LU N7yzMa//ckdtYsk/diCT2bzGMh/J8o4gew48hZDM8LbDduhbAg6KXJL2hGCiIRo8TkF7 oRszkeFvp3XMeFrc+3CUYYsRVWOiglYfsiIg6e5c0QEa4UtKFuVLMxbY2CcyxTnPAR+v eujTGpPsIlt0dPKvRX2wOCylBeBJDUFRwBSwGU/n6yd778zqCkAIkBRzHVJNqVJFN7Al D9HA== 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:arc-authentication-results; bh=i+gIJIBl+rAcl0j0EVcoHLXFBvB1Ffk3ZdBr9qElL24=; b=m1KqSxgKmVfPpmiu0qTgU/XTajS+wRpIbmVtQ384HmTjpvrUEa/7A1a8OCNsocfzTG eb4hncT6GwR2ZuupCxQFPdAFawOA/oe6CAVRO1pgL9/JE2IZsOO+Bl/HHuRsBBfYgI17 PJoLu1HIJ74GHMhm9UeYn0GID3Ytk6kNgR/76Mt0cmFf2x/aoa3EjJiQzBXDQMBtiupx afxI5LDxsKDjQbcQuRI7gG4aCiT/y51TsZFRIumEoL0D5uOwkLsxu2kGnvyBq3P8qsXE 6Wptm+Kd30vK/sL4eNAoocsSrzO3XOwTAsl6k78YdwqvEIuskjvAI3aTFf3a2Htds0eh mfhQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g9-v6si1314882pli.410.2018.02.13.05.02.10; Tue, 13 Feb 2018 05:02:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935261AbeBMNCH (ORCPT + 28 others); Tue, 13 Feb 2018 08:02:07 -0500 Received: from mx.socionext.com ([202.248.49.38]:19014 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935119AbeBMNCF (ORCPT ); Tue, 13 Feb 2018 08:02:05 -0500 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 13 Feb 2018 22:02:03 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id B2027616E9; Tue, 13 Feb 2018 22:02:03 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 13 Feb 2018 22:02:25 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by kinkan.css.socionext.com (Postfix) with ESMTP id 6D3B51A0DEC; Tue, 13 Feb 2018 22:02:03 +0900 (JST) Received: from aegis.e01.socionext.com (unknown [10.213.134.210]) by yuzu.css.socionext.com (Postfix) with ESMTP id 447D41209D6; Tue, 13 Feb 2018 22:02:03 +0900 (JST) From: Katsuhiro Suzuki To: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Masahiro Yamada Cc: alsa-devel@alsa-project.org, Masami Hiramatsu , Jassi Brar , linux-kernel@vger.kernel.org, Katsuhiro Suzuki Subject: [PATCH v3 2/3] arm64: dts: uniphier: add speaker out for UniPhier LD11/LD20 boards Date: Tue, 13 Feb 2018 22:01:55 +0900 Message-Id: <20180213130156.27827-3-suzuki.katsuhiro@socionext.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180213130156.27827-1-suzuki.katsuhiro@socionext.com> References: <20180213130156.27827-1-suzuki.katsuhiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds codec node for TI TAS571x on UniPhier LD11/20 global boards. And adds settings of AIO for speaker out. Signed-off-by: Katsuhiro Suzuki --- Changes in v3: - Use phandle of endpoint directly instead of port node --- .../boot/dts/socionext/uniphier-ld11-global.dts | 21 +++++++++++++++++++++ .../boot/dts/socionext/uniphier-ld20-global.dts | 21 +++++++++++++++++++++ 2 files changed, 42 insertions(+) -- 2.15.1 diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts b/arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts index fb6bf435dc96..f057ee80f38e 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts +++ b/arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts @@ -10,6 +10,7 @@ /dts-v1/; #include "uniphier-ld11.dtsi" +#include "dt-bindings/gpio/uniphier-gpio.h" / { model = "UniPhier LD11 Global Board (REF_LD11_GP)"; @@ -44,6 +45,7 @@ widgets = "Headphone", "Headphone Jack"; dais = <&i2s_port2 + &i2s_port3 &i2s_port4 &spdif_port0>; }; @@ -71,6 +73,20 @@ &i2c0 { status = "okay"; + tas5707a@1d { + compatible = "ti,tas5711"; + reg = <0x1d>; + reset-gpios = <&gpio UNIPHIER_GPIO_PORT(23, 4) GPIO_ACTIVE_LOW>; + pdn-gpios = <&gpio UNIPHIER_GPIO_PORT(23, 5) GPIO_ACTIVE_LOW>; + #sound-dai-cells = <0>; + + port@0 { + tas_speaker: endpoint { + remote-endpoint = <&i2s_hpcmout1>; + }; + }; + }; + eeprom@50 { compatible = "st,24c64", "atmel,24c64"; reg = <0x50>; @@ -94,6 +110,11 @@ status = "okay"; }; +&i2s_hpcmout1 { + dai-format = "i2s"; + remote-endpoint = <&tas_speaker>; +}; + &spdif_hiecout1 { remote-endpoint = <&spdif_tx>; }; diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts b/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts index 2d49163cfde4..b2e197bc968c 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts +++ b/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts @@ -10,6 +10,7 @@ /dts-v1/; #include "uniphier-ld20.dtsi" +#include "dt-bindings/gpio/uniphier-gpio.h" / { model = "UniPhier LD20 Global Board (REF_LD20_GP)"; @@ -44,6 +45,7 @@ widgets = "Headphone", "Headphone Jack"; dais = <&i2s_port2 + &i2s_port3 &i2s_port4 &spdif_port0>; }; @@ -70,12 +72,31 @@ &i2c0 { status = "okay"; + + tas5707@1b { + compatible = "ti,tas5711"; + reg = <0x1b>; + reset-gpios = <&gpio UNIPHIER_GPIO_PORT(0, 0) GPIO_ACTIVE_LOW>; + pdn-gpios = <&gpio UNIPHIER_GPIO_PORT(0, 1) GPIO_ACTIVE_LOW>; + #sound-dai-cells = <0>; + + port@0 { + tas_speaker: endpoint { + remote-endpoint = <&i2s_hpcmout1>; + }; + }; + }; }; &nand { status = "okay"; }; +&i2s_hpcmout1 { + dai-format = "i2s"; + remote-endpoint = <&tas_speaker>; +}; + &spdif_hiecout1 { remote-endpoint = <&spdif_tx>; };