Received: by 10.223.176.5 with SMTP id f5csp1175692wra; Wed, 31 Jan 2018 02:25:53 -0800 (PST) X-Google-Smtp-Source: AH8x224QTi+UYR0sBL6RhMIpim7SV6FJdIUhbR3poQW0G5Ez0jqSXVbRZDKCu+eX5HI44z32mQUg X-Received: by 10.99.100.131 with SMTP id y125mr25365052pgb.359.1517394353230; Wed, 31 Jan 2018 02:25:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517394353; cv=none; d=google.com; s=arc-20160816; b=IXs8vwRbF/Es6O/At23BQPNXznKfVmNdn4w0XupF0kJj+Iitg+1UKUkmn4EQ872dFf MedM3acLYpwlfk2LPXaBVVnPZWkYvmqgNXX3Jn0Yq3h1O7aGrU8nuGGYCC/f/DxNTxQl JXh/X3y36oNM8yDPCCOvNd0gcu2UuPu9u94Y/4F4gTTODozX6Vp0n4l6QyNIURO38DQ5 sve5KVxHdcA4dKR/4074XL1vqY6foC6AFFvpTDYCAgZpb+lsM5yfbVSLXjhFlAUVUkmP At9MUqeb0S06+fikBtBl6RhIdYkGLDJ8NfN0VrwopoWIMMgjRVoN67hT0wY3tzAZOYl1 BXZg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=QqJ4D0XFrmTZu4BJcOaUHkkn+FtOt02SBJxm4rP8VIk=; b=b9QNkwEyBj87U8hsxcTJZQMV5FcpZYg5szkWp9VB6i/yopsE2zQuekBwv48pwKbqYI fGFdszncJfqCVDWByTVFElJx4b0DU8FejLLX9o9yClc7/qcN4AmL+hYlvNxtpS+KZpFh 85FsBztOL1Ys2Xo5/85van0ezW/odQEDcsl+835/bfUFc9x2PlXSzFZ0xGKiV0vv6bn3 ROsg0BAS/o1zaLlDqUH8ij1y7AG5+nIkgXq4nEqQBo5VQtEQOouUXviFqrb7aXRmlYsY 39EscebvxNF9xaZxHHH9JLKX1QnEuL9n1C4flSDDHrtpL7QVcRg8hNvembq4KIQzpqo5 +Ndw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JVSYdyBt; 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 g31-v6si13666139pld.175.2018.01.31.02.25.38; Wed, 31 Jan 2018 02:25:53 -0800 (PST) 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=JVSYdyBt; 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 S1753516AbeAaJZo (ORCPT + 99 others); Wed, 31 Jan 2018 04:25:44 -0500 Received: from fllnx209.ext.ti.com ([198.47.19.16]:32407 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751581AbeAaJZl (ORCPT ); Wed, 31 Jan 2018 04:25:41 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id w0V9OEwB006624; Wed, 31 Jan 2018 03:24:14 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1517390655; bh=UN2AnrxpfiHCP/DFeo+eyljlJzU2XULpA5WVnHGRRfw=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=JVSYdyBtjKtu/+gfb7NOD0oO5HLEGBUZQSgZkP0tWfAmTptsykB0vXWONiRMHQ649 nK8HkBERqrIBJJilHHItm0kiSaw1kSbyT4zG1X+McYmzHIAghW+v2bnsy7Uu2odCG8 LwnQe+k/Hz5QIUiJZa/rUcL+2Hcc+JwfMFA7+80I= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w0V9OEtW025656; Wed, 31 Jan 2018 03:24:14 -0600 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Wed, 31 Jan 2018 03:24:13 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Wed, 31 Jan 2018 03:24:13 -0600 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w0V9O8aG029474; Wed, 31 Jan 2018 03:24:08 -0600 Subject: Re: [alsa-devel] [PATCH] sound/tlv320dac33: Add device tree support To: Ladislav Michl , Pavel Machek CC: , , , , , , , =?UTF-8?Q?Filip_Matijevi=c4=87?= , , , , , , , , , linux-arm-kernel , , , , , , , References: <20180129230539.GA18280@amd> <20180129232031.GA7695@lenoch> <20180129233301.GA18104@amd> <20180130083446.GA13498@lenoch> <20180130085314.GA4585@amd> <1141b126-b883-a246-85ad-c5a69acb90bb@gmail.com> <20180130093838.GA15195@lenoch> <20180130100023.GB18104@amd> <20180130101046.GA16474@lenoch> <20180130103538.GD18104@amd> <20180130113829.GA18464@lenoch> From: Peter Ujfalusi Message-ID: <571fedb5-0449-eb6f-04c5-e14252e055aa@ti.com> Date: Wed, 31 Jan 2018 11:24:34 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180130113829.GA18464@lenoch> Content-Type: text/plain; charset="iso-8859-2" Content-Language: en-US Content-Transfer-Encoding: 8bit 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 On 2018-01-30 13:38, Ladislav Michl wrote: > On Tue, Jan 30, 2018 at 11:35:38AM +0100, Pavel Machek wrote: >> On Tue 2018-01-30 11:10:46, Ladislav Michl wrote: >>> On Tue, Jan 30, 2018 at 11:00:23AM +0100, Pavel Machek wrote: >>>> On Tue 2018-01-30 10:38:38, Ladislav Michl wrote: >>>>> On Tue, Jan 30, 2018 at 10:11:02AM +0100, Filip Matijevi? wrote: >>>>>> Hi, >>>>>> >>>> >>>>>>> Well, notice I'm converting existing driver to device tree. And that >>>>>>> one already has GPIO dependency. It is possible that more work needs >>>>>>> to be done there, but that should not be a reason to delay this. Feel >>>>>>> free to help. >>>>> >>>>> Adding DT properties that need to be maintained for compatibility reasons >>>>> is a bad idea and very good reason to delay merging unfinished stuff. >>>>> And meanwhile it turned out it is not power-gpio :) >>>> >>>> I believe reset-gpios and power-gpios are commonly used like >>>> this... and that's what the old code does. >>> >>> Why do you care about old code when introducing new DT property? >>> Either it is reset, then lets call it reset-gpios or it is power supply >>> and then voltage regulator should be used (VAUX4.OUT is such a regulator >>> although it is unclear to me how it is controlled (*)). >> >> power gpio = !reset gpio. Difference is only in polarity. > > Quick grep: > Documentation/devicetree/bindings/net/smsc-lan91c111.txt > - power-gpios: GPIO to control the PWRDWN pin > - reset-gpios: GPIO to control the RESET pin > Documentation/devicetree/bindings/net/wireless/ti,wl1251.txt > - ti,power-gpio : GPIO connected to chip's PMEN pin > Documentation/devicetree/bindings/input/touchscreen/silead_gsl1680.txt > - power-gpios : Specification for the pin connected to the gsl1680's > shutdown input. This needs to be driven high to take the > gsl1680 out of its low power state > Documentation/devicetree/bindings/input/touchscreen/ektf2127.txt > - power-gpios : GPIO specification for the pin connected to the > ektf2127's wake input. This needs to be driven high > to take ektf2127 out of it's low power state > > As you can see others are using it to drive pins different from nRESET. As > stated in datasheet: > "The TLV320DAC32 requires a hardware reset after power-up for proper operation. > After all power supplies are at their specified values, the nRESET pin must be > driven low for at least 10ns. If this reset sequence is not performed, the DAC32 > may not respond properly to register reads/writes". That does not sound like > anything to do with power. > > (It seems the only difference between TLV320DAC33 and TLV320DAC32 is uses a ball > grid array package vs QFN32) Note that tlv320dac32 != tlv320dac33, they are not even register compatible devices... dac33 was created _for_ Nokia back in the days and as far as I know there is no publicly available documentation for dac33. And yes, my pick to use power_gpio in the code was wrong, it should have been named as reset_gpio. > >>>> You are not helping. >>> >>> The only way I can help here is to resend your patch with "reset-gpios" >>> used, which I'm pretty sure you can handle yourself. >> >> Well, you can do that, and then you can argue with the next person who >> feels one of the properties has to get his preferred color. Hard part >> is not changing code :-(. > > Indeed, hard part is not to break DT compatibility later. Consider someone > will have to add regulator support later, which you omitted to do - having > both power supply and power gpio is a bit confusing, don't you think? > > Anyway, time to stop arguing, feel free to do what you think is right, I do > not have anything important to add :) > > ladis > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel > - P?ter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki