Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp181856rdb; Thu, 21 Dec 2023 06:25:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IGLHBOtygsh/ZjjOmeqleC90YIZAPeDyzPUb/+vkWcHBvKrEoJ9PQxXTIVjkf926V8UsA8/ X-Received: by 2002:a05:6a00:855:b0:6d9:3628:d50e with SMTP id q21-20020a056a00085500b006d93628d50emr922419pfk.32.1703168713284; Thu, 21 Dec 2023 06:25:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703168713; cv=none; d=google.com; s=arc-20160816; b=0njTIGuMif8axx3QSvX1dmeZwnJP39e73QVcouxCBRawb6gzm6lxa6Ml7uON8c9Abg /CZJEaMhoMd+ATyGmig9VWpmkj0DyF5FqSXSC2uCZ6BorbKoxe/Ytp8xgckynhGdeF5B 84KZMCIVYobJpZx+fjQH+E42WQPttZgt0K/F3rdqAYBJNSd1FknCFKi3CmEXruhtDCL0 tm19zIplsArXnZde942nV18rWH/NeUS2FQcvXWrUPk+gcO2MsJ3TXPmILtb/CikLSW8M /VDXI/mRmoA/taSHBjFYNwR/l8z3KDWiinFOPWQM2MRizC7AEsSdLHckGzUItjb3iJ1i YjWQ== 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=YSFGFVOxlECeWrb1201TBHQMqNul2EH+RYRBpW3Owdk=; fh=++3hHMviUzDluSbFZkBB93XgJaeafJim7zdZbPJS3CA=; b=eWUR0pOkYvzCoZvM/Q2gUuxY7LDFlfzcrW3km94ks7pL/NsA8oq3Ri46HOMvWBQ3Bi YgjSWcsRApVCH/WfW6mRHa2hjs4BZu70qpRsyL1V/SzipkzFwUji/Y7z1qOxG4ZvJ4C9 yDr53Kb8MUBxwrnfAiFvNtZumarXS2QQUTIOMCULLvJX691uKM70JnNCmDNrfZ+hmHOb UBZCCMoMs/Ngimrx8Ne8AWx5dFI4t6MN1ayjm3MVa71U8VhcOho3WOYB6HS9jAuPD1uV DJaKDgDuhaq6CIDpzoqzztvhjymfdhJWA/3U0gnDrjdgiGPo/yh1yoO0jddo0ZHetXEV SJHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=VwVRVV2U; spf=pass (google.com: domain of linux-kernel+bounces-8553-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8553-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id x28-20020a056a00189c00b006d96368c41esi1650436pfh.192.2023.12.21.06.25.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 06:25:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8553-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=VwVRVV2U; spf=pass (google.com: domain of linux-kernel+bounces-8553-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8553-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3CBF5B23747 for ; Thu, 21 Dec 2023 14:08:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B1ACB6D6DB; Thu, 21 Dec 2023 14:07:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="VwVRVV2U" 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 6DF856D6C8 for ; Thu, 21 Dec 2023 14:07:46 +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-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) (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 AECC73F16B for ; Thu, 21 Dec 2023 14:07:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1703167658; bh=YSFGFVOxlECeWrb1201TBHQMqNul2EH+RYRBpW3Owdk=; h=From:In-Reply-To:References:Mime-Version:Date:Message-ID:Subject: To:Cc:Content-Type; b=VwVRVV2UVwXjf8JlJDzV3fN24W/UzOytMCEbJrXi7MlRdL8UvxWG8XKQCNiRX2IEu LXuDXj4OhJql4WQkiytPmQ+ZYvYYBIxnB7cYN6aB13g9cHm5yHZL0bNiU9vobyeWlD RXtbFcpaEEbrt9gJOvYAaTGiYpFwyn+m1wyagzV/vQy5usCyIa2S3QLLJ+pifiAlDw yQeyPdjUDeoJvFWrSHFWC9FOHgZ11pPWDUVKyXkwMp9H+A5+Hgu2JAqB/KVPbZn2+d qxlm8NiaSF/J+KKi6/nG8cZ8m9WPjY3/KNZnxG/F2jF2Iw84lp8pnZ090oI9pCzo5+ w5hAHPGJJA/Ug== Received: by mail-lf1-f72.google.com with SMTP id 2adb3069b0e04-50e4dfdb01dso717960e87.0 for ; Thu, 21 Dec 2023 06:07:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703167658; x=1703772458; 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=YSFGFVOxlECeWrb1201TBHQMqNul2EH+RYRBpW3Owdk=; b=Mku8UmN4aCYIz6qzvcKKDQbXNvjRCuQKUZNjPzplbCmcc99JlZ44AJt3IQrGJ56lHv yDyeWeZV7tNRUymY7ShHGFLVLyx9LydR2/w9Xd6Yv2D46feTZWZRhzLFsIeyok21PLov STn1M9w0E7I9Q0itKpECcftwLGJfY0fJlxg5vV1uCVsoSrI4D6uiq6j9f5IA5RuzULO4 u2HXvSmcgRPNIsMvzHmrVeQEqM/zmmd4CIrvwf7kDXB5aNcBwysJJi+eXbm/lDwkrykp 6wMJqps+NNG+pO4e/1kTqIwMMMgqMfgT0+srQesdoqtkanEvOHNyLT/TYdkScs8o/ozo XouQ== X-Gm-Message-State: AOJu0YzKkEx6Ftoj1LcW8FOkQ4pir4ix3EWtLUogdrSwoUHnfzkK699W WLPJuVR4k7zmJWYLrm6bVfKaj60BU3y+X0O3n97hp9vRrfb5LMbz2ONxtLg3cMSEWXs+wdKlTmo ZQeiMtSKe1rL+pdTEHfcp+UtUMSEiMKz7+LqRih6vU61kkPY02GZpT/0U9g== X-Received: by 2002:ac2:5617:0:b0:50e:29c1:f829 with SMTP id v23-20020ac25617000000b0050e29c1f829mr3635667lfd.74.1703167658224; Thu, 21 Dec 2023 06:07:38 -0800 (PST) X-Received: by 2002:ac2:5617:0:b0:50e:29c1:f829 with SMTP id v23-20020ac25617000000b0050e29c1f829mr3635656lfd.74.1703167657892; Thu, 21 Dec 2023 06:07:37 -0800 (PST) Received: from 348282803490 named unknown by gmailapi.google.com with HTTPREST; Thu, 21 Dec 2023 09:07:36 -0500 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 09:07:36 -0500 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 Thu, Dec 21, 2023 at 1:28=E2=80=AFPM Emil Renner Berthing > wrote: > > 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 independen= tly from the > > > > regular pull-up/down, so in theory you could enable both the regula= r pull-up > > > > and the strong pull-up at the same time, or even the regular poll-d= own 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 (fig= ure 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_u= nits_2 > > Yeah hehe elementary electronics beats me, of course it is in parallel. > > > The problem is that the documentation doesn't actually mention what wil= l happen > > if you combine the strong pull-up with the regular bias. > > So why even allow it then? > > Do the people designing boards using this have better documentation than = what > you have? Then either get that documentation or just don't give them > too much rope. We can certainly prevent Linux from ever combining the strong pull-up with = the regular bias, but that doesn't mean that the vendor u-boot can't find a use= for it and might hand over pins in such states Linux then wouldn't know how to handle. If you think its better we could just postpone that problem to when/if it e= ver happens.