Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1447892rbb; Mon, 26 Feb 2024 09:30:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWg/YQBnZkSVa6bwqeYvQh0JSkocSfXfyHO0Xc3T+bLDrzJ++KEi8f9vgMr7hoe+sPWegKCWIEodxSXy7R/g29gRI8UI4PEG1wFByTluQ== X-Google-Smtp-Source: AGHT+IFoAJapIKWZ7quZv/7jt1x56qiI9p/w5Wz6rpxq8OWWo0gARee1h13wScneBN/RvXbLAKaa X-Received: by 2002:a05:6214:2424:b0:68f:6116:6f97 with SMTP id gy4-20020a056214242400b0068f61166f97mr14340636qvb.16.1708968659493; Mon, 26 Feb 2024 09:30:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708968659; cv=pass; d=google.com; s=arc-20160816; b=AHNjO/bqF38Htp3kGN/SAEcePvmBC33Vrzp1P8Oc58XgmcCVomkEgQxKDZroJlg2L+ Byh3baXEQK8q6iIFBwG3mQXo/bGNDAGC1w04u9428izrWArmWPuH4mgKd6ZjtCW8ndLo hY1okRy1Xdgs/rK3hNGgh9QyH7p+gVfv0X7Rpled3wHQDvDwuirjSyNnkaA6wUZwrC8D AA13RXOJ84wyFPphRPrG8iZ9LF6KKf4DTU7zOiMqOYff2XAyEpGSiyr06CGsYm2X3iL0 EjlMEwZJDjhLMwX0CxNndrTSe1MZwDibi+o0u+TPJyvmBPHdSdq65Sed9u0MKQ4A5Xeo 9Q6A== 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=bn0hlznCVxSrsNV/WAQtHRCks7XQUrAy3V66ZRa2PDM=; fh=Sg+2pBHLCMG2qb7Kb1h+kdOhk10MmtydCA/tmcX/uSo=; b=GKOkn+h++SjrHSxQmXcvKXBDC0H27aAHTo4kbXyMcegSWb+krK/2jIzA4jhkuDGTuk uf4Zks6ZK5vdTbs79w9pFLWTqOZqWetOt/WkHexV33QMY7IPdu/khP0xoetcyxKChJgp vQMGhbTx5eObULeDvPe2QllFNz8Ea8HJFdhXOyFFtB04bZ/fpW/vs34Q7EcgGZGpNvfu 8xojCl94BezOmVOau3dpksOdvqUruLfJVLpxKUUWUNKGRcSz6Lb4zZmYs1v4FTM/AJ6b 7epktOxN3x6VtdrapRzc+eSguU8Wp3SEYKGbamDp2m2/ZUJQuFfcT4gYzutl0y1OPnUI +4Bw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NQOunsaH; 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-82062-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82062-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id gm3-20020a056214268300b0068f34f21e75si5588081qvb.109.2024.02.26.09.30.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 09:30:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82062-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NQOunsaH; 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-82062-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82062-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 942321C29E7A for ; Mon, 26 Feb 2024 17:30:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0847912E1E4; Mon, 26 Feb 2024 17:30:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="NQOunsaH" Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (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 23AC612DD87 for ; Mon, 26 Feb 2024 17:30:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708968622; cv=none; b=O/2jzZ0y1PBAhSQ5L5CoIuq3wdn2f5qNKNzJK1z7+XSDSr+ysFwtxmuJLQHk2GhP3eFs895gULRf7zchnhfE/s+UfvF64uM2YaPtE2HZbDu9pFl8QR+vwBbCfhqdCElLa29HayIL0o8YHSIH2h+r9kDRWRR8NNq/mq1nFw9J6dw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708968622; c=relaxed/simple; bh=4OMXV65rzu96gvt6FiMb13JcSwhvInnta0hh9zilWY0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hztM76Q1W6ACB+40NRigfPCfJ6z1BpHwci5gBgHyTiL8tKfVX6+WYd2yF/fIdX7p7FUJwLED8G1KVbRnjjMcpkNA9iMfKNG43WuKeGSEOm9phkm+e9VsMZyqRyK5KQTmophQF0y2XN82j7Mn5mCE1+wYbILB6GD7zfo8yShf4ak= 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=NQOunsaH; arc=none smtp.client-ip=209.85.218.51 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-ej1-f51.google.com with SMTP id a640c23a62f3a-a34c5ca2537so451324866b.0 for ; Mon, 26 Feb 2024 09:30:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708968618; x=1709573418; 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=bn0hlznCVxSrsNV/WAQtHRCks7XQUrAy3V66ZRa2PDM=; b=NQOunsaHcTZaJI40nMV6ASl7cNmeuIvPENwOTYq0m9pMffby/7bOSun5mDJ4F3VOeX sGm2agnyIw1bZk4bJH/5CxUYOHiGGBtrf6jgtMlysIgaYI/oDUUjCK6XlT7Lt1HwyudZ b6gTJcWSsFciVcv0R5k1zcguqoIaB5YYlxBsacfSIEb4W9j7536Kdb9TMmGjKhh4BF2t D72tDoGK+dYQw0Fx5jEs8uecNwtWc1GTBxnr8oIRmLxlF3V2kd85luKxwohCBOWT+ge1 3Ytwaui1oCKi6DO5shG4DRUtQ9XCgyfU6DDezx2vMrYDbrxJcR4q4x2x9RGeSc/PDVeB J9QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708968618; x=1709573418; 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=bn0hlznCVxSrsNV/WAQtHRCks7XQUrAy3V66ZRa2PDM=; b=Lr/niTnIvv97DikoWf4QPTFts/q9tRyFrL7vuSZtlM9B4r5XU7y/M3IYP/T4ZD3c1w MhRwjB47Vhn55x68FoLB06W6ewIn6lWhvHfUK/HmwCMBBDpyU3JZ3Maelft06ffivLhk J1tvBUPqSnc22Wm4lBjVgZhP37FSO7Wkx66crC+f+NiudMR4wd1LZtxiesjwb4oD/OID 4f3N5t8p0+6EKuD2nhLg/skxZ18A6B9QjI0PTg8awbjyFOlyMLyWBpLPVjjzT2/epDxu cSpeeniZOw/SGkxXq4eys8M58pXamuNLwbr7pOQV7WMMX8hB6TwC7MhK1Rw9lVZgkBO4 BXcA== X-Forwarded-Encrypted: i=1; AJvYcCVOZNzM2v7sUBxrZhZ8AreRlG0lRPp6P6hRdcDQMS0bQdaFaTNG87HHONDXIPs/tOpP2FDqWf0hHDy3HwGvcgX/dUJoRbblFICjBJ/f X-Gm-Message-State: AOJu0YxItswikVVe+BRYzgx8iNoFnVvEIVqNM5cLtZuMLMHbhLGGx4TN G21LJex7tc6+i2Dx5VlAKqHOa4GhZi1qtc2eF4iz0vGrqNLxt47ktueqzgVK8kA= X-Received: by 2002:a17:906:f20a:b0:a3d:169a:220c with SMTP id gt10-20020a170906f20a00b00a3d169a220cmr4246800ejb.24.1708968618530; Mon, 26 Feb 2024 09:30:18 -0800 (PST) Received: from [192.168.1.20] ([178.197.222.116]) by smtp.gmail.com with ESMTPSA id z22-20020a1709060ad600b00a3d125b9c0asm2574985ejf.81.2024.02.26.09.30.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Feb 2024 09:30:18 -0800 (PST) Message-ID: Date: Mon, 26 Feb 2024 18:30:16 +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 v2 9/9] ARM: dts: chameleonv3: Add video device nodes Content-Language: en-US To: =?UTF-8?Q?Pawe=C5=82_Anikiel?= Cc: airlied@gmail.com, akpm@linux-foundation.org, conor+dt@kernel.org, daniel@ffwll.ch, dinguyen@kernel.org, hverkuil-cisco@xs4all.nl, krzysztof.kozlowski+dt@linaro.org, maarten.lankhorst@linux.intel.com, mchehab@kernel.org, mripard@kernel.org, robh+dt@kernel.org, tzimmermann@suse.de, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, chromeos-krk-upstreaming@google.com, ribalda@chromium.org References: <20240221160215.484151-1-panikiel@google.com> <20240221160215.484151-10-panikiel@google.com> <310cefcb-a4d5-4f4f-a482-ba2ff08a57f6@linaro.org> 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+XWKydnmsfY7SSnjAzLUG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KiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 26/02/2024 13:27, Paweł Anikiel wrote: > On Mon, Feb 26, 2024 at 1:07 PM Krzysztof Kozlowski > wrote: >> >> On 26/02/2024 12:09, Paweł Anikiel wrote: >>> On Mon, Feb 26, 2024 at 10:15 AM Krzysztof Kozlowski >>> wrote: >>>> >>>> On 21/02/2024 17:02, Paweł Anikiel wrote: >>>>> Add device nodes for the video system present on the Chameleon v3. >>>>> It consists of six framebuffers and two Intel Displayport receivers. >>>>> >>>>> Signed-off-by: Paweł Anikiel >>>>> --- >>>> >>>> ... >>>> >>>>> + dprx_sst: dp-receiver@c0064000 { >>>>> + compatible = "intel,dprx-20.0.1"; >>>>> + reg = <0xc0064000 0x800>; >>>>> + interrupt-parent = <&dprx_sst_irq>; >>>>> + interrupts = <0 IRQ_TYPE_EDGE_RISING>; >>>>> + intel,max-link-rate = <0x1e>; >>>> >>>> Rate is not in hex! Rate is in Hz, at least usually... >>>> >>>> Fix your bindings... >>> >>> This is the DisplayPort link rate, for which the allowed values are >>> 8.1 Gbps, 5.4 Gbps, 2.7 Gbps, or 1.62 Gbps. The standard way to encode >>> them (used in the DisplayPort DPCD registers and this device's >> >> Then it is in bps or some other units: >> >> https://github.com/devicetree-org/dt-schema/blob/main/dtschema/schemas/property-units.yaml >> >>> configuration) is by multiples of 0.27Gbps. This value (AFAIK) is >>> usually represented in hex, so 8.1Gbps would be 0x1e. >> >> No, the value is represented in logical units. Frequency in Hz. Rate in >> bps/kbps/etc. Voltage in volts. > > Okay, thanks for the info. So if I understand correctly, the max link > rate should be represented in bps in the devicetree, and then be or kbps > converted to the per 0.27Gbps value by the driver? If driver needs some register-based value, then yes. > > One problem is that the values here are too large to be represented in > bps (since the datatype is uint32). Can the property be in Mbps > instead? Can be. You can submit a patch to dtschema (patch to DT spec list or github pull request) adding '-mbps' as well. Best regards, Krzysztof