Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3988060imc; Thu, 14 Mar 2019 09:38:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqyAg5NVbANFDF5jPBmvAtaQayqMlo+0L3Xl9IbOKqZLI+vnLby6l8vbRxAP0/zJ3C4fxSzi X-Received: by 2002:a17:902:5a41:: with SMTP id f1mr10325563plm.202.1552581539058; Thu, 14 Mar 2019 09:38:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552581539; cv=none; d=google.com; s=arc-20160816; b=wbvexpQVE0TmqrvZ4SPowTXfmA7Sli+DiKgg0uV7kxpdxTJhlcPrY7bn++jbfseDee /8EEiULsbb2gnpYOZ2cZIlNWFUuNLpFjMxfEZNvJO6OhmK5AXC+0lM1n2mnPPhRGrEdv hZt4bjlxxIAtL73lLX91speJ3mcNoObNumi1GUPLs+5AlQSI4ABrYKnbnQ7sgSdZIsLk 6XKWRccMMxE3iUh6On0qJwveSCEv8sMrfWWJFJk7Il5thrIryDAsxDKuJMCLq3M5ZHpN i52OTJaRH3xq7J/1x9SdTkPBN9z7NZrjP93qg4/TNt08UJRgKmHM+BOx/nU0YjnoeegV +czQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=dwBoD1sDij0jsG9awwD4X8EaqLlNFJrsNhL/sg7fZs4=; b=VoG5RuZAFvIH08fpsCwIk7hbixmbs0I1+URkMNdBxWU9Px/9M40gqm43pWN9m/zG81 wY0TRk82ePlAMkxiZcwiF2j0vA/CMF6eDmhFHt9M1jJJZ+KUHpomMM8irRek49gr740B xQuek8GM9qMQ/EoFcXC2L8MytvgLMM5xrXeYjqgGMossaXgqCJrb47zJmGyGEePFcmZd FxNC4ustwM6FCoOdU/q5YcOVHJ7YzzuHMwMk8CP10xkXBt8YdOwkd3m7j1RrOKJpLNmd W413n46oZF9hwpp4dpYrcXGyu8hOa44l+zwKr12CBxcPsidXbeM1WIFHok5+PGh8j40Q MQ6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=2C1BnO+e; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d11si13848567pls.255.2019.03.14.09.38.44; Thu, 14 Mar 2019 09:38:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=2C1BnO+e; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727445AbfCNQhf (ORCPT + 99 others); Thu, 14 Mar 2019 12:37:35 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:50293 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727247AbfCNQhf (ORCPT ); Thu, 14 Mar 2019 12:37:35 -0400 Received: by mail-wm1-f68.google.com with SMTP id x7so3738659wmj.0 for ; Thu, 14 Mar 2019 09:37:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dwBoD1sDij0jsG9awwD4X8EaqLlNFJrsNhL/sg7fZs4=; b=2C1BnO+e4y1GwCrS1NfwUUMq1/Fa5o3j6RsYEUcswvhmhrYWDk8A2bYUkhUpaBAoiW zAdsrQlZVeoaZE3V2Qd0J9iuOBNut/uIf7s5DaLkqL1aNdv+Jx+YrzA8ht00YaxpteHY 0TU+FRBcDi9wSoeb6jlazARzfdfNWd+S3uufrj80hGTVCcpyZnAqCUGlOCuaye/qqicY UCJ7b0m2JQBFNyTYHww9e8peZWWzr/GfMc9yCCjVMbj49pFX+vFxLjbY1+N/JeHTKTus oAl1FA+vppJy8FJb0YKubDPmDM0Z7yqBLdJe2R1c85Yo80EtpAaoSrpznnvmv6tkoHfq O5Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dwBoD1sDij0jsG9awwD4X8EaqLlNFJrsNhL/sg7fZs4=; b=S+kjRL8YPHAiMjmmBeI09cHZhFvwwEl4dlcfoI06HOb8+g1O+lMucgdQwYZULQdNWs 74Mmjuc9LFU6UhVXhBGYfceVjIoacq1XHlWiGLjrVF24ZWRCio/Drt0qKR6gjs6wBQ/B HvheeRZt4j0oDfxbgq2W/+pwusWzbqixL+uXdDU6A7BMxQffCfpgo44o1EDHq/JGk22r gfrzC7yqkfPHXc6eI+akrDqk7HvM82sHyRhxrXTukNfQXP3L1PoL6VfTi96BhOH+jfaJ hT+A/vcgBozOifRgmJ05E3/5iqmPUSRV4mDiqqWUpebPXl841hPlihiyssARfPV38jlw oHWA== X-Gm-Message-State: APjAAAXYyv2rf+8BA1Cd6Cm46+TggR35igS8YW2BKA95bq9VuezuqqL1 gC0P8d+Dz29OrRYTYcsvq8LO3Q== X-Received: by 2002:a1c:c90e:: with SMTP id f14mr3065130wmb.23.1552581453702; Thu, 14 Mar 2019 09:37:33 -0700 (PDT) Received: from boomer.local ([2a01:e34:eeb6:4690:106b:bae3:31ed:7561]) by smtp.googlemail.com with ESMTPSA id u17sm45003315wrg.71.2019.03.14.09.37.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Mar 2019 09:37:32 -0700 (PDT) From: Jerome Brunet To: Linus Walleij , Kevin Hilman Cc: Jerome Brunet , devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Guillaume La Roque Subject: [PATCH 0/2] pinctrl: meson: add g12a drive strength support Date: Thu, 14 Mar 2019 17:37:23 +0100 Message-Id: <20190314163725.7918-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The purpose of this patchset is to add drive-strength support in meson pinconf driver. This is a new feature that was added on the g12a. It is critical for us to support this since many functions are failing with default pad drive-strength. Now the slightly annoying part :( The value achievable by the SoC are 0.5mA, 2.5mA, 3mA and 4mA and the DT property 'drive-strength' is expressed in mA. 1) Rounding down the value, we could be requesting a 0mA drive strength. That would look weird. 2) Rounding up, we can't distinguish between 2.5mA and 3mA To solve this issue in this in this v1, we chose to document that, on Amlogic, drive-strength is expressed in uA instead of mA. It works well and there is no impact on the other platforms but I'm not sure this is really OK with the DT rules ? Linus, if this is not OK with you, here are 2 other options we are considering. We would be very interested to get your opinion on the matter: 1) instead the generic 'drive-strength' property, we could add an amlogic specific property, 'amlogic,drive-strength'. It would be expressed in uA and parsed in amlogic specific code. I think this option is kind of overkill. Expressing drive strength in uA is not really amlogic specific so it does not make much sense, but it would work ... 2) Add another generic property "drive-strength-uA". The change to do so would be minimal and could be benefit to other platforms later on. Cheers Jerome Guillaume La Roque (2): dt-bindings: pinctrl: meson: Add drive-strength property pinctrl: meson: add support of drive-strength .../bindings/pinctrl/meson,pinctrl.txt | 3 + drivers/pinctrl/meson/pinctrl-meson-g12a.c | 36 ++-- drivers/pinctrl/meson/pinctrl-meson.c | 166 +++++++++++++----- drivers/pinctrl/meson/pinctrl-meson.h | 20 ++- 4 files changed, 165 insertions(+), 60 deletions(-) -- 2.20.1