From patchwork Mon Jan 24 16:02:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 12722335 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A8AC9C433EF for ; Mon, 24 Jan 2022 16:06:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=4XIQNnHDVl5AenJ62evimNPK+BiTqyIJ9KrOQKYdTtI=; b=fx7D2j4tM/zvgb Ay96ndoBKqRdmpC4MVTc5O2ITMPIb/vd6XVKmv3t/E18NLvmOi7JojljgQZ0kb/SmQ+G1voRXATWL g/4qWqMxTx4BYbiiw9K89SHgtbtHsvTuol0fbcibfWiD/4pOghpt+RtfpCDdeJd81dYk20HCKoU+l O+zJp7imIxQiHS92Mc53SJsy2QkUcaapnbxNPq3cwEmJ4NQhRmUaaXlBKmsV3p9bgdybVZ/KBMn0J BY5xOmLmXv+Csn95Xs/oYEK30mRdlJieFBmeLLiJ2lGIeJaO6ZTB82KU/B0t0K8FncawuC80M1Osx 2yixkusMNBhhvH6Porvg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nC1pq-003uKk-KC; Mon, 24 Jan 2022 16:04:51 +0000 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nC1oK-003tmM-Ei for linux-arm-kernel@lists.infradead.org; Mon, 24 Jan 2022 16:03:17 +0000 Received: by mail-lf1-x12a.google.com with SMTP id u6so19128470lfm.10 for ; Mon, 24 Jan 2022 08:03:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ctuBSgnjTp0h/xxnaiN9/6IRGFp3kd6uhelw4DkXMLg=; b=Za/tb+7VG71Jko4HhFf6DhYMeUlx7XZF7QKlebw3k2gwZYkObllpj4S/mcS907m5TS XGQ3JnkmgNIYDxbGx4Fu8QVB/uG2K9DaIDlQzSX8mYeWSiyuIA/cPmR5mL6v4MhPr6Ym h6TOWqng3k2mxEXh7Nyy0lL29xrZISCZZuvGs3sUYeSaCwbAmV0umVqriVcggSMdQsZB 7sR/DjVkA8KbSpmcyHZCySvocrjAN1AMojQwifCimpkGi2vXvELTvH8psXEcIAjbLrE4 kn/HHpYqV6ct3PqGgLiD1Pu+0LG0BcvaZjBKUugWbMR41ibmbHeSKO87lJV3yRYoSxeZ Vtmw== 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=ctuBSgnjTp0h/xxnaiN9/6IRGFp3kd6uhelw4DkXMLg=; b=FF4am0pTPEngjJduwmrN8Q/bVOYn2/bhygm26U/pAl5uc3DZ556jSpqa9aIZ9GJzCt Yko81U3UtV4lfDGNIlhKKcEHiaJo24jKZZbFCvjHQIl6Th1jj2LCss9LqQMq/QQyBOhz mudFL0mReNmdrBPBD7JC79mniHzsQ21C96P51lEbBHUk0hSn+xqnAWR6ptdhkpP8SgS6 ndnfoFeSrhkR/qkGau1yfm21YO1ca7A/E8ek+HurYF/LCyciTJIrtCOBcaxhzK4jxldh KlbQc+3gK1DO9fngBDe41++wSXuffle0VQEGo3BOg45bGhEzUS7UBqPSgRCscgpnN7OE 9WRA== X-Gm-Message-State: AOAM531hd2t6ShR0UDoLFlNSAd9xFLoKvNH61QEoKbAErkhXWcnKXsXe k5oJr3leh7G9QTDVuUf16Ak= X-Google-Smtp-Source: ABdhPJyv79YN2uuThMFTQDTSpcs4BwkQtnRO1JU1cysB1134Xe2OL57Q0DwbYzNIcHd2IHtnhCN5Lg== X-Received: by 2002:ac2:43cf:: with SMTP id u15mr5689802lfl.66.1643040194295; Mon, 24 Jan 2022 08:03:14 -0800 (PST) Received: from localhost.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id n21sm674187lji.18.2022.01.24.08.03.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 08:03:13 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Srinivas Kandagatla , Rob Herring Cc: Florian Fainelli , Hauke Mehrtens , bcm-kernel-feedback-list@broadcom.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH 0/3] nvmem: allow specifying cells by just names in DT Date: Mon, 24 Jan 2022 17:02:57 +0100 Message-Id: <20220124160300.25131-1-zajec5@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220124_080316_538151_68B19FEB X-CRM114-Status: GOOD ( 11.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Rafał Miłecki This is a simplified & cleaned up version of my: [PATCH 0/5] nvmem: support more NVMEM cells variants These changes will allow me to improve BCM5301X support with: Rafał Miłecki (3): dt-bindings: nvmem: make "reg" property optional dt-bindings: nvmem: brcm,nvram: add NVMEM cell to example nvmem: core: add cell name based matching of DT cell nodes .../devicetree/bindings/nvmem/brcm,nvram.yaml | 7 +++-- .../devicetree/bindings/nvmem/nvmem.yaml | 3 --- drivers/nvmem/core.c | 27 +++++++++++++++++++ 3 files changed, 32 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts b/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts index 24ae3c8a3..9efcb2424 100644 --- a/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts +++ b/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts @@ -25,6 +25,9 @@ memory@0 { nvram@1eff0000 { compatible = "brcm,nvram"; reg = <0x1eff0000 0x10000>; + + et0macaddr: et0macaddr { + }; }; leds { @@ -72,6 +75,11 @@ restart { }; }; +&gmac0 { + nvmem-cells = <&et0macaddr>; + nvmem-cell-names = "mac-address"; +}; + &usb3 { vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>; };