From patchwork Fri Mar 10 07:51:45 2023 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: 67258 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp739710wrd; Thu, 9 Mar 2023 23:58:25 -0800 (PST) X-Google-Smtp-Source: AK7set8ooBUsN0Ue2rM3lhVoyMgYWfu+ohQOn5/wCus3JDOEvHr0ARbj2yDwsGjBe3tXe1+NFS8V X-Received: by 2002:a17:90b:350c:b0:234:2776:a357 with SMTP id ls12-20020a17090b350c00b002342776a357mr24804620pjb.43.1678435105282; Thu, 09 Mar 2023 23:58:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678435105; cv=none; d=google.com; s=arc-20160816; b=SwtBxgfuBlgPFRYoYq0vgnuFnWxNKBI11yvJosEKU3Hk4gdcnKmFyjYu1F/D5KeRl+ Rr22D3ZHb8mrZ2kli5o2MBVAA5tcKxzTzpKmfRqSdKYYuTnfI3a+raJ//qq64E7WKsUf 22b0iaIqzLlFdjjAvik8wwUtQL24ujOTFlpE8NAjWv5u66B4+ihFFIYWGY1H6+q1ydif pEHR8pmm3n+3wXYiavKIR3tKUWnWOpLEO9T/bIZcr+BBzzj+89v8ceAnMQtNgoGwFFFW ILB1gDYZN+64m5UGj11Y195aHvxv1UYs6Awln763bEdG4D95gOB5Hml+9Ga0Kl77Z5jI ehUQ== 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=P+Y+kKVSplNK0Q0iu8ToDogpEQGUULDqafcR05uVFhw=; b=A0t1mE2+OvDFDC4XwUUGYMTWC7Ory3cr1FwIUCWFOjukObiaOF9ymD1VI0gfye1TOt zKuOukdoD0cuFZO6PQOqBN7JrNdlZT5FY4wZu0LSFGgQ4ieLJhb09diYy/LtxqUKjYqZ LcMK48x8KInf7U/AqOYpLgLNRjhyhSpJ5cGPj6ODLDcpFjByLsb7eIL9KPKFHJFGs+61 h+PGIJsW6AoTOE7XHqKYIPYDZpdQlR7ksc+PJC6t4Bvhln9rkI2eClIM0CS2cxAqSadQ IOd6+Dy1j1E8xE6qDsxIzjUOW2VTcswYRIRZDlbZkAmCk0kI/mE9SXmQuEP9VTI74zMU qGog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PKPmN7ti; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mh10-20020a17090b4aca00b00234bc923a16si1406855pjb.148.2023.03.09.23.58.12; Thu, 09 Mar 2023 23:58:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PKPmN7ti; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229993AbjCJHwG (ORCPT + 99 others); Fri, 10 Mar 2023 02:52:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229706AbjCJHv7 (ORCPT ); Fri, 10 Mar 2023 02:51:59 -0500 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 821FF4C6E3; Thu, 9 Mar 2023 23:51:56 -0800 (PST) Received: by mail-lf1-x133.google.com with SMTP id i28so5552138lfv.0; Thu, 09 Mar 2023 23:51:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678434715; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=P+Y+kKVSplNK0Q0iu8ToDogpEQGUULDqafcR05uVFhw=; b=PKPmN7tigMaSTERU9kl3Nw/xNPhwNY3xRmsF2OIwXvnDcrnpthOVUzn6QfgdnFyoYa kWIn7KtiyHxzNJI4tGaX255pUv+iE4BPJ58LhDDELRCXHQb7cHVfYem4XnhKK41JEKN4 TsvPX6ypZMETQQhqOmyL+JWnJnv6EZOlQAYPV+GdKeBCjxDKW32KwJcv9/M3gI1Ye54e Mianq+tw11lZ9xA3Ac/CB8MD1R3YJMJHNPLfZXzyToJGwWpyucHUjI5648r1O8xThITj CNlolzng5n/SWQNpRI/JjyJAedknADJV/Oe6DQPavBu8OouwYilP+wIK4nmHaxmzUV4M +5ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678434715; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=P+Y+kKVSplNK0Q0iu8ToDogpEQGUULDqafcR05uVFhw=; b=gHB/ktyj3cOzGK4shiS30RI9uGiZiDak6efIczVKOtEZx8RrIeB6q8TBl1rYGI/rEW B2yEybAmeOS8weE5c4iRIz2B8b923wDoxYmkqauPlT0iyTOH53EdMzLzPtyaYjtIlvSY GtGugzlit8ZsUpmhDnYnjVnDBNq0LcOsYRCwwrFWiV2Eqw2cpr4mmpjASGsyLSMF1ojf /exof4JvtPZjsE8sghw9b1BheTel+hQHDnYevRIyorrRMJ/jkGQrMy1+WHxgS4XiV9GP Nj2vuO8xDKRG/WOwz0k1xRzjK0HpXYfz/bPl3T5KTZGjxmZmXGiWr3vSszCqFtfVHElH qp+A== X-Gm-Message-State: AO0yUKX6abjPW8AcjNVbb+zqS/CI+8MdGmWXH7N9lTofX8nhSnOSOTYV 7o1vUkZiynsFOBwwDBYbiko= X-Received: by 2002:ac2:5dc8:0:b0:4b5:3621:7ecb with SMTP id x8-20020ac25dc8000000b004b536217ecbmr6781518lfq.63.1678434714674; Thu, 09 Mar 2023 23:51:54 -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 l27-20020ac2555b000000b004b5480edf67sm162066lfk.36.2023.03.09.23.51.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 23:51:54 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Rob Herring , Krzysztof Kozlowski Cc: Srinivas Kandagatla , Greg Kroah-Hartman , Miquel Raynal , Michael Walle , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?b?UmFm?= =?utf-8?b?YcWCIE1pxYJlY2tp?= Subject: [PATCH V3] dt-bindings: nvmem: convert base example to use "nvmem-layout" node Date: Fri, 10 Mar 2023 08:51:45 +0100 Message-Id: <20230310075145.3996-2-zajec5@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230310075145.3996-1-zajec5@gmail.com> References: <20230310075145.3996-1-zajec5@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759966768874458891?= X-GMAIL-MSGID: =?utf-8?q?1759966768874458891?= From: Rafał Miłecki With support for "fixed-layout" binding we can use now "nvmem-layout" even for fixed NVMEM cells. Use that in the base example as it should be preferred over placing cells directly in the device node. New and other bindings should follow as old binding will get deprecated at some point. Signed-off-by: Rafał Miłecki --- .../devicetree/bindings/nvmem/nvmem.yaml | 42 +++++++++++-------- 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/Documentation/devicetree/bindings/nvmem/nvmem.yaml b/Documentation/devicetree/bindings/nvmem/nvmem.yaml index 732162e9d13e..c77be1c20e47 100644 --- a/Documentation/devicetree/bindings/nvmem/nvmem.yaml +++ b/Documentation/devicetree/bindings/nvmem/nvmem.yaml @@ -67,24 +67,30 @@ examples: /* ... */ - /* Data cells */ - tsens_calibration: calib@404 { - reg = <0x404 0x10>; - }; - - tsens_calibration_bckp: calib_bckp@504 { - reg = <0x504 0x11>; - bits = <6 128>; - }; - - pvs_version: pvs-version@6 { - reg = <0x6 0x2>; - bits = <7 2>; - }; - - speed_bin: speed-bin@c{ - reg = <0xc 0x1>; - bits = <2 3>; + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + /* Data cells */ + tsens_calibration: calib@404 { + reg = <0x404 0x10>; + }; + + tsens_calibration_bckp: calib_bckp@504 { + reg = <0x504 0x11>; + bits = <6 128>; + }; + + pvs_version: pvs-version@6 { + reg = <0x6 0x2>; + bits = <7 2>; + }; + + speed_bin: speed-bin@c{ + reg = <0xc 0x1>; + bits = <2 3>; + }; }; };