Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp1212673iof; Tue, 7 Jun 2022 00:27:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtuo+ye1NZ5AOZ7inGj4dmgw8qmycV2n4JNrpsQ6JQmnTKFco7sOmFyU8Px2me8/pZL6NK X-Received: by 2002:a05:6402:350b:b0:42f:d079:647f with SMTP id b11-20020a056402350b00b0042fd079647fmr19097424edd.321.1654586831330; Tue, 07 Jun 2022 00:27:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654586831; cv=none; d=google.com; s=arc-20160816; b=0e0jjmak/80KKMVa7H6tQzA0NhU+JOtTfT2HMV+ShxCNC6d2PopTWIO1PyQm9/k/Cm n4iBdxXmcde4/XRuYuBiE2uisNZpuAytBMWucJR8H5rdU0SYoQ1yLmbuWnn1z0LJ3fXq WzZeJQtlgs5PhNklxYPOFwUe0rvrHHJdSJdJKlLkKOGvX8isHx0NKwA6CX4T9Jq5wJYx Pe9bBUQPmcT7fDU+vnbz026vZpvI3U6V0xP0LCZfouxCih7DE2MItC+PQoe5lvT/IqXL qXpBHvlsWJ3X1l1lYiX5BAK7TZnhpaSBqM2RfuGgh0ku3DvwuDfvvGpRmhR28wAl8nbe ys2w== 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=ramRhPzzIanDTBc4YnvbtflH7YCV/CY9bbWKmWrFq+o=; b=eo7AUFLozBR/Vr+oGjFKvCF7YYYeEMv/TnI0uCkK0CY4aLUSoc15icWPOvg+chc+QV tCs2vnD919q7uqbfgyIb3FPdJeSin7hVttQR+NrenrkNvd22NdjYuIC2K6AMjF8lkGc6 uynecrfmtNzDO3KTo0cQ5j1tHSqd1ABMtT56Pq+Atj8efBI/WyXDmJRGx7vIAQhhUyCw 3kQrI0AdPmXyxoi4v2ng1hRVbZ7YTGMNf0sPC7TpiUCxe59zKcGFa9C6XqcTPjWfeVZx wfZY9TUHZbOnG9HupUUlKC1P13jtSisll8n5Vx56l/Easv/UmZW0pO8GvvX1ao2bEuqp LofQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=N3f1F70R; 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 gn24-20020a1709070d1800b0070dcedd6ca2si1562600ejc.713.2022.06.07.00.26.36; Tue, 07 Jun 2022 00:27:11 -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=N3f1F70R; 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 S233268AbiFFUWl (ORCPT + 99 others); Mon, 6 Jun 2022 16:22:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233519AbiFFUWc (ORCPT ); Mon, 6 Jun 2022 16:22:32 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABE886543 for ; Mon, 6 Jun 2022 13:22:30 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id o10so20299740edi.1 for ; Mon, 06 Jun 2022 13:22:30 -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=ramRhPzzIanDTBc4YnvbtflH7YCV/CY9bbWKmWrFq+o=; b=N3f1F70RSHOFUi0/95Am3KcViH7CUmDqqDllaG1ylIXteKA1EkETYVMSFYjiwpGrET FTO+f+0s394CngQLk3wD/L9VwZlk2ds+xfL8yntxprVroIHL62K0VSmvfj7krHr0YTKX IxtUuaGyebDJuwxo+20qpc7cj9dFUlOmSGZ/8= 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=ramRhPzzIanDTBc4YnvbtflH7YCV/CY9bbWKmWrFq+o=; b=DcuOi8deeMZLVCPy2htixJBLtvsqNgfwFhuRlduKExDvCRusY3xf90MTefI4F035im D46/GT/0105kCvl1AOKLb/iBwVxvrxsK08L9bVAWabzHPXkd31ivFQXSTh9FM1+3eLgE DKczVvYTkPg7radga2Yz8E33/JgbmJE1rAJX6MSwmsaNQPxa9rPrF7sqrYlR3Rk5BRUr c4ERqETydMqXHrNILc84r6dkTk+eXCS/OFV0VZHmit2ZWf7ysOUFMUnDlWg+cQzvmhgY /Wa8HWUv8+PQ3PjE9FhTkZTS1X6qO8vOpa+11ZpRntj3sAeeXFE1Hj2q2VydpjgeSaLI J+rw== X-Gm-Message-State: AOAM532wUBQJkbQnE14O0hSNyWvPsLaQSLBgh1xdK4vBz8dQcXiaFHJC P8osyPBN4TwEgvgjBwGx+ZQzCg== X-Received: by 2002:a05:6402:358a:b0:431:20d5:f4ad with SMTP id y10-20020a056402358a00b0043120d5f4admr15251525edc.375.1654546949175; Mon, 06 Jun 2022 13:22:29 -0700 (PDT) Received: from prevas-ravi.tritech.se ([80.208.64.233]) by smtp.gmail.com with ESMTPSA id d20-20020aa7ce14000000b0042dd4ccccf5sm9043789edv.82.2022.06.06.13.22.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 13:22:28 -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" , Dan Murphy , Rasmus Villemoes , linux-kernel@vger.kernel.org Subject: [PATCH net-next 1/3] dt-bindings: dp83867: add binding for io_impedance_ctrl nvmem cell Date: Mon, 6 Jun 2022 22:22:18 +0200 Message-Id: <20220606202220.1670714-2-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220606202220.1670714-1-linux@rasmusvillemoes.dk> References: <20220606202220.1670714-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 (factory calibrated) reset value or using one of the two boolean properties to set it to the min/max value - are too coarse. There is no documented mapping from the 32 possible values of the IO_IMPEDANCE_CTRL field to values in the range 35-70 ohms, and the exact mapping is likely to vary from chip to chip. So add a DT binding for an nvmem cell which can be populated during production with a value suitable for each specific board. 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