Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp788714pxj; Thu, 13 May 2021 17:36:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSfjQAr1/oxVvKrTiaPReUjw0mL2iAAsMKId/35kNrfHmhMaf/fk2VtuiPctoc4i82h8Wn X-Received: by 2002:a05:6e02:1ca7:: with SMTP id x7mr40004535ill.10.1620952560045; Thu, 13 May 2021 17:36:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620952560; cv=none; d=google.com; s=arc-20160816; b=ZEV1Y0TJv5YsHn/zVeG4H7Obior1eCmg0TB3DrTWdhnBMLepKXgnxmIli2V36fAdUQ 3SEA056/CDZ1l2VdsiPLtfaApH7bUNtsu7Z6GpRDxhiFAPjpRcgOqqumD4sBZKYDAQH5 xRKU3vfaggkDabFaOwbnH/5PcbUq80RfVa9Hw1jeq5enkMaSS9CA8URAEtxTer2inVmZ 7mH15A1wWJawzQAtNFc7OjomJcbLfFY9AA8m8ZS8+zklM/WgpNLPFUH0SDss/stlXtCV c3ZSuDxwFUBTMifCsZE5L4ed+7f5kFM5/3Jv/thkJxhzhQA+rUDSHtLc8wdoAe/w3DW3 L7tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Pk4O9pMV/P9HYQ4ZaHXJ24rozdQ7Syfxt4bQ4JoVys4=; b=gJSnFfiv6Grv6T7WKPtNiJam8uOZgMq5+rycT/OCcZDfz0ss9NKGqFNOxl4MlB4asG dKpXMBoXLuvZPhEQVPnk2RBMds+kH05a/IoRRoYdBfxE6QNASGK+RPny1Qz2uuIrFI+r bzLXIPq8nQwjNgiM35t8qW8xiVqJcQCbd/qNhuQepX9pU2LDohjN8JjKe2Wz6Z9JdKre O9jepsQ+hO/DC5Wm6zYQGQAGCvxurAhfLBMjj7DZzhfdGinkf12D0iF/14fYSnDLbjkD TdeTNL+jRMUMskWzheo17eXV4vMLozBEcg2nQWhetkG6ZuTfEqO/GJW/nR6PTIUaTLHI UkuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Gzx8vcmy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k26si4859927jap.39.2021.05.13.17.35.45; Thu, 13 May 2021 17:36:00 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=Gzx8vcmy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232946AbhEMUou (ORCPT + 99 others); Thu, 13 May 2021 16:44:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:55072 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230305AbhEMUot (ORCPT ); Thu, 13 May 2021 16:44:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5CEEB6143D; Thu, 13 May 2021 20:43:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620938619; bh=A3b16ZVY/C5ZO5MXnyxLTrDK5X7y0uCD4VfIVPCIxZw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Gzx8vcmyVC0PIR9R2EXJPmIMlLRpTQ8mculxrb84Gtg/6WwgrrIZHkJ0jXgbzupv7 ZOskrgV4czU9o14jF6gcavbWFomqFb4wmesnYXsTboG/lOb999I41AMrsv31N/QPnq ozaIpKTRB6Jcv0z/kuvGD/0xe4aI8cEO3yaVpR0+Lww/wJEp27sNjwSvdOzBUDP3j5 RC6LdYaWC1SFL2mv0nYVgCqER/F2ifnbsn4mRgXdJXEOu2AA3wH6jEkVsJoxwYVsr6 djJoEY15lT3GsVih2iNuZ4ELSpmRBszqd30pu5akOg9S64WFoZNLSKzmoXiru/c9Uq 0fkuqtFS+8pgg== Received: by mail-qk1-f175.google.com with SMTP id 76so26829697qkn.13; Thu, 13 May 2021 13:43:39 -0700 (PDT) X-Gm-Message-State: AOAM533fAtBpcI2jUvedlI3SsF5baKtc71XGKIvKsXnM5DNDsvOPTOB6 Sl7TVhYw0ONFQEiNJcKIDBeCijfGtBcMFmv+ig== X-Received: by 2002:a37:6116:: with SMTP id v22mr26536521qkb.464.1620938618472; Thu, 13 May 2021 13:43:38 -0700 (PDT) MIME-Version: 1.0 References: <20210511191239.774570-1-sean.anderson@seco.com> <20210513021631.GA878860@robh.at.kernel.org> <70176596-2250-8ae1-912a-9f9c30694e7d@seco.com> In-Reply-To: <70176596-2250-8ae1-912a-9f9c30694e7d@seco.com> From: Rob Herring Date: Thu, 13 May 2021 15:43:27 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 1/2] dt-bindings: pwm: Add Xilinx AXI Timer To: Sean Anderson Cc: Linux PWM List , devicetree@vger.kernel.org, Michal Simek , Alvaro Gamez , "linux-kernel@vger.kernel.org" , linux-arm-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 13, 2021 at 10:28 AM Sean Anderson wrote: > > > > On 5/13/21 10:33 AM, Sean Anderson wrote: > > > > > > On 5/12/21 10:16 PM, Rob Herring wrote: > > > On Tue, May 11, 2021 at 03:12:37PM -0400, Sean Anderson wrote: > > >> This adds a binding for the Xilinx LogiCORE IP AXI Timer. This device is > > >> a "soft" block, so it has many parameters which would not be > > >> configurable in most hardware. This binding is usually automatically > > >> generated by Xilinx's tools, so the names and values of some properties > > >> must be kept as they are. Replacement properties have been provided for > > >> new device trees. > > > > > > Because you have some tool generating properties is not a reason we have > > > to accept them upstream. > > > > These properties are already in arch/microblaze/boot/dts/system.dts and > > in the devicetree supplied to Linux by qemu. Removing these properties > > will break existing setups, which I would like to avoid. Already in use in upstream dts files is different than just 'automatically generated' by vendor tools. > > > > > 'deprecated' is for what *we* have deprecated. > > > > Ok. I will remove that then. > > > > > > > > In this case, I don't really see the point in defining new properties > > > just to have bool. > > > > I don't either, but it was requested, by Michal... > > Err, your comment on the original bindings was > > > Can't all these be boolean? With no other context, yes that's what I would ask. Now you've given me some context, between using the existing ones and 2 sets of properties to maintain, I choose the former. > And Michal commented > > > I think in this case you should described what it is used by current > > driver in Microblaze and these options are required. The rest are by > > design optional. > > If you want to change them to different value then current binding > > should be deprecated and have any transition time with code alignment. > > So that is what I tried to accomplish with this revision. I also tried > allowing something like > > xlnx,one-timer-only = <0>; /* two timers */ > xlnx,one-timer-only = <1>; /* one timer */ > xlnx,one-timer-only; /* one timer */ > /* property absent means two timers */ > > but I was unable to figure out how to express this with json-schema. I > don't think it's the best design either... json-schema would certainly let you, but generally we don't want properties to have more than 1 type. Rob