Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp539750rdh; Tue, 19 Dec 2023 06:35:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IF1ieZ7hrx+TqXdiqZzV8fbzFWidB2x9gTH+GLN3ftK7IJu1Opa+xqooRMm5boQF17dEcW0 X-Received: by 2002:a17:902:ee84:b0:1d3:d645:e05e with SMTP id a4-20020a170902ee8400b001d3d645e05emr1326516pld.25.1702996513166; Tue, 19 Dec 2023 06:35:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702996513; cv=none; d=google.com; s=arc-20160816; b=xkQYXcrIxdTeHUU1TWTUg1IBZ6fHb99YIc2VOBLHC7e0arCs/5AhQkzG9szhOMjQiZ Eo8Z4ObHkrMtGzl9g7N/JO7yBvmch1iBkwPAwn0lTv6vF5bvJLBfTC+27kkMScq/Su4G gKixxdcXOH+kO33OzRi8tl5spP23E2MmStBnAHJ6JjyUagA5gyXXoZt0XDzmAhEUfGLk ihWva654qJMCkKd+ua4dcBOasl1sml/0aiuQuCRcD+G32Y8LOSQY/GERnJPQm6R981yz m5JLkdZrEHy5JuSQuQSQBK5uGCtFMjE98H+eyd5w6zdpDa+OBK5yA8Ro7krBLBniMNaC qGDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=FJ0fIgJFxprsIyxEkHhdAMJUwfKqBB8ndzukjaekHFY=; fh=w5NWoSLlfd580rWBdT8ST2vz1i+3iG4to9CqAZEWm1A=; b=DD+NJFhtg+3Z22S02QM2M9Vys5g5YmNPHsyWpCx1FyX66Yua9hzzDQFFRsX+TaBTdv KhJMMD1rOzqyr33RM767prznCtZhxtLjZi5cAGh3R63Fke5bhvxA0oeCZ4bBKru40qZ/ A+IxZpZfQbx2m6lWT0/udKwia2d+hEMZxsrdiC6h2uiovAS8nOrzmhF6oOoaZmFWBAYo LKuuCGpnL1XmcRlcFzYFK55ujah/t36RkX8u6PEfkvQw6FGbztWL9gNJM+4bjaxx+OUt 0oS0ud87q4QO0a3gN8J597X+5oxT081EZxrPcdCnyzrMeBQyPVn5mdwNiUbp73pmyb0o XLfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gYLlYx1G; spf=pass (google.com: domain of linux-kernel+bounces-5373-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5373-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id k10-20020a170902c40a00b001d35129b583si11608721plk.275.2023.12.19.06.35.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 06:35:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5373-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gYLlYx1G; spf=pass (google.com: domain of linux-kernel+bounces-5373-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5373-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id DB380B249CE for ; Tue, 19 Dec 2023 14:33:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D991F1CF90; Tue, 19 Dec 2023 14:29:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="gYLlYx1G" X-Original-To: linux-kernel@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2F9101CAB0 for ; Tue, 19 Dec 2023 14:29:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702996193; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=FJ0fIgJFxprsIyxEkHhdAMJUwfKqBB8ndzukjaekHFY=; b=gYLlYx1GXFem5w3EHaj5A0TrsP/X8jECPQs+c2bmqEmraDV0L1QRxW8kZhinPUyZTCO8dE zb2U/PmHTlLJEOHFJnqJgogcAdAIxmbOB0tfvauKvNdhvHefg+6k5jMRfZJV1WTYD96ijT c/Odu9xpz9DXqCs7HX2GSOmvut7lfWQ= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-353-4V5PlpzfOpaxMm9Gjw27hA-1; Tue, 19 Dec 2023 09:29:45 -0500 X-MC-Unique: 4V5PlpzfOpaxMm9Gjw27hA-1 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-40d2f6f2787so1344585e9.0 for ; Tue, 19 Dec 2023 06:29:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702996184; x=1703600984; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FJ0fIgJFxprsIyxEkHhdAMJUwfKqBB8ndzukjaekHFY=; b=lLpy+EU3B3zMKCg+ArbUFOz5pLRlgcZATUTPragQex9kYj6p56urNS4bM5EZaMvt+T evReGeYk2VZAeaTQNWgQ/JlQ/Be2QqqrLZSI7VpKMQ5xi0HisCE4JNVtj6oQHP+KV5Et 5KNwju2MwW5yEbhMhF6PBvNtXl9+0ffTvEE+PppecfqSfWumHrisERmzfffS77b2tymP yOKxLHr/+aAZIiLwFRCzsgs2UNRu5BcSY2tB+PeZ/8PMEkTGsQarY8nfdE2OwbGvRmxc PpYV3zZfYOmSQXNHi7OcL9VSywbvf/1USFSCdhIDU4alOP99+0KUOYBVoCzfUqTgj2Cr yJ7A== X-Gm-Message-State: AOJu0Yz1miT3004pr9OlJo9OGb3PWT+dD5cOA8sCTt3Pw4VZDI0lUr66 sKcE+iZSaZpYIfSbCJu3LjLICCcoWpFhxroBGCMlgEv7wfqekVAY7VkW3VmAIVWlKh840SxC+m/ arrE/azCY1GIM+bCKXMLI1Je5 X-Received: by 2002:a7b:c388:0:b0:40c:3469:96d1 with SMTP id s8-20020a7bc388000000b0040c346996d1mr9196320wmj.162.1702996184748; Tue, 19 Dec 2023 06:29:44 -0800 (PST) X-Received: by 2002:a7b:c388:0:b0:40c:3469:96d1 with SMTP id s8-20020a7bc388000000b0040c346996d1mr9196303wmj.162.1702996184377; Tue, 19 Dec 2023 06:29:44 -0800 (PST) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id g3-20020a05600c310300b0040c6b2c8fa9sm3083353wmo.41.2023.12.19.06.29.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 06:29:44 -0800 (PST) From: Javier Martinez Canillas To: Krzysztof Kozlowski , Conor Dooley Cc: linux-kernel@vger.kernel.org, Maxime Ripard , Jocelyn Falempe , Geert Uytterhoeven , Thomas Zimmermann , Peter Robinson , Rob Herring , Conor Dooley , Daniel Vetter , David Airlie , Krzysztof Kozlowski , Maarten Lankhorst , Rob Herring , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH v2 1/2] dt-bindings: display: Add SSD133x OLED controllers In-Reply-To: <1fa5f658-fef1-49e0-b1ca-21359a74e409@linaro.org> References: <20231218132045.2066576-1-javierm@redhat.com> <20231218132045.2066576-2-javierm@redhat.com> <20231218-example-envision-b41ca8efa251@spud> <87il4u5tgm.fsf@minerva.mail-host-address-is-not-set> <1fa5f658-fef1-49e0-b1ca-21359a74e409@linaro.org> Date: Tue, 19 Dec 2023 15:29:43 +0100 Message-ID: <87frzy5kq0.fsf@minerva.mail-host-address-is-not-set> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Krzysztof Kozlowski writes: Hello Krzysztof, > On 19/12/2023 12:20, Javier Martinez Canillas wrote: [...] >>>> +allOf: >>>> + - $ref: solomon,ssd-common.yaml# >>>> + [...] >>> >>> + width: >>> + default: 96 >>> + >>> + height: >>> + default: 64 > > Which also looks wrong on its own. Where is the definition of these Yes, I already discussed this with Conor and mentioned to him that is a typo but already fixed it locally and I'm testing with the correct ones. > properties? IOW, where do they come from? > The "solomon,width" and "solomon,height" properties are defined in the solomon,ssd-common.yaml binding schema file that is referenced. >>> + >> >> ...but when trying move the default for the "solomon,width" and >> "solomon,height" to the properties section, make dt_binding_check >> complains as follows: > > Worked for me. > Oh, that's good to know. I wonder what's the difference... > ... > >> DTC_CHK Documentation/devicetree/bindings/display/solomon,ssd133x.example.dtb >> >> The warning goes away if I follow the hints and add a type and description >> to the properties, i.e: > > Hm, I wonder what's different in your case. I assume you run the latest > dtschema. > Not the latest but had a recent one. I've updated it, so I do now :) $ pip list | grep dtschema dtschema 2023.9 $ pip install --upgrade dtschema $ pip list | grep dtschema dtschema 2023.11 [...] >> But that would duplicate information that is already present in the >> included solomon,ssd-common.yaml schema. Do you know what is the proper >> way to do this? > > Works for me, so please paste somewhere proper diff so we can compare. > With the latest dtschema version it works indeed. Thanks for the pointer! $ make W=1 dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/display/solomon,ssd133x.yaml LINT Documentation/devicetree/bindings CHKDT Documentation/devicetree/bindings/processed-schema.json SCHEMA Documentation/devicetree/bindings/processed-schema.json DTEX Documentation/devicetree/bindings/display/solomon,ssd133x.example.dts DTC_CHK Documentation/devicetree/bindings/display/solomon,ssd133x.example.dtb > Best regards, > Krzysztof > -- Best regards, Javier Martinez Canillas Core Platforms Red Hat