Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1853970rbb; Tue, 27 Feb 2024 03:28:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUaxVbyPmxPTwaM/Ga+D3/HDoVa2JTgK1O9c/dFdwNcomGPHpSkOuwv6BIsdxTZ3YYX8tJelIGB9iT1LHdt1hT5GqmNzKZBlwGOHgDFxg== X-Google-Smtp-Source: AGHT+IEYaCK5usguOKBOACPcyNblg7G6evhuUjio14zOSUNEX6O70Z+U+BdzmaAfYN3XQpo/44cd X-Received: by 2002:a17:906:1c06:b0:a43:87a3:3ff7 with SMTP id k6-20020a1709061c0600b00a4387a33ff7mr2539437ejg.76.1709033322412; Tue, 27 Feb 2024 03:28:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709033322; cv=pass; d=google.com; s=arc-20160816; b=afwBCcCdszoe4aRYMZ3fODXSiQ8ahJ/AeKXeg6kpqRI50YXKbm6Iml1IodbfwXFIjZ U3JDm69vw5SDPDenFbmTWuhGo18bJ4HdS6jWWBdtFsLRqyhyjnvFrl/UQm8+VTlUU2YG LDTpBFZhJVmw7GyvX9PQ5iN0n6PrWL3yAa1Kh1gzRcLxUagV2CBcRoolzjjOEf6xI+B6 bJ+U1VD7HWvnkcXIkJFIF94ssXGxuXQZ1nUJ7+GUXUSqV05gZ8j9yfi5bI2l3FuG4eNY guKoN7qrVbeJRUlt+IG8r0GlZ5tuOHi8D4txU/O7pTHJr33qsqLQX7blwVajQ8h27+bq 5lMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=FmS1fmjtFOepekF9OghDxYFpAXEvAMzTVh2ZnQm3g+0=; fh=8KxESO+tbI6QxzayK6uSmeunV2qMXZweSZgm7RblbUE=; b=vTri7hQfTnepGhdu1weStv5aO3Ka1LJ4cV3ARX+K6pwKorKwt0aJhD3bWtF9GsTRm4 ocB3tkvenii6+Lvrxlk+v0rhw+tzoCjNZ+rYW8JeQZ3R79GaZrSjoxY60eCEfQQNUWQ4 f5nNJOR7GZGq5jn+9GAyrZ0iTli96E3VPB+fwbwMKkCKc7FhcpJNnMYpz40xTLFp4l/c rjHMXArsoeOYTs3KqrgBfEeAD12pEoBLu7NswD6ArOGxOUmAWXdk4l7FMbM2xpq4ySHL ptY0ea+Y68wgtNLu+KvY3rgVf4hCSA8TElvEoZwbp8GjuEU7aQym8lkA81rzfP6V/RfZ n4bQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=2xupuvuA; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-83123-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83123-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id l25-20020a170906231900b00a3f80a348aesi668508eja.119.2024.02.27.03.28.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 03:28:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83123-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=2xupuvuA; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-83123-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83123-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2B8481F226C2 for ; Tue, 27 Feb 2024 11:26:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C24213958A; Tue, 27 Feb 2024 11:26:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="2xupuvuA" Received: from mail-io1-f48.google.com (mail-io1-f48.google.com [209.85.166.48]) (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 235A213958B for ; Tue, 27 Feb 2024 11:26:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709033203; cv=none; b=sLRYD5A+74qQdy1ZqbkIRJ92cgAaZx7siKueLMumQTGdEpM34q51rQSxHu5vcaElh1+QiGaJOAx7lwJCs7sUTkckDNRx54HPiLZln9ZtIwE/iHRh1NbPT19FjwsR6jBl7sg9yD4Gg5TuB3TdPE4N3ZhVJHHNwSwViPpjKnERn7c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709033203; c=relaxed/simple; bh=6LEpNgOi1GSNcqOgi2znAWD1/XFEjfJ+3V/za/pe8xU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Q3UiyyLjz8TKPHGtTFK9voLN4zZ8uSgvp7YTrkQTpAFl3si7sSRZJTFI/Lyh1olOY2zEBnVEqhG3RmkZmJ8s6kv0C11IoK8abd/y9ybfcT3Hnn8uHge+arsA8ZYHZMYaNIOkSvaBPOFxHOlLDu+G0idOmVgW3GWRp1w5iTM9dbw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=2xupuvuA; arc=none smtp.client-ip=209.85.166.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-io1-f48.google.com with SMTP id ca18e2360f4ac-7c48e13e0d7so236366239f.1 for ; Tue, 27 Feb 2024 03:26:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709033201; x=1709638001; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=FmS1fmjtFOepekF9OghDxYFpAXEvAMzTVh2ZnQm3g+0=; b=2xupuvuAeeZf/QvZiwB/dTWtTrCWa2oKR73mNfX+5DHgFChWxMNfQiGLSQfseBerb+ jn5TeA8ivauKylYK2QkuFyoD86N0MH2RQugmAt0WBwb6O/YVGKA26F5b87KnxdfddxS2 4j8FUsG9fA9f87JPJEhXlsylMHZkKKnDpYFTkv7ojEgVfw3aZ4E8T63fpEHik656EYOq YvwDhYt0vBtHPMmj0eanjb5HI1P8Fz1xPeg+sgPZySpc9NePWSveKYcVkpk8YWRKeil8 ZAjfFeNP+uo67+iRAzjz8lGFmVMNeVd6FWNYNeaxs7eUdl8NJMfi5Lzdfak8YBWXpXg9 nzHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709033201; x=1709638001; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FmS1fmjtFOepekF9OghDxYFpAXEvAMzTVh2ZnQm3g+0=; b=heiRI1MKvQNnwMfJbt1dg/KHgjpgx9zznho3fz1ulJ0IdcgOA25rkRLkSfz1Y8XDPg D/miRGN+vCsracaJbARJnCKTyogxDjf+6pSNAegJN1vuipEDxaUzUWgWilFXdQwhZMd8 mlGLbnzlxwgkEEiq7m7VDON7lMqZyXFGtOuyZwfxbYMpIoLMzcfRxlJ8vXD1Lp3moy0+ 0k5pVRFCDpwSG51S3bgud9UfMCBKU8yArwGnSfj25tg2lhFmtlvB7sd762XcAl0tUAC9 pXiNZl/+VF2/FNbj4zN5gFmNfk14R4vK4pFyDiLiUJoO4cF+UIR5OeNRbwyIinIcxqmb Qd1Q== X-Forwarded-Encrypted: i=1; AJvYcCUuCjPB/UnLJT/wHxlHmofBSCSnbfMMMciHeQjxNpzbGdJsw5DjXcRXYQP05Q4S07tP4YFdKTr+d5+qG1mfhUAJRSxT8Kvme71S3n5U X-Gm-Message-State: AOJu0Yyi16kjdos0Dw1OSzGifPEvz8GfdetNaB3u9e4v/+l3S1gdQzRJ VMu3W8qjNisw/QPyChEK7Uv3J60YSUcyxxwEpEYhodz2iyPirMNdvqSoff1ChtK6yjWS75H2uvc qhpw1ZDdf+XOKfAku2Ns3uApvCUStrNjUJ3oE X-Received: by 2002:a05:6602:f10:b0:7c7:b5a6:42f4 with SMTP id hl16-20020a0566020f1000b007c7b5a642f4mr8390166iob.3.1709033201056; Tue, 27 Feb 2024 03:26:41 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240221160215.484151-1-panikiel@google.com> <20240221160215.484151-10-panikiel@google.com> <310cefcb-a4d5-4f4f-a482-ba2ff08a57f6@linaro.org> In-Reply-To: From: =?UTF-8?Q?Pawe=C5=82_Anikiel?= Date: Tue, 27 Feb 2024 12:26:30 +0100 Message-ID: Subject: Re: [PATCH v2 9/9] ARM: dts: chameleonv3: Add video device nodes To: Krzysztof Kozlowski 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Feb 26, 2024 at 6:30=E2=80=AFPM Krzysztof Kozlowski wrote: > > On 26/02/2024 13:27, Pawe=C5=82 Anikiel wrote: > > On Mon, Feb 26, 2024 at 1:07=E2=80=AFPM Krzysztof Kozlowski > > wrote: > >> > >> On 26/02/2024 12:09, Pawe=C5=82 Anikiel wrote: > >>> On Mon, Feb 26, 2024 at 10:15=E2=80=AFAM Krzysztof Kozlowski > >>> wrote: > >>>> > >>>> On 21/02/2024 17:02, Pawe=C5=82 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=C5=82 Anikiel > >>>>> --- > >>>> > >>>> ... > >>>> > >>>>> + dprx_sst: dp-receiver@c0064000 { > >>>>> + compatible =3D "intel,dprx-20.0.1"; > >>>>> + reg =3D <0xc0064000 0x800>; > >>>>> + interrupt-parent =3D <&dprx_sst_irq>; > >>>>> + interrupts =3D <0 IRQ_TYPE_EDGE_RISING>; > >>>>> + intel,max-link-rate =3D <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 encod= e > >>> 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 i= n > >> 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 The one that's already present in dtschema is kBps (kilobytes per second) which isn't right for this case IMO. > > > 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. I sent a PR with both kbps and mbps.