From patchwork Fri Feb 18 07:07:27 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: 12751003 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 417B6C433EF for ; Fri, 18 Feb 2022 07:09:28 +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:References:In-Reply-To: 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: List-Owner; bh=LffeZX6GstCMgpGa6v96ixk/WrMiG5bcUT/MEDngCog=; b=N14Ef8RFUg1M2x crIRPNkEcP8iCEcD+3JQz6HapmkbyDm0lE8QCMIh4aXFkIpAefb8a/F4VWpS99eY3nSNAwWY2eSbB JhadIn8T2vkr/2pBnntuQcFiwxHCxP5eUEP1tKq6hAuH/ERejYoY6J50em9JzrCWzMI2pruI09n7M 5+v35vQHO6YnTn3KEJp4lyoZYSv3trsKhu7s396HUaJPxSLjdOfMrPnyWPQINCa2fSkB0US+WOdsP Ls075a+1VkHQa1rxzidgEqsYKUJSOMrzuK9krbEK5BGzT4KiBBeLucLq2xKHWs2iAPa/nhWzS/OtG SYN5BgT44nBetF+nyzNA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nKxN8-00D8N0-3G; Fri, 18 Feb 2022 07:08:06 +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 1nKxMv-00D8IB-Vh for linux-arm-kernel@lists.infradead.org; Fri, 18 Feb 2022 07:07:55 +0000 Received: by mail-lf1-x12a.google.com with SMTP id p22so3655581lfu.5 for ; Thu, 17 Feb 2022 23:07:49 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=P+bxWvATPkNOJhL/LdCmA0xomBxVYCMbyohvhLg0UcI=; b=cAviAy5J3oRRudjP5AIgmmBkwBZSkZpaCf7XKJkXx2jN9biGtrzmrz1tMLxXvk7Wqx +h5moiMM/uORfgGLhJOEyTGdAJkC7C1wCdlzfxxndxKWM9ImTphOcHmpfmmX298P5BRi GsFGEsDyhD76/KpyY71L9oz8AjUIb9DlzLyH0Bbslvn2A0OaVI1lbUxzHSsuj29RC7q/ N9WI03NxUi3RQT4duuhWdbcYDjZgYBQlBvfs6zwd6PLX4Kn2y2RmnViVwzSW4Y/TS6ki AHywcxA2maR2tyUnWnT5KrLXvXp+eFzxQjxm/gVxroIE8X4lAY8+EsFM00QV9VhTWAmP tjUw== 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=P+bxWvATPkNOJhL/LdCmA0xomBxVYCMbyohvhLg0UcI=; b=lRksERIs77cjra311/2p3ngYcQu4637nvScI4XMm1Z5R83YERXHgCSzd9JvIDShY8/ yW5dPh8HZO8A4P+6IaGOeMlYiNVK67tHTqPcxVLJ0JVNlm0WmWy8GVDgzQc+JTNcDo9W yK1FlRnAwSVZ2VUqKqd6uucPdATNfySveXIuJO/mPZyIJQDttVuHUts11EC+piErRO9O /8zMHUoIzEo/wrGsCy4nZxu75q3tOJC3ypoeZViaPaf4jEl/OS5trKxL4e5kNnNbVHdA /vq7+wIfrOqo+PnXuKf9SQlW7H0MAIM00bWsOHd+M9yLJwawnRV7OauCG5JkfiomsABt TFgw== X-Gm-Message-State: AOAM5324VdLq5mpFTnBOO0zug8lje2bQemMxfbyUsqb9y1q+wiyOsQcL bGPa6ofg0Oj40UJ84JVPEQo= X-Google-Smtp-Source: ABdhPJxOVs8gipD3+lXvLpzGAJAUN72tLwtRCdCU2mNHxQTEFevcefrvr5xFCYLginqNQACcLpA4Nw== X-Received: by 2002:a05:6512:1529:b0:432:2c53:f9e7 with SMTP id bq41-20020a056512152900b004322c53f9e7mr4464499lfb.139.1645168067679; Thu, 17 Feb 2022 23:07:47 -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 f2sm216321ljn.11.2022.02.17.23.07.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 23:07:47 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Srinivas Kandagatla , Rob Herring Cc: Krzysztof Kozlowski , 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?= , Rob Herring Subject: [PATCH V3 1/3] dt-bindings: nvmem: make "reg" property optional Date: Fri, 18 Feb 2022 08:07:27 +0100 Message-Id: <20220218070729.3256-2-zajec5@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220218070729.3256-1-zajec5@gmail.com> References: <20220124160300.25131-1-zajec5@gmail.com> <20220218070729.3256-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220217_230754_027522_53E21AD6 X-CRM114-Status: GOOD ( 10.34 ) 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 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 --- 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: