Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3363003pxu; Mon, 19 Oct 2020 10:09:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziNxlyT5H/+MFDH9hB1M8Wn1TRepvHQcbZ5mHOvvuQcU66FEWS7LDdm8MTiOmVd1tArxTc X-Received: by 2002:a50:d7d8:: with SMTP id m24mr792266edj.388.1603127388417; Mon, 19 Oct 2020 10:09:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603127388; cv=none; d=google.com; s=arc-20160816; b=rLulhf2G71LCVXPnwWJoubQuQXDfBsm9Qg1ShQf9oN1Ik5R9slp8jaIRSch+NCDyt0 /X3UqVxJbk48hjWN3noFu03TBvZw8nRGx2MPuU3PcC6AuXf7Y7ZlN45u+Rlz+ZsjUsj6 a6f814/qPeareXXBu2PE0VSL9EP9OLtUorA2wX4Ysjw+K8VIRs0uYc77SX14o6eTXuTM 1BEjhWUByeMW54uG/JALxFmNew0/9kyX0Ts9HaF+FNlkpfjZysX4cZX03e4F/txTDYIT yhJ+bziivBMjeeNArljyuCNZ4dKCPniLSJ0Vp7TPptajlHo2oan+N6kGxaJ0c6KmueA9 ZBQA== 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=b5h1R8Ph5nXXouj3uwb2dgFYsuwmU2K6/SPqYI2/B8A=; b=iqPr+nzlRkDKaxTlQwMiluarbgPnWHKadblVpCLSjjzYzn4rBqTVtdvsY6+Nh2NIoS jbMn0rv5VciCSXerNByZhV3aGNWpxe09VBgfwddOXm0qTPyDsiIqQIoix/3zZ1HnL9tk jBQWkysWls+u10+I8QY4U2IbvYd6pXt1VbmiZGkN7aBy8MEkuI2L3Y5pf52Ro0Sfb31O 4X0sR8zCetaBLj0tF69mMIwM/go/9R957CXR46fSdpkJe4LrdAcScuXWXJCEUx2rWeXd 7jTCmCxAvhh5U/0ExGVmKShll1REmlSaCKRIWiWFWzXf1ewPh3wutT72A8VgM0eBbMTk 8JMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=v7lhCyYx; 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 n18si156576edo.610.2020.10.19.10.09.26; Mon, 19 Oct 2020 10:09:48 -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=default header.b=v7lhCyYx; 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 S1730862AbgJSRGS (ORCPT + 99 others); Mon, 19 Oct 2020 13:06:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:37010 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730552AbgJSRGS (ORCPT ); Mon, 19 Oct 2020 13:06:18 -0400 Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 37E0222365; Mon, 19 Oct 2020 17:06:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603127177; bh=0O1fhJYNZelW5IlOs5LX842TXGsnkAfhUi+vSpLlLEU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=v7lhCyYxO2IAejY4XtXtiwc4whRS6uQV1lYeCuroS/EEctzWODXNTnUTtNguaI+mz JbWhhXSNrFIo3ymIIop1a8UYKkIN80pu/AbUgoDfn0TrQEwAgJiZiMmZOVFv5uZV1e 3ecpgzkwkTa637cz4jGMWy+t9u9rBLM8U1xfHTkk= Received: by mail-ed1-f50.google.com with SMTP id p13so57291edi.7; Mon, 19 Oct 2020 10:06:17 -0700 (PDT) X-Gm-Message-State: AOAM530duXQSfgZu3sgzjV/kYk0uzjAZz9cJZW2cZ2Dwol67qg6VIXCa jgUkcvFYz2O7Sk7dUdcdxG3D9hvEIeb4fHJnoaM= X-Received: by 2002:aa7:cf17:: with SMTP id a23mr796273edy.298.1603127175197; Mon, 19 Oct 2020 10:06:15 -0700 (PDT) MIME-Version: 1.0 References: <20201008212706.870115-1-aford173@gmail.com> <20201008212706.870115-2-aford173@gmail.com> <20201012170016.GA5369@kozik-lap> In-Reply-To: From: Krzysztof Kozlowski Date: Mon, 19 Oct 2020 19:06:03 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/3] arm64: dts: imx8mm: Add node for SPDIF To: Fabio Estevam Cc: Adam Ford , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , Adam Ford-BE , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , Catalin Marinas , Will Deacon , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 19 Oct 2020 at 18:56, Fabio Estevam wrote: > > Hi Krzysztof, > > On Mon, Oct 12, 2020 at 2:00 PM Krzysztof Kozlowski wrote: > > > > + spdif1: spdif@30090000 { > > > + compatible = "fsl,imx8mm-spdif", "fsl,imx35-spdif"; > > > > This does not pass the dtschema validation, so only "fsl,imx35-spdif". > > Shouldn't the dt schema validation be changed then to accept this format? Depends. If a given compatible is in the schema, then the answer is: rather not. The DTS conform to schema, not the otherwise. When dtschema is sent this is the ABI to which the kernel should conform. User-space or other SW (e.g. U-Boot) could depend on it. Of course there are exceptions... If the compatible is not in the schema, then of course it could be added if there is a need. In this case, device is simply compatible with "fsl,imx35-spdif" so there is no real need to change the schema. Just use the existing compatible. Look at one funny example in iMX: drivers/pwm/pwm-imx27.c. Someone created multiple compatibles but does not use them at all, because the hardware looks exactly the same. Therefore driver implements only one compatible because entire HW is compatible with fsl,imx27-pwm. In such clear case, why adding many compatibles? It's just a churn. Best regards, Krzysztof