Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp1002762ybm; Wed, 27 May 2020 13:27:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxN8q+KxDbFUEEhFj7PxXhWohMHNQKeuB5CS4om/dBfodnx0xsSlfcj0jb5IPGOv2x9TvB1 X-Received: by 2002:a17:906:3952:: with SMTP id g18mr50364eje.191.1590611248277; Wed, 27 May 2020 13:27:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590611248; cv=none; d=google.com; s=arc-20160816; b=FEfQWFUytKNPN47rasVsspnKIikArDjbgOriatBEPfC/BGrjr9MSFHW4b29X5q8nSP +j9tewKC7lOYTEdps/sFCcZdGH8UelmhP4G+9YaRu4tRQzsPCV5jdqCVk275tT8ndrpL HA4ykvbhYSKxRfMo9OVVfqmuBMaFrUtU+Rn6SVVQyZ4cVVknDHBq71ToPQgDyN3Sa582 W1RbwAnLKNFwy0DsiFu0dDgZrNJmozVpTghYBL6MC/iJdMTpNPnuafUmaiYJ27uC2uGk hVH7TuyituumtlNYZS9VN26EWCleE5MmpqL+dYCn+NADMXk2P3n+Tj5EhQhxQ4hnPRHa 0O0Q== 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; bh=vRfY7kr0Yf6dw0Te1APz3mCqubP8FzX3SXMljhuS1As=; b=MZVbzjjZmrM+mhZONt3XYFIZcgM9vzU7WW9Pwh6oOpy1zONoGGm9YwZePJ+i9a1dW4 b6Lh0/j3ar7VBgAcUkY3NwzFkJClXUkO+4tmQA59hB2EsrezAzMHx1F+k2vSlS3/VAnz cJ/frFXLa4CHCcGnCRWz9k/GPTNrHKJDpg0CYhR8/bm5mjy4hRT0twRmhm89F8qi9EbN PaWfLRrsHTyb1+q6rbX+KCv6msyAGU7LD99sI/V9s8kxbMMZIJZFRYE6c7s93NFa+AHL WOYpT/IjomntwejJyJkOYAYFtpfkQPm8QFUoaHUdtwgzve3CzGByoVpB1RGQfs95Nr1W a6jA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i18si2570641ejx.488.2020.05.27.13.27.04; Wed, 27 May 2020 13:27:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728891AbgE0UYy (ORCPT + 99 others); Wed, 27 May 2020 16:24:54 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:49681 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727004AbgE0UYx (ORCPT ); Wed, 27 May 2020 16:24:53 -0400 X-IronPort-AV: E=Sophos;i="5.73,442,1583161200"; d="scan'208";a="47962803" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 28 May 2020 05:24:51 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 21F8440E2587; Thu, 28 May 2020 05:24:49 +0900 (JST) From: Lad Prabhakar To: Geert Uytterhoeven , Magnus Damm , Rob Herring Cc: linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Prabhakar , Lad Prabhakar Subject: [PATCH 2/3] ARM: dts: r8a7742-iwg21d-q7: Enable SGTL5000 audio codec Date: Wed, 27 May 2020 21:23:32 +0100 Message-Id: <1590611013-26029-3-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1590611013-26029-1-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <1590611013-26029-1-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch enables SGTL5000 audio codec on the carrier board. Signed-off-by: Lad Prabhakar Reviewed-by: Marian-Cristian Rotariu --- arch/arm/boot/dts/r8a7742-iwg21d-q7.dts | 37 +++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/arch/arm/boot/dts/r8a7742-iwg21d-q7.dts b/arch/arm/boot/dts/r8a7742-iwg21d-q7.dts index f62485a..d6154fd 100644 --- a/arch/arm/boot/dts/r8a7742-iwg21d-q7.dts +++ b/arch/arm/boot/dts/r8a7742-iwg21d-q7.dts @@ -23,6 +23,20 @@ stdout-path = "serial2:115200n8"; }; + audio_clock: audio_clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <26000000>; + }; + + reg_1p5v: 1p5v { + compatible = "regulator-fixed"; + regulator-name = "1P5V"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <1500000>; + regulator-always-on; + }; + vcc_sdhi2: regulator-vcc-sdhi2 { compatible = "regulator-fixed"; @@ -67,6 +81,24 @@ status = "okay"; }; +&i2c2 { + pinctrl-0 = <&i2c2_pins>; + pinctrl-names = "default"; + + status = "okay"; + clock-frequency = <400000>; + + sgtl5000: codec@a { + compatible = "fsl,sgtl5000"; + #sound-dai-cells = <0>; + reg = <0x0a>; + clocks = <&audio_clock>; + VDDA-supply = <®_3p3v>; + VDDIO-supply = <®_3p3v>; + VDDD-supply = <®_1p5v>; + }; +}; + &pci0 { pinctrl-0 = <&usb0_pins>; pinctrl-names = "default"; @@ -93,6 +125,11 @@ function = "avb"; }; + i2c2_pins: i2c2 { + groups = "i2c2_b"; + function = "i2c2"; + }; + scifa2_pins: scifa2 { groups = "scifa2_data_c"; function = "scifa2"; -- 2.7.4