Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp111867rdb; Thu, 21 Dec 2023 04:30:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IEfQVNYlRkfYFGBit1SPifihG9gOa8UdEJVi/Au/5kKX2UFrEJw8sxKHzVhPlYtXV7mbLlp X-Received: by 2002:a05:6214:caf:b0:67a:aa87:7ae2 with SMTP id s15-20020a0562140caf00b0067aaa877ae2mr1140229qvs.40.1703161834881; Thu, 21 Dec 2023 04:30:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703161834; cv=none; d=google.com; s=arc-20160816; b=G+2hy58ABJSFMAUscdtr6NoiSQJLhBbevV3UJ6KYGc8R6j+Wa3jX5x9/Lpge3L5oyq C9jj/209cnE0PChGRR31cvnGb1HcuQ/5QY7de0mmZXuhbE6tLXGwHQ6XF5zSAWqalcCg +0V6S4CeVTg6OzdkJauucDN/8vbsYC94hsT4ye7WC5by6AyiH0dEO8VKzTpixNED1Nmk yWQH2M8bqkCsaafqxwZAAX9RJeFbGl3XUwc66eadEuYS/pRx5/V1xb4YnMe1O1AYZ3im TnyviHb3TyHETmdUq/TAguAeptykIkw2mOI8hG0x6wXVkB3D1CtS88E0n2webIUER0h5 FvaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:from:dkim-signature; bh=utwwjd3w/GTj0TOYQ7r9hzEA4xysvpOk2/pKVIn6Dd8=; fh=++3hHMviUzDluSbFZkBB93XgJaeafJim7zdZbPJS3CA=; b=m83KdPJ1UT4+jm4YJnFTCKGQ30zS60WqReWE43lswaqyQT2tmUPUpDA8/cljHJw4H3 5bVmWTGIUNrIK/N538D2xetYnIregSjGf9l0NvtRnYx9e4uuo5/G54BTkqhMr8DcekfE m8R1Iec1A/spqfDpLzWvjrbKmr9hBsVPTYUyavr/OkqiMmUiQaUWK23ed7URIy7Mc3iK 761z/SMT63X8V50i7LZXaibUIpxuRRv7t+xuzxz4vsC7gSng1fpXlgJCSJv9cPlqMLcI j/avKN0KdFEPVH5YCwuysBPEq5ve6unWkKjNZzXLG4w8tYFdq8qkVaVy1tppFgdPz+lV /7Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=sEPmDJlC; spf=pass (google.com: domain of linux-kernel+bounces-8336-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8336-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id e25-20020a0caa59000000b0067ad7adc2d8si2015499qvb.475.2023.12.21.04.30.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 04:30:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8336-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=sEPmDJlC; spf=pass (google.com: domain of linux-kernel+bounces-8336-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8336-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 773651C25431 for ; Thu, 21 Dec 2023 12:30:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3ED5E6E5B6; Thu, 21 Dec 2023 12:28:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="sEPmDJlC" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0BA6D7319C for ; Thu, 21 Dec 2023 12:28:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canonical.com Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 5B6A73F73D for ; Thu, 21 Dec 2023 12:28:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1703161730; bh=utwwjd3w/GTj0TOYQ7r9hzEA4xysvpOk2/pKVIn6Dd8=; h=From:In-Reply-To:References:Mime-Version:Date:Message-ID:Subject: To:Cc:Content-Type; b=sEPmDJlCtPhMZGGX4hMs+N+3/syHVA/APg4UwTnQJVaHFmr+wbOUuahWGaDViWudv EvCw6KkxFIKDjITVYFtqk7U75uHyK8E2sTLMiERZNEq1RKRdnQ5hwGj2/63pQCTX8U wENGR2PXLhpUx5PLtOr/egjp2fx9QryJHWJxapjSQGUarnf4FF/So3maUtWc4+9O9N f+iYUaYIHJsaczpv/O4ELBBaec8LWv5KDcV6z5i6DIXqZwsTE/h7Q4ZPkmWPWK7T1H ql2XLUDnG/9+9IJzLf7fqgQCzGiPN4XazpgAYpXO6sNEb32LmzuMIsfsefI8+Lyq+u +soPLWhoh0r8w== Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-781029a475bso122172785a.0 for ; Thu, 21 Dec 2023 04:28:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703161727; x=1703766527; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=utwwjd3w/GTj0TOYQ7r9hzEA4xysvpOk2/pKVIn6Dd8=; b=O9Spzm/ctZrimpIvs7ipm2TJvXX4F6ZO78qTgHm9ksWtgs2m3BXm/QlfE55kDYvIwq pAOA+J/shmBhECOuyiQFvpxzIS1ikqJpGG6G07ynMFQR5jnmAw3dVWl04QBssO6h1N9g w9zg+vJMvSVl1xdZPh4KZsMuliZDu6tFETwNRkxShA9JcEuQQ7AP2YAiwGJf3Zfjl0nG JnA1ES22MqOtgFeRvIHXWxdOZ6ES8bRPYCTSTyuGx9RYU/HCkFCJKHIE8mqj5oYtBaAZ 4HiYgPc0vwh00ngVkd4kCi4nYRFQRb9vFdtxqDdxXW0XFb9LOkrzHqtn6I8Hw1sOVvHs b2gA== X-Gm-Message-State: AOJu0YxhMo7IlT0JQGifcdJeffaGRObcPedXQIpZzSXxO07B42LX6cL6 v/eHsu12gIuyEDQhkuuDc4D87Qla7q9D38LZocAi/n2ml2I0c80ckhFHMlnF2T4q5vFUEf5eE3c qfCwJOC1nUT3leqV8WKOslFRtYUhDq3WLGd+fbt89nbTCwT3doMwiesL8YSz3ZK8I X-Received: by 2002:a05:620a:3dc:b0:77e:ffcd:2728 with SMTP id r28-20020a05620a03dc00b0077effcd2728mr897514qkm.53.1703161727419; Thu, 21 Dec 2023 04:28:47 -0800 (PST) X-Received: by 2002:a05:620a:3dc:b0:77e:ffcd:2728 with SMTP id r28-20020a05620a03dc00b0077effcd2728mr897496qkm.53.1703161727167; Thu, 21 Dec 2023 04:28:47 -0800 (PST) Received: from 348282803490 named unknown by gmailapi.google.com with HTTPREST; Thu, 21 Dec 2023 04:28:46 -0800 From: Emil Renner Berthing In-Reply-To: References: <20231215143906.3651122-1-emil.renner.berthing@canonical.com> <20231215143906.3651122-2-emil.renner.berthing@canonical.com> <20231215202137.GA317624-robh@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Date: Thu, 21 Dec 2023 04:28:46 -0800 Message-ID: Subject: Re: [PATCH v1 1/8] dt-bindings: pinctrl: Add thead,th1520-pinctrl bindings To: Linus Walleij , Emil Renner Berthing Cc: Rob Herring , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Hoan Tran , Serge Semin , Bartosz Golaszewski , Andy Shevchenko , Krzysztof Kozlowski , Conor Dooley , Jisheng Zhang , Guo Ren , Fu Wei , Paul Walmsley , Palmer Dabbelt Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Linus Walleij wrote: > On Sat, Dec 16, 2023 at 2:57=E2=80=AFPM Emil Renner Berthing > wrote: > > > > > + thead,strong-pull-up: > > > > + oneOf: > > > > + - type: boolean > > > > + - $ref: /schemas/types.yaml#/definitions/uint32 > > > > + enum: [ 0, 2100 ] > > > > + description: Enable or disable strong 2.1kOhm pull-up. > > > > > > bias-pull-up can already specify the strength in Ohms. > > > > The strong pull up is a separate bit that can be enabled independently = from the > > regular pull-up/down, so in theory you could enable both the regular pu= ll-up > > and the strong pull-up at the same time, or even the regular poll-down = and the > > strong pull-up which is probably not advised. > > bias-pull-up; <- Just regular pulling up the ordinary > bias-pull-up =3D <100>; <- Same thing if the ordinary is 100 Ohm (figure = out what > resistance it actually is....) > bias-pull-up =3D <21000000>; <- strong pull up > bias-pull-up =3D <21000100>; <- both at the same time Hmm.. the two pull-ups combined would be a stronger pull-up, eg. lower resistance, right? So you'd need to calculate it using https://en.wikipedia.org/wiki/Series_and_parallel_circuits#Resistance_units= _2 The problem is that the documentation doesn't actually mention what will ha= ppen if you combine the strong pull-up with the regular bias. My best guess for = what happens if you enable the strong pull-up and the regular pull-down is that = you create a sort of voltage divider. But how do you represent that as an Ohm v= alue? We would kind of have to, otherwise the pinconf_get callbacks have states t= hat it can't represent. > > So the idea here was just to make sure that you can do eg. > > > > thead,strong-pull-up =3D <0>; > > > > to make sure the bit is cleared. > > No use bias-disable; for this. > > Yours, > Linus Walleij > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv