Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp720313pxm; Fri, 25 Feb 2022 18:16:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwon4l1KkD7HOsDR6/lSs5fIX8cETc7HqPQSh+B8zwja3Ltuuj/UC/kAlGqtxGo/cS1o3lK X-Received: by 2002:a17:90b:3441:b0:1bc:3697:c337 with SMTP id lj1-20020a17090b344100b001bc3697c337mr5988706pjb.88.1645841765505; Fri, 25 Feb 2022 18:16:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645841765; cv=none; d=google.com; s=arc-20160816; b=nEE4iVJiz2VPzrpGHMBr+cyjLRVJyGznvPD/eTGVkM4f9zF59zju+d2kY2GVkPrflo ofInFb6D/tsebltqOin1FcN5bOJi2a2lW6W39V4ojxnZQO5lX3B2p7OjJ9Svrf5qO0ai 7YguUB2ofqs1A7/haK/9NiHguSaA7GB980Qly9tNcQLt1Xby0BwF16apoKGdwjimgvr3 7P7sxtIciOHKUleyPZDjYoW7E5s6s4YgjoTYbZz0HdfE+MLWqIP10t4mZsayMmfA0HwE OJVlzSrG7pnskgI0KvSNdPcKg9DpYg2zYMungdPBVL7C8yngC3i2k3g2n3ANOpUttLml BeYw== 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=6PhrHGYYFJ/UoeUEyqMP9QMPkUrRP2Euua3cF1w3ntw=; b=or+vzT6A+LN5/FJcJJgVOHnWsxm/S/EcdqEIzVPB5EPgxNco3IlCmfSIH2NzBk9gg1 2Yw8/e+xMRYg65ZnpUAh9Uf0ZO4WMl5CroJgu8dxlRhGQTc27+99Ddr6OrAc2VowMLFe oL0z7Wblv6I7zKhd2lo9/tiLvkhCzSgLHCKmxaUR+AQciXGMU6eUbx3dqO1NkcmLQMhT rztNoLvy2zWk4YJP/2PoDetpTpc30dLl1ZVYw4fu19ecuCm6855l2wJPtInerlwUWD2S +X51x3ouYZ+zJuV4Hk0HGy99w520fzCz6+oR35xJp/gGNDSsve+wMR8LLBhyEdaz8yms +x7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BDUQ8FIx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h12-20020a056a00218c00b004e0f7400859si3514821pfi.182.2022.02.25.18.16.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 18:16:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BDUQ8FIx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CC1BA2BAF0C; Fri, 25 Feb 2022 17:49:22 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231499AbiBYR7b (ORCPT + 99 others); Fri, 25 Feb 2022 12:59:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231343AbiBYR7W (ORCPT ); Fri, 25 Feb 2022 12:59:22 -0500 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43C621BBF59 for ; Fri, 25 Feb 2022 09:58:47 -0800 (PST) Received: by mail-wm1-x335.google.com with SMTP id i20so2102315wmc.3 for ; Fri, 25 Feb 2022 09:58:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6PhrHGYYFJ/UoeUEyqMP9QMPkUrRP2Euua3cF1w3ntw=; b=BDUQ8FIxHFgti+MjvYVkimqQFihWbMv8hkX5vShAr3ByrKFCPsispbHu56Km7TC7zg lqToITqG53PSSV9hqTlMEECIUN9IvlrX5CffWUbJZGNJOQhluKyN8TZ0hen40eMSwTrg nuJv3Owpa1PqP5NiDNlqyeKV+MsoLDj6z5K9NBOYiCXMxOEsnUH5/OiaJXLzOVy4XdaO M0ZioN8pSieFxDcKzay71rgyFLIWpkwR7Vzjdeqy0NfVUj+HEwa2KNCbz4uLg9w3XXFJ Sgckx8/Z+RjY122yJAHlNSNTQZpmEMQw/BnC59ilWKJj+fTPzS8+Rk/EDB7QJZWRccB9 POWw== 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=6PhrHGYYFJ/UoeUEyqMP9QMPkUrRP2Euua3cF1w3ntw=; b=hu5bhCk2jnbFESagPcAk74Rz46UcwJTSPRHuJQHNyHWp5TMT2qaGD+k5dwRMfZ28N/ Go7nptiqBE3/i+yj+9WI7yz0Nw/K/1ThK2ODn93/uGlRkD+i8d9p94FuPLKAY1tQr3Iy 7mh5X+S4gE6gmPzM7ovAvdrvQe1ZMMTGAcnUfLM+kLN6JTJgDm4ZhJhcRtpG6DclwRPG DeaP9E/krPk4Sor+Ha5lVOiVfnQydlJvB4YPw1zV/q9y8Xm3KzllrBd0KsldnOrHGgSa Iwyl5y/GGocEK11XUv1nzKy7Q2PDCFVodGQToHYJhhTKqhgYk5tfgIZjXV6FIDGn94DZ CYfA== X-Gm-Message-State: AOAM531ajboe8COtWI0UbQXYv8KoXptq8iyBGT0ucS33ry796TX6OEJ2 KOLxCjam/LglLBirbkvWA7eYkg== X-Received: by 2002:a05:600c:2c46:b0:37b:c653:37a3 with SMTP id r6-20020a05600c2c4600b0037bc65337a3mr3738608wmg.65.1645811925881; Fri, 25 Feb 2022 09:58:45 -0800 (PST) Received: from srini-hackbox.lan (cpc90716-aztw32-2-0-cust825.18-1.cable.virginm.net. [86.26.103.58]) by smtp.gmail.com with ESMTPSA id t8-20020a05600c2f8800b00381428ad88dsm74172wmn.15.2022.02.25.09.58.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 09:58:45 -0800 (PST) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Rob Herring , Srinivas Kandagatla Subject: [PATCH 3/4] dt-bindings: nvmem: make "reg" property optional Date: Fri, 25 Feb 2022 17:58:21 +0000 Message-Id: <20220225175822.8293-4-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20220225175822.8293-1-srinivas.kandagatla@linaro.org> References: <20220225175822.8293-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Rafał Miłecki Most NVMEM providers have cells at hardcoded addresses however there are some exceptions. Some devices store cells layout in internal structs using custom formats. It's important to allow NVMEM consumers to still reference such NVMEM cells. Making "reg" optional allows defining NVMEM cells by their names only and using them with phandles. Signed-off-by: Rafał Miłecki Reviewed-by: Rob Herring Signed-off-by: Srinivas Kandagatla --- Documentation/devicetree/bindings/nvmem/nvmem.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/Documentation/devicetree/bindings/nvmem/nvmem.yaml b/Documentation/devicetree/bindings/nvmem/nvmem.yaml index 43ed7e32e5ac..3bb349c634cb 100644 --- a/Documentation/devicetree/bindings/nvmem/nvmem.yaml +++ b/Documentation/devicetree/bindings/nvmem/nvmem.yaml @@ -60,9 +60,6 @@ patternProperties: description: Size in bit within the address range specified by reg. - required: - - reg - additionalProperties: true examples: -- 2.21.0