Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp526281ybl; Fri, 30 Aug 2019 03:24:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqypqudAuK9hnO2Jkx9eV1Wws4UTHNP5ul5b7Yo65wpskzoFWvpuuEt6zSh8h1lznOAHPXvI X-Received: by 2002:a17:90a:9f09:: with SMTP id n9mr14918207pjp.72.1567160675085; Fri, 30 Aug 2019 03:24:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567160675; cv=none; d=google.com; s=arc-20160816; b=HXmCqT9jr5tk8Xaa0CN49nBzIHBqf83C/wcKZXT+Oipq4MKVUxwiB4cgEE3vxJZZWJ diNobF3l8m0euYpSNT7A6eGMQFUkiZO2tVCGtZ0yE4h0lBJ0XIEgIZfCoYQAkoP/ZGNQ Hu9AKpJtmIxtiK0xIUVDbZ/w4UdE0vPzgrdXH44IiqABiqiVanL4sbB+DUb19ZHSRAMY 0m4kN10MlQelDe2QTWB2qwJRR0Za62tyJb22GRU5nqLeVtpKGnt+/3LuDNVs+hdce3Wd pbGOvMROfbeLLa3/9FJPu0YXgfDSh4KfP1pZTwTtooKXUhAhOZKUcCRvwDQ4EdkQqDtK Sezg== 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=sMtdUddDm3BxWRkgzL2yPe7GjHlr/FVEJmm1oUpWeSE=; b=dRoo90mjm2bcVl8iyQYWXbADvCiCU4+/FtTBJ0ReK18kYurXwUOmF7CjPOTeb0ihr9 SdFCk1spHaAYptbX81715iajpO6cYvnwqUZSjv4x2B2p6y7TXaA3mr6Oj6U9PuvjRRrr bo6353MSbnflf3NRR8WTH9lmrvrVBfz9DiKL3pPYDjH9+X0oxJIPp2RJjPlCr6L3dCXE jg3mN86QUmogiEBmpyTDiHgaH0fm6kaTRq1WzVHwmFRnKeHmIbRUqi5GCxMks9W2orbC NF10HQBpIr5n0eQc5foWUyOrW1abnGJ+LzakJiAB5itGqxpDyfcAXHfF+6KiTHvHVJNy 8yRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=dJVUFId3; 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 r1si4354490pls.323.2019.08.30.03.24.07; Fri, 30 Aug 2019 03:24:35 -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=dJVUFId3; 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 S1727891AbfH3KWh (ORCPT + 99 others); Fri, 30 Aug 2019 06:22:37 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:43352 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727170AbfH3KWg (ORCPT ); Fri, 30 Aug 2019 06:22:36 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x7UAMUsa118099; Fri, 30 Aug 2019 05:22:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1567160550; bh=sMtdUddDm3BxWRkgzL2yPe7GjHlr/FVEJmm1oUpWeSE=; h=From:To:CC:Subject:Date; b=dJVUFId3uQGVtwlqshRRez1ix+yF9kb5Zdwa+31ahl1HbefxMGBXCExNAufc1zGi/ hCCYLQQaUfGGwYIXtkuoJZSq6M5eHWPwx74TbV3mh3zfXGn9yp2fOed8QCqjwdsT/G b85mJajD8TAV2S+oLZ1g3sEa5KbARtLMZ3GU+sIc= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x7UAMUMl033471 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 30 Aug 2019 05:22:30 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE115.ent.ti.com (10.64.6.36) 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:30 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE113.ent.ti.com (10.64.6.34) 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:30 -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 x7UAMSl6128974; Fri, 30 Aug 2019 05:22:28 -0500 From: Peter Ujfalusi To: , CC: , Subject: [PATCH] ARM: davinci: dm365-evm: Add Fixed regulators needed for tlv320aic3101 Date: Fri, 30 Aug 2019 13:22:52 +0300 Message-ID: <20190830102252.22488-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_3V3 and VCC_1V8 is always on fixed regulators on the board. Signed-off-by: Peter Ujfalusi --- arch/arm/mach-davinci/board-dm365-evm.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/mach-davinci/board-dm365-evm.c b/arch/arm/mach-davinci/board-dm365-evm.c index 150a36f333df..2328b15ac067 100644 --- a/arch/arm/mach-davinci/board-dm365-evm.c +++ b/arch/arm/mach-davinci/board-dm365-evm.c @@ -30,6 +30,8 @@ #include #include #include +#include +#include #include #include @@ -245,6 +247,19 @@ static struct davinci_i2c_platform_data i2c_pdata = { .bus_delay = 0 /* usec */, }; +/* Fixed regulator support */ +static struct regulator_consumer_supply fixed_supplies_3_3v[] = { + /* Baseboard 3.3V: 5V -> TPS767D301 -> 3.3V */ + REGULATOR_SUPPLY("AVDD", "1-0018"), + REGULATOR_SUPPLY("DRVDD", "1-0018"), + REGULATOR_SUPPLY("IOVDD", "1-0018"), +}; + +static struct regulator_consumer_supply fixed_supplies_1_8v[] = { + /* Baseboard 1.8V: 5V -> TPS767D301 -> 1.8V */ + REGULATOR_SUPPLY("DVDD", "1-0018"), +}; + static int dm365evm_keyscan_enable(struct device *dev) { return davinci_cfg_reg(DM365_KEYSCAN); @@ -800,6 +815,11 @@ static __init void dm365_evm_init(void) if (ret) pr_warn("%s: GPIO init failed: %d\n", __func__, ret); + 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); + nvmem_add_cell_table(&davinci_nvmem_cell_table); nvmem_add_cell_lookups(&davinci_nvmem_cell_lookup, 1); -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki