Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2772644rdh; Sun, 26 Nov 2023 19:56:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IFPUWXB7mln+/j8fcMnfB74H4GLfKCNXIQNBw77PQsLJKEcB3t9gqPMwWNV9GVy55fFBwvh X-Received: by 2002:a05:6a20:6a20:b0:18b:93cc:c9fb with SMTP id p32-20020a056a206a2000b0018b93ccc9fbmr15353261pzk.54.1701057407503; Sun, 26 Nov 2023 19:56:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701057407; cv=none; d=google.com; s=arc-20160816; b=xaGZSI+b9oet8SahX4ELRRvYTCTnsPcY/Rr6lrHnkCEtQZSLkBK8qoBUlJJDB8Q6DI sDj4FwaFdPlngwjY/5YOAtHEL4T3xu1uNbilO1OOUD44fYSEldO/iC2cbu8UPekHSiCb CWAD02PP5xzoqvCu2YDd/l8B1GLSa/xhvz/SspVUdJ79lDlDliknc8BZdfDfJXDMO5cN jSYRUn8kju2IS2+H9k3oH8TvUT7otO3ZSd6RHuCkgr7qL7s18oN5wr7dIPUBCxFrqCzn ix9glNAMIyZWvMHFZt6IdbiS1yc03XLZ3HLLA8K0yjNufbkpKGrJ/H6p5XjoC46O/RSB mPag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=OdQ/Y6CJ/tXJPIZwoVwtxZbsYvh8pLzEZAF/c5I9cSM=; fh=kN33mn1uweN3RLL1BhoyrlwVPLvt2MhRHD/hQr0biPc=; b=zvzsBZOpm0fO3zu8YZBKRjrCM/OpK2V4FvuK6E6sw/0sBtxGjJOG6Z6OQnf5G++pVk eJd0wDKnp0OD5P3m3Zb+R6VA8LUyVeJrSK2ngLdTz+vfdHobQrekd2R5rsDQSIlTv2so WFAPRGvHTkuUyQhIy692r3Vv/5FOhB0TUf9SEX0FSV4Sh5FZtyRGO6Qy5i6XtV1UXyrc cHvhfiuzf36Wn2n1JyUEgYwCL2wToEZsNpLtUKB9NA54VaiF+bjeaBMc7PYOaGAhAXg4 +7WtoCFBY72JIo9msApLBq3P85xJKCrPFOdo+BbzpMcg9Wjaru651WFpxC7Kep+WrLjv jFzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Ss7Z75Iu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id d2-20020a17090ac24200b0028596b1c1bbsi5944606pjx.90.2023.11.26.19.56.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 19:56:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Ss7Z75Iu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 2809A809500E; Sun, 26 Nov 2023 19:56:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229527AbjK0D4f (ORCPT + 99 others); Sun, 26 Nov 2023 22:56:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjK0D4d (ORCPT ); Sun, 26 Nov 2023 22:56:33 -0500 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BFEA12D for ; Sun, 26 Nov 2023 19:56:39 -0800 (PST) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-507c5249d55so5758118e87.3 for ; Sun, 26 Nov 2023 19:56:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701057397; x=1701662197; 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=OdQ/Y6CJ/tXJPIZwoVwtxZbsYvh8pLzEZAF/c5I9cSM=; b=Ss7Z75Iu8nS3R3dp9wf+Z4+DWB7pM3CP7CKOxkm7U7dVfISOSzDtHhfPUjIrJ+q+mF zKKaqm7Z2nncDL/Lc1+dYYBWmeHapyCLgpvY+uI144fQHvwVsU1YJxdmloS6Iw1b5AoI olBF6MT1csIEiELI+M6vlnYf1CR+Dgctr3WWU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701057397; x=1701662197; 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=OdQ/Y6CJ/tXJPIZwoVwtxZbsYvh8pLzEZAF/c5I9cSM=; b=VQblS3o0cRXrwovp0wyVaJpGeIdKD/DGQmuWeDGO3EPD3xq3xRhB3SCSFwrdtpwCdK NCSoaoN45TZwuPiAi+9/+AL8La+hilKxaU5RFyN0dC6aWunR4kaEIkahSb82y6AcsWoO NUj/I6EL+1fYsnYHjIBsYviypwtKROXg9adEZSHygdcgqa9LhBsHcP2Ggf6yjrxWFRkL /HjBMC937imCgaaSrjThdM460uW2/RPGOpUqUUX7CcKvfNvo2NfY6g4oCmyQHHv3Bshr AEWxJmSYEgoYJHpRIqGrk83JLPL0dqYTr+hB1YZa12wiqVY7cowVk4lLpTD201VcuR13 CfVg== X-Gm-Message-State: AOJu0Yyib5dNJrCJG/OgM8g642r++N1GKSwU4UgJQGOvoShmrCD7Mj2U BGjkFH1sdtFBAObG61kFH/m26od72af+ZZdkqR5jPA== X-Received: by 2002:a05:6512:3d94:b0:507:9a66:3577 with SMTP id k20-20020a0565123d9400b005079a663577mr4725984lfv.5.1701057397494; Sun, 26 Nov 2023 19:56:37 -0800 (PST) MIME-Version: 1.0 References: <20231012230237.2676469-1-wenst@chromium.org> <20231012230237.2676469-8-wenst@chromium.org> In-Reply-To: From: Chen-Yu Tsai Date: Mon, 27 Nov 2023 11:56:26 +0800 Message-ID: Subject: Re: [PATCH 7/9] arm64: dts: mediatek: Introduce MT8186 Steelix To: Eugen Hristev Cc: Matthias Brugger , AngeloGioacchino Del Regno , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 26 Nov 2023 19:56:46 -0800 (PST) On Mon, Oct 16, 2023 at 4:36=E2=80=AFPM Eugen Hristev wrote: > > On 10/13/23 02:02, Chen-Yu Tsai wrote: > > The MT8186 Steelix, also known as the Lenovo 300e Yoga Chromebook Gen 4= , > > is a convertible device based on a common design of the same name. The > > device comes in different variants. Of them, whether a world facing > > camera is integrated is the only differentiating factor between the > > two device trees added. The different SKU IDs describe this alone. > > > > The other device difference is the touchpad component used. This is > > simply handled by having both possible components described in the > > device tree, and letting the implementation figure out which one is > > actually available. The system bootloader / firmware does not > > differentiate this in that they share the same SKU IDs. > > > > Signed-off-by: Chen-Yu Tsai > > --- > > arch/arm64/boot/dts/mediatek/Makefile | 2 + > > .../mt8186-corsola-steelix-sku131072.dts | 18 ++ > > .../mt8186-corsola-steelix-sku131073.dts | 18 ++ > > .../dts/mediatek/mt8186-corsola-steelix.dtsi | 197 +++++++++++++++++= + > > 4 files changed, 235 insertions(+) > > create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-steeli= x-sku131072.dts > > create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-steeli= x-sku131073.dts > > create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-steeli= x.dtsi > > [...] > > diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-steelix.dtsi b= /arch/arm64/boot/dts/mediatek/mt8186-corsola-steelix.dtsi > > new file mode 100644 > > index 000000000000..8488f2f9dc4d > > --- /dev/null > > +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-steelix.dtsi > > @@ -0,0 +1,197 @@ [...] > > +&i2c2 { > > + i2c-scl-internal-delay-ns =3D <22000>; > > + > > + /* second source component */ > > + touchpad@2c { > > + compatible =3D "hid-over-i2c"; > > + reg =3D <0x2c>; > > + hid-descr-addr =3D <0x20>; > > + interrupts-extended =3D <&pio 11 IRQ_TYPE_LEVEL_LOW>; > > + pinctrl-names =3D "default"; > > + pinctrl-0 =3D <&trackpad_pin>; > > + vdd-supply =3D <&pp3300_s3>; > > + wakeup-source; > > + }; > > Hi Chen-Yu, > > This is not okay, the `trackpad_pin` is shared with touchpad@15 , and if > drivers are probed in parallel , this can lead to a conflict on this pin > (GPIO11) You're right. I've moved it under i2c2 for now, as we do for other platform= s with second source components. This should hopefully be cleaned up once we have a hardware prober. ChenYu