Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2026298pxb; Mon, 8 Mar 2021 12:04:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJzpVPjqsEw3ZHhn7wIsxC5JzRnG2O8Mk1tzltxvqmvXHPPgQl5xY+IrvCpbVxftEy64m6K9 X-Received: by 2002:a17:907:d0b:: with SMTP id gn11mr16785565ejc.463.1615233868605; Mon, 08 Mar 2021 12:04:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615233868; cv=none; d=google.com; s=arc-20160816; b=XtNsieoeazBqYnGqj67YLFSc1wQS7qIIng5obffFNHvue32/kvC6W72FS3VA1AdQTt TOa3/4afU77XfqgDGOaESDss4X8C1IjgfAndVULdWb+yOeVM7gMsnGv1kHtNM5Dnn46p 2/w9S7gPELjYxyGylYYCnNKGbGNUGLyUsve4+X42oFuHepwIE5nv/X7mDA2o2axwC3cG byNDYKXRN52nduc0SZkrSJa2l03QUk+1YraLtENWbtKtFow8zREctn0ONnwMK2piGkfJ H9ySmy18uHez7wDBk5Dwh9S8gyLGzzjnUBZlv8n9njHgjVl0Jn9tgTPTs/e8HZ6FbMYA xYhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=3t+/FGTFmIQyffd5lnhNae0bF0FU3qV628NjTAJ6fqE=; b=M2+ANBsFYP1DufWyPmZT+k+fKj88cycaPYszzr3GkEmGy1mO1sKurs1qy9iQ3GJg78 NvoD6Egni71Dzb8MwbihfpxG97tNqhkbEkyLTDo+5NXKdASqhIgQBR3EKfG2OP70nlOo lR6pPrHc4Z7OejIH3a1qZf0H0PLpq1IPXOcA80LZsvH5dDNC1YLNITPtWEMADQkjubUg /ToaQdIwYxbGP5YwoqVxLystbiADVkhnZERf2epkSyOZCO2GXGfdl1GHkMZVn3a1Rjaf 27vD/tzGci/79hjRoxJH1/CebCxC1j52xCafgQ9bEkOhORlljeKnEsr+mtR61lCZS3tw pzkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=gfrGxsct; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gg25si7208644ejb.693.2021.03.08.12.04.05; Mon, 08 Mar 2021 12:04:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=gfrGxsct; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231584AbhCHUDB (ORCPT + 99 others); Mon, 8 Mar 2021 15:03:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231631AbhCHUCc (ORCPT ); Mon, 8 Mar 2021 15:02:32 -0500 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A341C06174A for ; Mon, 8 Mar 2021 12:02:32 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id t1so16595596eds.7 for ; Mon, 08 Mar 2021 12:02:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=3t+/FGTFmIQyffd5lnhNae0bF0FU3qV628NjTAJ6fqE=; b=gfrGxsctj7ZgdCnjBxZzvzOU616fh/vzNa6UCLMa0GN0zjbz5QSFtF6qTKVMimAaoI QhKxVI51bWGOap7MLvgcUlqAIi4le1i+TDXZDDSs1NALQfBw6biPjSEzE79xNFPda7fe IQYUh3fImXPDcH/e/yq2x1VfZ0L0zDngwciu8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=3t+/FGTFmIQyffd5lnhNae0bF0FU3qV628NjTAJ6fqE=; b=HjU2X9EG9fNQt2HW9DpMgUnLGr0eUTWOMeTIMxOAwz8mOTrtug/Cx1VLeqX4/Xz7Ks Az8aaQ+o6Dd6aomjCRqoJy6UeayQaahj6OQvc59/eQrwRouiyb1NrQdxTlJuD3nuxC+U Kc8yUepZqdZAjoduf+YAy7dJxUbyRbYFU2mPviSunqXBwN8flFEvqWljL8n8FYU+ty5Z 6J0Gd6An9QXIck2isgtviy3Ysia1Jvp/4jdmtmLGisMN/uIgzrGj/pyfDI4UwfAWfeKv YwJLqA8w70ho8dlpw5XjDpml0GWhRhrTuGP32fIqS5gy4sARbgZoDvPCWu6S/sJDlSeE hq2Q== X-Gm-Message-State: AOAM531vPZ7ZKn0VqwkhL63Lw3Xsje1SYImirhshp7Uvq219m7KQGUVx Um4QgH9m62G+X+jCrt6DGRQVRdAeQCq3Owv9 X-Received: by 2002:a05:6402:b2d:: with SMTP id bo13mr292159edb.120.1615233751171; Mon, 08 Mar 2021 12:02:31 -0800 (PST) Received: from [192.168.1.149] ([80.208.71.141]) by smtp.gmail.com with ESMTPSA id jj16sm7158657ejc.19.2021.03.08.12.02.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Mar 2021 12:02:30 -0800 (PST) Subject: Re: [PATCH 1/2] dt-bindings: misc: add binding for generic ripple counter To: Rob Herring Cc: Greg Kroah-Hartman , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , linux-clk@vger.kernel.org, Guenter Roeck References: <20210226141411.2517368-1-linux@rasmusvillemoes.dk> <20210226141411.2517368-2-linux@rasmusvillemoes.dk> <20210308172153.GA2505339@robh.at.kernel.org> From: Rasmus Villemoes Message-ID: <12be138b-631a-4f82-aae9-6bbdc7bc2bcf@rasmusvillemoes.dk> Date: Mon, 8 Mar 2021 21:02:29 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <20210308172153.GA2505339@robh.at.kernel.org> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/03/2021 18.21, Rob Herring wrote: > On Fri, Feb 26, 2021 at 03:14:10PM +0100, Rasmus Villemoes wrote: >> While a ripple counter can not usually be interfaced with (directly) >> from software, it may still be a crucial component in a board >> layout. To prevent its input clock from being disabled by the clock >> core because it apparently has no consumer, one needs to be able to >> represent that consumer in DT. > > I'm okay with this as it is describing h/w, but we already > 'protected-clocks' property which should work. Hm. Unless https://lore.kernel.org/lkml/20200903040015.5627-2-samuel@sholland.org/ gets merged, I don't see how this would work out-of-the-box. Note that I sent a completely different v2, which made the gpio-wdt the clock consumer based on feedback from Guenter and Arnd, but that v2 isn't suitable for our case because it post-poned handling of the watchdog till after i2c is ready, which is too late. Somewhat similar to https://lore.kernel.org/lkml/20210222171247.97609-2-sebastian.reichel@collabora.com/ it seems. >> + >> +Required properties: >> +- compatible: Must be "linux,ripple-ctr". > > Nothing linux specific about this. True, but I was following the lead of the existing gpio-wdt binding. Is there some other "vendor" name one can and should use for completely generic and simple components like these? "generic"? Rasmus