From patchwork Mon Apr 8 15:53:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 1920893 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=FB5uEatS; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=139.178.88.99; helo=sv.mirrors.kernel.org; envelope-from=linux-rtc+bounces-974-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org [139.178.88.99]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VCtsw5J45z1yY8 for ; Tue, 9 Apr 2024 01:53:24 +1000 (AEST) 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 35354286217 for ; Mon, 8 Apr 2024 15:53:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C2D2D1422B7; Mon, 8 Apr 2024 15:53:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FB5uEatS" X-Original-To: linux-rtc@vger.kernel.org Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 EB2821420DA; Mon, 8 Apr 2024 15:53:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712591594; cv=none; b=OWaQmCCqcSb2/wk/tZw/yG3T9+KW+WAzHIhiX46tRstpJyak2ih17e9+N1vhPnEBh7y5FOH/oQIKIJZgvgRnqYe4cSTcgw12tN2WCFcxa+RP77d+NF44MnJR/W24eASWfF9cGPoF5jjbS6OPdV4tJ7WmlmDVCLKP6iaLjtX0+SU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712591594; c=relaxed/simple; bh=hBd9i56nvCzyVs8yanPT9S2Cyv5djpJ1RLlYTOAQDRk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bBI3LThJylbt97vLAy6lzfIV/GpvHxiuUrJW8WYQy8SNQQV5n8t6TVgSqsvOZ+IXzXh+p4o9U1fZD2u+BRhQS8LdY695t/G794QTufqUfQ3yAi849m8O1XZALCjK5Q7yxZ1CA8jK0SscV2Rbp0agtpyU5bZ/6SUFM/H9YkB4hpQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=FB5uEatS; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a51a7d4466bso356549766b.2; Mon, 08 Apr 2024 08:53:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712591591; x=1713196391; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=qMMzpPgaja57dJ/QOl1X3xfBEKxBkGZzp3htau/BjRY=; b=FB5uEatSgqhZKE1HTzn8QNtp/zwGZ711pWsSfHTTaH7KRNUETIBgg/AF4v3XqbW5N6 fKjJJlmA7nEP5vujbe/W1nEfetJe86Lp+EBYSX3CagUwElz803TqTiZXuxHNZ8aAT/bb 9AGp4pWnbUW+QwzYuJA3MVMwghUpo2P/q9E5i2ZD6KkEwMKX47YgEOWcntTTDdIxd6lC obAiSGqrM5D+tteTTDWyzS/W5MZkYn1j4oBDUZke5fjBJjNIZaIpXq259hXF/Y4H9/Y3 2uFP6UL8RVse45YOlG9ZBlHvpsKsCk0bmAQrqSpTSbQu3WhfZtxqCopTueQmtpDLj3eO B1bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712591591; x=1713196391; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qMMzpPgaja57dJ/QOl1X3xfBEKxBkGZzp3htau/BjRY=; b=U9M/2Na7lS4lFcnj0G2pogUSeBT98vXtbW9eOyOZ8vlXjRDSg+MubpnSYyz7VQ2TM2 YLX4v8D8F3GQQG4tjj/DiXtDrLHCp00vNwYShMaRND3SC9TIUDIC+G3ksGshuoYwdRF9 9Eqbhk9x8OgqaWl/DkCwDig11Gjj8WNU3gvZinRULZ37dz8sgouAiRY/gnr0XrZTouYr MaVQOCUU/yT12BHb3gsCZRZTsVEaafmAWb5ERGBE/JHBn91E+bF7urf8JCsEiJtNkX3C SEwycDn9OMwadLp96kqT30uYST2qDdKVgEj4bVWS6SHVMmNMExAaqQDYgQpq+0JyogOI 801A== X-Forwarded-Encrypted: i=1; AJvYcCXNAY5DqylBLF15LJMNQTZQ1rCYYUN/++hGdX6nn52hN4/oUhHuObfOZ8Rr5/udKBgxaOoTXJN/R2SPm8UU454SkCoO58dZToP6TCyp6oo5KetRpnLKMj1mWP5T+389hQS3J/uo4DL1QA== X-Gm-Message-State: AOJu0YyhsDJd/+xP1yF3K+VUOedt2Tb70kqTu4UaP+bKjIEMCDTO15OE DI7/CnJ5/1issmMImEU5A42L7uO8YErZsg5RJjTvD7ERnBL8OrU3 X-Google-Smtp-Source: AGHT+IFLOo9Lg9B3qIOklTKOZd0LvNU1njK/wu05Sxkr5yVm3kefeiWUgywKL7V+AzBxsRaFEqHPcg== X-Received: by 2002:a17:906:b19:b0:a51:d19c:aba8 with SMTP id u25-20020a1709060b1900b00a51d19caba8mr2466641ejg.20.1712591591195; Mon, 08 Apr 2024 08:53:11 -0700 (PDT) Received: from [127.0.1.1] ([213.208.157.67]) by smtp.gmail.com with ESMTPSA id l13-20020a170906794d00b00a46a2779475sm4547849ejo.101.2024.04.08.08.53.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 08:53:10 -0700 (PDT) From: Javier Carrasco Date: Mon, 08 Apr 2024 17:53:01 +0200 Subject: [PATCH 1/9] dt-bindings: rtc: orion-rtc: move to trivial-rtc Precedence: bulk X-Mailing-List: linux-rtc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240408-rtc_dtschema-v1-1-c447542fc362@gmail.com> References: <20240408-rtc_dtschema-v1-0-c447542fc362@gmail.com> In-Reply-To: <20240408-rtc_dtschema-v1-0-c447542fc362@gmail.com> To: 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, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1712591586; l=1761; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=hBd9i56nvCzyVs8yanPT9S2Cyv5djpJ1RLlYTOAQDRk=; b=7fLnaSy2d1QTC1X9rDdRmPK4NxyIq/8k0OfRmCyhOdL4+L4l6InroboEy3X1aqCBh1Yh2+xlS q5z7AlDDx3nB+S8LjphJkGb7U1aUoHLT6vOelE+aTDV7mVFf8o3lo5A X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= 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 Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/rtc/orion-rtc.txt | 18 ------------------ Documentation/devicetree/bindings/rtc/trivial-rtc.yaml | 2 ++ 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/Documentation/devicetree/bindings/rtc/orion-rtc.txt b/Documentation/devicetree/bindings/rtc/orion-rtc.txt deleted file mode 100644 index 3bf63ffa5160..000000000000 --- a/Documentation/devicetree/bindings/rtc/orion-rtc.txt +++ /dev/null @@ -1,18 +0,0 @@ -* Mvebu Real Time Clock - -RTC controller for the Kirkwood, the Dove, the Armada 370 and the -Armada XP SoCs - -Required properties: -- compatible : Should be "marvell,orion-rtc" -- reg: physical base address of the controller and length of memory mapped - region. -- interrupts: IRQ line for the RTC. - -Example: - -rtc@10300 { - compatible = "marvell,orion-rtc"; - reg = <0xd0010300 0x20>; - interrupts = <50>; -}; diff --git a/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml b/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml index c9e3c5262c21..5e63c8f7f618 100644 --- a/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml +++ b/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml @@ -45,6 +45,8 @@ properties: - isil,isl1208 # Intersil ISL1218 Low Power RTC with Battery Backed SRAM - isil,isl1218 + # Mvebu Real-time Clock + - marvell,orion-rtc # SPI-BUS INTERFACE REAL TIME CLOCK MODULE - maxim,mcp795 # Real Time Clock Module with I2C-Bus From patchwork Mon Apr 8 15:53:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 1920895 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=gFhK/dB1; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45d1:ec00::1; helo=ny.mirrors.kernel.org; envelope-from=linux-rtc+bounces-975-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org [IPv6:2604:1380:45d1:ec00::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VCtt93W1fz1yY8 for ; Tue, 9 Apr 2024 01:53:37 +1000 (AEST) 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 893601C21827 for ; Mon, 8 Apr 2024 15:53:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C3EBB1422D8; Mon, 8 Apr 2024 15:53:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gFhK/dB1" X-Original-To: linux-rtc@vger.kernel.org Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 E9AE41422BC; Mon, 8 Apr 2024 15:53:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712591596; cv=none; b=kROTSoi1pv7M/9Fr2X65TVxDHQ1oW898vX3JRNWaIXpagtlWEfPcAbyhgO28C6CT9pCxAS+7ccdwUc36F4a9kl67eP1j+dDgRSIHZBLtCCnvXH7rYxRoE/NZwJvAoftFre0DTK/Vbf+IeAi1iP40ctULuNc9sFad1h4Ujd7iBvY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712591596; c=relaxed/simple; bh=yqX/w81Ycb9hVyt/9HQKZXov7UsFMLnZ7nkrSKxqels=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=a0sZ4k2AtDfKy5jWWAJTySzvQbj43O3a1ZKlk5wyywia85A0Ly7C2sP5FhZ+w+uwlGM7e9O8SpDMh72DDz1fIXPKyPDxykY9O4+E2M8EbZaLui2y7mtO4OGFBA1vHFdOAVg5tviSSKmWT32n+SiKO7RTAKXlIe+wjVKAk0oJ60Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gFhK/dB1; arc=none smtp.client-ip=209.85.218.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a51e368c6dcso47251666b.3; Mon, 08 Apr 2024 08:53:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712591593; x=1713196393; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=FaDQO9exJCzRg/8lU1QpCZomsB1mdrpwg8BXuiBSkkw=; b=gFhK/dB1DL6tUKEbKPWr4qT0qb4pPS01W1QbfcpaM0ox1qjggU6ov8bvw/CiQo3OEP w2LgwslYAeEux9lf5aFfbfrDReVnWcF61FjMSu93/N6RyBubGwMIjcoCnRBcEqTfHnz4 YkzkPdFFp6M6MM2lkoWjWbBEOeNBQD/+j9M3HyBG+GSjUknIhISe21OCL/RBIHgKKmvE aViLzR1WTPwVVHBVDyIurMn5ZDYUCh6oYdLGBL//oe6HtgCbJXcG5DLwp4hzl/cOZuV6 cl/dRcX+fEEZxecIqj/rLOYpmohBgkwfw9x9P+JqnTP+k2zNPduAeAAHnRO8VxAyn80+ 37ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712591593; x=1713196393; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FaDQO9exJCzRg/8lU1QpCZomsB1mdrpwg8BXuiBSkkw=; b=rMiSXYkgG+TyhG3wSRGbPLWRaTV7XaU/igq1hoknqpe/giZf4lUrtCYash3p8X+TGy z+GJFjNCiofmVThSXiSImuv59JLdpHnzn3Zw64I2l3+zPKiGRTk3Te8Dm3CpdkszsWAv tHfZ8j1gY46wqN3rrZ+4Xw3iN4sjIBHCJGUB8DYRZnOT9G5YSfLBpDU4MDy1uLiPzcQO sltb1/KqFLqk3TqrReM6J8bpqtKf78hsllExbt+1esVKr71Y7dcmVIAxsSzx1V7olF12 UApfePG7DLB1bT/ON7QfANs9e6imtfwNZi9KyiY8zpzhqy06Jm+959loRc68k/Er+V76 rbbw== X-Forwarded-Encrypted: i=1; AJvYcCXSxYbeX3g+/BCYq2TvA5ybvdww09pzse9XCMSDo4YcW8XYKEhXLwnFw4NAZ+8iMn9q2wyPDhbO9l2WOq6e/x9368qZHmE1BTfSv6EFqyUuGJTJzV6CZuflkZaoPkGhXM9ghJEX/Sjqjg== X-Gm-Message-State: AOJu0YyxcYj/6k/65mlB7z48YqH9jd4wlCO7pAEA4AyKf4utHgfPFQXU BaHFM5kn+++NsGyGGfEWj0yPieWdlSldsEBkp/vefpFkORJ3alpi X-Google-Smtp-Source: AGHT+IE/brPz33bAyXkLLx9/3k7uLX80nlW2dTvsRmtq/VzJ5UavkRJXVX2o3jP/+Rc4Wx3RPpCuEQ== X-Received: by 2002:a17:907:e86:b0:a51:d204:d6bf with SMTP id ho6-20020a1709070e8600b00a51d204d6bfmr3422101ejc.10.1712591593166; Mon, 08 Apr 2024 08:53:13 -0700 (PDT) Received: from [127.0.1.1] ([213.208.157.67]) by smtp.gmail.com with ESMTPSA id l13-20020a170906794d00b00a46a2779475sm4547849ejo.101.2024.04.08.08.53.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 08:53:12 -0700 (PDT) From: Javier Carrasco Date: Mon, 08 Apr 2024 17:53:02 +0200 Subject: [PATCH 2/9] dt-bindings: rtc: google,goldfish-rtc: move to trivial-rtc Precedence: bulk X-Mailing-List: linux-rtc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240408-rtc_dtschema-v1-2-c447542fc362@gmail.com> References: <20240408-rtc_dtschema-v1-0-c447542fc362@gmail.com> In-Reply-To: <20240408-rtc_dtschema-v1-0-c447542fc362@gmail.com> To: 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, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1712591586; l=1751; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=yqX/w81Ycb9hVyt/9HQKZXov7UsFMLnZ7nkrSKxqels=; b=nQu1d8ztJV2beU36YHMkXGrFhsTXDnsy8WQADo7Rpyj2BA9JfhN+W+nzzj5SHdSULv8HsoK8G JkFOsCM6XmSCJFwYt5mlM9kQzi2tSTNFnTOAjB50Z0RwcSmfJ/9+RHz X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= 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 Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/rtc/google,goldfish-rtc.txt | 17 ----------------- Documentation/devicetree/bindings/rtc/trivial-rtc.yaml | 2 ++ 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/Documentation/devicetree/bindings/rtc/google,goldfish-rtc.txt b/Documentation/devicetree/bindings/rtc/google,goldfish-rtc.txt deleted file mode 100644 index 634312dd95ca..000000000000 --- a/Documentation/devicetree/bindings/rtc/google,goldfish-rtc.txt +++ /dev/null @@ -1,17 +0,0 @@ -Android Goldfish RTC - -Android Goldfish RTC device used by Android emulator. - -Required properties: - -- compatible : should contain "google,goldfish-rtc" -- reg : -- interrupts : - -Example: - - goldfish_timer@9020000 { - compatible = "google,goldfish-rtc"; - reg = <0x9020000 0x1000>; - interrupts = <0x3>; - }; diff --git a/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml b/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml index 5e63c8f7f618..b889b9317a41 100644 --- a/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml +++ b/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml @@ -41,6 +41,8 @@ properties: - epson,rx8571 # I2C-BUS INTERFACE REAL TIME CLOCK MODULE - epson,rx8581 + # Android Goldfish Real-time Clock + - google,goldfish-rtc # Intersil ISL1208 Low Power RTC with Battery Backed SRAM - isil,isl1208 # Intersil ISL1218 Low Power RTC with Battery Backed SRAM From patchwork Mon Apr 8 15:53:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 1920897 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=H0TC8yZe; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45e3:2400::1; helo=sv.mirrors.kernel.org; envelope-from=linux-rtc+bounces-976-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org [IPv6:2604:1380:45e3:2400::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VCttQ3zZCz1yY8 for ; Tue, 9 Apr 2024 01:53:50 +1000 (AEST) 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 3B7592867F4 for ; Mon, 8 Apr 2024 15:53:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1EA6C142651; Mon, 8 Apr 2024 15:53:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="H0TC8yZe" X-Original-To: linux-rtc@vger.kernel.org Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (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 321031422DD; Mon, 8 Apr 2024 15:53:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712591599; cv=none; b=ck7082bzpt9J4m1g/J1EMVKkwhaU/DQVYUiwBQ9BXTCiKQIGv/RNja7cNU7Hk0ru+cYBcCZRZfWmF9R77QqnkSVwnZr7vRVQHyQbHq13GHaggLk+PD+GRU8ZuDX8oa44CW74JPTgeIfEu6uvcEmA9KI9mnGC0eQHz7MhZtrXCuo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712591599; c=relaxed/simple; bh=oXF0IOpDbbU06OjI6OgtSVdRvz0EfEWAr+7KUKC2fPo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HG1UhfdhyLvgSHphNEOyAa0USbm741bjyAdghbrXGYjkhifQtM58KG/cJ7g1T7Dt2df6vGoGN37BAeuNdu1Hh1LWKGgxccfDDlCyiz9IMDcNd3neIl3jhdjUkfrrs9Uh4LhDipW9Ioubaqz0vMxh5P5S618BkliK8EdpLcw5Vd8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=H0TC8yZe; arc=none smtp.client-ip=209.85.167.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-516d1ecaf25so4632688e87.2; Mon, 08 Apr 2024 08:53:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712591595; x=1713196395; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=OZNPSolpsyW2BBt4Cv9G0c69Pzyf7OGHTEy9xs9+O7A=; b=H0TC8yZegMO+X3le90cx46Q8Cx1YNjaRCived1bgdughzuizA8CDVdVa30LFcipXBj 2KuJgAgrJ/MWDz4/v4CqWEabQffMw0L4vMbIiGntu9SjQvVlf4202hBEiLCYUEzm+G2I qH9kUmF//L0kcy96i1oA+SyQY6FURngGqFgyeeMtK6BdG/RLI+JDvQjVKC7VTXtaHf8b 8OgqtU+FgFA/S7IN8wi1pfE2Kf5JSXNQv42tmoip2KajjnurR7H6DJJlV9rTGLmZqxLA WE9CI4OIWoxtJ5ZSed63q/PwjRl9w2c7SrVZeksBnIAynd+7V6WWGXAD6Eky/SynSlP7 DzwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712591595; x=1713196395; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OZNPSolpsyW2BBt4Cv9G0c69Pzyf7OGHTEy9xs9+O7A=; b=nZWLG9FbP+qhvxFaH0K4nfJFAOpF9WiNe+i6DEhIHXmG2jOSNNCbtMyUQZVchCU4D9 /Hk5KKxtKD+GCAKhRJqDsSFJvnLp2N0YabLV3FiM+Aj3BfYxwxsuK5Nr/bOyczv+bClJ +5VKJVd6SD1212wDaam4XIq7YaYpdgxoolwTl8f2tx0WTKv4yg0q820cSuorP9fY2hbR e9lqmJFN/2T2ShqNyrPZE/w6UD2ehQzpLb1geI3laWrShZALO6biJg2xBSqoc3raHcxf Qci4Mq8aJ5pzQeo/iszYtKBW0hN0l43AoJ1L7VIXO6+BijxHHoOLvbCEFwq/rTtUvMTp xmnQ== X-Forwarded-Encrypted: i=1; AJvYcCX580uJjRzM5jXagOQmxURZ+40iauypJH3rUJjMgumuwm+kPLMQqCGI8/eq7EYuVWIYtNmvw9kXmUP34FMzEa1LS36AKCtnoGm7hqloUKO0dHAHlQaTiMQtl+YBREE9acpSJWjzJ8Okkw== X-Gm-Message-State: AOJu0Yx6Inmw9UuqR+bciwqV1YFYXu68Ulor7bV5i8pUEEDW85HaDdtS AXHWbkHJQ8SU/SjHPsobkP4J6zRVeFTwWUmDsYHPXaaYPKzrshhk X-Google-Smtp-Source: AGHT+IHHjnlpbYGoVoRBTjaLp6Pq3A5BQFRFuLX80oSlH+nvQTdtLncSAg4Fv6oSY2gm4yEe75RZ0g== X-Received: by 2002:ac2:5f1c:0:b0:516:ce06:ac8e with SMTP id 28-20020ac25f1c000000b00516ce06ac8emr5820717lfq.51.1712591595088; Mon, 08 Apr 2024 08:53:15 -0700 (PDT) Received: from [127.0.1.1] ([213.208.157.67]) by smtp.gmail.com with ESMTPSA id l13-20020a170906794d00b00a46a2779475sm4547849ejo.101.2024.04.08.08.53.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 08:53:14 -0700 (PDT) From: Javier Carrasco Date: Mon, 08 Apr 2024 17:53:03 +0200 Subject: [PATCH 3/9] dt-bindings: rtc: lpc32xx-rtc: move to trivial-rtc Precedence: bulk X-Mailing-List: linux-rtc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240408-rtc_dtschema-v1-3-c447542fc362@gmail.com> References: <20240408-rtc_dtschema-v1-0-c447542fc362@gmail.com> In-Reply-To: <20240408-rtc_dtschema-v1-0-c447542fc362@gmail.com> To: 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, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1712591586; l=1653; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=oXF0IOpDbbU06OjI6OgtSVdRvz0EfEWAr+7KUKC2fPo=; b=cXwmCtklzwmwm52UDPVuk6WWDHgL1i0zzCtfIEhsTmu1EI8lNZwtM2+GXUd9vnJCrPPqUZ8mZ dM7tV4/p9z9AnwXdlchsL+guM1nOVq79TSHnwxlzcL0CuAAe0Fn8NP7 X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= 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(-) 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/trivial-rtc.yaml b/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml index b889b9317a41..d6ce7ac29033 100644 --- a/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml +++ b/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml @@ -55,6 +55,8 @@ properties: - microcrystal,rv3029 # Real Time Clock - microcrystal,rv8523 + # NXP LPC32xx SoC Real-time Clock + - nxp,lpc3220-rtc # Real-time Clock Module - pericom,pt7c4338 # I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC From patchwork Mon Apr 8 15:53:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 1920899 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=QIVSv8E+; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=147.75.80.249; helo=am.mirrors.kernel.org; envelope-from=linux-rtc+bounces-977-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from am.mirrors.kernel.org (am.mirrors.kernel.org [147.75.80.249]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VCttm49HFz1yY8 for ; Tue, 9 Apr 2024 01:54:08 +1000 (AEST) 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 AF42F1F256B0 for ; Mon, 8 Apr 2024 15:54:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D4DF142915; Mon, 8 Apr 2024 15:53:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QIVSv8E+" X-Original-To: linux-rtc@vger.kernel.org Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 CE0BB1428E4; Mon, 8 Apr 2024 15:53:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712591601; cv=none; b=F1mdGt34e2Ag5/4oNQDUk2p0bdORQM8MC/+Xnc17XVU0xgPFe1i+oNf7frhVwgXvsciA6BaMlpN8eeMDhimELqkA1C+WkmmN8pI+Sau5o0C+Woqa3ipXlNIHLK4xKx3a+E+qDjCvLFBuPKwAS4lJT5wkXe1AJYqnmi3FV1xj3Bk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712591601; c=relaxed/simple; bh=zOZomgntzrvpzwsWCTBIKhRP00SpDrEpbkluseuFse8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=aqrkgxQ1uRKAvze3KPmXQ6Cyr9nTUyoVxeRG+FlfTB3E6+9BBsiOivSACZXLIxB50rCbadpvXDqnCw1n8bGRaSgDOk6orOqCAuSCK0gPYc7MXINk0oVHNFRNIXELWuURKGQqU/9It95Gw4DyosJokKpDn3zQdPvSwar7wdBBSeo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=QIVSv8E+; arc=none smtp.client-ip=209.85.218.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a51c6e91793so268157966b.0; Mon, 08 Apr 2024 08:53:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712591597; x=1713196397; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=pSuQkBcadOBIFzAv5VWT53mPgt24650g8Yc46Jnu+po=; b=QIVSv8E+fijgfp+I7k3s31NcgFtuQCEj9b/p/n1ijJkb+dpyjKs3d5um586sTpalr/ mAxh8799Gu54oKIvqiME3eMwR09H6AFp6KlB0uUPfr7i7LxcHNl4syijOl+MqLlxbz97 tjKl9faPBIsW4wCJ4jwXwvTyaikJZqFvk6I/VgbafPdoSkV0ZwvaOuJK2FiIqub0zo4v hHUzfN6BRgJAvM5yCbIEX6vIvO73iNBTwsqwoW0FYTQn7dF1+MQf7YoNfL/vB1ZdUdut rcQB8RvNpSrVgA6JkE18/wbI6zhhZkYdet0aLhVQebPu+/4R0xp4MwPSXM2ZrxobhjQz 2muw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712591597; x=1713196397; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pSuQkBcadOBIFzAv5VWT53mPgt24650g8Yc46Jnu+po=; b=mfG3IaYpQVgyIf0ZR0NE7ScW9Hq3M68Rr4ROra/UrChLGqTw05pbDhE1WjU4Fyxa0g 1P99hODo+d1S7dwipWb4m+hfHbdPc7OG/atds7bh3/kaZD02gb4FwzKjLahqYdt7A44z tTIlcezlnMdmDEmpB2rjciVHPvriNrK4Ssv6+dANbG6KaBZ2IjOhIP1ewS3Eya3UjKJa lAWEXUw7BYet0yI0gy7C2pwrdH1nDRM65HhA3XxraPhWNs+iEzUyYXf9ihDdKLfjmISN FIFTh4DCi+crwifbDY4njo92lOgn08t/L/wwxT1pM1QKro+ZjRW5dM1tHRANitSLb5jm KjHA== X-Forwarded-Encrypted: i=1; AJvYcCUTseK8Eloi8CzyYwD/DwL0AAJ11DND6OLLc1sPUuqoWlXflGT1d7+ik/SWYo5sUg0eLER94hOhYlfaTVgKlsm5v2gd6CMMQKdPiaKpSicq7jUXhSc49ewzsMYa160Do2UiZTTXMKPh8w== X-Gm-Message-State: AOJu0Yxc7pG0QFyhjwQeLNnR9fU075FtQNsviKttLEo+UnR+Z8oo0Uej RSG+gDUmX4ozsqrvRmMhDauaBtqzTDKPO8BciO/vQWlLeogK6b5u X-Google-Smtp-Source: AGHT+IG+xooPJVfqxdhFca/m9VCSLYMJBFoaSR9jS3Fdk4ttcukr9i773eeoHIdSGYXmNnF/nymuPQ== X-Received: by 2002:a17:906:fd8d:b0:a51:e188:bced with SMTP id xa13-20020a170906fd8d00b00a51e188bcedmr48379ejb.37.1712591596913; Mon, 08 Apr 2024 08:53:16 -0700 (PDT) Received: from [127.0.1.1] ([213.208.157.67]) by smtp.gmail.com with ESMTPSA id l13-20020a170906794d00b00a46a2779475sm4547849ejo.101.2024.04.08.08.53.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 08:53:16 -0700 (PDT) From: Javier Carrasco Date: Mon, 08 Apr 2024 17:53:04 +0200 Subject: [PATCH 4/9] dt-bindings: rtc: maxim,ds1742: move to trivial-rtc Precedence: bulk X-Mailing-List: linux-rtc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240408-rtc_dtschema-v1-4-c447542fc362@gmail.com> References: <20240408-rtc_dtschema-v1-0-c447542fc362@gmail.com> In-Reply-To: <20240408-rtc_dtschema-v1-0-c447542fc362@gmail.com> To: 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, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1712591586; l=1594; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=zOZomgntzrvpzwsWCTBIKhRP00SpDrEpbkluseuFse8=; b=VG/4RZspITvXhEWAGam4EeebdbdnRgZkL5lRkdQjPLh+WlxRCuzFnJI7lPUjmco9VoyuOiVXq akjKl/hvaUaBliOoiWRR9Z/+c9DEfQXxUVCqUVbp5NFNzefeTmLd4wH X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= This RTC only requires the compatible a reg and properties, which makes it suitable for a direct conversion into trivial-rtc. Signed-off-by: Javier Carrasco Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/rtc/maxim,ds1742.txt | 12 ------------ Documentation/devicetree/bindings/rtc/trivial-rtc.yaml | 2 ++ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/Documentation/devicetree/bindings/rtc/maxim,ds1742.txt b/Documentation/devicetree/bindings/rtc/maxim,ds1742.txt deleted file mode 100644 index d0f937c355b5..000000000000 --- a/Documentation/devicetree/bindings/rtc/maxim,ds1742.txt +++ /dev/null @@ -1,12 +0,0 @@ -* Maxim (Dallas) DS1742/DS1743 Real Time Clock - -Required properties: -- compatible: Should contain "maxim,ds1742". -- reg: Physical base address of the RTC and length of memory - mapped region. - -Example: - rtc: rtc@10000000 { - compatible = "maxim,ds1742"; - reg = <0x10000000 0x800>; - }; diff --git a/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml b/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml index d6ce7ac29033..710b096fe6f7 100644 --- a/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml +++ b/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml @@ -49,6 +49,8 @@ properties: - isil,isl1218 # Mvebu Real-time Clock - marvell,orion-rtc + # Maxim DS1742/DS1743 Real-time Clock + - maxim,ds1742 # SPI-BUS INTERFACE REAL TIME CLOCK MODULE - maxim,mcp795 # Real Time Clock Module with I2C-Bus From patchwork Mon Apr 8 15:53:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 1920901 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=ANq1pbei; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45d1:ec00::1; helo=ny.mirrors.kernel.org; envelope-from=linux-rtc+bounces-978-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org [IPv6:2604:1380:45d1:ec00::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VCttx4Y7Hz1yY8 for ; Tue, 9 Apr 2024 01:54:17 +1000 (AEST) 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 B98941C219D4 for ; Mon, 8 Apr 2024 15:54:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B1EFE142E86; Mon, 8 Apr 2024 15:53:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ANq1pbei" X-Original-To: linux-rtc@vger.kernel.org Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.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 C5EFF1428EF; Mon, 8 Apr 2024 15:53:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712591602; cv=none; b=OcSiS8FGGaImt4zd7869L/evuoWPt1iQQSILwcSaxl37xiZcSyydhfEWppvpPBSi1rQEXEFtfbjUJC1G24DahZa3xqUH6EKjxVZyAoatJmj6ntRbHFX5lbFxCbN2icg6/X4+Mus5Gr7eb/KX0p5eXuPeTznUlsj7Z6TYqFNaWAM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712591602; c=relaxed/simple; bh=UiEej7wlBRi/pLQoBrweryeFGNwfjKuxoShA6lE5rgI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KntcXQx7PHCFZxTLhAj/f0nZ9H8HjeCyzhHG7f5q4LARS/5jT+TF+bPaxupXSpdv4NOGei4wmLwFH8BDry9/3DHq7YvERVZQ+LImJ0QgpofK6gRFCRvnFR+bTcYmCxht0YiTn+uNkqrCXBDAHj3qeNjyynEQkc0bQxNMnv0l2oY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ANq1pbei; arc=none smtp.client-ip=209.85.218.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a44665605f3so526721166b.2; Mon, 08 Apr 2024 08:53:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712591599; x=1713196399; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=4rI91zKEHaZphCjid+rr3ztF+AksAKCVPYsgJBuGJSE=; b=ANq1pbei/8XsreUqESimfE4VazWYLMx48EBVin4z7x/pzO+v4WC0D48UbWj2SWdBYA uCAoGyU1u+jKVlFL2mWRUzwQSQra18rvaYJveMa0BM1pdH3XcqUZmF3RzmbCmhx/CBzh 2xzN2R7V+nqqVN0OY5RBJRVeuq8H9SF47NMCmtCPjDUh4FrYsBc2+nsxDqsvDumQGdBg E1iSL3uczHfuSNvRk5KmfbFPLTA7IMGQbpw/Hf9pTikDVHf1xRrvUnyS7c/7ajxlTJGb nK+ZlPKTOro2bWqfUdX5k05wA/CqVPFY+ciOO3C/lHpAhzvNUsE+fPCAl+ky4aU/Bghi 2SgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712591599; x=1713196399; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4rI91zKEHaZphCjid+rr3ztF+AksAKCVPYsgJBuGJSE=; b=u5H0hl53iJAZpRC0vSwo2IzLiypT5eekDbDtN4cMEEWSq1j8fh6XipwJTu/eHYdi+B NAPXYMQkHZYMpfMLewGpq2nsb1QEBsNk+S92cf9AdI/0PUXi1kCkEQYnXIMFccggWYrt WLUtXEp+SYBSXRW3u7UcBP5AepJ/CpPfevgWtdubUzQCtiRZ+gLoK/eT4ICUWMWQKIR4 Jxpyvcsei6+GLdEN+4w4wgowZ+AtRvcpMuK9U0cCr19wqb8plai2u7VEsWT2O7B98CGU ah2Rq+Cx0MRqavVkHAeY7FKut5Pn9HuTbP44pPw3h/KQC5id+h8R5zJFzQ+ny9XrfzpE 7a+w== X-Forwarded-Encrypted: i=1; AJvYcCWwK6vsVoUibDK5UsYlWsGCN78xbW9FE8vOpLpFF3H5f+nmwrqFsfC1fCIM6g4j64hSj417dvQNbbSVNnQ8n08DI551BDN67H65TVNo8xO0oSqsPsOM+vPfsJlsD/1/WuX6YSrBXG2UAA== X-Gm-Message-State: AOJu0YyVJbOBNqsg3DxWeoqkbzhYGZeAtcQzrfUzX4E4yWNyq4P8ghZ9 jlCwE9DfM3WdS1rlmGQZxGSPT4OjKD0vwYi4dIGhqTMmDA8PDNKR X-Google-Smtp-Source: AGHT+IHimdaFx4mr+fd5liP9CQQHQfUAme+YF2mKZ7a1UnXQ6iSPME0h09ObN08oeUq6W9IgNv/UPA== X-Received: by 2002:a17:906:cd03:b0:a47:4a32:604 with SMTP id oz3-20020a170906cd0300b00a474a320604mr5925265ejb.26.1712591599181; Mon, 08 Apr 2024 08:53:19 -0700 (PDT) Received: from [127.0.1.1] ([213.208.157.67]) by smtp.gmail.com with ESMTPSA id l13-20020a170906794d00b00a46a2779475sm4547849ejo.101.2024.04.08.08.53.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 08:53:18 -0700 (PDT) From: Javier Carrasco Date: Mon, 08 Apr 2024 17:53:05 +0200 Subject: [PATCH 5/9] dt-bindings: rtc: rtc-aspeed: move to trivial-rtc Precedence: bulk X-Mailing-List: linux-rtc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240408-rtc_dtschema-v1-5-c447542fc362@gmail.com> References: <20240408-rtc_dtschema-v1-0-c447542fc362@gmail.com> In-Reply-To: <20240408-rtc_dtschema-v1-0-c447542fc362@gmail.com> To: 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, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1712591586; l=2126; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=UiEej7wlBRi/pLQoBrweryeFGNwfjKuxoShA6lE5rgI=; b=EpHnh+7FpXHoZNz9WVmqztAU819VB3IfAfjePtPHE33EfG9pOWc64lH5c4iJGsPPAkiXfkCFM 67eNi1/nowwB6ktD5i9GayFdEXGoC8VcQqXJvBH2aLTYW752caeJ2Ze X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= The RTCs documented in this binding require a compatible, a reg and a single interrupt, which make them suitable for a direct conversion into trivial-rtc. Signed-off-by: Javier Carrasco Reviewed-by: Krzysztof Kozlowski Reviewed-by: Andrew Jeffery --- .../devicetree/bindings/rtc/rtc-aspeed.txt | 22 ---------------------- .../devicetree/bindings/rtc/trivial-rtc.yaml | 6 ++++++ 2 files changed, 6 insertions(+), 22 deletions(-) diff --git a/Documentation/devicetree/bindings/rtc/rtc-aspeed.txt b/Documentation/devicetree/bindings/rtc/rtc-aspeed.txt deleted file mode 100644 index 2e956b3dc276..000000000000 --- a/Documentation/devicetree/bindings/rtc/rtc-aspeed.txt +++ /dev/null @@ -1,22 +0,0 @@ -ASPEED BMC RTC -============== - -Required properties: - - compatible: should be one of the following - * aspeed,ast2400-rtc for the ast2400 - * aspeed,ast2500-rtc for the ast2500 - * aspeed,ast2600-rtc for the ast2600 - - - reg: physical base address of the controller and length of memory mapped - region - - - interrupts: The interrupt number - -Example: - - rtc@1e781000 { - compatible = "aspeed,ast2400-rtc"; - reg = <0x1e781000 0x18>; - interrupts = <22>; - status = "disabled"; - }; diff --git a/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml b/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml index 710b096fe6f7..0f773167d32a 100644 --- a/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml +++ b/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml @@ -24,6 +24,12 @@ properties: - abracon,abb5zes3 # AB-RTCMC-32.768kHz-EOZ9: Real Time Clock/Calendar Module with I2C Interface - abracon,abeoz9 + # ASPEED BMC ast2400 Real-time Clock + - aspeed,ast2400-rtc + # ASPEED BMC ast2500 Real-time Clock + - aspeed,ast2500-rtc + # ASPEED BMC ast2600 Real-time Clock + - aspeed,ast2600-rtc # I2C, 32-Bit Binary Counter Watchdog RTC with Trickle Charger and Reset Input/Output - dallas,ds1374 # Dallas DS1672 Real-time Clock From patchwork Mon Apr 8 15:53:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 1920907 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=BewQ/L2y; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45e3:2400::1; helo=sv.mirrors.kernel.org; envelope-from=linux-rtc+bounces-979-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org [IPv6:2604:1380:45e3:2400::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VCtvK4PsLz1yY8 for ; Tue, 9 Apr 2024 01:54:37 +1000 (AEST) 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 4D8202869CD for ; Mon, 8 Apr 2024 15:54:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA7CC143C49; Mon, 8 Apr 2024 15:53:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BewQ/L2y" X-Original-To: linux-rtc@vger.kernel.org Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (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 DA0A0142E99; Mon, 8 Apr 2024 15:53:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712591604; cv=none; b=Jye4Itb0XCLJ5oGfmoIVYh/sgKoUNIx5rr+Gs3lfNAqNLdnaflE/g0y/9WfQdsWG+HUoA7rpzWCpJBACUPiNArOEvv0AOtgSoap2CVc0YoM5vyGDA4vKkezbY7b0wAAwu22QGSmykYbHXMPontRa+lKTgxqVr6XJE8+n27Z+NSg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712591604; c=relaxed/simple; bh=XuizmZ/AsI4sUrNbkhEaUlA+sS0KeXhc44fqmRoI0ks=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=uCAJ2KAxrKhaJJSS8W5QbP4dKBl6axKBPU3Hxv1iCIvYM8F7BG8PgUtki5vHRiVCEujWKIXs5yCKYpA6tM1GGTQQMRKeNBUwXTZ6di1C3ekRJxW5K2cWoe55PcsgJKrcenYEoWDuwmQ3ny3KMCbc4NGZ2Xt2mC6mH9zI2cKth3A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=BewQ/L2y; arc=none smtp.client-ip=209.85.218.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a46ea03c2a5so779149666b.1; Mon, 08 Apr 2024 08:53:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712591601; x=1713196401; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=vDBj+TCOT5An3iT1ZW/BVrmcXlQmpT8xuPifrvWWcJQ=; b=BewQ/L2yY5s8IF7vl2ZuDRgZpbiyj/tQFjF138TO+7orlLjiSLcOWvpH/JDQ2GGNu0 IFCbipXCmT9VUEBOWfQ1XOg/Vdrr0zEmvAWZyiEjMzBw6KyYRFTMe2om/Zz/0VxRw8CR EEa+D73ymqfvt7GonO2QjBq206PvJK8aeMbU61TEqcCMmIUEb2KznChVIkZxTppShFNt 0/lyeBPgtAsXXEhC9bmXHUNWkCN4/+uHds3+bWmEj0xD+g3md5/2RhRMjinX0SMBlaoH N5UqaDCVgLAd/A4K91MeRkAo1a7CGMy4V0pPRaAk/8lnrg0EY/xwald8MpyJMx5x4hgJ +pTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712591601; x=1713196401; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vDBj+TCOT5An3iT1ZW/BVrmcXlQmpT8xuPifrvWWcJQ=; b=ObO2HIC9O0REUemaTwh/QNF++GVbZcg4FhgWuMcQOeBotCgzHzZrrPjrL3M6lUohf8 PnwTMLV+p57bEHwbaVEfPBbYgiwOxYZNNe9GegpVaJB9sqeAIaR9etX0gLne2iWpKFa2 IjyQq/eI1/M8Ir07JCaOA7N4fPLNLSYoDbfj9YewONbPHzNj3gdULXnPKOKEuRC4GDsf y+LNKeT4ipIWH8v7S6JaaXp+/whwHu159TkmKEX7XRysIbjU8gnU8oto1u5Zqvb9Qpro XNeIf3UYCuzYYuh4qohVaNJ6XyfO+SeD9MWtRyt4dJB5vwk5nCV6q1sSa9gn/tHhnqyT hYGg== X-Forwarded-Encrypted: i=1; AJvYcCWS0dZYg7CNXCzqnI1T9lQINpF4USNGq+6doUoavf8caGnf3lcwDkwWwvJi3K4etjjJd5oQxBtpjjubrFz4Q+zi7RRnV71qxO/Mr2Uk1xjNzhMzS/bAsMXQYaaSELg7bDQdEChKbF1iFQ== X-Gm-Message-State: AOJu0YwtK/M3hBH1ap3G87lWA7TF3yhV3rABgjpuVlH35YyMQJMVjP0R 9sVHnghNyhiXH/Regft9oiGboQr1stfA9RSo2wJBfLyFLZ/TeXtS X-Google-Smtp-Source: AGHT+IHo3PjOjthzlX7he+eTIQsbLTIBOyRGKiO637648HaP0Ncp071D/7W6Vx2fN1EcekWna6nuhQ== X-Received: by 2002:a17:906:af16:b0:a51:c1f7:93 with SMTP id lx22-20020a170906af1600b00a51c1f70093mr75351ejb.13.1712591601329; Mon, 08 Apr 2024 08:53:21 -0700 (PDT) Received: from [127.0.1.1] ([213.208.157.67]) by smtp.gmail.com with ESMTPSA id l13-20020a170906794d00b00a46a2779475sm4547849ejo.101.2024.04.08.08.53.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 08:53:20 -0700 (PDT) From: Javier Carrasco Date: Mon, 08 Apr 2024 17:53:06 +0200 Subject: [PATCH 6/9] dt-bindings: rtc: pxa-rtc: convert to dtschema Precedence: bulk X-Mailing-List: linux-rtc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240408-rtc_dtschema-v1-6-c447542fc362@gmail.com> References: <20240408-rtc_dtschema-v1-0-c447542fc362@gmail.com> In-Reply-To: <20240408-rtc_dtschema-v1-0-c447542fc362@gmail.com> To: 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, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1712591586; l=2057; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=XuizmZ/AsI4sUrNbkhEaUlA+sS0KeXhc44fqmRoI0ks=; b=TEcS/yNABbU+N66YYIMs81/pFUYAYXLO65ZbwiLZUk8cK0LytDNhrbnd05Bbryb15/GpV6iW2 jf1CGGu8AmBA3oq3KEyQFN5EDyUUA0/E99wDgmrlSsZqOp61i9vtUnd X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= Convert existing binding to dtschema to support validation. The missing 'reg' and 'interrupts' properties have been added, taking the 2 supported interrupts into account to fix the example. Signed-off-by: Javier Carrasco Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/rtc/marvell,pxa-rtc.yaml | 40 ++++++++++++++++++++++ Documentation/devicetree/bindings/rtc/pxa-rtc.txt | 14 -------- 2 files changed, 40 insertions(+), 14 deletions(-) diff --git a/Documentation/devicetree/bindings/rtc/marvell,pxa-rtc.yaml b/Documentation/devicetree/bindings/rtc/marvell,pxa-rtc.yaml new file mode 100644 index 000000000000..43d68681a1bf --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/marvell,pxa-rtc.yaml @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/marvell,pxa-rtc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: PXA Real Time Clock + +maintainers: + - Javier Carrasco + +allOf: + - $ref: rtc.yaml# + +properties: + compatible: + const: marvell,pxa-rtc + + reg: + maxItems: 1 + + interrupts: + items: + - description: 1 Hz + - description: Alarm + +required: + - compatible + - reg + - interrupts + +unevaluatedProperties: false + +examples: + - | + rtc@40900000 { + compatible = "marvell,pxa-rtc"; + reg = <0x40900000 0x3c>; + interrupts = <30>, <31>; + }; diff --git a/Documentation/devicetree/bindings/rtc/pxa-rtc.txt b/Documentation/devicetree/bindings/rtc/pxa-rtc.txt deleted file mode 100644 index 8c6672a1b7d7..000000000000 --- a/Documentation/devicetree/bindings/rtc/pxa-rtc.txt +++ /dev/null @@ -1,14 +0,0 @@ -* PXA RTC - -PXA specific RTC driver. - -Required properties: -- compatible : Should be "marvell,pxa-rtc" - -Examples: - -rtc@40900000 { - compatible = "marvell,pxa-rtc"; - reg = <0x40900000 0x3c>; - interrupts = <30 31>; -}; From patchwork Mon Apr 8 15:53:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 1920910 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=PbmIVOqq; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=139.178.88.99; helo=sv.mirrors.kernel.org; envelope-from=linux-rtc+bounces-980-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org [139.178.88.99]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VCtvc3TjVz1yY8 for ; Tue, 9 Apr 2024 01:54:52 +1000 (AEST) 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 3C8C52870CE for ; Mon, 8 Apr 2024 15:54:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BDB97143C7B; Mon, 8 Apr 2024 15:53:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PbmIVOqq" X-Original-To: linux-rtc@vger.kernel.org Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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 12C4D143C53; Mon, 8 Apr 2024 15:53:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712591606; cv=none; b=PI84acAM2EfXyJjAt4FfdHlY2CbZd76BuOdL2nvyRSel0RuWNC5NW1Ke3gSFU5ZkysXDGKZxKUsywt28EInlyB8S+rCYSNfQiS3pw50v6Nlk00Q/4PwHJAZgOuAsTtVaNPHmCAYoHx7rxSIQxcdzmz7pa9OoalDYU5DexQO9vCQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712591606; c=relaxed/simple; bh=GFvvp+NJ4mdI7BDHKwvdqRInm14P4YsnxCRqORkt+n4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=m2+Vp1FLLX59vamU9plPtQPGYxE5fJ2nAVcFb5q5JfLBL2PZQ1SVlUbGkHJrYuay1yJP2HKGIctVyEpoZ6MVzQW7f0KRl6laqPc5Pn3nyQzFQHO4nqwcJnN5wzomOUUgQbToa3YN1q6wxAWAocIP+a3W8joSL7yMuoW5xaymbnM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=PbmIVOqq; arc=none smtp.client-ip=209.85.208.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-56e1baf0380so5162039a12.3; Mon, 08 Apr 2024 08:53:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712591603; x=1713196403; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=hWg1ENlXHc+/PDZHBiKvXmfM9dCYHYF/K16ZOemXbZc=; b=PbmIVOqqH+jcMVJblPcJDOE/04aa7+wP0RGvk8KyBhpB3ZCBZ6tXfCLUVNNKdoU0E2 opdbAqKZDtiYgtWaSQQ0ZwuCRsgSDvzAf/Ta8iYUyfcHeEiqaRLFBfxCqDziNg2q3hRe 2Z1s5bLOPJTezaT6u4rdC02bVRsgwOGf+Ebl+5zvWZBgBL6uDqWxwwx/b6ELtcKUDBmJ 1cPy6PlMF9VdV31YXnkdUkJHpNoGTL9wZnRAeBPQztIBjs8euszOaqMYDa96SveoEhSF jZ1OM91J8hyylqPL+EYdS6UW8ZMxZhMvxCh6iuIKfwID3toWJsmYMhSHsLEjD8uEZx9A 7+Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712591603; x=1713196403; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hWg1ENlXHc+/PDZHBiKvXmfM9dCYHYF/K16ZOemXbZc=; b=emekNNjx6Q22n+4iNu/+kid1iMGPkivQmszFne2Yz4Ts1QT9HfrH+YbeB2ntGm66dN qFg/ZdWUydWT4iOexpR105B1XwAUQdgPyPrODHbxjvWbkZ5z5pc9dxpwcRaGOek4ZK7p Xv19bUcmxJOQE/MEfnYA8nm1MIE63m9IBqMop4JNryRkQ5bJYVY7nSJDSpP2RIYAxSVS 5xzZQOqqZn3GbHvkzNY3dMoqXcXKsyGBP0T1Cslth1pe9J94VzktYWgIZbqGJb8gaG7t gg+cgfv8yA9oEjvZejeyBXUuD7jqqTq6FoOc2sFEltxfA0P/YNO3nr4ujUDRvSBasIPC dHmA== X-Forwarded-Encrypted: i=1; AJvYcCVisyfskTaTJWdQJ9nfd7VeGIYNwGnqS0ICqN8iWhkttg6wj6MafIELEdG7R5lamMAYSiGwqPdmCaxnwegSrmJ1saFwSZBrPskZO4hjPYxhcYkLOjS4+PJWQ6zHrNZaF4jqrG2QOB3waQ== X-Gm-Message-State: AOJu0YwkmwE62v18BRPMaLGJreEqSpoGIbj9i3H0dvGzPkMvvP7dbVOA +ZfqxLz4uZAu0RWBUxHWEkljst6x7cOJrLfj/niYJIlBrnEfjA3K X-Google-Smtp-Source: AGHT+IFepnQDpHcqTbdYQgYMHbQ520Q8WNttr0OK2ZunJaGOwvtIFCl5cwFDkeGXluI9lcMo/d7pvw== X-Received: by 2002:a17:906:e08d:b0:a51:aec8:eae9 with SMTP id gh13-20020a170906e08d00b00a51aec8eae9mr4956245ejb.10.1712591603486; Mon, 08 Apr 2024 08:53:23 -0700 (PDT) Received: from [127.0.1.1] ([213.208.157.67]) by smtp.gmail.com with ESMTPSA id l13-20020a170906794d00b00a46a2779475sm4547849ejo.101.2024.04.08.08.53.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 08:53:23 -0700 (PDT) From: Javier Carrasco Date: Mon, 08 Apr 2024 17:53:07 +0200 Subject: [PATCH 7/9] dt-bindings: rtc: spear-rtc: move to trivial-rtc Precedence: bulk X-Mailing-List: linux-rtc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240408-rtc_dtschema-v1-7-c447542fc362@gmail.com> References: <20240408-rtc_dtschema-v1-0-c447542fc362@gmail.com> In-Reply-To: <20240408-rtc_dtschema-v1-0-c447542fc362@gmail.com> To: 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, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1712591586; l=1628; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=GFvvp+NJ4mdI7BDHKwvdqRInm14P4YsnxCRqORkt+n4=; b=bs3zfnUcz5gwpaUPlz/wrRwcwYBcEGy6bYrrJTdSHbRau10DwIlYJxoxpsBmwPdugAX+didWp Edw33B+ngJbCvBBtLqoFKH6Nttpgzn3gnZWBbsX7feyzl34c8LGzx9F X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= The RTC documented in this binding 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 Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/rtc/spear-rtc.txt | 15 --------------- Documentation/devicetree/bindings/rtc/trivial-rtc.yaml | 2 ++ 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/Documentation/devicetree/bindings/rtc/spear-rtc.txt b/Documentation/devicetree/bindings/rtc/spear-rtc.txt deleted file mode 100644 index fecf8e4ad4b4..000000000000 --- a/Documentation/devicetree/bindings/rtc/spear-rtc.txt +++ /dev/null @@ -1,15 +0,0 @@ -* SPEAr RTC - -Required properties: -- compatible : "st,spear600-rtc" -- reg : Address range of the rtc registers -- interrupt: Should contain the rtc interrupt number - -Example: - - rtc@fc000000 { - compatible = "st,spear600-rtc"; - reg = <0xfc000000 0x1000>; - interrupt-parent = <&vic1>; - interrupts = <12>; - }; diff --git a/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml b/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml index 0f773167d32a..d75c93ad2e92 100644 --- a/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml +++ b/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml @@ -81,6 +81,8 @@ properties: - ricoh,rv5c387a # 2-wire CMOS real-time clock - sii,s35390a + # ST SPEAr Real-time Clock + - st,spear600-rtc # I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC - whwave,sd3078 # Xircom X1205 I2C RTC From patchwork Mon Apr 8 15:53:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 1920912 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=aBY7bN+a; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45d1:ec00::1; helo=ny.mirrors.kernel.org; envelope-from=linux-rtc+bounces-981-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org [IPv6:2604:1380:45d1:ec00::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VCtvy3jnSz1yYT for ; Tue, 9 Apr 2024 01:55:10 +1000 (AEST) 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 9BDA81C21C6A for ; Mon, 8 Apr 2024 15:55:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 81DC91448D4; Mon, 8 Apr 2024 15:53:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="aBY7bN+a" X-Original-To: linux-rtc@vger.kernel.org Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 A74871448CB; Mon, 8 Apr 2024 15:53:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712591611; cv=none; b=J5XF+nGUJlXr9uN50u62LoJjo0IVfTmh0Utw9HZp8BzhtuR0zYPRfkpRVz6DWS8Y4Q09sXmdXKAfUUMrh30Waatrs/Ay2CGupYXoz05w8XOwnuyf602cSL9mUyHB+qliMMguMxdJ1Vy4YvdzZFmztcZJR7drrDzPu58vvJm9jUU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712591611; c=relaxed/simple; bh=AIsscuJi094OEVGSsAf9Wlesp0w/0ZWJH8OIPmC6tCw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HrC6h4dkq6gr1ogsA5dHjv+PBZ9DASd+qfncy15Rv81EYjKmzFLyMh+5iD7rr/PVOQQXh48CELhVLb1F1qmVbPviCISww3Oioc2EYg6x8s7hme8nQWqhZfrOMVkO0o5ddRxdeW4rrJ2ppTCaFI7sOxbJPC1fCOTcMbkkUKFeNgw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=aBY7bN+a; arc=none smtp.client-ip=209.85.218.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a46a7208eedso682007766b.0; Mon, 08 Apr 2024 08:53:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712591608; x=1713196408; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=5Y7DfeV8VLm+4dkW5onFx6zdkwwBWr0ksWuO3GWgBgU=; b=aBY7bN+aNSCU4NkeaB8X0zE1pW5E+J4HQRxJpuX0HrNYVl5rFgdcGX3cZm/K4D4Tea 4nyYwzQKjMA1jRkiA1xsxc/JQ9Z3PdDAxwQGnsfTBLOZCwXgL2uDmz9282jcxQTpFDPH cguEp3Kns0C1iR35E/GnlIXf4BUmS3EIqa6CkScF9FCijZ3ES4WM5won+ODaEOhHKllN bQ0eQqiQ8Bn/LH62t+g0G04yfSTfNNUSGUkfTKwPkHA/s0z60AywDKRmBK152tbxe1ST mX18LJ6zQZ3o8P2WUDs1am/9ngNOfVz750bgnQCc9ShYvUrYHfumhHmnVeV/DqaVYkHm /JPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712591608; x=1713196408; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5Y7DfeV8VLm+4dkW5onFx6zdkwwBWr0ksWuO3GWgBgU=; b=tLgFq8TMEnqn6AxEjYxhiYcDJuiHvY8Vva7GcJX9UeUU+pzybixQgx8by9iaTecMPQ tm6RWl+BAvwkUiJIWyVJwgQDMRhfAZaKhG0/6jQLy91NamnHb6PaoVU1vhG3+RL9MSGa eQDxsddqjlUF42A0dsy0KieetPwwDIJPjIad4/5KRXhUovSAHMsrayOJa6GZ/rjaI0/7 fwbYX8LvOYax0h37xhIPO/2npyRiWRDru7dUKhT/Aeo4PH/fV+qJIUfmz1z54KVA+gcD PoKSdtBizvYSB80gHB5xZs/dm4AcWDT8xnMvx893M46vDzeI5dTpzZ4/2FtPi6HePcH6 EaBg== X-Forwarded-Encrypted: i=1; AJvYcCUqyqLkPDgrjnCYTzbf6Q+AS4IfvAMJTtrxovzrND1a0Ukpf6dMtYGj3p3KS4gjDMoQdo4uGKiYnyBVeFL2FDIB/j1pwsb9yZ63sJiaj06DspZQ2gFQ46mZ593cMcmq7x+sv/ANkZpR7w== X-Gm-Message-State: AOJu0Yw+9A8Y0VzMQCeGhA84/Qg3j7J/C8+oJhe0ujgUJGHxFIwHrxTe PzzWFAZI0N7clKaG15DI+z9KBS29mXmWMhV/LyFaDz2d7Zivg7bMDLqW7haDFtwPSA== X-Google-Smtp-Source: AGHT+IGdfX/y51Nks6qsHsv5sXslTDtqdDAyN1/b0esXW0O17PcNWR7tUFhV60oXtdma+8MhUzqNbQ== X-Received: by 2002:a17:907:3da8:b0:a51:dc1f:a44b with SMTP id he40-20020a1709073da800b00a51dc1fa44bmr1941414ejc.29.1712591607822; Mon, 08 Apr 2024 08:53:27 -0700 (PDT) Received: from [127.0.1.1] ([213.208.157.67]) by smtp.gmail.com with ESMTPSA id l13-20020a170906794d00b00a46a2779475sm4547849ejo.101.2024.04.08.08.53.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 08:53:27 -0700 (PDT) From: Javier Carrasco Date: Mon, 08 Apr 2024 17:53:08 +0200 Subject: [PATCH 8/9] dt-bindings: rtc: stmp3xxx-rtc: convert to dtschema Precedence: bulk X-Mailing-List: linux-rtc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240408-rtc_dtschema-v1-8-c447542fc362@gmail.com> References: <20240408-rtc_dtschema-v1-0-c447542fc362@gmail.com> In-Reply-To: <20240408-rtc_dtschema-v1-0-c447542fc362@gmail.com> To: 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, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1712591586; l=2964; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=AIsscuJi094OEVGSsAf9Wlesp0w/0ZWJH8OIPmC6tCw=; b=SjxANSNsLql56s4aBhO5sITwOL73aDDWw1tzYNIUF/EDIaC42lzFW9WBN+FJIfBZhJZSJUWG5 L8HyqJln2diCnF1A3y5vZJJOTZpEnbK/pWIrvAK7sqt7PRQjR8fDhvQ X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= Convert existing binding to dtschema to support validation. The 'fsl,imx28-rtc' compatible is currently not supported, and it is only referenced in this binding and in nxp/mxs/imx28.dtsi. Therefore, that compatible has been dropped, which triggers a warning when testing the DT against the new binding. There is another reference to fsl,stmp3xxx-rtc in nxp/mxs/imx23.dtsi, where another unsupported compatible 'fsl,imx23-rtc' is used, and the same problem would arise when testing the file against the new binding. Signed-off-by: Javier Carrasco --- .../devicetree/bindings/rtc/fsl,stmp3xxx-rtc.yaml | 45 ++++++++++++++++++++++ .../devicetree/bindings/rtc/stmp3xxx-rtc.txt | 21 ---------- 2 files changed, 45 insertions(+), 21 deletions(-) diff --git a/Documentation/devicetree/bindings/rtc/fsl,stmp3xxx-rtc.yaml b/Documentation/devicetree/bindings/rtc/fsl,stmp3xxx-rtc.yaml new file mode 100644 index 000000000000..bf70cce2701f --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/fsl,stmp3xxx-rtc.yaml @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/fsl,stmp3xxx-rtc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMP3xxx/i.MX28 Time Clock Controller + +maintainers: + - Javier Carrasco + +allOf: + - $ref: rtc.yaml# + +properties: + compatible: + const: fsl,stmp3xxx-rtc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + stmp,crystal-freq: + description: + Override crystal frequency as determined from fuse bits. + Use <0> for "no crystal". + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 32000, 32768] + +required: + - compatible + - reg + - interrupts + +unevaluatedProperties: false + +examples: + - | + rtc@80056000 { + compatible = "fsl,stmp3xxx-rtc"; + reg = <0x80056000 2000>; + interrupts = <29>; + }; diff --git a/Documentation/devicetree/bindings/rtc/stmp3xxx-rtc.txt b/Documentation/devicetree/bindings/rtc/stmp3xxx-rtc.txt deleted file mode 100644 index fa6a94226669..000000000000 --- a/Documentation/devicetree/bindings/rtc/stmp3xxx-rtc.txt +++ /dev/null @@ -1,21 +0,0 @@ -* STMP3xxx/i.MX28 Time Clock controller - -Required properties: -- compatible: should be one of the following. - * "fsl,stmp3xxx-rtc" -- reg: physical base address of the controller and length of memory mapped - region. -- interrupts: rtc alarm interrupt - -Optional properties: -- stmp,crystal-freq: override crystal frequency as determined from fuse bits. - Only <32000> and <32768> are possible for the hardware. Use <0> for - "no crystal". - -Example: - -rtc@80056000 { - compatible = "fsl,imx28-rtc", "fsl,stmp3xxx-rtc"; - reg = <0x80056000 2000>; - interrupts = <29>; -}; From patchwork Mon Apr 8 15:53:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 1920917 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=dWuMHZHd; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:4601:e00::3; helo=am.mirrors.kernel.org; envelope-from=linux-rtc+bounces-982-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from am.mirrors.kernel.org (am.mirrors.kernel.org [IPv6:2604:1380:4601:e00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VCtwH75n8z1yYb for ; Tue, 9 Apr 2024 01:55:27 +1000 (AEST) 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 542851F25457 for ; Mon, 8 Apr 2024 15:55:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D73A144D3A; Mon, 8 Apr 2024 15:53:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dWuMHZHd" X-Original-To: linux-rtc@vger.kernel.org Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.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 D15C81448E0; Mon, 8 Apr 2024 15:53:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712591614; cv=none; b=g/cIUEP7tj2x0EF9VZv65K9CXiDOllX+ItiEsAInkwI0GW+pX0AJ/Jamh3uOn0judbJPeV120j36fSEqs35N0kSkFIFCDK3LlVJ6G6XzO7lduPxvpm6GmtDi5O6VwX00ebytoWHSUuDWhO4Zu2QrDVsd4wn5w54hBfJbC+WCScc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712591614; c=relaxed/simple; bh=vM6749OZUGmuUGhDa/POZy+5vZeS+6APRIR0QdxNkUs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SBWyDbbuGrfa0znfKw9W+fJ4evAR9XfhMrjEOtZjzY0AiwWfmWGNDzlkGBogFWo+UTbyaeP48Oe6F0vEV0NvOyB13iC/qgT1OF6WD4C2VdfP3PTyARdCIIARZpatHAeJlRG4YFcMcGF+ahJM3pkUgkLJHw/iYpZdP5Vs0hBAaLE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=dWuMHZHd; arc=none smtp.client-ip=209.85.208.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-56e136cbcecso6298739a12.3; Mon, 08 Apr 2024 08:53:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712591611; x=1713196411; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=j3jReaO8bBGw6JBZ1RkUcA4thqN9iUeRzORfBO64Zek=; b=dWuMHZHdhTXL0FtBZkVIm79kudogcTEPnnl18Hcw4bDDZbnSKmTzSCNQWUyE6dTFJo tH/7Y7AKKyN3t6x/VQA334k8A7HKzcKTWe+LMgWrHeoO4yXh3MdcTsDwYYxZhqEqh1fw /h/iFIDlk9uTwBPlvzZFCuRnsMzi316rIy8XJhldE+c6LGq8VTr5mHIfpCKT9ajZMFUB GYNJmIq31IhzDZvc9P3XDFPqKtuCc1jvHv3JksTNzpbYh9CGALP3O9CQvg72lfIECAQV +GlKWzE+fW/oBJtoIYJwGkkt518XCAWc2MZlQVWqQuZmRe44DlBDcoWZwnODKjaN0/bc XVBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712591611; x=1713196411; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=j3jReaO8bBGw6JBZ1RkUcA4thqN9iUeRzORfBO64Zek=; b=tk7Y3gFC8JLfNwdDz562RpSN/Xdt25Opzu7HOlLASJtCl5ikkfF5DEeQ+bb6GcgmIt 4jLlUs3S+zzxa/faoTKDktBdHqyIhKqlPGrEgr4v19xZrAknySVnd01kFOGPJ5OQ7Lo9 u938Q+hHBpdjsWnOVDrolwPC+N/6OOmhMfIcEdNHnVfh9u8XEO/uM64kynmAfU5wstP4 3QHmfnPwKx/hY56mGQk/oK2OLeWFOzGaNKAhZPQyOdidQ68ExdUYSPpZlgODn47YoX9j QD05RsRhorKXpHnUsvX/qtEUi+sGxMGCUh8WLIRXTTu8MXYVc6Vbq3fCS6HEoQ59tzJt 5feQ== X-Forwarded-Encrypted: i=1; AJvYcCXMyl0bvQd8rFt4ViT6m+fp0DNTkCooQb4oCeatu6a0tAS1ppXwbajoLvBN0OqJYhfKP6mHtXY2V9VtDiVT0QEucf8nPa4GQqHKeT8i45OLDYW5fStI8ffJokz8ibm/2N0NglypEyL1+Q== X-Gm-Message-State: AOJu0Yw5hYJxbiB4SCa8UDVWCF7943MpgzSMK16KYaa9Lwm2Jpp0rKdN 4Hy7hkaEB5cG8gM9s3KpQX3ZWcQ+UVQEQ3i17iHQwYEaSetBfTm7 X-Google-Smtp-Source: AGHT+IHDUn7lM+m3JJro1I7sX1HqWbE56mUHHewyuVneCeBjUwlfT2HuBoGiCiRi+8XMgC8ngOpekg== X-Received: by 2002:a17:907:9485:b0:a4e:375d:2573 with SMTP id dm5-20020a170907948500b00a4e375d2573mr9215871ejc.37.1712591611213; Mon, 08 Apr 2024 08:53:31 -0700 (PDT) Received: from [127.0.1.1] ([213.208.157.67]) by smtp.gmail.com with ESMTPSA id l13-20020a170906794d00b00a46a2779475sm4547849ejo.101.2024.04.08.08.53.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 08:53:30 -0700 (PDT) From: Javier Carrasco Date: Mon, 08 Apr 2024 17:53:09 +0200 Subject: [PATCH 9/9] dt-bindings: rtc: via,vt8500-rtc: move to trivial-rtc Precedence: bulk X-Mailing-List: linux-rtc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240408-rtc_dtschema-v1-9-c447542fc362@gmail.com> References: <20240408-rtc_dtschema-v1-0-c447542fc362@gmail.com> In-Reply-To: <20240408-rtc_dtschema-v1-0-c447542fc362@gmail.com> To: 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, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1712591586; l=1714; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=vM6749OZUGmuUGhDa/POZy+5vZeS+6APRIR0QdxNkUs=; b=g1Gbrdrf/K3DdsRveFmOObYxG1SgqzZ8jrKc7OFyd6Mhf+VVcEjwfoBwytdkuegPork4KUfuS X+/UsMcNJb0DUbXRodaJxuNiEAk9sWd0n6FZbuyavNg+PpigpZoRRlR X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= The RTC documented in this binding 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 Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/rtc/trivial-rtc.yaml | 2 ++ Documentation/devicetree/bindings/rtc/via,vt8500-rtc.txt | 15 --------------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml b/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml index d75c93ad2e92..c48d0dfa28b2 100644 --- a/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml +++ b/Documentation/devicetree/bindings/rtc/trivial-rtc.yaml @@ -83,6 +83,8 @@ properties: - sii,s35390a # ST SPEAr Real-time Clock - st,spear600-rtc + # VIA/Wondermedia VT8500 Real-time Clock + - via,vt8500-rtc # I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC - whwave,sd3078 # Xircom X1205 I2C RTC diff --git a/Documentation/devicetree/bindings/rtc/via,vt8500-rtc.txt b/Documentation/devicetree/bindings/rtc/via,vt8500-rtc.txt deleted file mode 100644 index 3c0484c49582..000000000000 --- a/Documentation/devicetree/bindings/rtc/via,vt8500-rtc.txt +++ /dev/null @@ -1,15 +0,0 @@ -VIA/Wondermedia VT8500 Realtime Clock Controller ------------------------------------------------------ - -Required properties: -- compatible : "via,vt8500-rtc" -- reg : Should contain 1 register ranges(address and length) -- interrupts : alarm interrupt - -Example: - - rtc@d8100000 { - compatible = "via,vt8500-rtc"; - reg = <0xd8100000 0x10000>; - interrupts = <48>; - };