Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1119542rdb; Fri, 1 Dec 2023 07:32:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IGUgKAxXxghNdXoWGPedWJqPkRzHK9aNCJbuQpMYHeATZRVahrPyNtWRQVARTjDjAl72ASu X-Received: by 2002:a05:6358:ed12:b0:170:982:5611 with SMTP id hy18-20020a056358ed1200b0017009825611mr2141153rwb.32.1701444763328; Fri, 01 Dec 2023 07:32:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701444763; cv=none; d=google.com; s=arc-20160816; b=b7pRZlN+vOqPkdEB8+Y5Tcmyf2Jto9fqi/oDnkUg+xJMMaf381RdTTLhgGY3l6uM90 U8X5ryG7UwkrwP5gqZYMJ/aTCtT6YOQmG9CTb3ERF49Pc/pmp4BeMmxDc6O6UIBnhRmM 8Zne6HBPKRKzyKso7dLq87pbWb/IR5SjL1ytcuxzLbySxRcTY5Gv/iZC0ei32atY3x96 kbx73X5T98OeYfwI6TsHEf0oCkY5Uor7kfkisSsXZ2wAghRZpVenSufGniBz9QASfbDv bpDAhduGsd0ctwBLCSEhWBrYsjBVdQ1WxEy7AYphY7Ehm75L0bj219/LQbXwDOVjauRg Cl6Q== 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=uaKgDUJ8WyZ2UaU8XOUlrLn3XeW/PotJJKOLnttrI+k=; fh=x53UOoCLw/ssf+2HwW7UADk9qC/a6SkL/katRecoAmY=; b=0CEeNST22bwCqzH1VwOmB9AKlaumhUOytfOqHVLw2QFcTJ07Q0apfjvUAM/sOH/S4Y 3sDLk6gAEFLES9oIY2mXf6REJhsCP5SoeyzIdpUPSms+wfti+zBQ7nMHCxryFG+gfc7Q gPUNDzNlBIx0l3uY9fPYYgX5G08u5ul3W2FZmp6Mhz69gj9QoO8NF3h8rUxdfIMElExG LEjud1qH28VmjzcVF86V/5DjK8yXInIEDpHF8rry+qy+mwBiplwktR5DQxxsnN/m3fc7 CQ4uObX3qIbO9O/BcFpHBZzvPW88EFLhQ40OcQE+70vXJRhRzJ6+my1//KojS0d06i5k HO6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Z6E7zwKe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id r18-20020a63d912000000b005b938759695si3319153pgg.886.2023.12.01.07.32.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 07:32:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Z6E7zwKe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 35D0E81CA3EF; Fri, 1 Dec 2023 07:32:40 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379457AbjLAPc0 (ORCPT + 99 others); Fri, 1 Dec 2023 10:32:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379461AbjLAPcV (ORCPT ); Fri, 1 Dec 2023 10:32:21 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EABC1738; Fri, 1 Dec 2023 07:32:25 -0800 (PST) Received: from [100.94.55.57] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: ehristev) by madras.collabora.co.uk (Postfix) with ESMTPSA id 88F3E660739A; Fri, 1 Dec 2023 15:32:23 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1701444744; bh=tNdSmYTDgv9TDc5k/n3GNbFZ1OQJA3GgTmeWeu7A4x8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Z6E7zwKeTZgTXBpUwQV/3AUvSEy1KeCPkbw/7VMdxJN+uykpCdyaS7JAE3NAbRzc7 4B7RFcXoUvZ2F9iSURyGjptLaVmDAB+WyuMU4HVGGm8n8l55h7Vj/TarpfWrIw9RLz 9KuUkSv8DFdG5HneVf3pMH0cpGqNFe4CXdCPdVb+C0eNRrvacsCyEikKkNGKTEI4ek SVRo049kcwUsPKEDPhSrFmC81NXpCACgb9SvTvvuyQj9T3UaHmNsjdbiPzvCuDRUYb n2T/JbRCXRndQMECr5Ms4kiAidVeAjVb+25aLwWQ466vbvNkGifv7hECjgnETjcsQv SauXuJyjmAeoQ== Message-ID: <525f20de-4eb8-4786-84b5-64eb989bdc4c@collabora.com> Date: Fri, 1 Dec 2023 17:32:20 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 6/9] arm64: dts: mediatek: Add MT8186 Krabby platform based Tentacruel / Tentacool Content-Language: en-US To: AngeloGioacchino Del Regno , Chen-Yu Tsai Cc: Matthias Brugger , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org References: <20231012230237.2676469-1-wenst@chromium.org> <20231012230237.2676469-7-wenst@chromium.org> <60beb523-292b-4c77-9030-1bfdfd73c140@collabora.com> <4c15c9a4-bf04-492d-9e02-d630092b6caa@collabora.com> From: Eugen Hristev In-Reply-To: <4c15c9a4-bf04-492d-9e02-d630092b6caa@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 01 Dec 2023 07:32:40 -0800 (PST) On 11/27/23 15:05, AngeloGioacchino Del Regno wrote: > Il 27/11/23 05:00, Chen-Yu Tsai ha scritto: >> On Mon, Oct 23, 2023 at 5:05 PM Eugen Hristev >> wrote: >>> >>> On 10/13/23 02:02, Chen-Yu Tsai wrote: >>>> Tentacruel and Tentacool are MT8186 based Chromebooks based on the >>>> Krabby design. >>>> >>>> Tentacruel, also known as the ASUS Chromebook CM14 Flip CM1402F, is a >>>> convertible device with touchscreen and stylus. >>>> >>>> Tentacool, also known as the ASUS Chromebook CM14 CM1402C, is a laptop >>>> device. It does not have a touchscreen or stylus. >>>> >>>> The two devices both have two variants. The difference is a second >>>> source touchpad controller that shares the same address as the original, >>>> but is incompatible. >>>> >>>> The extra SKU IDs for the Tentacruel devices map to different sensor >>>> components attached to the Embedded Controller. These are not visible >>>> to the main processor. >>>> >>>> Signed-off-by: Chen-Yu Tsai >>>> --- >>>> arch/arm64/boot/dts/mediatek/Makefile | 4 + >>>> .../dts/mediatek/mt8186-corsola-krabby.dtsi | 130 ++ >>>> .../mt8186-corsola-tentacool-sku327681.dts | 49 + >>>> .../mt8186-corsola-tentacool-sku327683.dts | 26 + >>>> .../mt8186-corsola-tentacruel-sku262144.dts | 44 + >>>> .../mt8186-corsola-tentacruel-sku262148.dts | 28 + >>>> .../boot/dts/mediatek/mt8186-corsola.dtsi | 1704 +++++++++++++++++ >>>> 7 files changed, 1985 insertions(+) >>>> create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-krabby.dtsi >>>> create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacool-sku327681.dts >>>> create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacool-sku327683.dts >>>> create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacruel-sku262144.dts >>>> create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-tentacruel-sku262148.dts >>>> create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi >>>> >> >> [...] >> >>>> diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi b/arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi >>>> new file mode 100644 >>>> index 000000000000..42ebab1bafeb >>>> --- /dev/null >>>> +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi >>>> @@ -0,0 +1,1704 @@ >> >> [...] >> >>> >>> Hi Chen-Yu, >>> >>> These two aud_gpio_tdm empty entries cause this message to be printed: >>> >>> [ 12.949519] mt8186_mt6366_rt1019_rt5682s sound: there is not valid >>> maps for state aud_gpio_tdm_off >>> [ 12.959025] mt8186_mt6366_rt1019_rt5682s sound: there is not valid >>> maps for state aud_gpio_tdm_on >> >> I guess we need to teach the sound driver to ignore empty pinmux states? > > ...and we need to teach to the bindings that the aud_gpio_tdm_{off,on} are > optional states and can be omitted. Hello Angelo, The binding does not appear to specify any required states. Am I getting this wrong? Hence, we can just remove these states from the DT node. Hello Chen-Yu, The error message comes from the pinctrl, from dt_to_map_one_config() . I believe we can safely just remove these two if corsola device does not use TDM. From my perspective it is pointless to have two empty pinctrl states just for the sake of it if there are no pins involved. Please correct me if you have more knowledge about it. Thanks, Eugen > > Cheers, > Angelo > >> >> ChenYu > > >