Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp207108lqg; Wed, 10 Apr 2024 23:18:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUlxZ2m0X+B/lnYpBT3Oem/gQmM6kPJP0ldos/seGjsitjlZ5w/cASsEoTsgp0Dzb+AhInW4+BqXrTytSmzGzpBQUXk136+rawkm/CWbg== X-Google-Smtp-Source: AGHT+IEQk97Z9wH917oOAG0jvKrmq8LVI+50WQhPbJ020de+6RlZbAwuxDBB2RWLZfJFbgeD8eRJ X-Received: by 2002:a05:6a20:9689:b0:1a7:5fbf:36a6 with SMTP id hp9-20020a056a20968900b001a75fbf36a6mr4896900pzc.53.1712816289359; Wed, 10 Apr 2024 23:18:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712816289; cv=pass; d=google.com; s=arc-20160816; b=pDmKYC6+PwtKSwQkb+eoDT6geTJTit7n6rVMp2JkY9RxgwZkjQMrNV3EYk0D4nZ1I6 R88uxC7wVpCLFrQ7faPClxkkKFNRvdpBEPsccsSoECPGmegriRbfM7m7M5yMmJYaDYv6 Fr9Y0FvxAJ7hh897DmHOtnFqQE9UeAGxu9FoCjDk6v2wvGClbZoastfIIFKNsV0fpNzW lDcdYndKaiXInZJ51rMLhtxp7V4w7gIzYuMclhtotPrv3T/Pe6mK3akBFOHwqL6xVXRB JIJ2jXhFz1qah2nq3cyVpfeqfnVDcDNtCEuM2SM3g3APuqlrK4Nv0zBveUjdUDD7BS6O UvTQ== 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=dIqGBLkwho0VDUiHAkhF1AiHua3U+TbpGgqUfassRGY=; fh=X7VA9JYDMtgG6DBaUeDqkEzqegrwFIh6FQqh8iWrOhA=; b=h4+GSDP4hgvPlpXHUkzsOeQPrw8ekH4Hi8vv97Hck5hmwhqaBteUpjBkp7yWkRdWNM 7hRIg4ol2ROwDNy1lX4Jr0DHwkkhlVvQnj3gmoiUwPt+oVFTS/eqX6nolBN6wn6ASpFK 48knPEvo2m/AyJC/xfqJ9rcjJteTZs8wrzOOEYFw6Ap+A8x0xf+9E1V/14UQ7EWx1L3E LwJ+N0oukU9aLikSl3blixzb6wbD4XOTPVoYYirGJPkdk2HH8reemttB2D9z7q5lQqtC 7ybJfV3Ol28iEAqQSKIjL3i+X/WG42aARvW9F3t0T3RUfUGo2soJiVHKsrKpvLwkwzGV sdCw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pdclmzqo; 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-139838-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139838-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id fh20-20020a17090b035400b002a286ac52fbsi2911791pjb.136.2024.04.10.23.18.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 23:18:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139838-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pdclmzqo; 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-139838-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139838-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 07E3428179D for ; Thu, 11 Apr 2024 06:18:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 59F6613CA91; Thu, 11 Apr 2024 06:18:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="pdclmzqo" Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (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 8365F13CA8F for ; Thu, 11 Apr 2024 06:17:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712816281; cv=none; b=FxXg642xgnv0vt2MWjKOgqgjQd126am5tFA6ULVKgrvCaELaXnV6HcLvnIKiB+zAHsFX5WTV9vUCJFoFocRaDjBRvKhnVt573TzBNKOeRyM5ru2hPrcvBrZSK6s8mxIfoETgvTn+CZnpmzQ2HBB4OSZ6JhJOfa1sY/qb924u+VM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712816281; c=relaxed/simple; bh=i9P3bAcnwVB5TPl/lPoV1TrVudMdEcrlGwHTwNAN+Ms=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ozgNWhBTh86gva3DwpE0eqxYlUP9dYAE73Nj/xdn63taD5S3Jrtcon74veBCEjXjfVjtldkkvc7ZDPF5YCwrvu6KC3GzZx6MF0RB8tvIKU9DorNgWcx/Ad5Dd+6ux92RKA5ey5neEWpglCDRsfuZXkbFAnUBLtgKFeY8MW+NTtM= 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=pdclmzqo; arc=none smtp.client-ip=209.85.221.46 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-wr1-f46.google.com with SMTP id ffacd0b85a97d-346b94fa7ecso314976f8f.3 for ; Wed, 10 Apr 2024 23:17:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712816278; x=1713421078; 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=dIqGBLkwho0VDUiHAkhF1AiHua3U+TbpGgqUfassRGY=; b=pdclmzqoKgm+9vNElevyUUDKHT/OD6ai/Wxmgaepuwc/sDD63s6sVpkQSfCVK9e3X+ jkAp/n+Iiy8jxzIIwzWvgdpGY/VDhGD4zoCDgDVrEV7NbscvbOH1pyxAghtzYjP33IHv hpkljpvp4Zyh43WkrtTqhAtm/rbzGPgHY6/ecHbh8krBCi2Qz1Y/Q/yM46rRYgEC4VkX drXi5XwhjLMr06q4WfUlsfsUR2zzfBEG5ox+jdoHcUY+R7WNU3XFsi15QLnkVOjsrrZV 2WSqLS2nR4pGTwaC7R3k1/mlL9qj4IVigDa2ZOtZXpO43dtJIl9aGb+faiqUGAQ1DBsR zFiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712816278; x=1713421078; 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=dIqGBLkwho0VDUiHAkhF1AiHua3U+TbpGgqUfassRGY=; b=SDFUJw52MrdNan3NioojVni70O5qvDxrbYXQwrA8zdOi7LdvUKVliRn+ei+jiO1mvj v27neqiqrdpAHeS8SucYa8jZyNlecoB5xrgdZlS5EqeXXDXjlhVBJD0i1LjyPFWWAzWI GzevW0NFuHRmm6WvFkJIxTuW6yz4ZoaaVUuOEaiReqWvZL2lhT7zwys4MEXSciDNY+tx W1/FBXNjoPI3VZIeaCdbJAgKfbZmL4P1QOuyp+Jwr31N0AOqu86D3X7Fl4YYeCPeYAY6 BO6FsLe1+9PcXSn6qHoEbUpG4KMX8bAWu97h/Tax809GerpZHvHT1gv8UR0/gZ/+Riu4 JlJQ== X-Forwarded-Encrypted: i=1; AJvYcCVzPY/FjRJib6wit2uGO/t+u1/DhaULzRapGDYlJfyW7uxFGZMeqHetjHoeq6RYuQ5sOW/JlwRwP+CrjgUB1rZDuLtFLAU7kfuKKbJy X-Gm-Message-State: AOJu0Yw5g7wu9gKREtf+ucyrettBxHaNWUvrhaUc8/sOXWLgyCHcCHlH B3tq2eCrUowbnWppjMQsHXB4bQ1a1d1kGIQlzW0aS5gzXg9GBzU+b76VMppLBF8= X-Received: by 2002:adf:fc46:0:b0:33e:cf4d:c583 with SMTP id e6-20020adffc46000000b0033ecf4dc583mr3434952wrs.16.1712816277879; Wed, 10 Apr 2024 23:17:57 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id s19-20020adfe013000000b00346bb778e8bsm769518wrh.5.2024.04.10.23.17.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Apr 2024 23:17:57 -0700 (PDT) Message-ID: <130d47d8-3294-44be-9a8c-8474d342cb12@linaro.org> Date: Thu, 11 Apr 2024 08:17:55 +0200 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 2/4] dt-bindings: rtc: lpc32xx-rtc: convert to dtschema To: Alexandre Belloni , Javier Carrasco Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jiaxun Yang , Vladimir Zapolskiy , Joel Stanley , Andrew Jeffery , Maxime Coquelin , Alexandre Torgue , linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-stm32@st-md-mailman.stormreply.com References: <20240410-rtc_dtschema-v2-0-d32a11ab0745@gmail.com> <20240410-rtc_dtschema-v2-2-d32a11ab0745@gmail.com> <202404102043571b7450b5@mail.local> 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+XWKydnmsfY7SSnjAz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ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <202404102043571b7450b5@mail.local> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 10/04/2024 22:43, Alexandre Belloni wrote: > On 10/04/2024 17:55:34+0200, Javier Carrasco wrote: >> Convert existing binding to dtschema to support validation. >> >> Add the undocumented 'clocks' property. >> >> Signed-off-by: Javier Carrasco >> --- >> .../devicetree/bindings/rtc/lpc32xx-rtc.txt | 15 -------- >> .../devicetree/bindings/rtc/nxp,lpc32xx-rtc.yaml | 41 ++++++++++++++++++++++ >> 2 files changed, 41 insertions(+), 15 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/rtc/lpc32xx-rtc.txt b/Documentation/devicetree/bindings/rtc/lpc32xx-rtc.txt >> deleted file mode 100644 >> index a87a1e9bc060..000000000000 >> --- a/Documentation/devicetree/bindings/rtc/lpc32xx-rtc.txt >> +++ /dev/null >> @@ -1,15 +0,0 @@ >> -* NXP LPC32xx SoC Real Time Clock controller >> - >> -Required properties: >> -- compatible: must be "nxp,lpc3220-rtc" >> -- reg: physical base address of the controller and length of memory mapped >> - region. >> -- interrupts: The RTC interrupt >> - >> -Example: >> - >> - rtc@40024000 { >> - compatible = "nxp,lpc3220-rtc"; >> - reg = <0x40024000 0x1000>; >> - interrupts = <52 0>; >> - }; >> diff --git a/Documentation/devicetree/bindings/rtc/nxp,lpc32xx-rtc.yaml b/Documentation/devicetree/bindings/rtc/nxp,lpc32xx-rtc.yaml >> new file mode 100644 >> index 000000000000..62ddeef961e9 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/rtc/nxp,lpc32xx-rtc.yaml >> @@ -0,0 +1,41 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/rtc/nxp,lpc32xx-rtc.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: NXP LPC32xx SoC Real Time Clock >> + >> +maintainers: >> + - Javier Carrasco >> + >> +allOf: >> + - $ref: rtc.yaml# >> + >> +properties: >> + compatible: >> + const: nxp,lpc3220-rtc >> + >> + reg: >> + maxItems: 1 >> + >> + interrupts: >> + maxItems: 1 >> + >> + clocks: >> + maxItems: 1 > > As I explained the clock doesn't really exist, there is no control over > it, it is a fixed 32768 Hz crystal, there is no point in describing it > as this is already the input clock of the SoC. That's common for many SoCs but it is still (at least for them) input to the RTC. On some SoC boards 32 kHz is controllable. But if you think it is not correct here, then we should drop it from DTS. Best regards, Krzysztof