From patchwork Wed Feb 28 09:32:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Katsuhiro Suzuki X-Patchwork-Id: 129929 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp808470lja; Wed, 28 Feb 2018 01:33:22 -0800 (PST) X-Google-Smtp-Source: AH8x224ysP5rF984SGHrS9mCs90Z7XZbeEDab+5fypwnaTTQ8XRM7o0WIMAXgRhIh1YAsz/LdTed X-Received: by 2002:a17:902:8285:: with SMTP id y5-v6mr17645230pln.190.1519810402707; Wed, 28 Feb 2018 01:33:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519810402; cv=none; d=google.com; s=arc-20160816; b=bU3d/GOfZBUHpsxql2N5LnP/Y6iOFcwYbwLlgKSAVSg0zK/VKKn2c3aBPA+aACJlXv OxaemWBSWAnF8dNUSGx2Hhp3Sz0ZFXtBWBwVq+Vd5+2dzgqhpVr+GMMRv4Mc4Tj3Lh/2 zPgkU2YhohE+rdA/BNLbiBKCMmlwyuYckhf4p+dyr87gfTTTgF6SK8rIL74gFqe73Wv4 EtJE2rZhgL8pEZouuxrnAzr6U8/BeKOi1MVLIshGf7Fj/y5EVllB3m5pYuYUKZvZdzr8 xRJAtzB4mkqQVlnV2DrQD4cPb8cJqP63QRXKpnVcVeavieccKwUKPJepyiDZob+XgaZY FJmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=z87N8RqevzPbala2jv0pHbJK6NRegqD9OQihoy9v+Wk=; b=Ku3GD33NkjQP701qa2uQRTZu7oghzczgeRE+dm98SmTueDHTSQPPqRj/9uB4CJJWP2 x8T4iJLRSRh8W1YQkgssMTzMEGcvsIL8IDN+TfwrrPmvFeTlmPJqvbaN3X8FNoZ977hG fepq615uqN1SH1u5t7fL8SlB0go7EMN4lZWJJ997jt9shGJ/lOfGOIRtPZpTASeU0mZa iGnk+tY67AxlAhjn1x936OnMdpoDWIRg0vDO9nmlqJZyp11vZYbqY3Zi9BUOByRFECOc kzWCQIJRTKGxZj8fkGkF2MwfKewVWfy0ZYBFdASiqsqwyvt0TAtvIfJtY/7JfYEb8kfc HgyQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 2-v6si1014232plf.84.2018.02.28.01.33.22; Wed, 28 Feb 2018 01:33:22 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752173AbeB1JdV (ORCPT + 6 others); Wed, 28 Feb 2018 04:33:21 -0500 Received: from mx.socionext.com ([202.248.49.38]:25875 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751552AbeB1JdU (ORCPT ); Wed, 28 Feb 2018 04:33:20 -0500 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 28 Feb 2018 18:33:19 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id 40FF8180BB5; Wed, 28 Feb 2018 18:33:19 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 28 Feb 2018 18:33:51 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by kinkan.css.socionext.com (Postfix) with ESMTP id 12A351A0DEC; Wed, 28 Feb 2018 18:33:19 +0900 (JST) Received: from aegis.e01.socionext.com (unknown [10.213.134.210]) by yuzu.css.socionext.com (Postfix) with ESMTP id E216C120534; Wed, 28 Feb 2018 18:33:18 +0900 (JST) From: Katsuhiro Suzuki To: linux-arm-kernel@lists.infradead.org, Masahiro Yamada , devicetree@vger.kernel.org Cc: Masami Hiramatsu , Jassi Brar , linux-kernel@vger.kernel.org, Katsuhiro Suzuki Subject: [PATCH] arm64: dts: uniphier: add fixed regulators for audio codec Date: Wed, 28 Feb 2018 18:32:47 +0900 Message-Id: <20180228093247.29648-1-suzuki.katsuhiro@socionext.com> X-Mailer: git-send-email 2.16.1 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch adds regulators that have fixed voltage for audio codec on UniPhier LD11/20 Global boards. This patch fixes warnings about TAS57xx audio codec such as "tas571x 0-001b: 0-001b supply AVDD not found, using dummy regulator". Signed-off-by: Katsuhiro Suzuki --- .../boot/dts/socionext/uniphier-ld11-global.dts | 21 +++++++++++++++++++++ .../boot/dts/socionext/uniphier-ld20-global.dts | 21 +++++++++++++++++++++ 2 files changed, 42 insertions(+) -- 2.16.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts b/arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts index 6bfd1ccd1f71..71eb46a5bd48 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts +++ b/arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts @@ -39,6 +39,20 @@ reg = <0 0x80000000 0 0x40000000>; }; + dvdd_reg: reg-fixed { + compatible = "regulator-fixed"; + regulator-name = "DVDD"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + + amp_vcc_reg: reg-fixed { + compatible = "regulator-fixed"; + regulator-name = "AMP_VCC"; + regulator-min-microvolt = <24000000>; + regulator-max-microvolt = <24000000>; + }; + sound { compatible = "audio-graph-card"; label = "UniPhier LD11"; @@ -104,6 +118,13 @@ pdn-gpios = <&gpio UNIPHIER_GPIO_PORT(23, 5) GPIO_ACTIVE_LOW>; #sound-dai-cells = <0>; + AVDD-supply = <&dvdd_reg>; + DVDD-supply = <&dvdd_reg>; + PVDD_A-supply = <&_vcc_reg>; + PVDD_B-supply = <&_vcc_reg>; + PVDD_C-supply = <&_vcc_reg>; + PVDD_D-supply = <&_vcc_reg>; + port@0 { tas_speaker: endpoint { remote-endpoint = <&i2s_hpcmout1>; diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts b/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts index 57b1e36b5eaf..eed6346497d2 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts +++ b/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts @@ -39,6 +39,20 @@ reg = <0 0x80000000 0 0xc0000000>; }; + dvdd_reg: reg-fixed { + compatible = "regulator-fixed"; + regulator-name = "DVDD"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + + amp_vcc_reg: reg-fixed { + compatible = "regulator-fixed"; + regulator-name = "AMP_VCC"; + regulator-min-microvolt = <12000000>; + regulator-max-microvolt = <12000000>; + }; + sound { compatible = "audio-graph-card"; label = "UniPhier LD20"; @@ -104,6 +118,13 @@ pdn-gpios = <&gpio UNIPHIER_GPIO_PORT(0, 1) GPIO_ACTIVE_LOW>; #sound-dai-cells = <0>; + AVDD-supply = <&dvdd_reg>; + DVDD-supply = <&dvdd_reg>; + PVDD_A-supply = <&_vcc_reg>; + PVDD_B-supply = <&_vcc_reg>; + PVDD_C-supply = <&_vcc_reg>; + PVDD_D-supply = <&_vcc_reg>; + port@0 { tas_speaker: endpoint { remote-endpoint = <&i2s_hpcmout1>;