Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753810AbbBZQ0F (ORCPT ); Thu, 26 Feb 2015 11:26:05 -0500 Received: from ns.mm-sol.com ([37.157.136.199]:54751 "EHLO extserv.mm-sol.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753312AbbBZQ0C (ORCPT ); Thu, 26 Feb 2015 11:26:02 -0500 Message-ID: <1424967957.2340.30.camel@mm-sol.com> Subject: Re: [PATCH 0/3] Add initial DT support for Qualcomm SPMI PMIC devices From: "Ivan T. Ivanov" To: Stephen Boyd Cc: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Date: Thu, 26 Feb 2015 18:25:57 +0200 In-Reply-To: <54E6848C.1090405@codeaurora.org> References: <1422965880-11047-1-git-send-email-iivanov@mm-sol.com> <54E6848C.1090405@codeaurora.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.13.7-fta1.2~trusty Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1837 Lines: 51 Hi Stephan, Sorry for delayed answer. On Thu, 2015-02-19 at 16:49 -0800, Stephen Boyd wrote: > On 02/03/15 04:17, Ivan T. Ivanov wrote: > > Following set of patches add initial DT support for PMIC devices > > found on recent Quqalcomm chipsets. Details for SPMI bus and PMIC arbiter > > could be found here [1]. > > Can you please put the specific compatible strings for the pmic model > into the nodes in addition to the generic "qcom,spmi-pmic"? We may want > to have regmap config tables in the future that describe the > cache/read/write abilities of the regsiters. If all we have is the > generic binding then we don't have a way to populate these tables. > Unless the plan there is to use the revid registers? > I would really like that we can use "revid" registers, but I don't know... >From what I can see usually in one physical PMIC chip they are 2 USID devices. I can successfully discover following USID's on APQ8074 boards: pmic-spmi 0-00: qcom,pm8941-v1.0 detected pmic-spmi 0-01: qcom,pm8941-v1.0 detected pmic-spmi 0-04: qcom,pm8841-v0.0 detected pmic-spmi 0-05: qcom,pm8841-v0.0 detected Unfortunately on PM8916 only one device is detected, with USID 0. But they should be two, judging by downstream DTS files, right? pmic-spmi 0-00: qcom,pm8916-v0.0 detected pmic-spmi 0-01: unknown device For communication with PM8916 I am using recent patches from Gilad [1]. Maybe there are still some issues with these patches, which can cause this behavior or PM8916 just didn't have these registers for USID 1? Regards, Ivan [1] https://lkml.org/lkml/2015/2/19/453 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/