Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp604662rwb; Sun, 6 Nov 2022 10:39:28 -0800 (PST) X-Google-Smtp-Source: AMsMyM7nELB00iZoi8scBVUr35kNh4XVV1o71v8YTpoia+K31AkelWRJ/KR/evLMfOGIr/LH516/ X-Received: by 2002:a05:6402:2794:b0:461:d60c:30c7 with SMTP id b20-20020a056402279400b00461d60c30c7mr45754761ede.392.1667759967850; Sun, 06 Nov 2022 10:39:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667759967; cv=none; d=google.com; s=arc-20160816; b=bK2TnDvckWgPDPafmvPX1CK7X1yUoo63hCh503zhx9zgUBJvwG69N5DeJ0z8pSBNsE oN5nq6blmdYWyB4xnujddqPgzd7iCG90170SectAc8IOe99n2xJuLQ/zHrdUcIRarPoh 6koaZJ7QPojWRDrEhzEQTVcNH7uezHUNbemoWbMNmMEY5sa5RYHl6O1bMmK4U6OqyDKJ qGwSOdZcwfHYphzlALapvx99NaPvKsW0BlfYUHY0mADHgJmZ0+2iquTkqa90q+iLzE6+ ZVhXwQF9umLEgJ6QQr4r/BMm1pkVyrQu7d3OpopWb+0EVWMXCZhUkAyFiUO2xGYaBF+K lSeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=ftp03aV+g02llr7+x9/MM4fuyqRk86J2oEyR+JtTWhY=; b=fS46+cD8EJnD6JtJUdyvn9xgVAlHYy0cCRRb4kDyRPhnJkjMqf/OVBKHbeTyvTq9im wZZ2qpLE7uExrS+zEfTqGD54aL3VVf6yufHyfwHRHmUg7h9lTA7uu/EPIUP2WGoHW/l6 1fyJUlbmPChrSYzXi7eN0Lfm4HiiXEVG6VcK62Tc8tOvY3fR2XlbXw7nYGCEe3iwjyCB K2v13XR1mct8vn6JedGs/cEEXnL0z5A/EUHZmNfH4JgOQZ8RpG47s+SOhYtfEBddS7/8 YSoeC3xAtRBiORZY0cmrpoLDFIyxec5WeAYlR6Vi9vC/9bVrM+VrfyR3e+KKHYZTge33 lShQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cfuZ09AJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nc10-20020a1709071c0a00b0078d20d71475si5567638ejc.413.2022.11.06.10.39.04; Sun, 06 Nov 2022 10:39:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cfuZ09AJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230521AbiKFR6x (ORCPT + 96 others); Sun, 6 Nov 2022 12:58:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229947AbiKFR6w (ORCPT ); Sun, 6 Nov 2022 12:58:52 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F2FEB4A5; Sun, 6 Nov 2022 09:58:51 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D31D8B80C7E; Sun, 6 Nov 2022 17:58:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBBABC433D6; Sun, 6 Nov 2022 17:58:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667757528; bh=S+WnY294EWtEjtcOaVsw5jz5omtvfUMG8HmmViscgG4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=cfuZ09AJPHdBGS649GWBT1+xGTU5gCl0SNqoUUQVUA1mrvR6b9coQ16y+61f+p0M1 x9/ag8wjbaB6h8bv1BFmm7mLHznBJUcpobitP3kocXHuxqldLosxOFiod/j3P8dfcC 68x3s2uvfsnRoM5unXgLh/LBXokRr7Srw4kxcyzFrHd0l99oUKF5Z4dKSVSax6iBhW mqKzam0bwtYx8tY78Fu6+DGNebo9AvyWbe124gvPsLxW2UisXY0sfShaqXDKHBCzkZ AgHEBZQSKTAmoD6HgHyCqbJJrv9fYhytbCmT5ftWrtEq04R7fHP80HyKa6ziqzZoPY GdOkZ5MyFhzig== Date: Sun, 6 Nov 2022 17:58:39 +0000 From: Jonathan Cameron To: Antoniu Miclaus Cc: , , , , Subject: Re: [PATCH 3/4] Documentation: ABI: testing: adf4377: add ABI docs Message-ID: <20221106175604.061b8662@jic23-huawei> In-Reply-To: <20221104092802.90725-4-antoniu.miclaus@analog.com> References: <20221104092802.90725-1-antoniu.miclaus@analog.com> <20221104092802.90725-4-antoniu.miclaus@analog.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 4 Nov 2022 11:28:01 +0200 Antoniu Miclaus wrote: > Add documentation for the use of the output frequency and muxout select. > > Signed-off-by: Antoniu Miclaus Hi Antoniu, A few questions inline. > --- > .../testing/sysfs-bus-iio-frequency-adf4377 | 32 +++++++++++++++++++ > 1 file changed, 32 insertions(+) > create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-frequency-adf4377 > > diff --git a/Documentation/ABI/testing/sysfs-bus-iio-frequency-adf4377 b/Documentation/ABI/testing/sysfs-bus-iio-frequency-adf4377 > new file mode 100644 > index 000000000000..0324de5c9328 > --- /dev/null > +++ b/Documentation/ABI/testing/sysfs-bus-iio-frequency-adf4377 > @@ -0,0 +1,32 @@ > +What: /sys/bus/iio/devices/iio:deviceX/frequency > +KernelVersion: > +Contact: linux-iio@vger.kernel.org > +Description: > + Stores the PLL frequency in Hz for output channels. > + Reading returns the frequency in Hz. I'm a little confused. Should we not tie this to the output channels? out_altvoltageX_frequency > + > +What: /sys/bus/iio/devices/iio:deviceX/muxout_select Why would userspace change this? I'd sort of expect this to typically be chosen by what it is physically wired up to. You could treat muxout_low and muxout_high as a gpio (possibly high_z as well). If that were the case, then device tree binding should allow you detect that usecase. Lock detector is normally wired to a GPI so that software can check if the lock is successful (or it's wired to some other circuits we can't see). The two clock dividers should be represented as a clock provider. Note this is partly driven by my desire to keep custom ABI to the minimum because it is rare that userspace has a clue what to do with it. That is probably less of a consideration here though as I doubt this device is going to be much used with software stacks that don't know exactly what it is. Jonathan > +KernelVersion: > +Contact: linux-iio@vger.kernel.org > +Description: > + The mux output allows the user to access various internal points on > + the chip. Valid values that can be written are: > + * high_z -> high impedance output > + * lock_detect -> digital lock detector output > + * muxout_low -> low output > + * f_div_rclk_2 -> fdiv_rclk/2 > + * f_div_nclk_2 -> fdiv_nclk/2 > + * muxout_high -> high output > + > +What: /sys/bus/iio/devices/iio:deviceX/muxout_select_available > +KernelVersion: > +Contact: linux-iio@vger.kernel.org > +Description: > + Reading this returns the valid values that can be written to the > + muxout_mode attribute: > + * high_z > + * lock_detect > + * muxout_low > + * f_div_rclk_2 > + * f_div_nclk_2 > + * muxout_high