Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp1351828iof; Tue, 7 Jun 2022 04:02:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUdZEfbomiSO1nEEH2dOqEaLQL/qxWxhwRj2fPmmQjkQgG3gwqCB8sOyvVYu6xqhF8HBvw X-Received: by 2002:a17:902:ab87:b0:162:26cf:bf7a with SMTP id f7-20020a170902ab8700b0016226cfbf7amr28077922plr.168.1654599732066; Tue, 07 Jun 2022 04:02:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654599732; cv=none; d=google.com; s=arc-20160816; b=AMQ3C8rFlzqv1/oC4kfglafi2SzEYrCVQSyZcG6WEyqZELp1fPUGO01Qa00RdgzkK2 93h87CJnZUaCvoTyQpRJbtycj1K4L/ot/HoR7FOQbnTTtAXp582SBLFSZh8e/wUOKTwq pdHQUit63htiP9VG/LDVVF9QNpIVTozIzgKRGobEbYATUxnxu/wO1VKLHDkHxv9daDFQ J35QPbwpEIJlKbqkQ/kpN4ZvHwSWiYNxyaedZan6P8neMnNvVBvZdiIdyNHyrpoOWN0c fjdABY26uj74Kr0L2msZfswh4WTp7HQhkiDINR81OqHKnM73IG3mj+fS1uqjGdNQdVWX +ZrA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=NDvZ4UleUYUTKOU5gyNsiH8SYe6dt0N9haij8gkeJuQ=; b=YmfG37i246t+FpiaYdKyCP8fQpSAfazR8XV1ptFuZMyo10T7EZNZ4dcLpOV8AyjTnt pVAyeA7YDhqX2bnrUfaUhkC96oyESsOYA32yP4L2oRufAkD6hxrbEXc000XiR7nBU/os XFQxmOXztm46sgG6oQZ0RoylN2/ISkhNwevpsleOYwEffUftP/DdgS0FLGE3Esg6j6ci WkvFu+OLXEKGiz3NAKViOkqC/N8pNcYP8hasqzmynhV0ywbLLtEDZKxmqhDuoWmqAzks pGcEP+cZeWVgqR0fAyl8guS6XpdFgK1XLG3+dcf22TVCOJe6R8XUF8E6CRm6QfP53OIU Pfdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=ekAzTc3Q; 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 s1-20020a170902ea0100b001674d61c1c7si17748389plg.400.2022.06.07.04.01.57; Tue, 07 Jun 2022 04:02:12 -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=ekAzTc3Q; 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 S233586AbiFFUWg (ORCPT + 99 others); Mon, 6 Jun 2022 16:22:36 -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-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 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. 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