Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4125645ybg; Fri, 25 Oct 2019 13:44:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9K49nbw/8LhSaMqjqPUrMqZinh/2DcsX9ZhKwEOePDk752ydWIaz9wZByC/J6NVR4PWCY X-Received: by 2002:a50:e40c:: with SMTP id d12mr6098444edm.256.1572036261281; Fri, 25 Oct 2019 13:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572036261; cv=none; d=google.com; s=arc-20160816; b=TBFOYxlNjsbvTUetV41fk5gvOAmcn1vu/ZhsSf4aNy3gvumxYHoux1XYKRoh8vG7zV XuueTQ7uR/odWqbojmnOLuq+HReSpcpkrfzvpCnydUtUe5s6L31tHIOMVEdAV/jkyOnb FGinK0KKNL6z4zm5J6G7zoTIj483wpbT2/Vvggl4hJYE8Wpo7Npt0/39Rwie+tevWOSF ooSgwnn2Hi2IXtr5ZyIuDoy6vjoHvJhWHGOAR6Vl9SgXaGJzEGkxDb6mu1JS0PAoxscP WF+VZ+/h8Xu7F/y8le2qcQJO8aLTrLyLGkop5hnSJrGDEP34elvUIZ9j24ukjQopbExW sFzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=DcXI0ptEmLNRJ3ATloq3LFD9nbZMbeqbCJ87LxNGHWo=; b=IrofXtmqLhio0pMrbmZZXsC7Tt1xF+GlNMpyiMrdBj6GZFz+O5TBxVDK+HdWhxLq5s cZ4zMtgatIVRw5OLZAi0qfkqdYvnsf96NAvVAMKqZ0g2Xfjw6LnsN/GOTQreXdP5Ba/o B6TeGhPBmLngIyZHjEnRD+5S5UDA/OHJGKZmzCivkWoQ5VTCGeucuaDFS2nc8AVW3lE8 /+29a4LkvlkViGTFJ5oXLu3pqeF7dpJiJY6YpPKaXKqFVNoWdqj7prK/GJIAHMSE9Yj1 Zs+Q2KzY3Mh2ZBvL83M4ZKNSDge1lfCddEIBhVAEB+LcuMCO3izpiG7lbH+ocr7WiYCZ K9Hg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l20si1782646ejb.111.2019.10.25.13.43.57; Fri, 25 Oct 2019 13:44:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2632839AbfJYQWg (ORCPT + 99 others); Fri, 25 Oct 2019 12:22:36 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:44962 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2632806AbfJYQWg (ORCPT ); Fri, 25 Oct 2019 12:22:36 -0400 Received: by mail-ot1-f68.google.com with SMTP id n48so2420034ota.11; Fri, 25 Oct 2019 09:22:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=DcXI0ptEmLNRJ3ATloq3LFD9nbZMbeqbCJ87LxNGHWo=; b=PaBxT/zjhHIZGXJYauWxCPNHPmYAodN02jgvrTjDGa55nYgPbwHr9+HFzdJGdUKXw0 IN5gNzuJQe4Oohf1yO3z/akOKhwJejU4TCKKD0rmqLSPZeS8XHPZqYtkYzx8cPxku7Nw Sp+FHFRTXC9KjUCw7+4NUBZYuixsVxj4s05ep5ugKmJ41hs7Zkc5KiW+gpUM+xjIlA9I 8zquV4Rb+Bu+Gal1UebVd89ghva9XdLDkcIm06SbuTB33/693gy9K2CDhOHTIQfbrLGM MCGBUH+ipTNj9TxDINq8k3GTMfxWJ1z/x66NWn17/9azUrSnxZu8wiBFg9h8ATI70ube NdeQ== X-Gm-Message-State: APjAAAVeLFL5CRqTfJZ9ITjodcgQTO4eQRi2piItkk6vh/fkD5hzPVfa SuHkWvlkC51lbaz9NP2a3w== X-Received: by 2002:a9d:3476:: with SMTP id v109mr3516135otb.211.1572020554577; Fri, 25 Oct 2019 09:22:34 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id i5sm836976otk.10.2019.10.25.09.22.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 09:22:33 -0700 (PDT) Date: Fri, 25 Oct 2019 11:22:32 -0500 From: Rob Herring To: Cheng-Yi Chiang Cc: linux-kernel@vger.kernel.org, Neil Armstrong , Jerome Brunet , Jernej Skrabec , Jonas Karlman , Hans Verkuil , Mark Brown , Liam Girdwood , Takashi Iwai , Jaroslav Kysela , Russell King , Andrzej Hajda , Laurent Pinchart , David Airlie , Daniel Vetter , Heiko Stuebner , Mark Rutland , dianders@chromium.org, dgreid@chromium.org, tzungbi@chromium.org, alsa-devel@alsa-project.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org Subject: Re: [PATCH v8 2/6] ASoC: rockchip-max98090: Support usage with and without HDMI Message-ID: <20191025162232.GA23022@bogus> References: <20191025133007.11190-1-cychiang@chromium.org> <20191025133007.11190-3-cychiang@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191025133007.11190-3-cychiang@chromium.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 25, 2019 at 09:30:03PM +0800, Cheng-Yi Chiang wrote: > There will be multiple boards sharing this machine driver. > Use compatible string to specify the use case. > > "rockchip,rockchip-audio-max98090" for max98090-only. > "rockchip,rockchip-audio-hdmi" for HDMI-only > "rockchip,rockchip-audio-max98090-hdmi" for max98090 plus > > Move these properties to optional because they are not needed for > HDMI-only use case. > "rockchip,audio-codec": The phandle of the MAX98090 audio codec > "rockchip,headset-codec": The phandle of Ext chip for jack detection > > The machine driver change will add support for HDMI codec in > rockchip-max98090. > Add one optional property "rockchip,hdmi-codec" to let user specify HDMI > device node in DTS so machine driver can find hdmi-codec device node for > codec DAI. Why not just use the presence of rockchip,hdmi-codec to enable HDMI or not. Maybe you still add rockchip,rockchip-audio-hdmi for HDMI only. Really, the same should have been done for which codec is used too, but I guess someone wanted 2 machine drivers. > > Signed-off-by: Cheng-Yi Chiang > --- > .../bindings/sound/rockchip-max98090.txt | 38 +++++++++++++++++-- > 1 file changed, 35 insertions(+), 3 deletions(-)