Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1863972lqe; Tue, 9 Apr 2024 02:40:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWKpwmD0bsYsS0767HwMDKRa7eFlZA/7t4lNLNWcABtMF+9xuVgK55Qv3L5r+txhmQbjbo+KqT0cjan758vX2hkf8Jr4BSM932s9Zl7aQ== X-Google-Smtp-Source: AGHT+IGG1CUbja65X9ddWNNHk3xGVb3Hd8ZGhdqbsZSIq59wbd70Y4YIB0LgOkW/Dwj83akQwsN6 X-Received: by 2002:a50:a6da:0:b0:56e:2e94:2964 with SMTP id f26-20020a50a6da000000b0056e2e942964mr7130273edc.15.1712655653751; Tue, 09 Apr 2024 02:40:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712655653; cv=pass; d=google.com; s=arc-20160816; b=CvW7lPqhPJDRVp6WVtI5QtmOX/cFKtFGWDmkRBC/z8KIzjOjPyQvkC/Jf0X5bIYhRB fl+mOupLlXXXb2+whXbTi6RrBaTSirwbY1ePuP9tlq3onQyC0ta1uCfWs3HEZmkTjUKL xDZvT+5xYmbzKmfIzIg2FNDzMe5tEHW0hOitYlBzq6ds1AmZllbcp+lVrn92KqVPhaYQ NgQZlGxDWad7kMFXVfT+okKaDrgyaSbI07qR2DkJl5GyoRO4c98tA3gZzlKpTdDlxrWq alz4roLn+3Q9fTRB4wOHC1HIlr6NqISJW3j8H0vHlLhvInfoL3H66iHEwcLF6CE0FLCn jGTQ== 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=cMVhtAm6vqVRRg54kID72AW24B0pe3D18jLWSvsKVQU=; fh=+X4o9bEgtqGSAVzTtaCvoJhBrw/O14I9EOtzeblFm3A=; b=tgqdSjV8GkwC8YXWiM3WXHdi8KX6fNnpPOYydkYFSuuPuAS/xxBB1CsGkj0eGeijVU BqIUFRgHNf8OQBxGzyUoEhppD3hSaZBHEh0IU41YtaAwQ5Jc5dH0A+ouFejg4DcuQLtR BxJbym3q26yb36IQCbeh09thCKUnZRs3j8leFUT+bP/E3xMFZ9QVM++brp6x2AZ2JSTL Vv7CO8kzw12OikGJvo/C0mhsd4NK+as0WmpVb0bRZ76xr37FgkFioUeq4uga9mEEl+SW UbUBPKrvq0N67tggtXhFQBq+8jyu2erMw4bgG7SBNKbkId84lDr1LS1u1iOH46Q9zvqc gMtQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jyKNNbR6; 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-136580-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136580-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a9-20020a509b49000000b0056715a786ffsi4447167edj.544.2024.04.09.02.40.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 02:40:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136580-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jyKNNbR6; 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-136580-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136580-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 519711F22B5E for ; Tue, 9 Apr 2024 09:40:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9636F80028; Tue, 9 Apr 2024 09:40:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jyKNNbR6" Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 B2D717FBBC for ; Tue, 9 Apr 2024 09:40:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712655644; cv=none; b=Fqp0iwFTtU9mXP4KA8PnCuu4+/8Txg9sH1AmEN0nJxGMq4NqCzRz8+7sS80BOl2YbK/QTM+ccsqZWFXC1plNSP++knDMZDgVhBW9nXZNPJEs/AB5lbU7fpn5D5e+lL+72+pI73oTW6RJQaPt+81x44U0MB5zRU84d7eS6L4Y7Jc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712655644; c=relaxed/simple; bh=TxSYGiRfu7aaveeB0Y8MegY4U0m6GbTReYvO72k/SrQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=iizok4i2M8+EbzOJSJfeAs41s56RsVe1Otqs3JNGTJHD9n7ULYea6KP42ULohYKi+vMWcnbJihCLBATdGZ44aoZ51ocKJCk+3iCopGFg8SRSrUZ36xqNk8Svq9Y5TuPtF1PNPptA0rhqde1FSGKbnn29e0r+i8xAGFzFXXFJ5yM= 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=jyKNNbR6; arc=none smtp.client-ip=209.85.221.47 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-f47.google.com with SMTP id ffacd0b85a97d-343f8fc5c69so2181127f8f.3 for ; Tue, 09 Apr 2024 02:40:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712655641; x=1713260441; 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=cMVhtAm6vqVRRg54kID72AW24B0pe3D18jLWSvsKVQU=; b=jyKNNbR6gQlOYjbod5xfRgUg+3YFGNjDTAfbe/ftCt0TpaniMYUP6kBAhAA7s0ynAH gf7ydGnaiLh1lR+BPE9w4mViTNX3bcPTTptiJpwis3MqgJaSimpIJ+peKDvq/Vsioo92 83hlzWJP79+Jrj9ooURFicB9/yTRZ83znkbgWzw2HaSdUb/r1JMipz6DxmjpGU8gCq1+ Sc+Txjlidr/qa9C/qrNyoKjAAemWAqBoJhfYPKMRXvh/asQvm8K3cW0Imtec/O/MJOwL Kxr+jpH+8nvRlqNX8Sefws42I3U65eHWTrdXg0EaIITRWuqf735Kb8dqPUQS7bcw+zzY XIKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712655641; x=1713260441; 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=cMVhtAm6vqVRRg54kID72AW24B0pe3D18jLWSvsKVQU=; b=XA0LdfB5MEeIgdAiBfYs/2bVCol/CQ8u6VBmY2lAk+3xrnyFgswC7//7xi8FEjNiyx JZ9FISB/Hcr3U+VC8J7MkNeFGCR81cUn1HyzhUAFan9E5NQpAuzXox3mnbv0tHDfCy3J DcKKpK53NTiuNV+WycE3vTtCwjfAT/WZUmbe+s745aVLvWWlt9tUkpcQSDBcNm023FVr JH5VRjq3n+p1uH5IO/Bjyyyd143VRUs7RicN/Muh6zTzEIJlr5ZNsh6fiLa+sGG9Em0J +KL7qjDQ2A6U25ZCGFqqW9xjEq+077Yf0ZbnRplrlI2B2DDD7mHLHcVRljL6KMzgDOQa rsbg== X-Forwarded-Encrypted: i=1; AJvYcCWEIvKI1BvTTx3uzbxD1i/QWdHjZm07PPg7tm/7EV8Hvq8B1KjyjBDtH38RQiWnxLGX06c56F0U8Pw4FmH38E+OLucRUR0EDjCWlegr X-Gm-Message-State: AOJu0Yxv4cL2k6loeZwP+ttCOKpOOMz5YKKCCl+gx32zpmQe40A+f+xL PP/zZbnxlTNk5fiSJptm54UThY7lBpnjGExgF2Omc9PBCe3JWM2DJ/DR8ZV2W44= X-Received: by 2002:adf:ef52:0:b0:343:9a57:7d1f with SMTP id c18-20020adfef52000000b003439a577d1fmr7060414wrp.69.1712655640901; Tue, 09 Apr 2024 02:40:40 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id m28-20020adfa3dc000000b003435e1c0b78sm11106758wrb.28.2024.04.09.02.40.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Apr 2024 02:40:40 -0700 (PDT) Message-ID: Date: Tue, 9 Apr 2024 11:40:38 +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 3/9] dt-bindings: rtc: lpc32xx-rtc: move to trivial-rtc To: Javier Carrasco , Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jiaxun Yang , Vladimir Zapolskiy , Joel Stanley , Andrew Jeffery , Maxime Coquelin , Alexandre Torgue Cc: 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: <20240408-rtc_dtschema-v1-0-c447542fc362@gmail.com> <20240408-rtc_dtschema-v1-3-c447542fc362@gmail.com> <6dc808bf-682f-4e91-aac7-7ce6f05a0ab4@gmail.com> 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/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7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PT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <6dc808bf-682f-4e91-aac7-7ce6f05a0ab4@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 09/04/2024 10:52, Javier Carrasco wrote: > On 4/9/24 09:34, Krzysztof Kozlowski wrote: >> On 08/04/2024 17:53, Javier Carrasco wrote: >>> This RTC requires a compatible, a reg and a single interrupt, >>> which makes it suitable for a direct conversion into trivial-rtc. >>> >>> Signed-off-by: Javier Carrasco >>> --- >>> Documentation/devicetree/bindings/rtc/lpc32xx-rtc.txt | 15 --------------- >>> Documentation/devicetree/bindings/rtc/trivial-rtc.yaml | 2 ++ >>> 2 files changed, 2 insertions(+), 15 deletions(-) >> >> This one no... and if you tested DTS you would see errors, although you >> need to test specific lpc config, not multi_v7. >> >> It does not look like you tested the DTS against bindings. Please run >> `make dtbs_check W=1` (see >> Documentation/devicetree/bindings/writing-schema.rst or >> https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/ >> for instructions). >> >> Anyway, you *must* check all DTS before moving anything to trivial. >> >> Does it mean all other bindings were not checked against DTS at all? >> >> Best regards, >> Krzysztof >> > Hi, > > I did check the conversion against nxp/lpc/lpc3250-phy3250.dts, which > throws a message about the 'clocks' property. > > That property is not documented in the original binding, and even though > it could be missing, I could not find any function to get a clock (i.e. Old bindings are not really accurate. > any form of clk_get()) in rtc-lpc32xx.c, which is the only file where > the compatible can be found. > > Is therefore the property not useless in the dts? My apologies if I am > missing something here. Useless for whom? For Linux yes. For U-Boot or out-of-tree users of DTS, I don't know. Anyway the true question is if there is a clock or there is no. If there is a clock, then it should be in the binding even if Linux driver does not use it. I propose to add it and be done with it. Best regards, Krzysztof