Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2437817rdd; Fri, 12 Jan 2024 09:19:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IEr60D2IYHxJxxIJK9G/AGAC3Zv3MZXZoCxmWOnQ9bJNQduuDm7xBZoib9/ul9W7ZQGZLG4 X-Received: by 2002:a05:6a20:428b:b0:19a:26e3:67b7 with SMTP id o11-20020a056a20428b00b0019a26e367b7mr2051309pzj.17.1705079953251; Fri, 12 Jan 2024 09:19:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705079953; cv=none; d=google.com; s=arc-20160816; b=Q2Etc4X7riSh/U+IaN8FBlcLHosHsXVl2VPYr0b3NdH2Tr/1JPrWmNZqfKPON32OGJ WuyPQXNEyn710FQkBAYPxHcDJvPO46lNjIM22uWSsOLSfGoE1LVt2kEWkL3OOIcoZa9A i0jU6/iyb9G1PYpZQ1XwGDG74zxAjqNEQ4Ucc6EJ/4mJUX14IFO1obzphYgA01pHOJNp v9L9UZOkyQ2eD6cnIXC+QxLC9SS9fBE88GBmyTB3Wm9ZQ31ODtcWdbKyJvFUL2GgPofG 6hk+ac2O0oeYAs7daWhM9rk6qr26V4M9/9GXqnX03xwNhY/2kCAtP2U8KxGybKwh9rT9 OYTg== 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=2x/Pp+fq1HphFEydXqXv8Vv3kzfSxghvlVJyVF7ypZU=; fh=VQZt0G22GptglkjjzYCbZoQXjUiDORqXPr10e6aLzQ0=; b=djw69BGqjPtx1SU09oKw7V5hOYqly8yTQYF619CKQPMkQ5TfNw5S7od6fO/3d0lhwg fZspYS/7rVbekXIVaMKsLfKXps7lNljJw8UKfwlqJAOBnnVvTCuxnwQp375zp8M8EHKb NvH8sjAyDjN0db9nM7I2UW9Mk9WkBq6idoT77fj46VmqIaBrqyJuhqKV2+yvtQEYo1Gl /4OHJS44JD4cGF+UZ5ISd1K8sYIX7viEqsk6nomUzZfUB5/kCu7HvaXA1/87vGs8DemZ 8OcVwyKHtAa/D/txhDhSCtlBK4Y25jHJczzJDAjkSaGufm7gCsQjk1udV28JaxXpesNk UBXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aIiiYTlt; spf=pass (google.com: domain of linux-kernel+bounces-24913-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24913-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 h8-20020a056a00230800b006d61376e49csi3713300pfh.93.2024.01.12.09.19.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 09:19:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24913-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=aIiiYTlt; spf=pass (google.com: domain of linux-kernel+bounces-24913-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24913-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 E234828626E for ; Fri, 12 Jan 2024 17:19:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 408C122617; Fri, 12 Jan 2024 17:19:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="aIiiYTlt" Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 BB2F92260A for ; Fri, 12 Jan 2024 17:19:02 +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-wr1-f53.google.com with SMTP id ffacd0b85a97d-3376f71fcbbso4483493f8f.1 for ; Fri, 12 Jan 2024 09:19:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705079941; x=1705684741; 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=2x/Pp+fq1HphFEydXqXv8Vv3kzfSxghvlVJyVF7ypZU=; b=aIiiYTltQWTY0n6Ac4kryG6FB26uxZ8uCMfE0+lW/sF9mWcCJdi+kKPFWPOesDFzv+ taGpqBMUhsnVapDAHqeYWw+wk3Ku9BSmLwDY06Vum8t2EwrTmwst3RH6+ZCQ7BKNgcKK Jx8vpftmngfBHlL8VkcORg26572Kk/8MbmZHjuTuETGkZj/TK2b6gifnKzHKnAIixBer 0FeKlE8fNOl+zP3BzOqO4PS+aB+WPcORNFC6tSiS9tMPfGcZv+vWOj/8sEPbQP6TfhTb ZVG7LamVdnn7DNRVXSMT2In+vgb0yD8jnSCvrnOzm5Dct5+kg5fA6O4HFvPW/6/kN2Wl beLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705079941; x=1705684741; 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=2x/Pp+fq1HphFEydXqXv8Vv3kzfSxghvlVJyVF7ypZU=; b=cbvqH3quhoZvhJP6OIVLiiKBE3HdicXEDZnU2a1mROXa4xkwOInHTf4r1CyBNMON3i eXjysYHklcghopsiI/GL9RrnZRqvdWxHs7Aqyilbsgl8nquQFM+c/vMXsDdWB+L7crRl ye3iX97tCzsB8aCv83xKqzG2vXpkXbmeH72Q0XWZD+ECKTV8uJs5HldLgygpXeJY8fbF kb/2V6eS5n9ZUiMu3A53feYSbtevl4rVNTzi3nAd9yTDKVEUl1KN4D0JQfna2lid5IX9 pZuOlJAYF9nUHTIL4YxI6VwvFs3jCOhstmBWtZuoqfecK2X4TRzzfuOI8mgsbh1/Ivoo xjCA== X-Gm-Message-State: AOJu0YxIqt6yN4r8Uki5p8wzhFx64DcNvTJPaDwdfcFOImFvrgbHrEDd dsusO/5hfLnzcqGXepJm3J5DvAVA2pxVEA== X-Received: by 2002:adf:cd85:0:b0:337:6255:94b4 with SMTP id q5-20020adfcd85000000b00337625594b4mr680447wrj.125.1705079941071; Fri, 12 Jan 2024 09:19:01 -0800 (PST) Received: from [192.168.1.20] ([178.197.223.112]) by smtp.gmail.com with ESMTPSA id i6-20020adff306000000b003377e22ffdcsm4393412wro.85.2024.01.12.09.18.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Jan 2024 09:19:00 -0800 (PST) Message-ID: <7f45aaea-6520-41c7-8788-f6dd14c5fcb2@linaro.org> Date: Fri, 12 Jan 2024 18:18:58 +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 2/5] dt-bindings: rtc: abx80x: convert to yaml Content-Language: en-US To: Josua Mayer , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alessandro Zummo , Alexandre Belloni Cc: Yazan Shhady , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org References: <20240112-add-am64-som-v2-0-1385246c428c@solid-run.com> <20240112-add-am64-som-v2-2-1385246c428c@solid-run.com> 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/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X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IvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240112-add-am64-som-v2-2-1385246c428c@solid-run.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 12/01/2024 18:12, Josua Mayer wrote: > Convert the abracon abx80x rtc text bindings to dt-schema format. > > Additionally added "interrupts" property which was missing from text > format, because abx80x and driver support them. > > Signed-off-by: Josua Mayer > --- > --- /dev/null > +++ b/Documentation/devicetree/bindings/rtc/abracon,abx80x.yaml > @@ -0,0 +1,56 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/rtc/abracon,abx80x.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Abracon ABX80X I2C ultra low power RTC/Alarm chip > + > +maintainers: [] You need a name here. If there is no driver maintainer or anyone interested, put devicetree list. > + > +allOf: > + - $ref: rtc.yaml# > + > +properties: > + compatible: > + anyOf: Please do not invent your own solutions, but use existing code as template. Just open example-schema or any other recent RTC binding. > + - description: auto-detection from id register > + const: abracon,abx80x > + - const: abracon,,ab0801 > + - const: abracon,,ab0803 > + - const: abracon,,ab0804 > + - const: abracon,,ab0805 > + - const: abracon,,ab1801 > + - const: abracon,,ab1803 > + - const: abracon,,ab1804 > + - const: abracon,,ab1805 > + - const: microcrystal,rv1805 > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + abracon,tc-diode: Missing type - string. > + description: > + Trickle-charge diode type. > + Required to enable charging backup battery. > + anyOf: Use enum and explain the meanings of the values in descruption. > + - description: standard diode with 0.6V drop > + const: standard > + - description: schottky diode with 0.3V drop > + const: schottky > + > + abracon,tc-resistor: > + description: > + Trickle-charge resistor value in kOhm. > + Required to enable charging backup battery. > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [0, 3, 6, 11] > + > +required: > + - compatible > + - reg > + > +unevaluatedProperties: false Provide example. Best regards, Krzysztof