Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp8898704rwi; Tue, 25 Oct 2022 12:16:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5MBJaOTcuD/zcOqYAgv+tJgemRkVHTenzPqYC+DU06iUzEwHUNmMQdcrx0SJuGbU02jyx8 X-Received: by 2002:a65:6e0d:0:b0:42d:707c:94ee with SMTP id bd13-20020a656e0d000000b0042d707c94eemr33042091pgb.260.1666725390033; Tue, 25 Oct 2022 12:16:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666725390; cv=none; d=google.com; s=arc-20160816; b=GPEuUbG9VQF8xtQV55Hjm5PO14pyAlcfmE3h2ENqHcHNftpnzMe+MSPC/lOze8giMB Q8OJkCEzfUQ2I3rr4vjguOhx0S1OxVUA3GwMWSQc+x8wPu2zTBjBcxpq2WEnGpUmCDZ1 LW0Q3RzPU9jAw2GhdfE9o95cl+gWDvuO2Eqkbnog2ugnEwhnxdnZzZ7ZhgJIumO18Wd6 oeTiiHhpow0sJiFYmLmtXP4vQdyKq+yJA7utqkFhXqO8wDsF6KJULxkmFHW9bgPEMk5I kXmEWRbLLaunlPlyx2DGGVJgC/MJ6DNSKW9Gd0+2FOa8zBLAQe5Nv4Z8XwnupTqVu/j7 aYdQ== 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=G81DT6Hk8wYmP7WAjsBWJ9EZ96OdD4msd3DYb7Rw10I=; b=ChlOUWlWFcj62Mq49vu12SLBWwFLnXbau9akcEZS0rHKu1GuNkD5eMlmUz8baD6RoU UVTOGthMNbQn2tWPj00T6Xg4BBXALuhAjlsYp02TSTtVZXDmHjjc89/jSmhxPyJ3Y9fi AQ+GgEHVe5ZVEs3Y8Q7kTBtO6lah8nvMfU77Hd2ghAneSYhtm1TLi7P1yWPi3B0C/MQ/ 8HfRieGihTgUS0QgAuMf43ihd1TurABYSRST2m7vpwIaGT/j5HAoDpT6hM95Ybmli2K7 aMXF6l7ARoI7LYsTuCdoV1DHvs7P4L+VTpqR9XB8mfLhIgJb/WFoLUVU92qThZk9ahB2 CmKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U0RcXeku; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p11-20020a1709026b8b00b001784c98bfddsi3341005plk.24.2022.10.25.12.16.18; Tue, 25 Oct 2022 12:16:30 -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=@linaro.org header.s=google header.b=U0RcXeku; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230499AbiJYSz2 (ORCPT + 99 others); Tue, 25 Oct 2022 14:55:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231629AbiJYSzY (ORCPT ); Tue, 25 Oct 2022 14:55:24 -0400 Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8237CB48BD for ; Tue, 25 Oct 2022 11:55:18 -0700 (PDT) Received: by mail-qt1-x82b.google.com with SMTP id g11so8241911qts.1 for ; Tue, 25 Oct 2022 11:55:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=G81DT6Hk8wYmP7WAjsBWJ9EZ96OdD4msd3DYb7Rw10I=; b=U0RcXeku7aYi0pcT64JZBboG9fr7vw3aXYgZsMWU7ea2lypBlyHVQxhxoj6zWtl3tl 86EQ3oi5n8mpfeq7nWAr3BA4q+3Nngb2BazcVGWQjieVBRvwnNUDXdFZgk3ntdkhEawf ZqcCAtNR7Ctwi/TvQ0spFASBVceaueAaOwzqax2W2WTucgfnOO/U2ZmKjEU0hkE10Psm h3UwkaTlL2p3G+bURSCzvZAVUdtW07fz56vbsG3/j3GGN9zLLMfHsISZWUI2JUlwZof2 xk8zSL0QW8YDtvh7sZyKcovIiiJoZTrJMmRMfo/0KtBGzmwlHxpSei7dHMmcFPCL6nRg 8XOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=G81DT6Hk8wYmP7WAjsBWJ9EZ96OdD4msd3DYb7Rw10I=; b=645kEelMtOfxq3yVkUPsnuLJV9+g/fqoDfqbMntQ8tFfSoxyFMr3XFwgKuMmB5B1t/ WIB4A82vrWKXdlMA2ZkA/VrWOcM6cqh8WIlCdi9FVQwkOl6RyAUVdvkBZCGge76yVRSK R/3RcXfZVytCoJLNDWjGEpPyp8rVwhJvRRSkeFI24SEuaUONHIx2bFBrO0xcCSzS3/c2 MIfj+WzMjXo1bb/6BN2f6kf6Li90oQiuhl5HsIx5+JqFPOT1JdC56IRih7CYPQYbAuqG oY76Xh93esxJK0kVBAFcWu79Y+z4yxNzlfgXIuGtYO8UR8MtQvLY9cTujgHvpqGz4eqb uhcA== X-Gm-Message-State: ACrzQf2TL8wdYjvGP/nYyrjr2xXCYubnTeQ+36NTF6qoi2/AIJwHuZVG GlKKVljOF95tXTIB/hxAL+gstw== X-Received: by 2002:a05:622a:1112:b0:39d:b11:19c2 with SMTP id e18-20020a05622a111200b0039d0b1119c2mr24737640qty.23.1666724117688; Tue, 25 Oct 2022 11:55:17 -0700 (PDT) Received: from [192.168.1.11] ([64.57.193.93]) by smtp.gmail.com with ESMTPSA id ay17-20020a05622a229100b003436103df40sm2027204qtb.8.2022.10.25.11.55.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 Oct 2022 11:55:16 -0700 (PDT) Message-ID: <7c9e943a-4806-6339-cee1-9156e7792111@linaro.org> Date: Tue, 25 Oct 2022 14:55:15 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCH v1 2/5] dt-bindings: soc: hpe: Add hpe,gxp-plreg Content-Language: en-US To: "Hawkins, Nick" Cc: "Verdun, Jean-Marie" , "krzysztof.kozlowski+dt@linaro.org" , "linux@armlinux.org.uk" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Rob Herring References: <20221011185525.94210-1-nick.hawkins@hpe.com> <20221011185525.94210-3-nick.hawkins@hpe.com> <820095a2-3722-5c3a-77fb-5a6b6b44e1c3@linaro.org> From: Krzysztof Kozlowski In-Reply-To: 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,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 25/10/2022 14:44, Hawkins, Nick wrote: >> I understand what you want to achieve, but Devicetree does not seem a tool for that. DT describes the hardware characteristics, but not is exact memory map. > >> Although your goal differs than for example goal of some developer of I2C or MMIO device drivers, but essentially devices are similar. We do not describe memory map of MMIO or register map of I2C devices in DT. > > >>> If this is not acceptable to do through the device tree, should we rely on having an include file for each platform instead? > >> I would say use rather standard Linux subsystems and problem is gone. >> You have fan? Sure, we have subsystem for fans. You have power supply or battery - we have stuff for this as well. > > Greetings Krzysztof, > > Thanks for your feedback. In this case for something like fans as you suggest above would it be acceptable for the fans to call into plreg(the proposed driver) just to read the fan related registers with the fan driver knowing what offset to use? Multiple drivers will need to access registers in this memory range so I am trying to determine if they all need to map this area or all goto one source to read/write to it. I don't know exactly what type of devices you represent in that plreg, but in general the fan device would be the respective plreg. The same with other pieces like hwmon, power supply. Best regards, Krzysztof