Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp420148lqs; Tue, 5 Mar 2024 06:07:51 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUTmcPDdNkhe49X7BTohFSNfABwJgfMm6oQkDpaBM+PfiwWjG5ys62YV6nY3LspmiAeSw8kuP2uXm9Cb3sekV3K8QybreXMyOv2qzXCgA== X-Google-Smtp-Source: AGHT+IFcTuUhkTBwXAqQXbgpnNjXuQwvIowTQyi5rXjeKWc/Xy0rw2/FDZzpM3AH/w02imx/NmsJ X-Received: by 2002:a17:906:2b15:b0:a44:56cf:b58e with SMTP id a21-20020a1709062b1500b00a4456cfb58emr8498039ejg.18.1709647671050; Tue, 05 Mar 2024 06:07:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709647671; cv=pass; d=google.com; s=arc-20160816; b=ThzfumxWXd4o73rgIgnGawlMqtgH3X4Go07bEGgGrApyUKehzJOou6XUz21hgkJ7tD SC0Dq3E1OBZlwKRMMKCfqqOdYxGeKZMs9wYcTEwQwSS0ESN1j/QOCnsQBs97vuSeZcME IPGZONiViCK2mIqlfCMVEm7/M35/BPItf4UmbyQAl2vu6DeBe49TL6Su53Yrw7WQcBHW 4zdZ7uR3nWv10+pDvRPECZXYyGETUNbe4AuHkr7bDBwQl0cXdda7c4E/uRqF6bfzxN32 /Q94r1al1YmOmDQ83x+wnECTFc1Ixu2ozmBJ4CbJS5EJ5jaeFdCNwqMGXzhrCs8motXs 9Iqw== 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 :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=SQZ1KwugUIsv31guuZMgo+Gr8p+7fO4HrOSEdoTVaKw=; fh=gYqA/7yKpodl9srV/sGXwaKTbrVMsvkd8L987FtenZI=; b=FPYPHGnNSVFYPkh+WtAluY1GASn8lWzK2PdeQn20qr5iHxEbTgj3kDCF4QcK9sRpeD +B/zj3i7r2AmIDcdua0+w+zDg/vpno/ZduyoNbsj/s7EX0v27xumLkpIJxpobi8m1TH8 GhxYaI8nsxc2s4+THyFVrWDxlkgweB7WGzfF/BJtDiNcC4a587/zBsm/jG2ykyS9qjs7 EMRYAbcvi+vpzzZSRKjsB+fOVcuOxyYSvf047ofQ6MBwX9/U0JWvBL70B13WQHfP4mfi 4Cox2ui9UwJu/M7dZ2uLj/PYaWjA9ldA4PnpcYvmhUswrrgbedMmHNARCjeB23Piic3c m3lA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OsdO1B9n; 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-92488-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92488-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id bp12-20020a17090726cc00b00a43fe0538ecsi5371775ejc.516.2024.03.05.06.07.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 06:07:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92488-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OsdO1B9n; 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-92488-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92488-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8141A1F215F4 for ; Tue, 5 Mar 2024 14:07:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 72B2D8665F; Tue, 5 Mar 2024 14:07:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="OsdO1B9n" Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (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 5D9AD86639 for ; Tue, 5 Mar 2024 14:07:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709647643; cv=none; b=VvTbnNyZpCJzPsm8krpGbm4Au+Tcm4ZqqxfN7R1G1dnqfU7fSBjxUm2bBJsBRCAlQ4BsQIdbHRGNdEYK7rrg2yIPJP58wtrvGI/vMQjIkrAI8ly7d2Wltqtbxd6qtDkfIgW03N1+r1a9UfxebcIK0jDco2aZ9JV2prYtTkFTy0Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709647643; c=relaxed/simple; bh=WfL4tgYCBNlm88QF2xocX7qBGGscdXgT2nD7lKIGNYg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=d8XojDJfEtHwF/8QrpuKifrzGXPRkaEsEoFU0lolb9GstlgMcu9FrEIb5f54zqur1gWqi87B1/f15FVJcx3NRaQzyO2q2QbE1XAeC8EfjaRe6hEsmPYxfx4SLKpa/7vrM44kynLRq5MMfw8wYpBdM4t2bc2TEvnLu1pZWwqtrnU= 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=OsdO1B9n; arc=none smtp.client-ip=209.85.167.49 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-lf1-f49.google.com with SMTP id 2adb3069b0e04-5135486cfccso836380e87.0 for ; Tue, 05 Mar 2024 06:07:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709647639; x=1710252439; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=SQZ1KwugUIsv31guuZMgo+Gr8p+7fO4HrOSEdoTVaKw=; b=OsdO1B9nBWqYzkdlmlhF8x2LIfCvnEIIqLFijesLmfcllwVB9jCyNcKZsavhje2J+C sLkl2Hp06LQVX8CmG4g7IAHlkam5N6irPyTAtRJfWBZBDJvxXE4vaKPZkLoUy5OG9wxm Q7j7KVvdDhANrOe/i+o0COjFYGgmrKkHb3euExf+bKPSNTopSIeomi2BJH8aRKgGC+Ju qvU94NASvshJGjMXwUuvVu3/UiIuZP92m7T8jJchvba2OnIh8q105fjmKkuK7Ap0T4hG IEQ4R928MKKfKOGwJ/rHqWyn4W+nKRIslx+5iPyoi2i4Rdb5HmaWGeOw+cu3TWka4+nv keRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709647639; x=1710252439; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=SQZ1KwugUIsv31guuZMgo+Gr8p+7fO4HrOSEdoTVaKw=; b=H4zXBWNND3FHBR3+4qM5i/N29QjJ5H9hH8j3fQV9dft60l77LIRTzb2KsRtlYLbEJv D/MG4qHC0BfEamF9eqJLiw55o1jLh3Mc7poTuIFXh15yAW5iwS1HlUyDV/iqUJpZePYV 7B7e7pnJIrRY29/n4rKYEKw/k+3DTp9WeT5UKTHnWT8YI21+bckdtjZ/6lzmbyim0Ezq +f/TiAxIAlsydnqltFvZTK/yzKK6A6mTbVirOIPrRAGRIEAOFrhP/RgPGRXwbTa/JJRQ iI8e3W/Eo+s8/zBC19UUtfaIW4X6ufp8H1+lYFWk8nx64W0mNkhtGHAdA4MBWS0Gmrju eWXA== X-Forwarded-Encrypted: i=1; AJvYcCXYauZ4PNlO4YuvIn5MTDkZGrkybufUT/VX9JnKCQOCROC7Rv4HMv0eFtgos4NmOhU+DDNgosTnvSYBcG2moYR6oJe0sCN5qDxzgfmQ X-Gm-Message-State: AOJu0YyoQU4Yi2tGQ3WcemFybgJ3afl4g+RAMu9zUKoY/Ly3DnaP/3ai DPSKBjpf8FHbfoa+yTqYqOLzf1xBoOQnMAootDRVBnbBdMrSS7BfJJ912bvnaLc= X-Received: by 2002:ac2:5629:0:b0:513:2027:27db with SMTP id b9-20020ac25629000000b00513202727dbmr1342797lff.17.1709647639500; Tue, 05 Mar 2024 06:07:19 -0800 (PST) Received: from [192.168.1.20] ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id d12-20020a1709067f0c00b00a4495c51f4esm4857730ejr.39.2024.03.05.06.07.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Mar 2024 06:07:19 -0800 (PST) Message-ID: <58a62c7b-3348-4252-91be-ec30d5b723b6@linaro.org> Date: Tue, 5 Mar 2024 15:07: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: [RFC PATCH 1/6] dt-bindings: pinctrl: starfive: add JH8100 pinctrl bindings To: Yuklin Soo , Linus Walleij , Bartosz Golaszewski , Hal Feng , Leyfoon Tan , Jianlong Huang , Emil Renner Berthing , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Drew Fustini Cc: "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-riscv@lists.infradead.org" , Paul Walmsley , Palmer Dabbelt , Albert Ou References: <20231221083622.3445726-1-yuklin.soo@starfivetech.com> <20231221083622.3445726-2-yuklin.soo@starfivetech.com> <3b9201e0-e1d9-463c-aa1a-cbbedd1f8907@linaro.org> <2236948f-bd68-4476-bc2a-814c46c99334@linaro.org> Content-Language: en-US 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/XDVpb1Een2XucPpKvt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XhB21fa5DGs/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 05/03/2024 13:00, Yuklin Soo wrote: > > >> -----Original Message----- >> From: Krzysztof Kozlowski >> Sent: Tuesday, February 20, 2024 4:10 PM >> To: Yuklin Soo ; Linus Walleij >> ; Bartosz Golaszewski >> ; Hal Feng ; >> Leyfoon Tan ; Jianlong Huang >> ; Emil Renner Berthing >> ; Rob Herring ; Krzysztof Kozlowski >> ; Conor Dooley ; >> Drew Fustini >> Cc: linux-gpio@vger.kernel.org; linux-kernel@vger.kernel.org; >> devicetree@vger.kernel.org; linux-riscv@lists.infradead.org; Paul Walmsley >> ; Palmer Dabbelt ; >> Albert Ou >> Subject: Re: [RFC PATCH 1/6] dt-bindings: pinctrl: starfive: add JH8100 pinctrl >> bindings >> >> On 07/02/2024 03:42, Yuklin Soo wrote: >>>> >>>>> + type: object >>>>> + additionalProperties: false >>>>> + patternProperties: >>>>> + '-pins$': >>>>> + type: object >>>>> + description: | >>>>> + A pinctrl node should contain at least one subnode representing >> the >>>>> + pinctrl groups available in the domain. Each subnode will list the >>>>> + pins it needs, and how they should be configured, with regard to >>>>> + muxer configuration, bias, input enable/disable, input schmitt >>>>> + trigger enable/disable, slew-rate and drive strength. >>>>> + allOf: >>>>> + - $ref: /schemas/pinctrl/pincfg-node.yaml >>>>> + - $ref: /schemas/pinctrl/pinmux-node.yaml >>>>> + additionalProperties: false >>>> >>>> Why the rest of the properties is not applicable? >>> >>> The regex “-pins$” make sure all client subnode names end with suffix >>> “-pins” (e.g, i2c0-scl-pins, i2c-sda-pins) >> >> I did not talk about subnodes. >> >> I asked why the rest of pincfg and pinmux schema properties are not allowed. > > Initially, I wanted to allow all properties in the pincfg and pinmux schema. I misunderstood the meaning of “additionalProperties: false” > and I thought it means all additional properties outside the pincfg and pinmux schema are excluded. The “additionalProperties” will be > set to “true” to include the rest of the properties in pincfg and pinmux schema and not to be restricted to only the properties defined in In that case drop all the properties and use unevaluatedProperties: false. Fix your email setup, to wrap emails properly. This is unreadable. > >> >> Best regards, >> Krzysztof > Best regards, Krzysztof