From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E47B7C43334 for ; Mon, 6 Jun 2022 20:22:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233541AbiFFUWh (ORCPT ); Mon, 6 Jun 2022 16:22:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233471AbiFFUWb (ORCPT ); Mon, 6 Jun 2022 16:22:31 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E61CCFD for ; Mon, 6 Jun 2022 13:22:28 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id h23so20050701ejj.12 for ; Mon, 06 Jun 2022 13:22:28 -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:mime-version :content-transfer-encoding; bh=NDvZ4UleUYUTKOU5gyNsiH8SYe6dt0N9haij8gkeJuQ=; b=ekAzTc3QPUODDMjzIXzdshCFY5ExrrFiCb6vYhkn4vj2sdRYhw90nR3veL6oFstY/A tmN89MKgKgXHx0XHoIMIl63g+XjpSQY91V0nzIj7yxM8Xe/VBkbALH/HyM25bemP+2PX LkASjRlhdMm8e69Ov6J94eQpEhZ7cO6woLOf0= 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:mime-version :content-transfer-encoding; bh=NDvZ4UleUYUTKOU5gyNsiH8SYe6dt0N9haij8gkeJuQ=; b=YSEEKGo3BTyac4gm9syVClZ1Lkt4LyZcUgR3lbZfcL8E/pRZMwFhaGUotp86EwOQn5 UeCyoVpHMtv4Fkrok+UWngcgnknRBd1XHpDc21w/cjPkuBlI6ZQLCVbtfaF+rCessrzN jmjR0zsUDZR+IayNHYNrid3ZJRerroqM8CQnmyvpaGtcu5ikhZeKFEsCQztDwY4i3A7q NACyKGIKGRnYpjG58mlrFDrsjpWBAKIYnfeElRQhgowvKpYRDcvqZHU++HUsdAM7aUhl ahKgfiz4nxHVvr0Lq2NOgubLZ0HX9Sz62ZyplRGqlzA6dnRznnnl4nlzQFn19U0OxCcq FROQ== X-Gm-Message-State: AOAM530ZHqBoXepk+8J34RtQLPUPvPs6P+Dg7Jwn4hIWGkq4X4m6A2iI 3DHZLjKUAy4fAOVWDonQdbn6wA== X-Google-Smtp-Source: ABdhPJz7/yg9b/o2cR10nFFDSq2Ab2tXLzh90wmld7S+j8XDW6ylysOyvqFXG5LzqjkuOXraFTUIQA== X-Received: by 2002:a17:907:629c:b0:6e1:6ad:5dd8 with SMTP id nd28-20020a170907629c00b006e106ad5dd8mr23026451ejc.641.1654546947118; Mon, 06 Jun 2022 13:22:27 -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.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 13:22:26 -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 0/3] net: phy: dp83867: add binding and support for io_impedance_ctrl nvmem cell Date: Mon, 6 Jun 2022 22:22:17 +0200 Message-Id: <20220606202220.1670714-1-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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. This series adds a device tree binding for an nvmem cell which can be populated during production with a suitable value calibrated for each board, and corresponding support in the driver. The second patch adds a trivial phy wrapper for dev_err_probe(), used in the third. Rasmus Villemoes (3): dt-bindings: dp83867: add binding for io_impedance_ctrl nvmem cell linux/phy.h: add phydev_err_probe() wrapper for dev_err_probe() net: phy: dp83867: implement support for io_impedance_ctrl nvmem cell .../devicetree/bindings/net/ti,dp83867.yaml | 18 +++++- drivers/net/phy/dp83867.c | 55 +++++++++++++++++-- include/linux/phy.h | 3 + 3 files changed, 67 insertions(+), 9 deletions(-) -- 2.31.1