Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3642374rdg; Wed, 18 Oct 2023 01:18:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG2UVaZ9bk+z3oE7Ae5rTww4FmANampjt3vZqLoReH7mn7uvgm0TjBl4lPJmyylOc9fAgoD X-Received: by 2002:a05:6808:2028:b0:3b2:dc66:2170 with SMTP id q40-20020a056808202800b003b2dc662170mr4193069oiw.19.1697617112061; Wed, 18 Oct 2023 01:18:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697617112; cv=none; d=google.com; s=arc-20160816; b=BhMQX0m5pEPggjj7ouJ43Omb1ocKNHMdGGtGKP3bhbN6ywdTHu0HuEf+6WelYt+8f3 IFdO+dcqw8HprBKRNdhCSS5EY7ietDhP9CEABZ/df7XQh/x7teXZMAzRkfLxbkqpnKv+ DgKgc9i3FthmCM1mwZvYaN2CwaZcFYSONGw0d5IXCpD5rDLk3jL88zdo+bdnrX53l/j6 7MoN6D25NYSgKTHGvFcc6C+++cHJP85lNV8r2Tpu6uK1zbIynv5cjKNqK/83xu9sKeUf PoF6bpBmQqy3hzIisA2RkPWlybpHNjr08I1OD1E91pJMYLgwYuAy/5xQ/usfSmfx86tE mvpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=FaEmtppYZAhMsYDBHeyk5qHJOFganXNI4hJEHgjEbgc=; fh=zRdVEQhbIsS9TgmS9ehwHWdpAaMTpy7So58ate6u6JE=; b=JhCZM1Qz+bjH5skH2eq2xmqle/A0fALpcK69//J/r1Ka2Utj1cVPD4o7LiGek0XZsP bCESVkj0eRZUKaaurIzZ9Kl2sj/EiAGlq44RGbi7AxcBo2MyWHAF/P769KvDGShVtzEE ee7+y5p9ahBZ7Vm2llwvsnvN3Amgst4BXqQVM2AC+4P+ZvVTA5Nv9M3r1kQr2tXRAkS0 mKuic4+jkETRnW7Pci+jvatG68lVUa/uKEbsQWBAVBn9Ir/a6I/bot0vQty2CvPpYQNm kPQ8FH/ApeyehRCDbsn4NUrKFudOSooRILJCD8AppmkwIBhoRUgpy1oz50tYE+xCjc+0 jACA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xiFrIP6f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id d8-20020a63f248000000b005ad14d37968si1585354pgk.773.2023.10.18.01.18.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 01:18:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xiFrIP6f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 42A4D80280CA; Wed, 18 Oct 2023 01:18:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230144AbjJRISW (ORCPT + 99 others); Wed, 18 Oct 2023 04:18:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230019AbjJRISW (ORCPT ); Wed, 18 Oct 2023 04:18:22 -0400 Received: from mail-yb1-xb2f.google.com (mail-yb1-xb2f.google.com [IPv6:2607:f8b0:4864:20::b2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9AB8C6 for ; Wed, 18 Oct 2023 01:18:19 -0700 (PDT) Received: by mail-yb1-xb2f.google.com with SMTP id 3f1490d57ef6-d9a518d66a1so7646412276.0 for ; Wed, 18 Oct 2023 01:18:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697617099; x=1698221899; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=FaEmtppYZAhMsYDBHeyk5qHJOFganXNI4hJEHgjEbgc=; b=xiFrIP6fjZCSXHuVPOgbEzSqeYUB+FMSEL4NRfS3k2N3TeUnHL3edBbvuS0YtdTTnL l59zCNthfddQ/eXB8mq4AZmtREcp9+iNd15A4D+ofPxsKlZr7jxzHkd1xKwcnB5j7YCR UNSbEZW9pvsVdV1PLJprETk8dDh8GGdLuMvdwQ8TwN/JrjZwn9HJAajPZtv6N5tEbsGB pjP8dQ8hrDXRK4yTM3rZhWA4YIIophv6ZGypz/4Y+VY6fqziCcmAegx0GhgC4mMOiaBj qM5c8OTDFZ/QjAGF7UPODPsi7XQn6XBPfBMkBkHCJrWUBMft7QvrxoH2U9m+OK/kZhzI ltPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697617099; x=1698221899; h=content-transfer-encoding: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=FaEmtppYZAhMsYDBHeyk5qHJOFganXNI4hJEHgjEbgc=; b=vyeCDTnDFMT9+55dRgL8hiS5g4OFF8mDclO+QA954VjQcMH3TcapxwdwqD+4+1MKAw pwve+dXlig+1SBWzfuje6r1Rwh3+ctNuSZcVYbU7+qjE/EZ7ja8VHhDiHQkn8hA5leX8 U0n9FdAPJvRrksvNVyFpaW1yKECmotTPOxCjGdeeed02+PbhpXlBGKUCjOIRTSbbXKXK m6TLc5WleVUY7/A6ARjwN5IMxTWUVkDjhsG9q5UysV4BtT7t0miXNbbIef5EItpIg5aR OJMz0Z361cAvIytdMimP96D0s/7y171vBKUBGv7deJbZpE0iYnIIWWJ4sQASvitR6yy9 9lgA== X-Gm-Message-State: AOJu0YxK9pV/bxKeRQkQASCKFyFHsqc9D3Gw4g1gi2MnIQDQKn7XjmOI hfKoYblS7CiMHYeQPNHbJ8Aj1vd7aKB1gPpmMKH5TeXV9Hv909NF X-Received: by 2002:a25:db07:0:b0:d9b:5428:d601 with SMTP id g7-20020a25db07000000b00d9b5428d601mr4246998ybf.21.1697617098878; Wed, 18 Oct 2023 01:18:18 -0700 (PDT) MIME-Version: 1.0 References: <20231011090510.114476-1-ychuang570808@gmail.com> <20231011090510.114476-3-ychuang570808@gmail.com> <7800b2d6-33c4-4c4f-8d0c-c11ff0e47535@linaro.org> <17a80031-98bf-48bf-8cea-c0ca4400f142@gmail.com> <254837e5-a0fa-4796-8928-277db4b98bf1@linaro.org> In-Reply-To: <254837e5-a0fa-4796-8928-277db4b98bf1@linaro.org> From: Linus Walleij Date: Wed, 18 Oct 2023 10:18:07 +0200 Message-ID: Subject: Re: [PATCH 2/4] dt-bindings: pinctrl: Document nuvoton ma35d1 pin control To: Krzysztof Kozlowski Cc: Jacky Huang , robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, p.zabel@pengutronix.de, j.neuschaefer@gmx.net, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, schung@nuvoton.com, Jacky Huang Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 18 Oct 2023 01:18:29 -0700 (PDT) On Mon, Oct 16, 2023 at 9:52=E2=80=AFPM Krzysztof Kozlowski wrote: > > I noticed that 'xlnx,zynq-pinctrl.yaml' and 'xlnx,zynq-pinctrl.yaml' us= e > > 'power source' to specify the output voltage. Should I follow their > > approach or define a vendor-specific one? > > Maybe Rob or Linus have here some recommendation, but I would suggest to > go either with rtd1319d-pinctrl.yaml approach or add a generic property > to pincfg-node expressed in real units like "io-microvolt". > > Rob, Linus, any ideas for generic property replacing register-specific > power-source? The existing power-source is generally used to select between (usually two) different chip-internal power rails, such as 1.8V and 3.3V. The format is a driver-specific enumerator. We *could* just patch the documentation for power-source to say that microvolts is the preferred format but legacy users may be using a custom enumerator. io-microvolt seems like a more long-term viable option if a wider range of voltages are to be supported so I'm happy with that if the DT folks think it's nicer. However notice that the power-source property is already being hard-coded into things such as SCMI and ACPI so it's not like it will ever be replaced by io-microvolt and phased out as far as Linux is concerned. Not the next 50 years at least. Yours, Linus Walleij