Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5618539rwd; Wed, 24 May 2023 04:39:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7v2qcGW4/uB7vOXTRC5Zj40yXLfo79QSdThkxNA/KpZMNTbh86sZF6hR5ZzTiZ2sF99Xj+ X-Received: by 2002:a05:6a00:98b:b0:646:e940:c2c4 with SMTP id u11-20020a056a00098b00b00646e940c2c4mr3117810pfg.14.1684928378246; Wed, 24 May 2023 04:39:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684928378; cv=none; d=google.com; s=arc-20160816; b=n9YMc6YSt9C54nJbxKiWQsIu2neVewW97qSGL2W3yD4Kyr/Dc60lgJxNMTJw0MgFYu wYnQiSxThptn1AEZRXPKbLun2oq9x5RxLO87iRPoxNTZ7fMnw0la95K6XIvk55IyshOw 8Dt0/ryFeSfpIR+Pr0wfpO4w+vkOCTT4bhBmbTVVGo+UrkrPhpGE0yEHrv6ClwR255ZT EYInFLh0x70pIvIh4CbX4/3RBNRLi7I2zYN53BUuRUd99/K5k1daVoBL5j7/JN7ZjUxv 67lMm+AUs7HoLY75T9b2G3Z2NIuoZFOFnaYljfp6/+wJWiheX81sqQFvydc6gsfuK4UA zSew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=oCm6OKqBd9FZs5dbQajMLTNl/mBBTw3OR4x7693gBrE=; b=Ne0knyQfm41w0JNaa4k0GkkaPHC+Z+u8gBJVY3BSwQzQ3gxIJuwb94HT8jsrWk+YpY OXzuIZeGUlVu1iLabGMe+/7s34dt7ou8zxnQS8shInjUyuSocCTBsgAaYvCpcBKdM5l/ 3h/l7Uz2MI5HmfYTP9m60QC9HjeKGht2h2JR0z4P3K3wuUXYdF0FsMynFUXd5jrj/+9G Et5acgwOlvv0xZZU9hKDDdEZ1V7NHRLGyepkwoXrHCrkFURrQERz/xZPz/XhefxX5qQj MV1yXcYfBSxrnZXe/7fgfLGf7J2+lE0AikknzfQLM4p2GO1xRZ22dbkNcYsYS+fOEIHo Qi+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=I4cLiQTI; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z1-20020aa79481000000b0064d72c6eab8si1397207pfk.270.2023.05.24.04.39.23; Wed, 24 May 2023 04:39:38 -0700 (PDT) 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=@gmail.com header.s=20221208 header.b=I4cLiQTI; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231383AbjEXLgv (ORCPT + 99 others); Wed, 24 May 2023 07:36:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbjEXLgu (ORCPT ); Wed, 24 May 2023 07:36:50 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C30F5194; Wed, 24 May 2023 04:36:45 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-970028cfb6cso143723466b.1; Wed, 24 May 2023 04:36:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684928204; x=1687520204; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=oCm6OKqBd9FZs5dbQajMLTNl/mBBTw3OR4x7693gBrE=; b=I4cLiQTIHzZm8sBtmVFsdKbYNOnsZaNirYxqf6IUwmR/TVcrTxYzng5ZcIlrMGi3nJ NkK6nRvGj9klSbim8whLvYb4lg+Re/RXvex9vQKI0PHxP3CHoH1IvY4656ENSpmkKITU e7MhLmPx7pR3FJ12s2edRbrhtWs3KgNZX0XHKDIYTOaYfI06HSw8kqVCv9+WY7CDShQk j/BtXX7LtGKvj+BbfGj4HaOh1vvDZoxhL2KhyW1JVdeZZ6mgB8Adx3wn7rNJjOh2Wqtw V4hIa5AUzBdiOnM+BPnzj0UvpdnIs5pGhgDmgFobJO/+VP+p73wJMIGQ9ROnIgid7JXi GTUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684928204; x=1687520204; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=oCm6OKqBd9FZs5dbQajMLTNl/mBBTw3OR4x7693gBrE=; b=k8NBXteQDXvTGlYqsrTkDUpAH21GRYN4fMzXOqVRCTO+b//13fAOupcWdByNMqDXTv ysQTG6jn5Qy65XnyAhLDNTaCyLrgPCmyz4IL4y00pqJxH4BqxKeWxXXCX+B+g57zBPO6 wSAMjP2EEykWcog9kaOkal8c9ClaDbHGTcLJML2p2kPEOUVbo0Y555ePk4IeY1RTkAkr MdfaOmn1wO3C8d1IFYvJ6dq5NxgOi1lKcLzTBkAGtvYIeF/gFb7sflz0ySKHGdOzfwiS 1LzZvEexQ8BjPSdN7Cjm4xHARngNd1MnIeDd4+l64V/cfM4nfKblMzBj5hSkFfSpvaxW D3JQ== X-Gm-Message-State: AC+VfDy/2/33cWpXMte6+bSu/7jdiWL6uePvesQI2yvNi7/yQtY51DI+ Kp6yZHfdrseghwP5UkAvi7NDLPF1JaH3UQG1mW4= X-Received: by 2002:a17:907:6ea2:b0:96f:98f1:6512 with SMTP id sh34-20020a1709076ea200b0096f98f16512mr15842859ejc.41.1684928203919; Wed, 24 May 2023 04:36:43 -0700 (PDT) MIME-Version: 1.0 References: <20230524082744.3215427-1-bigunclemax@gmail.com> <20230524103431.50c6a2fd@donnerap.cambridge.arm.com> In-Reply-To: <20230524103431.50c6a2fd@donnerap.cambridge.arm.com> From: Maxim Kiselev Date: Wed, 24 May 2023 14:36:28 +0300 Message-ID: Subject: Re: [RFC PATCH v1 0/4] Add support for Allwinner GPADC on D1/T113s/R329 SoCs To: Andre Przywara Cc: linux-iio@vger.kernel.org, Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel , Heiko Stuebner , Andy Shevchenko , Cosmin Tanislav , Mike Looijmans , Haibo Chen , ChiYuan Huang , Ramona Bolboaca , Ibrahim Tilki , Caleb Connolly , William Breathitt Gray , Arnd Bergmann , =?UTF-8?Q?Leonard_G=C3=B6hrs?= , AngeloGioacchino Del Regno , Hugo Villeneuve , ChiaEn Wu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi Andre, thanks for you comments > This may sound kind of obvious, but wouldn't it be easier to model this > with one compatible string, and have the number of channels as a DT > property? Yes, I completely agree that using separate config for each SoCs is looks overcomplicated because the only difference is the number of channels. I thought about a DT property with channels number but I didn't find another ADC driver with the same approach (except i2c ADC's with child nodes). > Or, alternatively, using iio/multiplexer/io-channel-mux.yaml, since it's > only one ADC anyway? I'm sorry, I didn't quite understand what you're suggesting. > And btw: it seems that the T507 (the H616 die with a different pinout) has > the same IP, with four channels: > http://dl.linux-sunxi.org/T507/ Oh, thanks for pointing that. I'll add it to the list in the next version.