Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6455322rdb; Tue, 2 Jan 2024 02:26:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IEeCv2Junel2FAgBKg8xeqdyL7iiZ6JyTVOpi1+EykxDwlVI8akO9Jhv0+KYhfdTNu5ZCHH X-Received: by 2002:a05:620a:b11:b0:781:5614:183b with SMTP id t17-20020a05620a0b1100b007815614183bmr17240836qkg.39.1704191172417; Tue, 02 Jan 2024 02:26:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704191172; cv=none; d=google.com; s=arc-20160816; b=OYxQ9RPA405dJB706Z18kiBSjCaYRANd1lveDFwW+12munMjJyDMTlp7k2xKFxd/tt pmS70VYXZ52Q4203qNqhIUFapYvnwtAbi8DhbbS0cllqH0v1ouNXbLUtsm++4gMkpg6+ TQhchDMqfUXBRhvQR1msgBqPlYJW9mOQ+9UpW/HsidwkYhtCjuLrkhVd8xb0Xh2XBUUC rhER/RLQXR5nHvPo7PyuO9h6WlDFVgolCloTPaUWwGd8FAt0U9x0nVWIMmbJIhjW1BUZ TqMQOZvULiI9AECu/1Ue+heJuZJgDRgK8LV7L4j/FtrP+vd/9aN5qy/aONI+YJxWIRoZ l8uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=4cKlcr9TDXVMFehMkzlKiGxOSc5Va79SEC/vL9WVI28=; fh=tU34gStPRfamcW0HTZhazkEkMML57+AeA9nAfCQukM8=; b=OLt3+xfBdt5ohzWubZnrQyuQVV+NCxfjJrOTmgNA765d5XG1rDEVSuKxdCtq70hpHG 0qK4UvBozNr49XcwKq9M5WN9Vgk0kKStj0CjfEaGt6xK7sbCNugdaEPntY8CjIUuLBEE PmjqAMbRuvwsJ8LQPT3tIA4mnFaE1vkWr0TucJ5pxTXhqV+yOukCbA3WNOvuY4srzj+u 4VipoMWzcfc24arKg7PI9/ZoJvHIT3S2vK9IKDfw6QP9Zr12+AsBW9V9V5COkz630RUm I05k89K5F14xEsqrzOXV3wK1kkuvLM04qVp2HbzLTIjl9wXtivjIVolsfJbtfZZF7yjP 1z5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="HgE6W/hn"; spf=pass (google.com: domain of linux-kernel+bounces-14239-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14239-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id h6-20020a05620a400600b00781309d5678si24820161qko.376.2024.01.02.02.26.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 02:26:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14239-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="HgE6W/hn"; spf=pass (google.com: domain of linux-kernel+bounces-14239-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14239-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 211C71C2185A for ; Tue, 2 Jan 2024 10:26:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0E0A0D2EA; Tue, 2 Jan 2024 10:26:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="HgE6W/hn" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6F012D27F for ; Tue, 2 Jan 2024 10:26:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2ccba761783so72816541fa.1 for ; Tue, 02 Jan 2024 02:26:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1704191158; x=1704795958; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=4cKlcr9TDXVMFehMkzlKiGxOSc5Va79SEC/vL9WVI28=; b=HgE6W/hnge5njJheiWy3LC29QftcC0boKVfgebR4QIQZs4vMQCo++IzqDPru+5VtDI NqXVizqBM7qMTTJGLr14IKu4tc4UttzITYLoqKz5KpaGx3cRCwLb0xBlmjJNCPAXmRuj eCxAT1gUrhSftSkIlY6J2b/Hr3taFv4lcYhXI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704191158; x=1704795958; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4cKlcr9TDXVMFehMkzlKiGxOSc5Va79SEC/vL9WVI28=; b=WfpQybPFZ4jGmSOOknZoebQBngTZCzEQ/N68ggv0QGfbLRQzttcDEFWVfI31cBZ1AT y5jOxz/lrmaLykxGS4YbjSNKNXZ0uZtnxGVAggJ56qVDVLhKYdkqA38O7MJwPLfMR9jS 64EH01IjXNLJRf6pZsaUOWxN0l1QZktX/9GDYm6R1+mBQ+HlbUQMCSxULc+sAiKbYbU7 mEwld724uobpK/BPgZfSkHE8eYHxSmmNvtRHOiK8VNLfe5mRAZrbts1W4Kf1+gqCKagm 6VrRsprM/RZSPpvcoZ0r2V+5pBQzG5YGTngAqWKGpfBbIWLEAaluAp0oEZYDOkvxcT5N 9/Gw== X-Gm-Message-State: AOJu0YwBOAhsjawPFVA88OJcGzZeTH7YN1wSduqXMQzQ4R0qd3OXQVsE J7zZ56k/XUj5Vnvw3Q4ygXFJee/TC2N41BKVxmaPPtp7uRGltI+QSVrbFQ4= X-Received: by 2002:a2e:9d9a:0:b0:2cb:30f4:a342 with SMTP id c26-20020a2e9d9a000000b002cb30f4a342mr6642927ljj.23.1704191158118; Tue, 02 Jan 2024 02:25:58 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231213150435.4134390-1-wenst@chromium.org> <20231213150435.4134390-7-wenst@chromium.org> <19c98266-0a8e-4e99-8766-cdf31a3a97b6@collabora.com> In-Reply-To: <19c98266-0a8e-4e99-8766-cdf31a3a97b6@collabora.com> From: Chen-Yu Tsai Date: Tue, 2 Jan 2024 18:25:46 +0800 Message-ID: Subject: Re: [PATCH v4 6/9] arm64: dts: mediatek: Add MT8186 Krabby platform based Tentacruel / Tentacool To: Eugen Hristev Cc: Matthias Brugger , AngeloGioacchino Del Regno , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Conor Dooley Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Mon, Jan 1, 2024 at 10:09=E2=80=AFPM Eugen Hristev wrote: > > Hello Chen-Yu, > > There is still some nonconformity with the bindings, please see below: > > On 12/13/23 17:04, 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 > > Acked-by: Conor Dooley > > --- > > Changes since v3: > > - Reorder some properties to conform better to the newly proposed DT > > style guidelines > > - Drop unused labels > > - Rename bt-sco node name to bt-sco-codec > > - Drop i2s*-share properties from afe node > > - Drop aud_gpio_tdm_{on,off} pinctrl nodes > > - Replace interrupts with interrupts-extended in tpm node > > - Enable adsp device > > > > Changes since v2: > > - Picked up Conor's ack > > - Rename touchpad to trackpad > > - Drop pinctrl properties from trackpad in tentacruel/tentacool second > > source trackpad > > > > Changes since v1: > > - Reorder SKU numbers in descending order. > > - Fixed pinconfig node names > > - Moved pinctrl-* properties after interrupts-* > > - Switched to interrupts-extended for external components > > - Marked ADSP as explicitly disabled, with a comment explaining that it > > stalls the system > > - Renamed "touchpad" to "trackpad" > > - Dropped bogus "no-laneswap" property from it6505 node > > - Moved "realtek,jd-src" property to after all the regulator supplies > > - Switched to macros for MT6366 regulator "regulator-allowed-modes" > > - Renamed "vgpu" regulator name to allow coupling, with a comment > > containing the name used in the design > > - Renamed "cr50" node name to "tpm" > > - Moved trackpad_pins reference up to i2c2; workaround for second sourc= e > > component resource sharing. > > - Fix copyright year > > - Fixed touchscreen supply name > > --- > > [snip] > > > + > > +&i2c3 { > > + pinctrl-names =3D "default"; > > + pinctrl-0 =3D <&i2c3_pins>; > > + clock-frequency =3D <100000>; > > + status =3D "okay"; > > + > > + it6505dptx: dp-bridge@5c { > > + compatible =3D "ite,it6505"; > > dp-bridge@5c: '#address-cells', '#size-cells', '#sound-dai-cells' do not = match any > of the regexes: 'pinctrl-[0-9]+' > from schema $id: http://devicetree.org/schemas/display/bridge/ite= ,it6505.yaml# Will add a patch to update the bindings. > > + reg =3D <0x5c>; > > + interrupts-extended =3D <&pio 8 IRQ_TYPE_LEVEL_LOW>; > > + pinctrl-names =3D "default"; > > + pinctrl-0 =3D <&it6505_pins>; > > + #address-cells =3D <1>; > > + #size-cells =3D <0>; > > /soc/i2c@1100f000/dp-bridge@5c: unnecessary #address-cells/#size-cells wi= thout > "ranges" or child "reg" property Dropped. > > + #sound-dai-cells =3D <0>; > > + ovdd-supply =3D <&mt6366_vsim2_reg>; > > + pwr18-supply =3D <&pp1800_dpbrdg_dx>; > > + reset-gpios =3D <&pio 177 GPIO_ACTIVE_HIGH>; > > + > > + ports { > > + #address-cells =3D <1>; > > + #size-cells =3D <0>; > > + > > + port@0 { > > + reg =3D <0>; > > + > > + it6505_in: endpoint { > > + link-frequencies =3D /bits/ 64 <1= 50000000>; > > + remote-endpoint =3D <&dpi_out>; > > + }; > > + }; > > + > > + port@1 { > > + reg =3D <1>; > > + }; > > + }; > > + }; > > +}; > > + > > [snip] > > > +&spi1 { > > + pinctrl-names =3D "default"; > > + pinctrl-0 =3D <&spi1_pins>; > > + mediatek,pad-select =3D <0>; > > + status =3D "okay"; > > + > > + cros_ec: ec@0 { > > + compatible =3D "google,cros-ec-spi"; > > + reg =3D <0>; > > + interrupts-extended =3D <&pio 13 IRQ_TYPE_LEVEL_LOW>; > > + pinctrl-names =3D "default"; > > + pinctrl-0 =3D <&ec_ap_int>; > > + spi-max-frequency =3D <1000000>; > > + > > + i2c_tunnel: i2c-tunnel { > > + compatible =3D "google,cros-ec-i2c-tunnel"; > > + google,remote-bus =3D <1>; > > + #address-cells =3D <1>; > > + #size-cells =3D <0>; > > + }; > > + > > + typec { > > + compatible =3D "google,cros-ec-typec"; > > + #address-cells =3D <1>; > > + #size-cells =3D <0>; > > + > > + usb_c0: connector@0 { > > + compatible =3D "usb-c-connector"; > > + reg =3D <0>; > > + label =3D "left"; > > + power-role =3D "dual"; > > + data-role =3D "host"; > > + try-power-role =3D "source"; > > + > > + ports { > > + #address-cells =3D <1>; > > + #size-cells =3D <0>; > > + > typec:connector@0:ports: 'port@0' is a required property > > + port@1 { > > + reg =3D <1>; > > + > > + typec_port0: endpoint { }= ; > > + }; > > + }; > > + }; > > + > > + usb_c1: connector@1 { > > + compatible =3D "usb-c-connector"; > > + reg =3D <1>; > > + label =3D "right"; > > + power-role =3D "dual"; > > + data-role =3D "host"; > > + try-power-role =3D "source"; > > + > > + ports { > connector@1: Unevaluated properties are not allowed ('ports' was unexpect= ed) > from schema $id: http://devicetree.org/schemas/connector/usb-conn= ector.yaml# Not sure why this is happening. Maybe because the sub-schema validation failed? In any case, I will drop the whole ports section. This can be re-added once all the type-C mux stuff has been sorted out. > > + #address-cells =3D <1>; > > + #size-cells =3D <0>; > > + > > + port@1 { > connector@0: ports: 'port@0' is a required property > > + reg =3D <1>; > > + > > + typec_port1: endpoint { }= ; > > + }; > > + }; > > + }; > > + }; > > + }; > > +}; > > + > > [snip] > > > + > > +&usb_host1 { > > + #address-cells =3D <2>; > > + #size-cells =3D <2>; > > usb@11281000: usb@11280000:#address-cells:0:0: 1 was expected > from schema $id: http://devicetree.org/schemas/usb/mediatek,mtu3.= yaml# > usb@11281000: usb@11280000:#size-cells:0:0: 0 was expected Dropped. > > + vbus-supply =3D <&usb_p1_vbus>; > > + status =3D "okay"; > > +}; > > + > > +&watchdog { > > + mediatek,reset-by-toprgu; > > +}; > > + > > +#include > > +#include > > > Eugen Thanks for the review. Since the merge window is just around the corner, I will send a new version later this month. ChenYu