Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1240346pxb; Fri, 21 Jan 2022 13:07:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJyrkZNGt6R+tcFTbODZq/aqGZco70CeJA+bBdvJDNPguaP/wCli24NQy9s/FybqYaeU0Rwz X-Received: by 2002:a17:902:e0c4:b0:14a:9ad7:9a02 with SMTP id e4-20020a170902e0c400b0014a9ad79a02mr5128932pla.109.1642799256854; Fri, 21 Jan 2022 13:07:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642799256; cv=none; d=google.com; s=arc-20160816; b=f1YMfXY7APc+UOIuDKtcjF+vpGRhINXwWcKza6rnqmFD5n0+2IF9+sqtlhgh5kaJzm /yosxW7JOQ9rQKR2RqYBljyRqZSSEo44666eENkBUI+cV50GTfUCfWehB3Uwktw/UNMu 0c840lWB4/XtuhGSkp1UFSrNRPkRZ+6j9YF+IvrodEs37DrTbgWIqix2zQP9AlbC50Y6 +0S0qRnzuXLPJdkBwGM+FCi6XnW/cheRq1IUAdffgr2aBI2MdRKVg6V8AB17iub0YCSJ ZzoA/LdgOUMrJ2QRpTmjkKsx8cvxp/IKy8o0k0ivrl92d2UxiarXWcTwtoYFreakLOHW JO1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=M0/8q05itDPqP6RCFlk98+I7fWpYzKq2/D9K/g5UXrk=; b=E846j2NCSy7Y806aEsBxWxfdrEoPjexCR7ek70e8qdcWseJl0DR2P2uBQn8PbB1XGg l05Zcrdpx6mjzuLJZMsLJ88YjCaOQrzotWfq8i3d7yfnB65gvZjC6i74n9IiWYjjP6DM ReU0ig9hHaNv6+tNYyR0ngWF26EXGihW62TAqLBmMCqy5zVQxfj+U4v6G/k0eXLhchXG LQykOA11eLcvI0DYw1HoA75Aomuf98JmRz+arX6f/IGRmwHQB6G/ecWwY5gDV8VHQkgi bkitGfLiu5Ao9m84bIfGUklnf5yrDbgs/GJ3Sr/mOWgxdobbAyuQBcyAoEgDtnnGzB7T flbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=RwQssu2j; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y63si4155571pgd.107.2022.01.21.13.07.25; Fri, 21 Jan 2022 13:07:36 -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=@ti.com header.s=ti-com-17Q1 header.b=RwQssu2j; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358833AbiATHGp (ORCPT + 99 others); Thu, 20 Jan 2022 02:06:45 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:57476 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237988AbiATHGo (ORCPT ); Thu, 20 Jan 2022 02:06:44 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 20K76M65127231; Thu, 20 Jan 2022 01:06:22 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1642662382; bh=M0/8q05itDPqP6RCFlk98+I7fWpYzKq2/D9K/g5UXrk=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=RwQssu2j63/LXha0sLRtd3tXceuaoQcUS+PHPcH7NCNhJ1G0twth6qtIQMlFkVq6J HlrIbZEYMVSK/McnsqE2ChfjhwIcbUcJUMeq5laTqtrLxOmV35UR/IpaV7VoO16QR7 gK4uYyPSA/qET7hirTfLZJ/zkEKlgOVp5nkd+q+4= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 20K76Ml1098241 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 20 Jan 2022 01:06:22 -0600 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Thu, 20 Jan 2022 01:06:21 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Thu, 20 Jan 2022 01:06:21 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 20K76L83091901; Thu, 20 Jan 2022 01:06:21 -0600 Date: Thu, 20 Jan 2022 12:36:20 +0530 From: Pratyush Yadav To: Krzysztof Kozlowski CC: Andi Shyti , Mark Brown , Rob Herring , , , , , , Sam Protsenko Subject: Re: [PATCH v3 2/4] spi: dt-bindings: samsung: convert to dtschema Message-ID: <20220120070620.wyeosdstbfcsaplt@ti.com> References: <20220112100046.68068-1-krzysztof.kozlowski@canonical.com> <20220112100046.68068-3-krzysztof.kozlowski@canonical.com> <20220119192758.z3lvlkaeyeiqi73a@ti.com> <5f912896-0635-fbe7-4fda-f4cb569190d9@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <5f912896-0635-fbe7-4fda-f4cb569190d9@canonical.com> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/01/22 08:49PM, Krzysztof Kozlowski wrote: > On 19/01/2022 20:31, Pratyush Yadav wrote: > > On 12/01/22 11:00AM, Krzysztof Kozlowski wrote: > >> Convert the Samsung SoC (S3C24xx, S3C64xx, S5Pv210, Exynos) SPI > >> controller bindings to DT schema format > >> > >> Signed-off-by: Krzysztof Kozlowski > >> Reviewed-by: Sam Protsenko > >> --- > >> .../spi/samsung,spi-peripheral-props.yaml | 35 ++++ > >> .../devicetree/bindings/spi/samsung,spi.yaml | 187 ++++++++++++++++++ > >> .../bindings/spi/spi-peripheral-props.yaml | 1 + > >> .../devicetree/bindings/spi/spi-samsung.txt | 122 ------------ > >> MAINTAINERS | 2 +- > >> 5 files changed, 224 insertions(+), 123 deletions(-) > >> create mode 100644 Documentation/devicetree/bindings/spi/samsung,spi-peripheral-props.yaml > >> create mode 100644 Documentation/devicetree/bindings/spi/samsung,spi.yaml > >> delete mode 100644 Documentation/devicetree/bindings/spi/spi-samsung.txt > >> > >> diff --git a/Documentation/devicetree/bindings/spi/samsung,spi-peripheral-props.yaml b/Documentation/devicetree/bindings/spi/samsung,spi-peripheral-props.yaml > >> new file mode 100644 > >> index 000000000000..aa5a1f48494b > >> --- /dev/null > >> +++ b/Documentation/devicetree/bindings/spi/samsung,spi-peripheral-props.yaml > >> @@ -0,0 +1,35 @@ > >> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > >> +%YAML 1.2 > >> +--- > >> +$id: http://devicetree.org/schemas/spi/samsung,spi-peripheral-props.yaml# > >> +$schema: http://devicetree.org/meta-schemas/core.yaml# > >> + > >> +title: Peripheral-specific properties for Samsung S3C/S5P/Exynos SoC SPI controller > >> + > >> +maintainers: > >> + - Krzysztof Kozlowski > >> + > >> +description: > >> + See spi-peripheral-props.yaml for more info. > >> + > >> +properties: > >> + controller-data: > >> + type: object > >> + additionalProperties: false > >> + > >> + properties: > >> + samsung,spi-feedback-delay: > >> + description: | > >> + The sampling phase shift to be applied on the miso line (to account > >> + for any lag in the miso line). Valid values: > >> + - 0: No phase shift. > >> + - 1: 90 degree phase shift sampling. > >> + - 2: 180 degree phase shift sampling. > >> + - 3: 270 degree phase shift sampling. > >> + $ref: /schemas/types.yaml#/definitions/uint32 > >> + enum: [0, 1, 2, 3] > >> + > >> + required: > >> + - samsung,spi-feedback-delay > > > > I am not quite sure if this required would work here. Let's say another > > controller also uses a controller-data node, but it contains a different > > set of properties. Won't this cause an error to be raised for that > > controller since this property is not there? > > The controller-data is Samsung SPI specific (does not exist in any other > binding), so why would controller-data get added to a different controller? It does not as of now, but the name is fairly generic and some controller in the future might use it. I do not think it is a good idea to list required properties in X-peripheral-props.yaml in general since all those will be collected by spi-peripheral-props.yaml and so will apply to _all_ controllers that reference it. -- Regards, Pratyush Yadav Texas Instruments Inc.