From patchwork Fri Feb 11 13:05:52 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: 12743425 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 99B36C433EF for ; Fri, 11 Feb 2022 13:07:33 +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=RtRo5DLnNBf/SA 1za11nN84SWWWAAMh+M2wXvWsU5Mf+f9aoYQUR2RRHCcGL+MCjcRXZn6I5Ok9s6gYHbE030rg8rPR +Oxj9gterEveMx75I2k5SlevZGpFpm2j7rXMfWvHeLECUHxKKzgsUTdo4fq6r2kxeDMcInEDViT5Q lGDlO7I22iqNTHH1ZwfugVwoxlnF9YwUz8R/jKHo5Vk6+iIeEGhUGC1uv/PLhcKvXO1rm0vhbc1Pa bd0WweqCSN/OF0BIVWzRx5uq/V1XgIrv473D4BV/30ga2eoLdSMpL41BD23WVdLCM5J1gwxeyaorE vPOR75RtrIEkzmdw5rqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nIVcy-007Jav-L1; Fri, 11 Feb 2022 13:06:20 +0000 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nIVco-007JWz-4o for linux-arm-kernel@lists.infradead.org; Fri, 11 Feb 2022 13:06:11 +0000 Received: by mail-lf1-x12d.google.com with SMTP id i17so16381948lfg.11 for ; Fri, 11 Feb 2022 05:06:09 -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=U31jAZBh+UkPdAsdfXxNqS06v5iv4Kmb619Q0qXa5b4daXQDdI6iKCr40v3fjPF1r1 L0+nZvCrzpR8LroM6/TPlloZH9EBRY58oHBMdHmNfPXJPBOMlTZr6M9Uw2jHlsucW0R+ CYwGyi06XQn+TXUWHqpiRlYgfAAe9y8CQ4rAgsm5NJLgq1C+JquOzdtk0WlFdahCwldN f9UcuCvgiA91r6BTgN8spISIu7KNVPCJfD84WMxdpQUKmWfriSjrvHlx/t6NSJgIns9b lqo/WnA709FXhudPc6C4aA0DZlueBaZSL3THgXasy/TRimaRAUXzM0kBvIuvyVYUYkFn 4q2Q== 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=caS1DrUhk28iCluVHRkpKYEeHCXxrp4R+RRK5kwcy/HCK+mNOd5LcS9EFqWF2DIqs0 EzfJPhh6a7plq04xrW1KSyMpZ3e6/GonnXSyHl1w91AN2wa9x1IIOXroPK01QDQH7GT8 l/hH1BWFBjmhB3W805VJ6WveG/le3FNyI1zZUsV1E1k3EE5ufB6wy0GkNITg5gA7Kvgh 5GpC7WVajH2lTM30OCJ67YHEaXhdVg+pVJg29OSQGk9uqfwK8XChT3KT3LbGTzOlgIzL KXVfftBFPmHtGrYkui6Ewu3DAilzJt4O9hg1wruknA6vF//ihH23vSDYIV373slCTMPC Ezzw== X-Gm-Message-State: AOAM530N1ycrcjv+nkY9bkx17NcVDSsTZOxU9l2/nF0gIErirGiXea/V 2TFJUFCxTjkIW/9a8uSQVr0= X-Google-Smtp-Source: ABdhPJyANwpxODf7FJd9LpX2QULdfogZP9CIp2POXVV9rIbBeWcAw6Pa79ERcCDcf6OALw6cAbfTmQ== X-Received: by 2002:a05:6512:3d0e:: with SMTP id d14mr1122587lfv.165.1644584768402; Fri, 11 Feb 2022 05:06:08 -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 b13sm3111094lfv.175.2022.02.11.05.06.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Feb 2022 05:06:07 -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 V2 1/3] dt-bindings: nvmem: make "reg" property optional Date: Fri, 11 Feb 2022 14:05:52 +0100 Message-Id: <20220211130554.13062-2-zajec5@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220211130554.13062-1-zajec5@gmail.com> References: <20220124160300.25131-1-zajec5@gmail.com> <20220211130554.13062-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220211_050610_225843_8FE1F856 X-CRM114-Status: GOOD ( 10.43 ) 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: