Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp121427rdb; Sat, 17 Feb 2024 01:10:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUdOk+mhrOmT61XsVIBBsDVyL9nVvLUjN6Z3zR0KiacRlpeDDRk3yHuBn+UtiuAQo4/czLCu0Aq0ss3ZngKHDJsQSXD1X9+Zvu+/VeJJw== X-Google-Smtp-Source: AGHT+IEWfNsWXRw38MU9AcL73+iQP1Kz+OOltlqDB1nucsdLm7RB8hfJ4eG/nfpC0wMb8+EOG07l X-Received: by 2002:a17:90b:8d1:b0:299:5160:daf3 with SMTP id ds17-20020a17090b08d100b002995160daf3mr1310950pjb.12.1708161018408; Sat, 17 Feb 2024 01:10:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708161018; cv=pass; d=google.com; s=arc-20160816; b=uIeO8pS3YZ/8tuhx6l+sqpcgYN1PgprUTC4tqd/mwq9dwJtI4bzylrzSJxfeJbyDeK fmXlGs0NpuOKwTO+YTBKnDGdHxbZLvdKbQPge82goHrRbZdodpf7Ftj6mfpxiQjxIUIv h6FjfNFDh74KTtjKjJ7rERRfQKO2AYiPrZGBv6PL2S4aM0TmmUVG4IwNay/vXoidTF+K eS8R/FoWrFqGmeex6P2SJ8kB8KHceqkd0x+lZ9xbvAHChvbgC/VBgJyNqKGoDnUhKnQC bOoSxDFVH2SGcaaS9DNn5NjDxTmqKjNTKZ58UNhAdPg2FPaK9v1CPWo7q32sDuiB9bnj nRDQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=grM+Hh3OEHfgYxcKYaDIFKM2iPilg2mZqTkblEBDEPA=; fh=Fh6dyF56U1eZG33KdmYlJK+fZySjwWrjOUnJP0zy5SQ=; b=uz1rM7f/20dA+E3Swvz2xh7/Ab7Xqag6v2i6NdVJpRx2PxtA34KvvE9l4zZ6PHp4xz +6A8vmIp6TgYyunYfTOc982T3kcssEf33GYoDrYkWyf8nnhVmv0ZhMKKupdgKGvJnqgx EY451pDY2hFxp6OdD7QpYCnmbEfstrdjkXjQWYEF8fiuPk/HhZTVP2N7oFie0i4xyfkd 74wAOB4GiSI9EvsZ8HF2gPDOrCIKXYKPXDHBsugToH4YqEg+t4N46fflCcJiu3i1wgNT O2/vjhCBrCurn5yL4hB8aTJR2QCzsvbcFrm1+K6PKQe/DWFv7aZsCVQ5fEfS07K7JHIp YA7g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MS1cu9ct; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-69769-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69769-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id mi4-20020a17090b4b4400b00298cdba4b2bsi1321077pjb.56.2024.02.17.01.10.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 01:10:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69769-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MS1cu9ct; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-69769-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69769-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 963A1B21906 for ; Sat, 17 Feb 2024 09:10:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 117F61D529; Sat, 17 Feb 2024 09:10:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="MS1cu9ct" Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5AC311CFB6 for ; Sat, 17 Feb 2024 09:10:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708161006; cv=none; b=balChdbdYebd74f7GLyZ8rV0zXWlb408PF+HzRINf9/HGeZtyUq0B6ZmkMIJMB1FiflBPp+4DVfxJtMr3cbvfEVdXHY8jppwv7FBG/elXSw6+/XMWaiS+D094095jWHJmx+4C2rvoQn+sESD1D5xlJO7F84FRDzNFMiRf67H6iA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708161006; c=relaxed/simple; bh=EN1VAH6v1Opt5LMoULzU1VdY12qRp59oWejiiRhW+uQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=W1PyuHinKgJxpVFfQcZR+/Vr/f0f2gOlVrgB5aC1Hx8YrYEKP5lz+nrrodAFmdlHSSemtx9F1pudDBLc27Q9ypSXxDKVCqPKQk2aiMnp5nTb0neTFZ11f/eZ6ER7i+SKtyAOqRpGpy8HD2QHuOJ0mAeMDX3mt26PJLsoqgiuCn8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=MS1cu9ct; arc=none smtp.client-ip=209.85.208.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-5610cc8cc1aso3002188a12.1 for ; Sat, 17 Feb 2024 01:10:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708160999; x=1708765799; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=grM+Hh3OEHfgYxcKYaDIFKM2iPilg2mZqTkblEBDEPA=; b=MS1cu9ctE21tFGmBcbmX0g07JnCshit1nDcG4djoGdH97/wFQKDid+XcSq+SumfMEr XN/x5tSTfKX5d6TTO+u16O2vMWDwgbNdLGRkTzh0xu8pEgPtQtaidOV4WQq2Dx61G/41 UciHYN1pji4ySjtUHUlXu4tfhlCle17Eh3HaNW8T0G8IfORR8U1Wup2PWUXvWxVUfIfw 68CC0bjaqx+gxVp/rpD+EvknfRdJN+KnlxT/LeJdXTnQxBpdSQBtHpZXi6wr16HPajhl Dzrl2LSxuBEoQpm3iVRwmRhPdTJjoXOZhBZRczVb0aOtDjLF7CDFJIvkx97ASLSc0UC6 orBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708160999; x=1708765799; h=content-transfer-encoding:in-reply-to:autocrypt: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=grM+Hh3OEHfgYxcKYaDIFKM2iPilg2mZqTkblEBDEPA=; b=Pp9OWvsn0ZUHyoeupyYzld32Umo3ApMj5W1uGS/7AcUt3zaTtwMSRZ85jUeN2V1yAB TVj2Bi6GD/or7XvVODS8G8hrvwcj/nnUsH38TOaUgOvZKeWFW4n2uU0wn0uBboyCvnty rn8CWjyUzhI4p3ZZEdQjGsCwcO7Q3Wk5ERXyiYAEs4obfcwceovNeB9B2Uqo0NsS4t9f bHcpwek8189LuQYHIMniwcGC7EebcUc6ZyhcmyYNEMxvRXm69Oi4l/aj18l5GSpgMVwx f3ZC4bGc9gWheMjqocaioMOaOyQ8luCYStCbXCKMwg5TeULVPVvv/JCZ1ZzjzlX24Arz 8W0A== X-Forwarded-Encrypted: i=1; AJvYcCWqEpFNtrtiq+FfUEGgneU+phY9t+RxNdU9p9EMR6A8Q2yTjpBaWGuUQWuj+YxF2r9YI103o32kCS1x639lt0jq8PZIYHD3lORH3i0+ X-Gm-Message-State: AOJu0YwJAi9UnlfQ8RYHy+Z3t095jbHAiaGOWqw7HCobpk1fWUhsu8Lh qcUsbUMyUV465aNIXSEJmJ8XuWtwwmf73hOwm7H54On0HlfZaVEgkSo2GmRE140= X-Received: by 2002:aa7:d355:0:b0:564:3231:bd09 with SMTP id m21-20020aa7d355000000b005643231bd09mr336914edr.13.1708160998689; Sat, 17 Feb 2024 01:09:58 -0800 (PST) Received: from [192.168.0.22] ([78.10.207.130]) by smtp.gmail.com with ESMTPSA id ev24-20020a056402541800b0056163b46393sm729306edb.64.2024.02.17.01.09.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 17 Feb 2024 01:09:58 -0800 (PST) Message-ID: Date: Sat, 17 Feb 2024 10:09:56 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 3/6] dt-bindings: cache: Add SiFive Extensible Cache controller Content-Language: en-US To: Samuel Holland , Will Deacon , Mark Rutland , Eric Lin , Conor Dooley Cc: Palmer Dabbelt , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Walmsley , linux-riscv@lists.infradead.org, Rob Herring , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org References: <20240216000837.1868917-1-samuel.holland@sifive.com> <20240216000837.1868917-4-samuel.holland@sifive.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIf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Dm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240216000837.1868917-4-samuel.holland@sifive.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 16/02/2024 01:08, Samuel Holland wrote: > From: Eric Lin > > Add YAML DT binding documentation for the SiFive Extensible Cache > controller. The Extensible Cache controller interleaves cache blocks > across a number of heterogeneous independently-programmed slices. Each > slice contains an MMIO interface for configuration, cache maintenance, > error reporting, and performance monitoring. > > +allOf: > + - $ref: /schemas/cache-controller.yaml# > + > +select: > + properties: > + compatible: > + contains: > + enum: > + - sifive,extensiblecache0 > + > + required: > + - compatible > + > +properties: > + compatible: > + items: > + - const: sifive,extensiblecache0 > + - const: cache > + > + "#address-cells": true const or enum: [1, 2], depending on the addressing you need here. > + "#size-cells": true ditto > + ranges: true > + > + interrupts: > + maxItems: 1 > + > + cache-block-size: > + const: 64 > + > + cache-level: true 5 is acceptable? I would argue this should be even const. > + cache-sets: true > + cache-size: true Some constraints on any of these? > + cache-unified: true > + > +patternProperties: > + "^cache-controller@[0-9a-f]+$": > + type: object > + additionalProperties: false What is this object supposed to represent? Add description. > + properties: > + reg: > + maxItems: 1 > + > + cache-block-size: > + const: 64 > + > + cache-sets: true > + cache-size: true > + cache-unified: true cache-level > + > + sifive,bm-event-counters: > + $ref: /schemas/types.yaml#/definitions/uint32 > + default: 0 > + description: Number of bucket monitor registers in this slice > + > + sifive,cache-ways: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: Number of ways in this slice (independent of cache size) > + > + sifive,perfmon-counters: > + $ref: /schemas/types.yaml#/definitions/uint32 > + default: 0 > + description: Number of PMU counter registers in this slice > + > + required: > + - reg > + - cache-block-size > + - cache-sets > + - cache-size > + - cache-unified > + - sifive,cache-ways > + > +required: > + - compatible > + - ranges > + - interrupts > + - cache-block-size > + - cache-level > + - cache-sets > + - cache-size > + - cache-unified > + > +additionalProperties: false > + > +examples: > + - | > + cache-controller@30040000 { > + compatible = "sifive,extensiblecache0", "cache"; > + ranges = <0x30040000 0x30040000 0x10000>; > + interrupts = <0x4>; You use hex as interrupt numbers on your platforms? > + cache-block-size = <0x40>; > + cache-level = <3>; > + cache-sets = <0x800>; Best regards, Krzysztof