Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp511604rdh; Tue, 19 Dec 2023 05:57:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IGlDt1ghpSpaR5d7dH9Ys41vzJRvBRyGESm+pRRLMSktREPckxM+FvXklVpUcjLxfJe+DN/ X-Received: by 2002:a05:6214:f6f:b0:67f:20b3:aeb with SMTP id iy15-20020a0562140f6f00b0067f20b30aebmr10922645qvb.60.1702994238818; Tue, 19 Dec 2023 05:57:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702994238; cv=none; d=google.com; s=arc-20160816; b=URvcZo6QJ2Yyz0J9+RCvyuZL8Jo6ZnPvT9xZVNf30uI8Hg5xQbA9YOdeAgsyGToIjr Ol6FUXAnTZHPKxn91IMMgnfPyzRbCzZdDmJHxSYFQf80HjpHS1sxmI8XhMoVioaAkgCt PnCCp0BjhkrtF5iPX6AOtUPB+iRGn0v9cR2sFjsmyt4KE1sZmg1/IfHNP9evrNdVkPp+ fXvD/xub7JWepUA7J2ntOjRxhXz6/k+6AWgDCDKCjYfnyuz4UydWr9b1O8SFtz2oJa6U Gq0qBMm7ks6Xuhwdsx2+6MpZbimcgf1UC6qhMJk7D32EFX7jplvMNXrhhz3/I9gxwZDX SSzg== ARC-Message-Signature: i=1; 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=/jV7qciVEN9etHxFKKypbaAqxfYKJxHXL5kiTpWoiKo=; fh=Ig/na3s9BazU9CX8XQMM6E2S7cdrEDWUvu8dQzW/12g=; b=U1ZnXei8MhlezYaNpm4JBYoDCvkIhlkQ4nMbyfoDBzcBMIPq3j8hZfoQZuShoIUXOV gMhe8yhkDVqMqKe3uebvwWTLnxFaHx4kf2SE+TP8QOjq7Y507q4kcgb27lxegXOiMb8Z 6kJTqvHAJ5ctbpcyQzYHk8UVc/pA8EprWHjwsl1cfWFul5WHKxPrUWTqbK7plFO25kU5 JTdD3dQL9dlhDGlY/iTOVVdd0uXgBC0UHDSvmPxjcTS9bm5Nreab3boVz+L8Sszafi1u MaT5MOiJIGmsCV1VEWYFsm3myX5mHFbusxMJSFQ8LCsMTxXeyXKiHpMZaA6GzGyn/hXa t4GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pHRmqwBV; spf=pass (google.com: domain of linux-kernel+bounces-5296-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5296-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 d25-20020a0caa19000000b0067f056ee1dasi12857383qvb.68.2023.12.19.05.57.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 05:57:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5296-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=pHRmqwBV; spf=pass (google.com: domain of linux-kernel+bounces-5296-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5296-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 7F9831C23E5C for ; Tue, 19 Dec 2023 13:57:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 43A051A59A; Tue, 19 Dec 2023 13:57:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="pHRmqwBV" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (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 8BC451BDC4 for ; Tue, 19 Dec 2023 13:57:11 +0000 (UTC) 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-f44.google.com with SMTP id a640c23a62f3a-a236d77dceeso188622966b.2 for ; Tue, 19 Dec 2023 05:57:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702994230; x=1703599030; 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=/jV7qciVEN9etHxFKKypbaAqxfYKJxHXL5kiTpWoiKo=; b=pHRmqwBVMWt+VwvAO4XdxrB44TBHPmt0NrSRvM1LVfpoYTsROBCkvr8R8nInxn4Yl/ eoLD6FrYWDdWeRgwkhNa7JuuxC9d+8jefylA3z/5rft1sWHTkjbk0k6npSBfuXq1gyIU Gzq6O6187WDHCAfUhpPsWZyvAZrO91AmNjw0wa9hlAstQyvBJG2ZrdJn8gyXzW4G3uXi 7ohXWyzYTRhCN3e9SXstYC6cvqoo8OVgsVer/FzTd459KMFVGlHtAUtXnoTEgtGz+4dk Ac1p+AhIpvq9NfLvQJvrfF4JOd6raG68idRJ3PkqsZG9rid8z9MVxic00vKiOZKzLZhk vYFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702994230; x=1703599030; 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=/jV7qciVEN9etHxFKKypbaAqxfYKJxHXL5kiTpWoiKo=; b=JC3CXz9to0hEoXbUm/2Ps0Cn+pz5hf+kPU4W80cRb9pUhCysgEkeBUD4vVeNxeeqEy wPoGVqZX/k6HjTnZrQSbTQdwou5dWn4AyHnBELaLRtDcgR1oc53uRME7DBVREizDK2oI 9cnW4UWkSCk1YM0O/b0pra7hLBPa9pakDndwk+sbE2KDQjFVHvUGMYYiMTMQTEzkQ9pL lsH0scnnBDXU5DLCPUW0+jfRIdwIdUuofSo1FuSlEItaGkU0TxAq97smkaiIo05UuD6a UsCB0hi+2VZNS0b2DqJhbVrywMIYkJa/6A+q5ezD2nGzW6fe9UvL2U5ZFsrPcylgU1fO 9UEg== X-Gm-Message-State: AOJu0YzpAaGBvfCgp/CiokmaWMPfD6VyvqxauXg0VQvaDE7YGL3qcPSE KcwM2Vd0OwS899wjUdsfrF6UZQ== X-Received: by 2002:a17:906:2b5b:b0:a23:4576:377c with SMTP id b27-20020a1709062b5b00b00a234576377cmr1445190ejg.211.1702994229781; Tue, 19 Dec 2023 05:57:09 -0800 (PST) Received: from [192.168.1.20] ([178.197.218.27]) by smtp.gmail.com with ESMTPSA id ux4-20020a170907cf8400b00a230f3799a4sm6885154ejc.225.2023.12.19.05.57.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Dec 2023 05:57:09 -0800 (PST) Message-ID: <1fa5f658-fef1-49e0-b1ca-21359a74e409@linaro.org> Date: Tue, 19 Dec 2023 14:57:06 +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 1/2] dt-bindings: display: Add SSD133x OLED controllers Content-Language: en-US To: Javier Martinez Canillas , 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 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> 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/6C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4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <87il4u5tgm.fsf@minerva.mail-host-address-is-not-set> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 19/12/2023 12:20, Javier Martinez Canillas wrote: > Conor Dooley writes: > > Hello Conor, > >> On Mon, Dec 18, 2023 at 02:20:35PM +0100, Javier Martinez Canillas wrote: > > [...] > >>> +allOf: >>> + - $ref: solomon,ssd-common.yaml# >>> + >>> + - properties: >>> + width: >>> + default: 96 >>> + height: >>> + default: 64 >> >> diff --git a/Documentation/devicetree/bindings/display/solomon,ssd133x.yaml b/Documentation/devicetree/bindings/display/solomon,ssd133x.yaml >> index 8feee9eef0fd..ffc939c782eb 100644 >> --- a/Documentation/devicetree/bindings/display/solomon,ssd133x.yaml >> +++ b/Documentation/devicetree/bindings/display/solomon,ssd133x.yaml >> @@ -9,24 +9,24 @@ title: Solomon SSD133x OLED Display Controllers >> maintainers: >> - Javier Martinez Canillas >> >> +allOf: >> + - $ref: solomon,ssd-common.yaml# >> + > > This part worked correctly... > >> properties: >> compatible: >> enum: >> - solomon,ssd1331 >> >> + width: >> + default: 96 >> + >> + height: >> + default: 64 Which also looks wrong on its own. Where is the definition of these properties? IOW, where do they come from? >> + > > ...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. ... > 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. > > diff --git a/Documentation/devicetree/bindings/display/solomon,ssd133x.yaml b/Documentation/devicetree/bindings/display/solomon,ssd133x.yaml > index 880c71fdec68..0f4d9ca7456b 100644 > --- a/Documentation/devicetree/bindings/display/solomon,ssd133x.yaml > +++ b/Documentation/devicetree/bindings/display/solomon,ssd133x.yaml > @@ -17,6 +17,20 @@ properties: > enum: > - solomon,ssd1331 > > + solomon,width: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Width in pixel of the screen driven by the controller. > + The default value is controller-dependent. > + default: 96 > + > + solomon,height: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Height in pixel of the screen driven by the controller. > + The default value is controller-dependent. > + default: 64 > + > required: > - compatible > - reg > > 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. Best regards, Krzysztof