Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp527413ybl; Fri, 30 Aug 2019 03:25:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqyMOg8G3cdHmgfG6fafPnuUnWw9a/h4Ao865hWpRhrPvtd/cD8xx/k1BFiaWahBCnp7dkGz X-Received: by 2002:a63:2784:: with SMTP id n126mr12037215pgn.92.1567160739243; Fri, 30 Aug 2019 03:25:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567160739; cv=none; d=google.com; s=arc-20160816; b=QfoSfScPELVz+h8+noJ0OPC3PWRyoz+eMrYSfZdAQLx1lHqHPH7+2/W2V7GRQ3RRiA 09u+4HDB+9vO/4rwG7vSqtvv4ALMvdqGHhjySI/AxtjXX2asoBU2LVS4a53QjRUVxJ/g o/PISIeF6+rTr23sllsqX3HXvUml8/cQTLjmlb0qTUfv9VgAhKTwk7BHWGV55cReVHhM drCD4kbc/q1JBe3t/Q1AAq6joPrqiLNHAQrL0HnT3yRkrj+xKlT6nO20iV0CWcEj5oH7 hcv9l2FsciIG+sDurMQpw1oaF22BLr/wku60TzLddrUgEaetdkogA23nUwqQmHnlVFY8 fn4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=y3uyxvjdUkwCH5ZHJ6JpzG3r8jtoTFEwymS+1egN52w=; b=Xk7Fn8oiPwaenOA4wnNWnL4QIe3AcqONrrTCDb8VIf6zeScrierM9ACozaH/Cxh8JC nhO1hGNPhk/X3WNFLrkbmXmryTE/AHjqBRSSeWM2LVgLoSKF/8fh+ToC+5NV5Zr1tYJT 17+xrtnzOnCrwClJQpBcac5zeLsHqhWUoRlkiBbQ7Rlyx7YO8jakEHMVjvV5z3E2QTpx UMsbq86qrxwyN272EJsc2llVow6+pCCo0tXrmFEXZyUzv46o6kdCgrZy6Lc+3ByQtujy rw8HCNh3LcaQpAg+l0TYij4MltOKqlQjnyE1YszgNVz3BzEYm1AR+jgIgII35X+cbrFJ mC3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ZwX6Z0kY; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b40si4407145plb.209.2019.08.30.03.25.24; Fri, 30 Aug 2019 03:25:39 -0700 (PDT) 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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ZwX6Z0kY; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728151AbfH3KWu (ORCPT + 99 others); Fri, 30 Aug 2019 06:22:50 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:57324 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727170AbfH3KWu (ORCPT ); Fri, 30 Aug 2019 06:22:50 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x7UAMkc5095647; Fri, 30 Aug 2019 05:22:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1567160566; bh=y3uyxvjdUkwCH5ZHJ6JpzG3r8jtoTFEwymS+1egN52w=; h=From:To:CC:Subject:Date; b=ZwX6Z0kYY5VNu7fCSrzzQ15JPlx3/1rSNX0L7B1dsvWG4xFcovoFRqg3lVha+mcEs unz0FMA9kkR18P7d3Ys91C4CxN9dy6oBlFJsKYdmZJFq2MlV0CqP6XpTT2mxQlPEVn EjD33AuJVg7SHiHZNMp3H22IUkl8gU/o3wEKHHdg= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x7UAMkmm002008 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 30 Aug 2019 05:22:46 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 30 Aug 2019 05:22:45 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Fri, 30 Aug 2019 05:22:45 -0500 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x7UAMhiK129161; Fri, 30 Aug 2019 05:22:44 -0500 From: Peter Ujfalusi To: , CC: , Subject: [PATCH] ARM: davinci: dm644x-evm: Add Fixed regulators needed for tlv320aic33 Date: Fri, 30 Aug 2019 13:23:08 +0300 Message-ID: <20190830102308.22586-1-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The codec driver needs correct regulators in order to probe. Both VCC_3.3V and VCC_1.8V is always on fixed regulators on the board. Signed-off-by: Peter Ujfalusi --- arch/arm/mach-davinci/board-dm644x-evm.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/mach-davinci/board-dm644x-evm.c b/arch/arm/mach-davinci/board-dm644x-evm.c index 9d87d4e440ea..8406c82e1da4 100644 --- a/arch/arm/mach-davinci/board-dm644x-evm.c +++ b/arch/arm/mach-davinci/board-dm644x-evm.c @@ -29,6 +29,8 @@ #include #include #include +#include +#include #include @@ -653,6 +655,19 @@ static struct i2c_board_info __initdata i2c_info[] = { }, }; +/* Fixed regulator support */ +static struct regulator_consumer_supply fixed_supplies_3_3v[] = { + /* Baseboard 3.3V: 5V -> TPS54310PWP -> 3.3V */ + REGULATOR_SUPPLY("AVDD", "1-001b"), + REGULATOR_SUPPLY("DRVDD", "1-001b"), +}; + +static struct regulator_consumer_supply fixed_supplies_1_8v[] = { + /* Baseboard 1.8V: 5V -> TPS54310PWP -> 1.8V */ + REGULATOR_SUPPLY("IOVDD", "1-001b"), + REGULATOR_SUPPLY("DVDD", "1-001b"), +}; + #define DM644X_I2C_SDA_PIN GPIO_TO_PIN(2, 12) #define DM644X_I2C_SCL_PIN GPIO_TO_PIN(2, 11) @@ -831,6 +846,11 @@ static __init void davinci_evm_init(void) dm644x_register_clocks(); + regulator_register_always_on(0, "fixed-dummy", fixed_supplies_1_8v, + ARRAY_SIZE(fixed_supplies_1_8v), 1800000); + regulator_register_always_on(1, "fixed-dummy", fixed_supplies_3_3v, + ARRAY_SIZE(fixed_supplies_3_3v), 3300000); + dm644x_init_devices(); ret = dm644x_gpio_register(); -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki