Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2159958imm; Sat, 16 Jun 2018 10:50:08 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKD3NmwfWiL28tDqyhO6juBBCczRbXVLxD0V3M9BgTfVcQ5u8oW7SprVJc3KBAovii1DKZw X-Received: by 2002:a62:9f16:: with SMTP id g22-v6mr6951295pfe.207.1529171408602; Sat, 16 Jun 2018 10:50:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529171408; cv=none; d=google.com; s=arc-20160816; b=UtEMiNl0mQoQMbBqws9tN9LqxQSWBVhckjQ4LJCSwKxtzcFZe8HkRTAG46Hys9FFo2 t90jXGZMVRfgFQqNZrq5qVNnYwEmdZcrVxj1O/3k3+n+Ejx4yVqCFdhZqZgRTVSXww5z C7II4T+7k7Lm3NYKCZ7cSNJWDcF+JRj7K2gRjG44AV/1CiQyMFnJCYCUaMXBT/EoY1kA g3HucLo+FGxDcejjo3trCHOQdgYzrMWzggz/gii3KAMU6mxTkSb17uU1qRDmpuBHbCUW eyig3KI3IIcKQB6UjA9gk72oRlk6Rz4vpBg5L4tTjcqZxKEPGZ/nYUGV/kczBrPfNLgH t3xQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=6dyukKEAR7+ZFnsSPVin1R6TnF+PoM4DY3N1aWrqV8Y=; b=MUljfSlaPbdehsH+kRPBRcYKWFTR2JZkVNqPYkXtpukO3UDBLrQQdBT++cXeWlxNcD OaYzfedCQKcvtoZ7/yzcIjTavp/+S1THd0WXYnatm5o4GT9oY1eGJ3ljVYAXGhqVHmeM gAHsc8Tf/ammS5xxubWglawLdjFIgrhW499LUihydDMwQWuD0H55harONxdS539YT03D JGZlWQIw6uDTNJ8SyT97FHmxVsLRc0QoSnq5d3mFGpYqJdfLJaiXPsM4fyFZoWN+6pgm 9jVjH8YYut1N3j82NN+ZL5H61xXL1BDKJ+ELvlc7IvFHhMVh3wEZE7HGlhvDqIHPYcAU D9jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=G6PylhoE; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s184-v6si9036948pgb.172.2018.06.16.10.49.53; Sat, 16 Jun 2018 10:50:08 -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=@kernel.org header.s=default header.b=G6PylhoE; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932844AbeFPRtR (ORCPT + 99 others); Sat, 16 Jun 2018 13:49:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:44812 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932439AbeFPRtP (ORCPT ); Sat, 16 Jun 2018 13:49:15 -0400 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D895420895; Sat, 16 Jun 2018 17:49:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1529171355; bh=Xne0yNIzpZIG/KW4aSXXkC7aAskB7qqwOUBcs0NFu7U=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=G6PylhoE4HSevwrGSt47QCUhB0zSTIy9vLvwRCfMfqO6UeI1hysY4ccWpUSzy3Vwl pI4Hzw5wiaCV2g7yRWDdCFq0PBFqni51TMgLEc8nMQZ9ewHKtP6rfVWQmNV/JJA0Ke 2fVCs5ovnOGNfhLLe4fFkbAMGJGrl8lkNZpuoQF4= Date: Sat, 16 Jun 2018 18:49:07 +0100 From: Jonathan Cameron To: Linus Walleij Cc: Stefan Popa , Michael Hennerich , Lars-Peter Clausen , Hartmut Knaack , Peter Meerwald , Rob Herring , Mark Rutland , Mauro Carvalho Chehab , "David S. Miller" , Greg KH , Andrew Morton , Randy Dunlap , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-iio@vger.kernel.org, "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2 2/2] dt-bindings: iio: dac: Add docs for AD5758 DAC Message-ID: <20180616184907.5831c24a@archlinux> In-Reply-To: References: <1528377065-647-1-git-send-email-stefan.popa@analog.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 11 Jun 2018 10:42:35 +0200 Linus Walleij wrote: > On Thu, Jun 7, 2018 at 3:11 PM, Stefan Popa wrote: > > > + - adi,slew: Array of slewrate settings should contain 3 fields: > > + 1: Should be either 0 or 1 in order to enable or disable slewrate. > > We have a standard binding in pin control for "slew-rate". > > It doesn't have a unit today though. > > > + 2: Slew rate clock: > > + Valid values for the slew rate update frequency [Hz]: > > + * 240000 > > + * 200000 > > + * 150000 > > + * 128000 > > + * 64000 > > + * 32000 > > + * 16000 > > + * 8000 > > + * 4000 > > + * 2000 > > + * 1000 > > + * 512 > > + * 256 > > + * 128 > > + * 64 > > + * 16 > > + 3: Slew rate step: > > + Defines by how much the output value changes at each update. > > + Valid values for the step size LSBs: > > + * 4 > > + * 12 > > + * 64 > > + * 120 > > + * 256 > > + * 500 > > + * 1820 > > + * 2048 > > This is pretty idiomatic and just encodes the configuration fields from the > hardware into the device tree. > > The normal slew rate unit is Volts per microsecond. > > I get the feeling that we could define that simply, and then calculate > the slew rate clock and step using that to find the best match for > a certain slew rate. > > Yours, > Linus Walleij Agreed. A single value would be nice if possible. J