Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5936232rwl; Mon, 9 Jan 2023 01:45:05 -0800 (PST) X-Google-Smtp-Source: AMrXdXtP94sQ+ABH4rKdaKYkFXlxADdgrV76g3WI/KCu3KBiVRqOjVwaez6wfbhZtv8tC27mgSNQ X-Received: by 2002:a17:906:298f:b0:7c0:fa2c:fc9b with SMTP id x15-20020a170906298f00b007c0fa2cfc9bmr55533687eje.55.1673257505312; Mon, 09 Jan 2023 01:45:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673257505; cv=none; d=google.com; s=arc-20160816; b=kPOChv9o+SORtsl93pvt4ro7wa8DAsLM9t3pAopp7dArVcUj86l5N1KJdUyXYgXDMT CyeaTmtC3mv/PkT0hMfQMaWTYmIgByvk+C0d4kyl6wXPVsojdlzN4K+bilnOMAe9cSw4 N/GHjmfLNPa0B4rtuY6n2M85wag1DrEgy3+UNDI3TSL39MmWIhN6h56VdjUTc8YQ9Uyr YFxtb25XP+GE2sW/rtKE3IhTJzZZ5ot+VOxK6wcR2VItSDi8G8nKYlapAOdoX4qTmOsT 5Xe8/C8Pcj1+xtwISxnmskDe0TUTPmXBQP+/kw75CMjR1WE3g+OmMMcZx/1LrGob0cSj EgDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Ro2kDxZz7EAGoP5oHQ+mMCthtYR+NfGs0EcWvR992/U=; b=pXHbZ+uUxTCJyNQbbvkyR5o5cUQe0K8Z+oysxgGeP387LWgMwUsRZCqhdabtRKC6Fn nUdiHkU7bQmDLTQ3oqelgFmwlPz+XPkxxL1yf02wc4KKFogSHfGSXeoc/Q/vpy7BihKK tL+NgFQ8EAAW8vvRPvOA+Af4n9Uodc2wYZIgYWHtKslfCiWznRyYPyXYK/vrQR11lcIz opZ66O2GgRj/12JDvrKRSLkEtYk+L+VYHdvDwQNh+NI5OXTGS8+PKXWh5Z6KDImpXfZh gehB4bA3/W/ZKEhn3H7TZl+z9+zlKo9vFzFgL538AlXX1bO8E9PJ065eZq+q1tBHQzgp gqcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a1OUTyWs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc3-20020a1709078a0300b0078d20d71475si10220526ejc.413.2023.01.09.01.44.52; Mon, 09 Jan 2023 01:45:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a1OUTyWs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236418AbjAII4s (ORCPT + 54 others); Mon, 9 Jan 2023 03:56:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234424AbjAII4F (ORCPT ); Mon, 9 Jan 2023 03:56:05 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 409C514D10 for ; Mon, 9 Jan 2023 00:48:32 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id g10so5716542wmo.1 for ; Mon, 09 Jan 2023 00:48:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Ro2kDxZz7EAGoP5oHQ+mMCthtYR+NfGs0EcWvR992/U=; b=a1OUTyWsfSJOzJkq+NwDuyY/u+r1EWBFBTPp+MSvMayYRSPvsimiqnzJ3htgctQ5Tr H42l6ypH6FWYVco1PA4qDAcL+pQfwJA28WXGboOgrdKtJEJK0WGxFkSIikTWyXPi4UVC Sh2xXV44YDtv6mvhmgaFUWamT+S9ustTKX9e6oKFdo4obgzrYKlA3O/yHWXJfACtZAz0 kPwO6GKzamgxGgvu0QSmbRkSMtfN7Fyqr5wE7ZSEUR306HqUN0YE2QfCuKTCl1Ky0P2G aIbI9LRDd9wptntPhaAN5+jP09rc3iU81rI6+V0VpwU0P7SQLbIj4qdZSpoAYE0TFp6R e0MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ro2kDxZz7EAGoP5oHQ+mMCthtYR+NfGs0EcWvR992/U=; b=MbsCjoNiheHI1m49EU0h94RYKFk6zN8MIcjbearpWra8HzH5BxZrKqV6mtt3Fl/Y0V bpo47kdKOr82pSc4bz3x+P01Yve2UQBcGKf9YKtHDnwtcNJzVhDHpx2wwoadQpP7hH7Q VMxqCgZg5IlrJXm/EPDrjXkwrC1Dkrb7BMoCqEvPrf4qSgU5cXjssA5zisyACsX9ei1R vG1J0JbxDOY2nNTiHeuLg1feaub3VAxnSSCvol7KdZ3vcGsGv/4lPwzDfVV4DX2WlPup 6Z0DFQ79cvC+3xskiKqvtDTH2G8iCkWNY+bn2v8qN2RM/nOcGmh7tfcrRm0ig3czk1bH gdfA== X-Gm-Message-State: AFqh2koNXMjKmZVMjeUahvoSg0ZUolNr1pdXWRPT+SWCfIIfqB0F1SfY /EuoGmfwXMK6sMis04caMu6D8w== X-Received: by 2002:a05:600c:1ca3:b0:3d3:591a:bfda with SMTP id k35-20020a05600c1ca300b003d3591abfdamr48974353wms.27.1673254110851; Mon, 09 Jan 2023 00:48:30 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id h8-20020a05600c350800b003d990372dd5sm16516337wmq.20.2023.01.09.00.48.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Jan 2023 00:48:30 -0800 (PST) Message-ID: <4e71bc38-27dc-4b81-49c9-c71c8e8f1cc4@linaro.org> Date: Mon, 9 Jan 2023 09:48:28 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH 01/16] dt-bindings: spi: Convert bcm63xx-hsspi bindings to json-schema Content-Language: en-US To: William Zhang , Linux SPI List , Broadcom Kernel List Cc: anand.gore@broadcom.com, tomer.yacoby@broadcom.com, dan.beygelman@broadcom.com, joel.peshkin@broadcom.com, f.fainelli@gmail.com, jonas.gorski@gmail.com, kursad.oney@broadcom.com, dregan@mail.com, Krzysztof Kozlowski , Mark Brown , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230106200809.330769-1-william.zhang@broadcom.com> <20230106200809.330769-2-william.zhang@broadcom.com> <0581eeed-f7d1-caf2-0dba-be14a01d7c05@linaro.org> <7828c353-e3f3-31d2-638d-3b11dc085a34@broadcom.com> From: Krzysztof Kozlowski In-Reply-To: <7828c353-e3f3-31d2-638d-3b11dc085a34@broadcom.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/01/2023 08:52, William Zhang wrote: > > > On 01/07/2023 07:32 AM, Krzysztof Kozlowski wrote: >> On 06/01/2023 21:07, William Zhang wrote: >>> This is the preparation for updates on the bcm63xx hsspi driver. Convert >>> the text based bindings to json-schema per new dts requirement. >>> >>> Signed-off-by: William Zhang >>> --- >>> >>> .../bindings/spi/brcm,bcm63xx-hsspi.yaml | 52 +++++++++++++++++++ >>> .../bindings/spi/spi-bcm63xx-hsspi.txt | 33 ------------ >>> 2 files changed, 52 insertions(+), 33 deletions(-) >>> create mode 100644 Documentation/devicetree/bindings/spi/brcm,bcm63xx-hsspi.yaml >>> delete mode 100644 Documentation/devicetree/bindings/spi/spi-bcm63xx-hsspi.txt >>> >>> diff --git a/Documentation/devicetree/bindings/spi/brcm,bcm63xx-hsspi.yaml b/Documentation/devicetree/bindings/spi/brcm,bcm63xx-hsspi.yaml >>> new file mode 100644 >>> index 000000000000..45f1417b1213 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/spi/brcm,bcm63xx-hsspi.yaml >>> @@ -0,0 +1,52 @@ >>> +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause >>> +%YAML 1.2 >>> +--- >>> +$id: http://devicetree.org/schemas/spi/brcm,bcm63xx-hsspi.yaml# >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> + >>> +title: Broadcom BCM6328 High Speed SPI controller >>> + >>> +maintainers: >>> + - Jonas Gorski >>> + >> >> Missing reference to spi-controller. >> > This was word to word conversion from the text file. But I will update > with this required reference. > >>> +properties: >>> + compatible: >>> + const: brcm,bcm6328-hsspi >>> + >>> + reg: >>> + maxItems: 1 >>> + >>> + clocks: >>> + items: >>> + - description: spi master reference clock >>> + - description: spi master pll clock >>> + >>> + clock-names: >>> + items: >>> + - const: hsspi >>> + - const: pll >>> + >>> + interrupts: >>> + maxItems: 1 >>> + >>> +required: >>> + - compatible >>> + - reg >>> + - clocks >>> + - clock-names >>> + - interrupts >>> + >>> +unevaluatedProperties: false >> >> This is for cases when you have reference to other schema. >> > Will drop here. But will add back in patch 1 which produces the final > version of this file and need this property. When you add reference to spi-controller, keep it here. This was wrong when the reference was missing. Best regards, Krzysztof