Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1255480iog; Tue, 14 Jun 2022 02:25:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkqWgDyxLXz8z2y/BgfuZsKBcXdwOc0Z0QUVq+Y0QrNRPKsourZbfTMJL9c1Gu03Bd1n7s X-Received: by 2002:a63:f312:0:b0:3fd:12b7:193b with SMTP id l18-20020a63f312000000b003fd12b7193bmr3596705pgh.9.1655198730625; Tue, 14 Jun 2022 02:25:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655198730; cv=none; d=google.com; s=arc-20160816; b=gedLZe1Sewgk9LE+jeF8eh1K2ogcz3JO6o6pj1y2BZkGzZwWKAB1ffcwU00quMJX7D SkrDHdYmSQQM1BVSRCHopUex+3+qOEMNaSJl6iJ5h1XcCQ4IvdbQlT1UmwWZI1jSugHt wxDqpbdrTnD6hyEr/fOsJovY4UtEG+rRHd5u8f4RALhrQyd1IQiq/mTtyN92r1i2+bB0 PiywlTUL2GVoStWeoihJROrASS5WSsv2oFPMDUbL6SLQpiQiZafSDDPKi/PUZWmDupiA O/+aTxe3XYSGUh+HlInfmHF5ouZfJuNMy8t3wNyv+0Vb1qO8QJULtyiOO0NFnpKeD6t2 K4ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Ij41iYIrsaYScwS30JeqaDifxteKwIBwdtXN2yvAeBg=; b=HxsDxRWlwCInMUFo5Tn4gaoORu0ckTmoa5QQdf8CH3/yScl/VYlV6R8c8ntX1Skjyb 162MWWgSbvLsuuJAKidECzlECO/i/cKKM4nA2WqR3n5xOB0VRlCeKT+pWhwPnBj4MDYZ uoxdcYDcd4HbhwKeeIikIC1TzWLtuvkd8AUKxGKvU3jUbGizj0WyqGyGJjmn7JzXFbyL ZXSN6uAh1MvDA9arI6VWBqY9PNzfn/EsewKShq9OxuBvUZfF4c/WkLuOkU6fwCJD/wat LOW8xLH6RzusI5Jp7ucQ2aWRnb3wpUYPfdMQpIV1vCVlJUduZFBB6kZ22gV2DZdFZnoN R4jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=b3TVykTo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oo15-20020a17090b1c8f00b001df891c9ab8si19273357pjb.47.2022.06.14.02.25.17; Tue, 14 Jun 2022 02:25:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=b3TVykTo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241170AbiFNIql (ORCPT + 99 others); Tue, 14 Jun 2022 04:46:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241702AbiFNIqW (ORCPT ); Tue, 14 Jun 2022 04:46:22 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9ED54433A1 for ; Tue, 14 Jun 2022 01:46:19 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id y29so8921392ljd.7 for ; Tue, 14 Jun 2022 01:46:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ij41iYIrsaYScwS30JeqaDifxteKwIBwdtXN2yvAeBg=; b=b3TVykTo337jeVgLKyyE7dHh4PorhizQMUTCOrLnEdrkBsT8zv+H8A44Otm10TVuZC YUY590z5NPAJSYNH/9KYhGVd915VuP2yOVtUFoI0hFrN8BeckzXNMg1EYCBHz4JNBfif F9tkV1fKUxpsUEFWuGpMyudCeixMG8Gtml0Ug= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ij41iYIrsaYScwS30JeqaDifxteKwIBwdtXN2yvAeBg=; b=18K+L42d6mG3vscb08UC/ZRHGrO3y+guBnsKwGLG9O8j0kEyCcIvm6d+8iEcWdcsoD a0+CEbE9r7kjnJTfCF8EY8tl8m/I+Lb4K80j7pqUyI/n/4FDFbTdCMllEtVBtGULY08C KeK5EffqP0jdu1FFFa4uRg/1EYOavyQysPJVIiD3xqy7SLbT7aMFZdHGkb34AxAWhg0m 5koU/oc9VtcMiBmKoUayvELhF+j13VZmd25wA7rgURCGeZwIuAxFlS8f3uN0g4ksWreL IiRu7eV6l46c8KrkpebisV9RgF2uFgpsiUUUJ6MwmLyyTTwOEZPpa/YZ/6Y6w4kdYk6f hmAw== X-Gm-Message-State: AJIora/DzZ1rF/G/i+Lpg6riSicgTcOJSJcTqmFcMcojI6/Z5EP2LVd+ 6L0yH2jVg6RfqbjoguJYCzLTpg== X-Received: by 2002:a2e:9b0d:0:b0:255:92b9:eb3c with SMTP id u13-20020a2e9b0d000000b0025592b9eb3cmr1911477lji.5.1655196377781; Tue, 14 Jun 2022 01:46:17 -0700 (PDT) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id g1-20020ac24d81000000b0047255d2118fsm1306116lfe.190.2022.06.14.01.46.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jun 2022 01:46:17 -0700 (PDT) From: Rasmus Villemoes To: netdev@vger.kernel.org, Andrew Lunn , Heiner Kallweit , Russell King Cc: devicetree@vger.kernel.org, Rob Herring , Jakub Kicinski , "David S. Miller" , Grygorii Strashko , Praneeth Bajjuri , linux-kernel@vger.kernel.org, Rasmus Villemoes , Rob Herring Subject: [PATCH net-next v2 1/3] dt-bindings: dp83867: add binding for io_impedance_ctrl nvmem cell Date: Tue, 14 Jun 2022 10:46:10 +0200 Message-Id: <20220614084612.325229-2-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220614084612.325229-1-linux@rasmusvillemoes.dk> References: <20220606202220.1670714-1-linux@rasmusvillemoes.dk> <20220614084612.325229-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 We have a board where measurements indicate that the current three options - leaving IO_IMPEDANCE_CTRL at the reset value (which is factory calibrated to a value corresponding to approximately 50 ohms) or using one of the two boolean properties to set it to the min/max value - are too coarse. There is no fixed mapping from register values to values in the range 35-70 ohms; it varies from chip to chip, and even that target range is approximate. So add a DT binding for an nvmem cell which can be populated during production with a value suitable for each specific board. Reviewed-by: Rob Herring Signed-off-by: Rasmus Villemoes --- .../devicetree/bindings/net/ti,dp83867.yaml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/net/ti,dp83867.yaml b/Documentation/devicetree/bindings/net/ti,dp83867.yaml index 047d757e8d82..76ff08a477ba 100644 --- a/Documentation/devicetree/bindings/net/ti,dp83867.yaml +++ b/Documentation/devicetree/bindings/net/ti,dp83867.yaml @@ -31,6 +31,16 @@ properties: reg: maxItems: 1 + nvmem-cells: + maxItems: 1 + description: + Nvmem data cell containing the value to write to the + IO_IMPEDANCE_CTRL field of the IO_MUX_CFG register. + + nvmem-cell-names: + items: + - const: io_impedance_ctrl + ti,min-output-impedance: type: boolean description: | @@ -42,9 +52,11 @@ properties: description: | MAC Interface Impedance control to set the programmable output impedance to a maximum value (70 ohms). - Note: ti,min-output-impedance and ti,max-output-impedance are mutually - exclusive. When both properties are present ti,max-output-impedance - takes precedence. + Note: Specifying an io_impedance_ctrl nvmem cell or one of the + ti,min-output-impedance, ti,max-output-impedance properties + are mutually exclusive. If more than one is present, an nvmem + cell takes precedence over ti,max-output-impedance, which in + turn takes precedence over ti,min-output-impedance. tx-fifo-depth: $ref: /schemas/types.yaml#/definitions/uint32 -- 2.31.1