Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3966152pxv; Tue, 13 Jul 2021 07:55:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzODFYCf5CcdLHheQocvWbfJiG+RHJ+DFwj1hkuyqNFfN4gnpuHiqrfQ7Rc/B8fUonmA2k X-Received: by 2002:a05:6e02:1c2c:: with SMTP id m12mr2971070ilh.95.1626188130397; Tue, 13 Jul 2021 07:55:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626188130; cv=none; d=google.com; s=arc-20160816; b=O9ZaykPCz9AY3ScbVWl8PMJt0qZk8a7JkVHi4aKODTa1a0ZKVMMJPux4rd5EG4x+eU d+9dGyjnS+qBkZk41K6QjDys1X8VqTqPkkfmVELpbF93tlgciskIW7XFJZ54Cddql8uD zhUuSYw07y9oaORnaOCHqA06X7sqsgmL+5gU75vXhHuRyAZCMeeZb6kg8MQzCZ7W9bGw pjfrV78fmqPlyWoY1QwsZwh7yrvQsxKYRRUJOlhC2bDKb3MC8itMKmgwsW22pjkABeGj aDMT9mu4T7Fp6hn0ZmPs7YRJ0e8cW42KPI6lPk2w4A5Ru926lUB7PIW5fqNL5a4j5QbC QKuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=k4EB4Sx0jgByYWBwXJvCykjKMntXAwLAnZkvJwOEWdQ=; b=T85awCfXmhBcCNdcFPsEh0d95JsMlTgcs4agJCvwDr/KnOi9OycHfbsBTs/EeeMD0i t2Sgmz6D/+tos/NKllJ9Ys/N0ybEtJnenelIrzGydSYnS/C8hMfU/4vdRPzVAJavnTzv M8zdM2iQa7cBErVXOpUUrmhLKeAQnAeJY+vwAVcTREUBzatR9cymbiS2AaS6hFvG2ZDm sAgOyeFozcBcBZDVayh2PzklhboEEfeI+uyMRPhckZXLHvRQ0ewlaYlGU96Az3Krfscl SH5H79bhqdlC/MTXlPDTUkcFOsBHmJl0CY+HsJEsUclkBIGpPQgelYyaZyU7S6rJZiZd XVbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=PbpZ3Zv9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o3si10337215ilc.27.2021.07.13.07.55.18; Tue, 13 Jul 2021 07:55:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=PbpZ3Zv9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236901AbhGMO4x (ORCPT + 99 others); Tue, 13 Jul 2021 10:56:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236763AbhGMO4w (ORCPT ); Tue, 13 Jul 2021 10:56:52 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4162C0613DD; Tue, 13 Jul 2021 07:54:01 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id s15so33498422edt.13; Tue, 13 Jul 2021 07:54:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=k4EB4Sx0jgByYWBwXJvCykjKMntXAwLAnZkvJwOEWdQ=; b=PbpZ3Zv91l1nzaxTFRSV5RCJ0UZMnXDJxa7hn7u6BRCxqTWqxI1G5Wbm4zKEbjuE7z iawq7JjeMNb1OFc6OruibX/GHRxgi/g2AYwfm4zJOHYzqwu2eSJueMn8m5Uzm93nnU17 zbZDQPLsczXsJgDb5p2GMM+nUH2P2Yevrj3e+VpaJFuv3Z3kmqACJWiwpO82DrBzOpCV TVqGNW7vrvNHkVFzz3CE+NnjRIEpAsM0tFH6+8SKTDQYIDbwADWNUxopOvA9bF0QDCsQ 9rAz4uecRNQhkp4obuczNolb95cQ2dDsXpkohzV8YlJ6J5MDeIlTNzvAJsmkMk+djIUx Z8+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=k4EB4Sx0jgByYWBwXJvCykjKMntXAwLAnZkvJwOEWdQ=; b=V9p3SYX6QKefIDY/LGFLChHj0xZWDTiEJULMrYSgNHabj1n2U/PrGQyMCjjZZoR0jz r88HjHfnqLLdk0AOUjOrYNoZ+WP2UpL2QKrSJCGZrIxOjl34d4MjV6D0AcEQfZ/p0aEn t8cpA7FZXO3ONPvrFvfd/XhYjc05rPxRHHzgC4qMe6JuWBULg/YB9lcEzQ8fImGBUD5t ucQOwKS/bRYSggy4ZKxF4I5OkqIGre81JLpgOEvseF2MsNkUMfzX6uZz0WaL8qKE+nG+ FlxtTEmbIsmTMYPLUBiV51VboOcQBUEah1j2OM8KMXu59N+3uFMVEmfSd4LKui5yNn7a YPRw== X-Gm-Message-State: AOAM53386OuKH4SpPAMiYAOk/KxErZaiNgSWWGLewFFt9DU/hq6sgSqr rlQqMaVFgKi2pJiOPPXMiny+DDTrOLIoTaedMhw= X-Received: by 2002:aa7:c74e:: with SMTP id c14mr6327253eds.40.1626188040412; Tue, 13 Jul 2021 07:54:00 -0700 (PDT) MIME-Version: 1.0 References: <20210712201732.31808-1-viktor.prutyanov@phystech.edu> <20210712201732.31808-2-viktor.prutyanov@phystech.edu> In-Reply-To: <20210712201732.31808-2-viktor.prutyanov@phystech.edu> From: Martin Blumenstingl Date: Tue, 13 Jul 2021 16:53:49 +0200 Message-ID: Subject: Re: [PATCH v4 1/2] media: rc: meson-ir-tx: document device tree bindings To: Viktor Prutyanov Cc: sean@mess.org, mchehab@kernel.org, robh+dt@kernel.org, khilman@baylibre.com, Neil Armstrong , jbrunet@baylibre.com, linux-media , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, rockosov@gmail.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Viktor, On Mon, Jul 12, 2021 at 10:17 PM Viktor Prutyanov wrote: [...] > + max-fifo-level: > + maxItems: 1 > + description: > + Maximum IR TX FIFO fill level From Documentation/devicetree/bindings/writing-bindings.rst: "DO use a vendor prefix on device specific property names. Consider if properties could be common among devices of the same class. Check other existing bindings for similar devices." I am not sure if there's a "common" fifo size property for IR transmitters though. Also in general I think it's good to write the schema for properties in a way so the binding validation can detect issues. For "common" properties (like clocks, interrupts, etc.) this is inherited by default However, for custom properties this needs to be defined manually. For this property I would add: $ref: /schemas/types.yaml#/definitions/uint32 (I think this can replace maxItems) And I would define the allowed value, from what I have seen in the vendor driver (which I am not sure about though!) that would be: const: 1024 Best regards, Martin