Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp29526imn; Mon, 25 Jul 2022 09:24:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tIDRR+W1R52sR3zlJXtQclgESQkGwusJI/Ki6Y+h/1Mw0su8V3a4AzwjQzFRn6Yyzbbof8 X-Received: by 2002:a17:907:a428:b0:72b:6932:2ec7 with SMTP id sg40-20020a170907a42800b0072b69322ec7mr11005329ejc.540.1658766272982; Mon, 25 Jul 2022 09:24:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658766272; cv=none; d=google.com; s=arc-20160816; b=qup8ynA06bFYfYThJ/Bfijvh3qi/MavWrhQOyqA9utWKVjGm6pIpmVz4zWM02AkLCt Nz1/o7kdLsUu3j/+kgvbpva6SHX8C2+lEZCSB7wO33PMGfwiJMdJenIa+K/hxL2idhMr ibWx0R3gNWjM4rcK2Qc4QtSdr+44/BtxdfcqGc8RPgnrXNeaot505KqsX5px31ZyVsA9 MTCYLRd5V5q4GTf+bLX8aeJVHDXVHnPd6Jyhsc1+Y2Or64hXymBGn9a21wisXy5c8hvM CUHrbLkV+ohWoZr6gzUGRY08H5LMXCbBof462Zv37499Y17ppTnjZBliG+mSBz71b5x1 ibVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=mjgpg4ZV+VLOftEfwsbp2uyCZES8VtwrkrpG5A+4mFg=; b=ELRHCNPvZL1wCmQdx5OYfbq6FaVaZGffTOqaSWyJIwmrTxhzIZSzPBP4kMSYlrRwpu 5FX5qOkNzEbTxlkR6qJe28Xmy8cv/wWrzGscUhhK8d6JjZCwXtJ8j9FnIdT1q+aUtwq/ PBHViFShqm4yGsKkBwCHT5WLiyNc2IR53TEYveNoQJXpC9dO/AsAU5kxaLbrwuok5E5B kjut3gqQyKhA3l3sJ08f6YxnxZmKuwL+KCpZKwpRPzmiNa1dQiodqt+do1CPvRWzyyOm rfO2w94E6fdPOzu/8TbxcF7NN9oCSd4xo/KfFYt6IsOyKv8kBNICyQ+yOJ7iuV4RoStO f+oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PXdnEvIp; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h11-20020a05640250cb00b0043c07d1df92si3092613edb.118.2022.07.25.09.24.08; Mon, 25 Jul 2022 09:24:32 -0700 (PDT) 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=PXdnEvIp; 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 S235856AbiGYQHp (ORCPT + 99 others); Mon, 25 Jul 2022 12:07:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235596AbiGYQHo (ORCPT ); Mon, 25 Jul 2022 12:07:44 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 560FADFBD; Mon, 25 Jul 2022 09:07:43 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id y15so10805922plp.10; Mon, 25 Jul 2022 09:07:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=mjgpg4ZV+VLOftEfwsbp2uyCZES8VtwrkrpG5A+4mFg=; b=PXdnEvIptvDcZIyG61PW8j3e6CaFKPs19zNKWybPquAAocjh6WbFtCYQABJRRGRkGu iSUSKehBWJ/TCJFMwYEg5SncOsQAV2wAtaVwamxeFssuKAK/HimjxRXHwBHxEz3f+YF6 JsaO/9sidEX+KvCCwDDykoSyC6kiQMUsuY0/xl0xcBBKQ2xRkRfahd2it2a6kYagMQJp 7/j0YYDIrp2F19w4rGdFzNIiGadoxK1raR5PJBfH2xdmtCYmrwsdophoyYam6qzOHwmZ gV/ZDaIPH9Vnvxd4Gt2jmI8c0wmeMDnDEWwbv/sRTUndC/hkzN11ZPd2Qe8Zf19mqaGz ccLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=mjgpg4ZV+VLOftEfwsbp2uyCZES8VtwrkrpG5A+4mFg=; b=MWCr2pC8Qa3gG8WRGAVyVqpfUvbcKA0TjMLi/VGYJsTTVBckTV/lOgS4u+1KPodp// gjvHhys3h+/CtFlQrB5TDtXzG4tQkAPXtax1KGbBhrPz+QpcFLCW1b58uKBpZ+s+dHms buRqDqaLB0efQdB9Pp/g/CR+TZwsSUTM6FtoMXh7CZNpx/dI6u/oxldJZ5n6nRV0wJwB 5H0Cnni2WkcEafLz+UkvN58XNji1g7MtbF9ahfAzwbJVm14Ad3Fcty34ZmMXYUlVPKJI WTpeQMJ1pXtBXCEcNQ+6qceFCR0QCT4FOhGNWj57j+zi+wxFDZYPPcYyq3oj0qUHdfyk Z1TA== X-Gm-Message-State: AJIora9EMFkAgoC9cW+XqBMaShfCxs01ySsHf72ALUqtJZu/yL/T2LTg s5Na7evXQtTGjyivCEzr4r0= X-Received: by 2002:a17:903:41d0:b0:16d:23e9:41d0 with SMTP id u16-20020a17090341d000b0016d23e941d0mr12667651ple.47.1658765262423; Mon, 25 Jul 2022 09:07:42 -0700 (PDT) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id b124-20020a621b82000000b0052bf6789f02sm2914567pfb.178.2022.07.25.09.07.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Jul 2022 09:07:41 -0700 (PDT) Message-ID: <3d29b8fc-f183-5883-edc0-cde55b76e4fd@gmail.com> Date: Mon, 25 Jul 2022 09:07:40 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v2 2/3] Documentation: sysfs: Document Broadcom STB memc sysfs knobs Content-Language: en-US To: Krzysztof Kozlowski , Florian Fainelli , linux-kernel@vger.kernel.org Cc: Broadcom internal kernel review list , Rob Herring , Krzysztof Kozlowski , "moderated list:BROADCOM BCM7XXX ARM ARCHITECTURE" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" References: <20220722201043.2731570-1-f.fainelli@gmail.com> <20220722201043.2731570-3-f.fainelli@gmail.com> <135be705-24f9-13b8-6939-0eaa569434d7@linaro.org> From: Florian Fainelli In-Reply-To: <135be705-24f9-13b8-6939-0eaa569434d7@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, 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 On 7/23/22 10:59, Krzysztof Kozlowski wrote: > On 22/07/2022 22:10, Florian Fainelli wrote: >> Document the "srpd" and "frequency" sysfs attributes exposed by >> the brcmstb_memc driver. >> >> Signed-off-by: Florian Fainelli >> --- >> .../ABI/testing/sysfs-platform-brcmstb-memc | 15 +++++++++++++++ >> 1 file changed, 15 insertions(+) >> create mode 100644 Documentation/ABI/testing/sysfs-platform-brcmstb-memc >> >> diff --git a/Documentation/ABI/testing/sysfs-platform-brcmstb-memc b/Documentation/ABI/testing/sysfs-platform-brcmstb-memc >> new file mode 100644 >> index 000000000000..2bf0f58e412c >> --- /dev/null >> +++ b/Documentation/ABI/testing/sysfs-platform-brcmstb-memc >> @@ -0,0 +1,15 @@ >> +What: /sys/devices/platform/*/*/*/*/srpd > > That's a lot of */. Are you sure it is correct path? Didn't you include > here some driver-related path components? Can you paste in email full > path as an example? Yes this is the correct path: /sys/devices/platform/rdb/rdb:memory_controllers/rdb:memory_controllers:memc@0/9902000.memc-ddr/ the 'rdb' node is our top level bus node, the 'rdb:memory_controllers' is an encapsulating node that groups all of the possible memory controllers in a system (there can be between 1 and 3), the rdb:memory_controllers@0 is the first of those memory controller and finally the 9902000.memc-ddr is the sub-node that contains the register controls of interest, since the memory controller aggregates different functions (arbitration, configuration, statistics, DDR PHY SHIM layer, etc.). Maybe I should provide a more complete binding while I am it. > >> +Date: July 2022 >> +KernelVersion: 5.21 >> +Contact: Florian Fainelli >> +Description: >> + Self Refresh Power Down (SRPD) inactivity timeout counted in >> + internal DDR controller clock cycles. Possible values range >> + from 0 (disable inactivity timeout) to 65535 (0xffff). > > Using hex suggests one should write there hex? If so, skip decimal... > You describe the user interface, not hardware registers. Fair enough. -- Florian