Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7715316rwi; Mon, 24 Oct 2022 19:29:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6KCV/TKU/jJP4c61fWvt72PD6Wg3XmLUPQxHRm3Va7NvB7VL0EdsU/hj8YDm8gsAQp8VPM X-Received: by 2002:a05:6a00:1309:b0:535:d421:1347 with SMTP id j9-20020a056a00130900b00535d4211347mr36833940pfu.5.1666664969662; Mon, 24 Oct 2022 19:29:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666664969; cv=none; d=google.com; s=arc-20160816; b=aHOxSgOP7xrPbzgjlhcjTJULueg8qu/bgtIA9HnRKvtug63wc7FB/0Cu6+eCah5g6y C3upMHg72AD1QDyjXG7wajzN5gDpnqFGypdghqoBlaecMYJaQG1MzRuEdwUkhedJFi7U 1UgygexwM/l4UQ/eigGJz/PZ2Llhq5geNh+RiUmIvDb9UwAD59I9Pw5xdR/8ygJ+Ev8I YIlAs6Wr2njF+ORi6fC89ouP4ImHxySV3PAFND5V5Jw3MUyGStoNVa6iaD1O7Z72zsMA j1YbBzCczE+xMclJ2XkADh+fVO4zzimmQDAL36tX45rNcigjREG6WOnJW+Ia9mgZa+zg GcOQ== 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=fMyBAadE9jT7keW2Iz84U2Ui+EeQMGMSZPVnQH8Mg94=; b=CbkY1G+pdLCMRwYzKAmWGk4H/8n6fRbdtOSvHiFKaCa2p2o13AkfwpI6qONZwiPArL RlxCZW3224YuLpr4COdBjmAe32Vq5/i+wyKTjwxwb+r32FB+IEYNtf02yz7N+ugzoP8b PXgdLPK4eV6GhG78vBwCKFjpiNKCU9O3nYspZRgCKaFjPcj3vLNZkj+I6xw36ZFweQYq GGxfimcMFysQ8O8uM7HJuFd3CnU0bYeU96qn/gF0IoDTDvVep7rMEB2Wep42k+vYtj6u KIrUFu9T/pAkhh07vkySjWRJB+I6Qa7xQW8U1v3rilsutNcGRelENisCoO+u7UNR1vsS kq5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E89tmkbu; 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 n8-20020a170902f60800b00176b8830921si1378788plg.294.2022.10.24.19.29.17; Mon, 24 Oct 2022 19:29:29 -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=E89tmkbu; 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 S230046AbiJYBHx (ORCPT + 99 others); Mon, 24 Oct 2022 21:07:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230108AbiJYBHg (ORCPT ); Mon, 24 Oct 2022 21:07:36 -0400 Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1B0A171CF3 for ; Mon, 24 Oct 2022 17:15:29 -0700 (PDT) Received: by mail-qk1-x733.google.com with SMTP id j21so7123530qkk.9 for ; Mon, 24 Oct 2022 17:15:29 -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=fMyBAadE9jT7keW2Iz84U2Ui+EeQMGMSZPVnQH8Mg94=; b=E89tmkbuGxzrnlxxXB5ytpm2tNdd7d2sUi6NwZwhxSgOrcmwyqqB6BPArnDWGNM7NM hfphQVLeRbeFieuiqvY+h3lJjIBtb9Wh0vMrbYMXblhoiezJvfph8z4+rMUIbGzobJos yY5dTGKtkpsVRh0u+J/ZLH7cx2RK0SBbpO6HmVKooLqt7HVfbDUN1Rxdlh4gmwNlySvG PJ3Fqjt4cgDy6ELwSZFYOXQd9tcFkX8pf2BSTJfs9WhYplac8nx3qvl1ZDR+LDo86nbm kp+80xTK4F1Qp+oQGq85legG4rAODphXrvRFPejvbgmRlwBf18IIA3vQN9JGIkUYQKs2 V46A== 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=fMyBAadE9jT7keW2Iz84U2Ui+EeQMGMSZPVnQH8Mg94=; b=rQv9nBrF2pjRlePuap/Z8Ipk6a2X7yM2c91OcilcPBcI4Kf4N/O07EbbMqDF0tHNLa 4mhHojmd8OtQ7BcMZjpYfavHDQYHhIsO0ZRerLFVpL+XIJpUX+c4EjwGs13ZIUkuF4ac KfogktK+6cSqf5jO7b2RIm2y6pm+omd/8U8YCuezutHBGOX8/NyGIAud/6jXt8mkC1Mu qMhghtOKsYqhwW/MAqn6LaK2x749teq+WJZ3zvM/ZFM0t0JbzuBuEep/r/zeDBuJkTxj H5D8HdhcJfmlz6SRTlWKC0l6lwGJJEdiVDxd2RHEy3t05adNAssT6P7o7WlfVYFY+ZdV 8UIQ== X-Gm-Message-State: ACrzQf3PVnMkHHhctjlJyFnrusopmf6bW8k2WRe8i57bqyB1W74Sr8bM 3//TnA2Lsgh8tT2aPg7kyBW5hw== X-Received: by 2002:a05:620a:6009:b0:6ec:ed49:b93c with SMTP id dw9-20020a05620a600900b006eced49b93cmr25597569qkb.180.1666656928817; Mon, 24 Oct 2022 17:15:28 -0700 (PDT) Received: from [192.168.1.11] ([64.57.193.93]) by smtp.gmail.com with ESMTPSA id dm12-20020a05620a1d4c00b006b5e296452csm1017225qkb.54.2022.10.24.17.15.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Oct 2022 17:15:28 -0700 (PDT) Message-ID: Date: Mon, 24 Oct 2022 20:15:25 -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 24/10/2022 20:03, Hawkins, Nick wrote: >> I don't think DT place is to describe register or memory layout, with some exceptions like MTD partitions or nvmem cells. Basically you are representing here a device register map inside DT, just because it is a CPLD. > >> Every regular multi-functional device handles its register map in the driver itself and uses Linux framework to expose the internals. CPLD should not be different, except that is programmable. > Hi Krzysztof, > > Thank you for your time and feedback. We are looking for a place to describe differences within our CPLD implementation due to our memory mapping not being consistent. The idea we are pursuing is to use the device tree to serve as an input to Linux to prevent driver code fragmentation from multiple platforms needing their own specific offsets. 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. Best regards, Krzysztof