From patchwork Wed Feb 7 09:10:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Katsuhiro Suzuki X-Patchwork-Id: 127137 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp272826ljc; Wed, 7 Feb 2018 01:11:54 -0800 (PST) X-Google-Smtp-Source: AH8x227zz6fmuou1woYzkBwNwUXYf2PgTEBLM+aWFXw17x6yLXjVUdDPXsjEXD9Pje+yBKGdYPno X-Received: by 2002:a17:902:820c:: with SMTP id x12-v6mr5460491pln.103.1517994714582; Wed, 07 Feb 2018 01:11:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517994714; cv=none; d=google.com; s=arc-20160816; b=Q7+96JeaSsahHtmdzVWn1Ba2VUx0DKgcj4L/1Wssj4nvf8pBoDujKnarDia02qEks0 p+6xBcZQYtW3xpQh9pl/hQFb8fCj7b49U051qt6m4+ajB0RJ1XU4744RiwRxjSzk6K6W vE8xylcnmRkbT5DDYlyhGS6TKV+blDXnpOSbJsP5om0gP9BMITjvJ1OaAd2YnqoLA+FV 7QyKR+LZKQZyx/wcU9h2DPKw+G6B5hZGsxH7Y3ENtLNnG0jc8vVoQqFYSOHiPFfoEnlG RUYA2GiTPMFTYzNicc9zlfmzUbg5Z4ExM4LSgV6ZlHHfUEV92UAPjdh2XydnTbZtGDO/ ahOA== 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=bq0CFzDnzOwQdBONYSXSzve7j0cKsQR+VuhxwF1VDBE=; b=pKhmBNxfOYTaEL35xIxvpIbYj0iGxdOP3pkMm/FOind2c4eQRkhMnDIIam47X2QytZ dpq83LMPl7u+CnhXX65+eeCN664im/Jfo6LDfVlZ1LKB1L6X6ZsSGiYMroIYq11N+Lix E5ZQ6b8YEWH/Ylgpb7/rJMlXr0VbLqJXRgjDiAvFmX/YBVir2EJjSOP5dxf2sgpnJKeT VVFDtPG7bV9FV5uLhyY+lJXZYUIKdcrv0AwEvWDe0qCaYKS8ZcM+yYCNqFPtMG3JWcpG Y7O+PKZWlMrExlqeuLrVai5vdw7PQlLO4K0CnDyU0JUepLnhHo31SXoyiTfi5L/Jbqs8 x4eg== 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 i78si835854pfi.150.2018.02.07.01.11.54; Wed, 07 Feb 2018 01:11:54 -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 S1753803AbeBGJKr (ORCPT + 10 others); Wed, 7 Feb 2018 04:10:47 -0500 Received: from mx.socionext.com ([202.248.49.38]:3345 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753768AbeBGJKn (ORCPT ); Wed, 7 Feb 2018 04:10:43 -0500 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 07 Feb 2018 18:10:38 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id 6D8F9600D0; Wed, 7 Feb 2018 18:10:38 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 7 Feb 2018 18:10:56 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by kinkan.css.socionext.com (Postfix) with ESMTP id F29F81A124F; Wed, 7 Feb 2018 18:10:37 +0900 (JST) Received: from aegis.e01.socionext.com (unknown [10.213.134.210]) by yuzu.css.socionext.com (Postfix) with ESMTP id C2F2312062E; Wed, 7 Feb 2018 18:10:37 +0900 (JST) From: Katsuhiro Suzuki To: Mark Brown , alsa-devel@alsa-project.org, Rob Herring , devicetree@vger.kernel.org, Masahiro Yamada Cc: Masami Hiramatsu , Jassi Brar , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Katsuhiro Suzuki Subject: [RESEND PATCH v2 8/9] arm64: dts: uniphier: add speaker out for UniPhier LD11/LD20 boards Date: Wed, 7 Feb 2018 18:10:48 +0900 Message-Id: <20180207091049.24700-9-suzuki.katsuhiro@socionext.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20180207091049.24700-1-suzuki.katsuhiro@socionext.com> References: <20180207091049.24700-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 --- .../boot/dts/socionext/uniphier-ld11-global.dts | 20 ++++++++++++++++++++ .../boot/dts/socionext/uniphier-ld20-global.dts | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) -- 2.15.0 diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts b/arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts index 4eb8d00a8c02..ca09251a3eab 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)"; @@ -45,6 +46,7 @@ widgets = "Headphone", "Headphone Jack"; dais = <&i2s_port2 + &i2s_port3 &i2s_port4 &spdif_port0>; }; @@ -73,6 +75,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>; @@ -109,17 +125,21 @@ i2s_port2: port@2 { i2s_line: endpoint { + dai-format = "i2s"; remote-endpoint = <&evea_line>; }; }; i2s_port3: port@3 { i2s_hpcmout1: endpoint { + dai-format = "i2s"; + remote-endpoint = <&tas_speaker>; }; }; i2s_port4: port@4 { i2s_pcmout3: endpoint { + dai-format = "i2s"; remote-endpoint = <&evea_hp>; }; }; diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts b/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts index ebcd65631bca..0728832ce552 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)"; @@ -45,6 +46,7 @@ widgets = "Headphone", "Headphone Jack"; dais = <&i2s_port2 + &i2s_port3 &i2s_port4 &spdif_port0>; }; @@ -72,6 +74,20 @@ &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 { @@ -91,17 +107,21 @@ i2s_port2: port@2 { i2s_line: endpoint { + dai-format = "i2s"; remote-endpoint = <&evea_line>; }; }; i2s_port3: port@3 { i2s_hpcmout1: endpoint { + dai-format = "i2s"; + remote-endpoint = <&tas_speaker>; }; }; i2s_port4: port@4 { i2s_pcmout3: endpoint { + dai-format = "i2s"; remote-endpoint = <&evea_hp>; }; };