From patchwork Mon Jan 24 16:02:58 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: 12722336 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 4EC56C433F5 for ; Mon, 24 Jan 2022 16:07:10 +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=7R8XEzV4nZlImiVYTBrJR8NKL/t9EcHh/ISJ+2ThIMU=; b=lAu5Wjj8iZ6bJP ImfbBe0mkkN2lJwvTZSQsuZnODFMx522KnKrhnuRU1a2sgN6TTVZ+MkeLvXlNvNfl9pzhAJB2412B OxRjBD36TxI5+JWwe37fS/NIFPaZdfvMn+U01hjeRw4D7lUbs9oVpoNOBWk/+9ZqeqcNPTg5GDdL2 OQ5WeA3NmqpuQRkk1BMK1uATObCzQ+RclqZ2fwFlIS1N9b6fCWIl0w8CyJyog3Pnod7f6n3lJbX/l MGqdO69n9AQB/JKK5qVhcXcnJV1ThjbQUL0V/nWyIbr8yjYiugEiU4h5gXGqrvMlcEOXvJrHKiQKq 47CuTqF9hGYmi/zrqeZw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nC1qT-003uZX-Nm; Mon, 24 Jan 2022 16:05:30 +0000 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nC1oM-003tn0-2v for linux-arm-kernel@lists.infradead.org; Mon, 24 Jan 2022 16:03:19 +0000 Received: by mail-lf1-x12b.google.com with SMTP id u6so19128776lfm.10 for ; Mon, 24 Jan 2022 08:03:17 -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=MVEI/04lRlpzFj8I8BWWmTX8RUNeV033mKjqJ7grZ2c=; b=ixdeo83yf4yjcQtce6LQghTMCa25tY67QjmF+wkz1jeDthrtlHOL3n4TKfmiZ7knvE m8w1+MuPumCMzVf+q81tGSkNKDPBJK3+BaSachNl7tYjv9Fjyo8XonkfytilmLIifDjt L9BFTLHoLCULUqGUUwfENWL/KIboJ3AjhHpZZ+8RLB3gb2e5xnKjtimm4/llK+bAW/lF elQ54dPPHNvqRTgqBBUYP+ZqTJ/uKjEZgitw1ZOrTKbyThL7caUvrn2wSWtVU163OuPW CQa+XSwWrcDY3ahqmNsZv20uxmTEsByBjtNbXjWMdH7cQMRNeKYwBPVJ2x35r6b02mW8 y6ag== 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=MVEI/04lRlpzFj8I8BWWmTX8RUNeV033mKjqJ7grZ2c=; b=6rZAo0aVqrX+o2KUDjQP20DnMlrjs4PpOyvyE0aKEZButOnGg/D8T1tfj2GeE95fc3 Z8Ql461CyFzL4d1Tlh06L5+ASKz78hReth9y3aczIoM2o0+KfJOYuArNepj5z5CVhR+I zzReTWFjHVwc6dtN/Fw3NBIPkang2SUJwvcW7GE66aFzHqan76o/yB+BcFm7YUO7AJ6J GwQ5inSgIP7m4ZKX0qz1JG6xl5QBuUg4d7BmvpTHRcf/1a64jYFRztTcT25e673J5g6/ j4X4nN5lvBzulydHWp/fridVFkGj4zH7g0T7RoIOeDCfqMICSF+TiNsCg4JEnY+pLGP8 +4og== X-Gm-Message-State: AOAM531vughfr5vL8L0XPm+G/xX3isoQ/2I/ksBmpoWpfNjd5//xRDRp HZMxy5XMpcHn4i3L9bpJLTY= X-Google-Smtp-Source: ABdhPJzNfDuL+3ZKL/I7QuCGlh29SuKJzXglj8mwsrpOdEQPSmtdPzUFte8WylH0HHhB4j3XMayh/Q== X-Received: by 2002:a2e:a58b:: with SMTP id m11mr1671606ljp.383.1643040196104; Mon, 24 Jan 2022 08:03:16 -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.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 08:03:15 -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 1/3] dt-bindings: nvmem: make "reg" property optional Date: Mon, 24 Jan 2022 17:02:58 +0100 Message-Id: <20220124160300.25131-2-zajec5@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220124160300.25131-1-zajec5@gmail.com> References: <20220124160300.25131-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220124_080318_175971_B60BD52A X-CRM114-Status: GOOD ( 11.09 ) 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: