Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1270599lfc; Wed, 1 Jun 2022 13:44:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8dx0QJILZ8d+7SiKyeWGIr8D9MRz1oxfXXY2MtzE6Qe/XNpaRr441pOaI8oFO50siBswN X-Received: by 2002:a17:902:e54e:b0:162:4b8b:f2be with SMTP id n14-20020a170902e54e00b001624b8bf2bemr1249023plf.5.1654116264451; Wed, 01 Jun 2022 13:44:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654116264; cv=none; d=google.com; s=arc-20160816; b=d8FPi4hPe41EQ+IvNKypqphbQkUzDgFnjubNDZgmAKWFuJSa++XBlipa1hN6szwcv6 FyG2sEXKPRZKx8OmUAQLklSIET2209eo72xwz2pYNH4bTZf1wBFVcJAPMFUXgVSktBl9 d0EjAOgnbBZ/B5vS0ifpp6Mc6J4WSLLYZThVtvs7TrtnwNh0i7HlWOlQDHtAYmSSFNh4 fGBRe/nH6jO8t/2XS6Od5BuwB6spkSs02Y5klii93NidobURaurmnCqBSLl9C4V3QfDM UGSnO75Bh1vpMEZH5oRaaP4L6RQvsQNjMplS/rRcDTSX6ndtFOxsIA/96V9bmD40vOYb BsQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=pbjYW1S77qeMD4c9U3lHv7h+lP2dOsOyvN4qDcziEo0=; b=ZbYNU4cOLBxpAR6I3FM144WwaKOosP4J0GyRrKhXMPTH+EwtSh30q0lbxdVjTr8lV/ T0CxSvdW6O7qKsDVzfNk5L9OiW7gLW/2l2CjfOWilmAw+g7mZaxvLP08Bdo/KgyS9J4v i2ZpTh/6O6rr5/+UENqtJ6BhyAW6McgcXibtXFb+/d5ZkoGfERyYCmdfxuVuWJwZtbPy HSPmXVNlZGPTJgoMs2jgRRNANaN/XTEGA2hnlUUKyWFW3c2MbwEG/KqIIHxJTkGqPpI4 lJGu3VAnqNVW/m+t3/kqKjn5rw9dYKw7x26zmAgAdcu1MhpC+2oh1mkhZLZXzL547mtJ wIZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=C5pk1xLl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h19-20020a632113000000b003f64566e163si3375222pgh.164.2022.06.01.13.44.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 13:44:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=C5pk1xLl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A51D129C106; Wed, 1 Jun 2022 12:51:35 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347906AbiEaVQ0 (ORCPT + 99 others); Tue, 31 May 2022 17:16:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346313AbiEaVQY (ORCPT ); Tue, 31 May 2022 17:16:24 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B58C9CF1D; Tue, 31 May 2022 14:16:22 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nfraprado) with ESMTPSA id E80101F43EB2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1654031781; bh=8X/Ojz+FGTuRQ5jA25wjSSQqOhrJ7O4PjLJxLYdEHMc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=C5pk1xLlV2Cr1FAMqGFilb/Mdlt3WOE36NolfY4TAmFMku/oWkJf7HgczZZRWt1tO ZlE97EuEn+7QBXGj+DbRrOmZVeg2oD8UG7kUmpiHYq1wMCShpc5aMPGum17UILhIZJ 24qi0I2KwfZbHsq9+ui2+Y1ABYz7bxV+ynajL+XXwIKTJoJYPWzDc8NlfvmsLfF3H5 NdYU4oFMOnAtvS2q0F1lObyhM/AzRd+5Wf5Khmq9735dYtfrDkSHirsk4McWvmQt+r aVy40nL/72wqdLolmjgKtECxrSzz1raE6ClsihfFPVqr+KOQBCDQCa5pSVz3Ms94wD szS+ElZvXeRZg== Date: Tue, 31 May 2022 17:16:16 -0400 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: Chen-Yu Tsai Cc: Linus Walleij , kernel@collabora.com, AngeloGioacchino Del Regno , Krzysztof Kozlowski , Matthias Brugger , Rob Herring , Sean Wang , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH v1 1/2] dt-bindings: pinctrl: mt8192: Add drive-strength-microamp Message-ID: <20220531211616.vq73g6r4vrxxahqe@notapiano> References: <20220525155714.1837360-1-nfraprado@collabora.com> <20220525155714.1837360-2-nfraprado@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=no 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 Mon, May 30, 2022 at 04:48:51PM +0800, Chen-Yu Tsai wrote: > On Wed, May 25, 2022 at 11:58 PM N?colas F. R. A. Prado > wrote: > > > > Commit e5fabbe43f3f ("pinctrl: mediatek: paris: Support generic > > PIN_CONFIG_DRIVE_STRENGTH_UA") added support for using > > drive-strength-microamp instead of mediatek,drive-strength-adv. > > > > Since there aren't any users of mediatek,drive-strength-adv on mt8192 > > yet, remove this property and add drive-strength-microamp in its place, > > which has a clearer meaning. > > Cool! Thanks for taking care of this~ I was looking at this and tried > to make drive-strength and drive-strength-microamp mutually exclusive, > but since they are optional, it didn't really work, and I put it on the > back burner. I didn't think of enforcing the properties to be mutually exclusive in the dt-binding, but that is indeed a good idea. After a bit of head-scratching seems like it is possible although unintuitive (by using 'required' inside the if block). I'll send a v2 with this restriction added, and the same thing for patch 2, since bias-pull-up/down also shouldn't be used together with bias-disable. Thanks, N?colas > > > ChenYu