From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26927C47083 for ; Wed, 2 Jun 2021 05:37:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F24EB61360 for ; Wed, 2 Jun 2021 05:37:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229687AbhFBFjg (ORCPT ); Wed, 2 Jun 2021 01:39:36 -0400 Received: from muru.com ([72.249.23.125]:35184 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229654AbhFBFjg (ORCPT ); Wed, 2 Jun 2021 01:39:36 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id AF0FB811B; Wed, 2 Jun 2021 05:38:00 +0000 (UTC) Date: Wed, 2 Jun 2021 08:37:50 +0300 From: Tony Lindgren To: Mighty M Cc: linux-omap@vger.kernel.org Subject: Re: Regulators not working Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org * Mighty M [210531 18:11]: > On Thu, May 27, 2021 at 10:49 PM Mighty M wrote: > > > > My device has twl6032 regulator, and the regulators are always > > disabled and off, even after putting regulator-always-on in my dts > > they are off. Only the twl regulators are affected, the ones i added > > manually (ie fixed reg with gpio) are working fine. Here is my dts > > https://pastebin.ubuntu.com/p/pYGG2pTSjB/, my .config > > https://pastebin.ubuntu.com/p/vVFrbZ4773/ , my dmesg > > https://pastebin.ubuntu.com/p/tqCXGnPZmF/ it says > > > > [ 4.330841] VAUX2_6030: 2800 mV, disabled > > [ 4.334533] twl6030_reg 48070000.i2c:twl@48:regulator-vaux2: always-on 1 > > > > and checking the /sys/class/regulator > > samsung-espresso10:/sys/devices/platform/44000000.ocp/48000000.interconnect/48000000.interconnect:segment@0/48070000.target-module/48070000.i2c/i2c-0/0-0048/48070000.i2c:twl@48:regulator-vaux2/regulator/regulator.8# > > cat state > > disabled > > samsung-espresso10:/sys/devices/platform/44000000.ocp/48000000.interconnect/48000000.interconnect:segment@0/48070000.target-module/48070000.i2c/i2c-0/0-0048/48070000.i2c:twl@48:regulator-vaux2/regulator/regulator.8# > > cat status > > off > > the regulator_summary https://pastebin.ubuntu.com/p/3DH6h9bkGY/ > > > > I cannot understand why the twl pmic isnt working, any help? > > Fixed using twl6032 compatible regs > (https://github.com/MightyM17/linux_openpvrsgx/commit/0941a578af14997bce809a490e3c4ad6974da30d#diff-064ed8561b0ba46b9cd9fb30b57da0d76f2609faeaf0df09bdb7b908ef87a363R342) OK good to hear. Regards, Tony