Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3794058imm; Mon, 11 Jun 2018 01:44:00 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIzcWOxvRUDTaLnP7ailCY3eWxYd3bOSw1Cgd7sDZ9YBhTNYg0WtCoQgGgPLt5WCktbars3 X-Received: by 2002:a63:7d4c:: with SMTP id m12-v6mr13748072pgn.201.1528706640242; Mon, 11 Jun 2018 01:44:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528706640; cv=none; d=google.com; s=arc-20160816; b=uZspVmAfg+rhZsES145/tdUK4xgo+uYfX0FPeZlqo2lj2b5uMg1vv8D0twh1qIRsF4 VIAhM+5GDD6xJxHQLdx56zQ2EguPd1m2MTsfZ/SjvLB0qulY7la+DbOBwXC8smdgdT+i botBZra3bwYH9d0XpvNx16ZJbUzZMlOGM0+iZCbjvO0BaFuj0BoSPZFsBtmCY+2L7sE4 7GUyXHggC+tS7DilIhQEbpqwgoxHbUAwVbD0SimvtxU5t+3z1i0Qr3639V0+bWrYAezy hKg7DMughM4RDT/Ne0Yrt1TuQG1K1sPg98Ru0xXeY0155/25Fjv8SxfmK3v8hWcVnIA9 TdRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=GpKgh/A4spGNnF4oBp9y+A9uR54MP2ckZxFsDm6K6ww=; b=rHXjmFWs7FZ6YXZBMyoHScjwMMOInslyAVlHqcNLb7ZSPVuBOjBb6dUw/OxmqztBJl 5Bou5cqZnu7+2moEohGON0pMRvKT1XMKAK75oOmEfIToAzKHQPc0MiVCaqtwXknMPcAZ +WcYU/WBDhhrqJJLgfL7EaosWKyyzFwGmVaw5awJ8K8l8Ph60gJZRnAo7E0qjsRuIwDK hH/VbjVu19vPFuPqpfu3eNaLNVd1DaUOUcYHQVOAdt1aZ70l1E4zIIx7Pal7fxr/4o3S U5Z5B/h9R1FjpQ+ycosyt4nGHkx35/jcQSu3A2RGluywKfsiMCe/WdorhnudMRbXWbQS 9Fsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MeUgVhta; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k11-v6si10302710pgc.681.2018.06.11.01.43.45; Mon, 11 Jun 2018 01:44:00 -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=@linaro.org header.s=google header.b=MeUgVhta; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932446AbeFKImj (ORCPT + 99 others); Mon, 11 Jun 2018 04:42:39 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:35072 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754157AbeFKImh (ORCPT ); Mon, 11 Jun 2018 04:42:37 -0400 Received: by mail-io0-f194.google.com with SMTP id u4-v6so22987150iof.2 for ; Mon, 11 Jun 2018 01:42:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=GpKgh/A4spGNnF4oBp9y+A9uR54MP2ckZxFsDm6K6ww=; b=MeUgVhtaN+JRmeWDblWM8joN231PabmmIOucpC6ida+3UGnmo0uyktEmveqSm4wLex uRyBRGDZm5eI4rHBNNBPnFlfrJME5lMpea76Xx0fGziqOGYUxjiCXR6mMLFXZnSuFoJa KHN91dxh4KkXMr0RBh5UCwflb3uObJD0wTiY0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=GpKgh/A4spGNnF4oBp9y+A9uR54MP2ckZxFsDm6K6ww=; b=ZTkSCo83UAFaNJJqoTUtYMfiolhaddsTnJlYAAM43Au5QpcNZxwBxdt3GjUJIkDD5w 2bnpGHllI9y4o7da0x/dohXGEtVHIkSQzoPvfqnMhV50onqbqY6gBamnbNCbBd91iiCf 33ZZFlNjB/cha9wGEXHe5ogDHeGDFqw/OqapGM2f3vFyd/lFUvxd/T6JvPkzYQl++Y9c IEnjd/eYIj4/rF5gufCn01ee9W6IMpdGxh5rpzc5qndBxNuGrYY4oTstW07gAzFTOvOv +sLhJRwMcYLIDoFCMaXa+RXAv+g4FuS/V+Ws6gaIIlYdQkpjlk6FV7SfgFCoVQskm44U CYSg== X-Gm-Message-State: APt69E0H2Q4z9HMXvEbJK9nwbgi9BHJnegdlNAa3gJNjjjyNham56AGl 8ZVKeJes+UqRV4Yq2suPFVKw4dFhHcy1WvHFHq+ZhQ== X-Received: by 2002:a6b:2401:: with SMTP id k1-v6mr12550656iok.270.1528706556699; Mon, 11 Jun 2018 01:42:36 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:78c9:0:0:0:0:0 with HTTP; Mon, 11 Jun 2018 01:42:35 -0700 (PDT) In-Reply-To: <1528377065-647-1-git-send-email-stefan.popa@analog.com> References: <1528377065-647-1-git-send-email-stefan.popa@analog.com> From: Linus Walleij Date: Mon, 11 Jun 2018 10:42:35 +0200 Message-ID: Subject: Re: [PATCH v2 2/2] dt-bindings: iio: dac: Add docs for AD5758 DAC To: Stefan Popa Cc: Jonathan Cameron , 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" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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