From patchwork Thu Jun 20 09:47:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 13705052 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 103D5C2BA18 for ; Thu, 20 Jun 2024 09:48:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=7KB2vnbw+59r77dIT1XqZt8Bq4nLOyd8kq/y1e23jiU=; b=BiyHNPehx7Sn74+sPdbRas7/y2 PcXt/uww6/cvzUBkxBBJ32f4reM3LGwy4VVbT2h4T11TJP90ra38fjuPJnFt/dM1vH+JiqZGIrCuE rmUfAOSGCz0P5W29FMpVRvVirVLWqHmMsjV65clhzY1blquFrGrSKpjS3OPH83G+jNJtkD7LQD2Y5 FXzL5zBa/X5w1HtGyqb/3SJQsxZIm8rl8Tr3sKQBQ8WURjZBUVcbm8mMEeEmg5wfYc9JSXqc7RAYx DohpU+F03/uD/k60fjjbG4MXdjoCIR37xcFj+lAxrIIBfpcNZ/dJraASVHDlvN++5UZgitEG8rrUu lqMk0zoA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sKEOl-00000004Rw7-2phj; Thu, 20 Jun 2024 09:48:07 +0000 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sKEOb-00000004Rpn-00FW for linux-mediatek@lists.infradead.org; Thu, 20 Jun 2024 09:47:58 +0000 Received: by mail-pg1-x52c.google.com with SMTP id 41be03b00d2f7-6e4e6230f42so502667a12.0 for ; Thu, 20 Jun 2024 02:47:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1718876876; x=1719481676; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7KB2vnbw+59r77dIT1XqZt8Bq4nLOyd8kq/y1e23jiU=; b=FKb/H/TBQvZ0vCr6kVFelXutxTj7sPclU4lDM1gdCqGu9kBEBcJNtd/b9JCWXqhZi9 4sGr5Fj1GdJomO8LJ75kZx3Rum369YW+ufs8XqRKBuJRtIVaiOhPwCRM1u6YNN2vlLmL vyr1PNo+hAkoFMCzNQuwrxMYDt3bTq2zo0Uqs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718876876; x=1719481676; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7KB2vnbw+59r77dIT1XqZt8Bq4nLOyd8kq/y1e23jiU=; b=OiAB+110kAdxIeF9xpVKeTefoNfuHrUf5m/6MyYQZ9wJ4dkA1lHkCtzkJwiX/zlKA4 JspyJ1pYAcWOZQ3Tqmq9O2j2WJbZupMcaCSfRc5d1RnJaB9RbjxT7X3W6S90xLhKqPan rUT8tV/YkIgEHKupVPBOsJ19HAb9burzPGsV/bOzRPxZANmUzYvfYOio8YEy1HA0I91K EWvglCqI//bVLKu0CDhq7N47SfUCDXXNlMRH4YBZMPo41dwrXevjOHFvhVA2g2SEnIGi lhyZ4rOSvxOb1eCrjqj58jOOXrWUqGHGyL9uM5TncXOpxha7kD1f0wgk0AqfOmxeGlrB QQqw== X-Forwarded-Encrypted: i=1; AJvYcCWu85ppJRLFNdqqPlDUL66Jp4oUmlHP9HQOoS/qsbU13r/J6w2D56Enxvq26DEVig/OjEeZaI37xKwHO2m4OPxgEB4Hpd6z/c5t0uNyIL5fEQR0 X-Gm-Message-State: AOJu0YxkGJ9ObTeW43sdgxG4a8p7oK439L19lEpITVUPv6OmgvFVPCvu 8wkFzZy4PNXUt1P8SvbmKm8yoFloUvw+nieedF8DPeEcZnYXc1OH9Zl+414JsA== X-Google-Smtp-Source: AGHT+IHlxHx3IJjM2Bl6bnv0ofbMIfZvrxY8EfKGaCgMXMCFaU6DcjSHdYJKb67N3HSA7r0ZPxljnw== X-Received: by 2002:a17:90a:af8f:b0:2c8:62f:de2c with SMTP id 98e67ed59e1d1-2c8062fdf10mr170000a91.15.1718876875679; Thu, 20 Jun 2024 02:47:55 -0700 (PDT) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:c53a:5326:7f72:759f]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-70dbae52920sm4164469a12.42.2024.06.20.02.47.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jun 2024 02:47:55 -0700 (PDT) From: Chen-Yu Tsai To: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Hsin-Hsiung Wang Cc: Chen-Yu Tsai , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] dt-bindings: regulator: mt6315: Document MT6319 PMIC Date: Thu, 20 Jun 2024 17:47:36 +0800 Message-ID: <20240620094746.2404753-2-wenst@chromium.org> X-Mailer: git-send-email 2.45.2.741.gdbec12cfda-goog In-Reply-To: <20240620094746.2404753-1-wenst@chromium.org> References: <20240620094746.2404753-1-wenst@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240620_024757_191965_BC7CA28A X-CRM114-Status: GOOD ( 11.32 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org The MT6319 is a pin-compatible drop-in replacement for MT6315 with slightly better electrical characteristics. It's unclear whether there are any differences, since the downstream implementation doesn't describe the MT6319 separately. Neither does the implementation check chip IDs, even though those are available. Add a new compatible for the MT6319 just in case differences are discovered later and fall back to the MT6315 compatible. Signed-off-by: Chen-Yu Tsai Reviewed-by: Conor Dooley --- .../devicetree/bindings/regulator/mt6315-regulator.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml b/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml index 6317daf76d1f..cd4aa27218a1 100644 --- a/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml +++ b/Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml @@ -16,7 +16,11 @@ description: | properties: compatible: - const: mediatek,mt6315-regulator + oneOf: + - items: + - const: mediatek,mt6319-regulator + - const: mediatek,mt6315-regulator + - const: mediatek,mt6315-regulator reg: maxItems: 1 From patchwork Thu Jun 20 09:47:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 13705053 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ACCA4C27C79 for ; Thu, 20 Jun 2024 09:48:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=m1iA/zvEiFStBDAQUtTcnVMjUIjY5Wwj1aHdUMEw364=; b=eTE8T8O8JKbkMaw82HbhwJ16zH 7fV6K9UU5KeU384cEyar6EwFkXimP+nJcu6IIRXEm56DmNIhqVgJyL8scwi8A2m8MrU8RHo2j2vpq yXQ9/f9Upc5/t0gYNGQoNw9f2T/93ysm/daBOPNH7DgLWq2cghCSPced+6ZwXEFNpBgMA0teIJaUz X2nceE9ZC7O3jQ1GhOqkhBXHPl3lwvRCBx6rPFSillA79XTq4fhEyaEg1Awdd/emNjJ8sCKrRMaGa 7HTUa7JZRo5wGALtxAJ06dadPJxJyeztIASDvblqnE4z/eBAQOjtsH5WBAgeb3lpX6liOmvKMVJ1Z vNnCz2XQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sKEOm-00000004Rwb-0h06; Thu, 20 Jun 2024 09:48:08 +0000 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sKEOc-00000004RrD-47cP for linux-mediatek@lists.infradead.org; Thu, 20 Jun 2024 09:48:00 +0000 Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-705fff50de2so498736b3a.1 for ; Thu, 20 Jun 2024 02:47:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1718876878; x=1719481678; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=m1iA/zvEiFStBDAQUtTcnVMjUIjY5Wwj1aHdUMEw364=; b=llxILf69gGtH5U/00njXYD9m+4q6tGxq3CtRoJKNW5+EYwd4Z5E2Bmon/oqEbSSvH0 ZIdRx996mdcJiW/p4LwXJ/VjctStfZTTTSjoerCuXOZ5mgSDBzLKYQBvhB+lSRniM0e+ jKjpx6shLPftVAdqqrRtGJs2Zrm6u1BU7BbKc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718876878; x=1719481678; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=m1iA/zvEiFStBDAQUtTcnVMjUIjY5Wwj1aHdUMEw364=; b=Bftm60MS0JfszJFXsrYolOwy1jDZ53WJNv7KRTo7d4GYFX/AuGIjK7C3Z5iVhY0dvi 9J5qbOD0DBSnZd4qkButXSf1aGSt7LyRTUfS0Bv0iKvbijl4Xkq9iqonfJeLf8QKu3EL BjW0LcimcsSw+Zp3TCOHR34BxMXAh+ulx0XzWW4oa81hnjlZd6FygeJUlfDATTpaVQwX qZyskzaz74ehaiV36znYr0p/MABnvDEMfXcW2+v6dtxAPyK6do0P2mSQSveK38yNQ1uV lHOI1TWk5YH0zt4YJJByeM85QeOz4kTWgWgCUvjcO8wIRVY96kshmeWdVEda0tg2LtYT bsUQ== X-Forwarded-Encrypted: i=1; AJvYcCX3iUNzUZ3KmEKbUn15tpB5PIddCkw78FqTBMuMgpl5vVj0DSSl8ZuW7LxFNBw6alsKhDvXhYOt0Imepc1asS7AoShLHMMthiUJOImCRXfVyMJo X-Gm-Message-State: AOJu0YzTE8VcKegUZVcbCagCs9AmiGKYXiyIC6OwEwue86/dkzGe9WPc epoMi4XPpmzPoA3JeJIiwppsqmhjoLDx4jjchUu3skdulSdVj4xXtjNgvF3sqQ== X-Google-Smtp-Source: AGHT+IEbLm6UkzausNcxJ9iowsJM7AcH7c4cGUtul3KvHm8nPFGfqXBgRBs6sehTiRsxZ7Zo1TrDRQ== X-Received: by 2002:aa7:9ddc:0:b0:704:229e:54bd with SMTP id d2e1a72fcca58-70628fa93eamr6460287b3a.8.1718876878161; Thu, 20 Jun 2024 02:47:58 -0700 (PDT) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:c53a:5326:7f72:759f]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-70dbae52920sm4164469a12.42.2024.06.20.02.47.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jun 2024 02:47:57 -0700 (PDT) From: Chen-Yu Tsai To: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Hsin-Hsiung Wang Cc: Chen-Yu Tsai , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] dt-bindings: arm: mediatek: Add MT8186 Voltorb Chromebooks Date: Thu, 20 Jun 2024 17:47:37 +0800 Message-ID: <20240620094746.2404753-3-wenst@chromium.org> X-Mailer: git-send-email 2.45.2.741.gdbec12cfda-goog In-Reply-To: <20240620094746.2404753-1-wenst@chromium.org> References: <20240620094746.2404753-1-wenst@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240620_024759_119723_C78518C3 X-CRM114-Status: UNSURE ( 9.63 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add an entry for the MT8186 based Voltorb Chromebooks, also known as the Acer Chromebook 311 (C723/C723T). The device is a clamshell style laptop with an optional touchscreen. Signed-off-by: Chen-Yu Tsai Acked-by: Conor Dooley --- Documentation/devicetree/bindings/arm/mediatek.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Documentation/devicetree/bindings/arm/mediatek.yaml index b1b09db0bd65..e7746afeb0b3 100644 --- a/Documentation/devicetree/bindings/arm/mediatek.yaml +++ b/Documentation/devicetree/bindings/arm/mediatek.yaml @@ -301,6 +301,13 @@ properties: - const: google,tentacruel-sku327683 - const: google,tentacruel - const: mediatek,mt8186 + - description: Google Voltorb (Acer Chromebook 311 C723/C732T) + items: + - enum: + - google,voltorb-sku589824 + - google,voltorb-sku589825 + - const: google,voltorb + - const: mediatek,mt8186 - items: - enum: - mediatek,mt8186-evb From patchwork Thu Jun 20 09:47:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 13705054 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E8CD2C2BA18 for ; Thu, 20 Jun 2024 09:48:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=D3CqtMl8gkLPqmxGGSK7XhTY2wKYDh56L/Juo8O2EDM=; b=p6gTLfWygQHplYXWPrjq7G3nvK 1Lg533RvUub71ggFOHSG0aYn3LVnM2FXjhB9Tn9hnX7Tyz7R7knJwrbUwvThmSpyo1kmE58d+vN5f v5+p8yEBqmRpWVVXRKJqyejnujOwedm/AXUJ7R+kFaqHuScAurBf/yk6BidTW3UNMGd3iURq9LH5e KB6ayAdw2RWE+UoKguwi0NhqC0XysXLqNzH1A242PW4RmqpP+8xrDHALBVo6nWXKKjbsqMexLJk6+ 1aYkVa91O+En3bBuD2yg15qGKiNh8A05hljoprqV9gKZkE196Mo8tQUZ+HktDlqqmg9nQ70uoqtfX 77PEXnqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sKEOo-00000004Ryc-15dc; Thu, 20 Jun 2024 09:48:10 +0000 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sKEOf-00000004Rsl-32Mh for linux-mediatek@lists.infradead.org; Thu, 20 Jun 2024 09:48:03 +0000 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-705fff50de2so498774b3a.1 for ; Thu, 20 Jun 2024 02:48:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1718876881; x=1719481681; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=D3CqtMl8gkLPqmxGGSK7XhTY2wKYDh56L/Juo8O2EDM=; b=ChOvlmPPedTkvcj05cwduMNAKY4s/wBoblQHRZ9XPSP0KZvDmViDpevhthBru5RoCt aEifmJyvC0gPGRgoEZz45rpNhFFiYmGtXWfpp9ihX3XI1mVgT+McJfaWRlL3nGxzW4E8 ZxTGnIR9ZS+5W9BaR9gX/g76m7Lfg0Dl4+TCc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718876881; x=1719481681; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=D3CqtMl8gkLPqmxGGSK7XhTY2wKYDh56L/Juo8O2EDM=; b=UCSIKJ99zRDk3DabTARu74H9GohvBM+P3wmfofkLOxLSyKwGuYs943cGV/2AFRVDQo XE5BIuOOHHEb7XpzqLK4ODpF2sZB+62wYeP7TxUIVU4/1oInl85/pD5HYd7tmBjbmyDe Cw3dG3TP0sZMzEMf5+w8BwQc4q1m2HHH0RPOx8FmTQmWEpAMPJG8ALBS8E4EqcFpV+0t UIGtwDxdRIsiaG2f9J8i/wxgDPABdHrQ0s1HtpGNAWho+l7GuzplH4pGbA+owcN/APXg 6aqYPt3rt68hejOCHaWnmx+RMA17DAk6LA0xBUuO7ju7VpioNboafykMz9jCU3Xy/Cnm ueLA== X-Forwarded-Encrypted: i=1; AJvYcCWYo8xja+5crPDMyANhBmvV1c3z3ZFowCJq89WGejvn1XUQJBg2WpL1pdRrUpAT+sTiXkkaQkw3lWC8CcoqovfslVJxrxXkdb7l3jzOjMqiC02G X-Gm-Message-State: AOJu0YyiHQhWKxnuUQ9zigv9Umc+lIsfRRLMXAYBxibp8BThDfblnbVj hUBf3L90IEQu4hlpRxogeVGNez5wJOHrifUnrzthY2h5QCYl21QD17qnF/GMJg== X-Google-Smtp-Source: AGHT+IE/YKGh11hC25P1P7PsiOqyiQ1Sp4JfOu2bt/xS/JbX8LDN8ZBilCH/xsgMZ5XdiVA+PMWmbw== X-Received: by 2002:a05:6a21:328d:b0:1bc:bdc9:75e8 with SMTP id adf61e73a8af0-1bcbdc97673mr6501372637.29.1718876880803; Thu, 20 Jun 2024 02:48:00 -0700 (PDT) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:c53a:5326:7f72:759f]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-70dbae52920sm4164469a12.42.2024.06.20.02.47.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jun 2024 02:48:00 -0700 (PDT) From: Chen-Yu Tsai To: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Hsin-Hsiung Wang Cc: Chen-Yu Tsai , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] arm64: dts: mediatek: Add MT8186 Voltorb Chromebooks Date: Thu, 20 Jun 2024 17:47:38 +0800 Message-ID: <20240620094746.2404753-4-wenst@chromium.org> X-Mailer: git-send-email 2.45.2.741.gdbec12cfda-goog In-Reply-To: <20240620094746.2404753-1-wenst@chromium.org> References: <20240620094746.2404753-1-wenst@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240620_024801_844150_6F1EF5E3 X-CRM114-Status: GOOD ( 17.14 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add device trees for the MT8186 based Voltorb Chromebooks, also known as the Acer Chromebook 311 (C723/C723T). The devices are clamshell style laptops with an optional touchscreen. The devices differ from the other existing MT8186 Chromebooks in that it uses a higher speced / binned SoC which also requires a separate PMIC for the big core cluster. Also, a different codec is used for the internal speakers. Signed-off-by: Chen-Yu Tsai --- arch/arm64/boot/dts/mediatek/Makefile | 2 + .../mt8186-corsola-voltorb-sku589824.dts | 13 +++ .../mt8186-corsola-voltorb-sku589825.dts | 25 +++++ .../dts/mediatek/mt8186-corsola-voltorb.dtsi | 103 ++++++++++++++++++ 4 files changed, 143 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-voltorb-sku589824.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-voltorb-sku589825.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8186-corsola-voltorb.dtsi diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/mediatek/Makefile index a2d128b17c45..e0cb1b35acfd 100644 --- a/arch/arm64/boot/dts/mediatek/Makefile +++ b/arch/arm64/boot/dts/mediatek/Makefile @@ -64,6 +64,8 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-tentacool-sku327681.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-tentacool-sku327683.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-tentacruel-sku262144.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-tentacruel-sku262148.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-voltorb-sku589824.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-corsola-voltorb-sku589825.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-evb.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8188-evb.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-hayato-r1.dtb diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-voltorb-sku589824.dts b/arch/arm64/boot/dts/mediatek/mt8186-corsola-voltorb-sku589824.dts new file mode 100644 index 000000000000..d16834eec87a --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-voltorb-sku589824.dts @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2022 Google LLC + */ + +/dts-v1/; +#include "mt8186-corsola-voltorb.dtsi" + +/ { + model = "Google Voltorb sku589824 board"; + compatible = "google,voltorb-sku589824", "google,voltorb", + "mediatek,mt8186"; +}; diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-voltorb-sku589825.dts b/arch/arm64/boot/dts/mediatek/mt8186-corsola-voltorb-sku589825.dts new file mode 100644 index 000000000000..45e57f7706cc --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-voltorb-sku589825.dts @@ -0,0 +1,25 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2022 Google LLC + */ + +/dts-v1/; +#include "mt8186-corsola-voltorb.dtsi" + +/ { + model = "Google Voltorb sku589825 board"; + compatible = "google,voltorb-sku589825", "google,voltorb", + "mediatek,mt8186"; +}; + +&i2c1 { + touchscreen@10 { + compatible = "elan,ekth6915"; + reg = <0x10>; + interrupts-extended = <&pio 12 IRQ_TYPE_LEVEL_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&touchscreen_pins>; + reset-gpios = <&pio 60 GPIO_ACTIVE_LOW>; + vcc33-supply = <&pp3300_s3>; + }; +}; diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola-voltorb.dtsi b/arch/arm64/boot/dts/mediatek/mt8186-corsola-voltorb.dtsi new file mode 100644 index 000000000000..52ec58128d56 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola-voltorb.dtsi @@ -0,0 +1,103 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2022 Google LLC + */ + +#include +#include + +#include "mt8186-corsola-steelix.dtsi" + +/ { + chassis-type = "laptop"; + + max98360a: max98360a { + compatible = "maxim,max98360a"; + sdmode-gpios = <&pio 150 GPIO_ACTIVE_HIGH>; + #sound-dai-cells = <0>; + }; +}; + +&cpu6 { + proc-supply = <&mt6319_buck1>; +}; + +&cpu7 { + proc-supply = <&mt6319_buck1>; +}; + +&gpio_keys { + status = "disabled"; +}; + +&keyboard_controller { + linux,keymap = < + MATRIX_KEY(0x00, 0x02, KEY_BACK) + MATRIX_KEY(0x03, 0x02, KEY_REFRESH) + MATRIX_KEY(0x02, 0x02, KEY_ZOOM) + MATRIX_KEY(0x01, 0x02, KEY_SCALE) + MATRIX_KEY(0x03, 0x04, KEY_SYSRQ) + MATRIX_KEY(0x02, 0x04, KEY_BRIGHTNESSDOWN) + MATRIX_KEY(0x01, 0x04, KEY_BRIGHTNESSUP) + MATRIX_KEY(0x02, 0x09, KEY_MUTE) + MATRIX_KEY(0x01, 0x09, KEY_VOLUMEDOWN) + MATRIX_KEY(0x00, 0x04, KEY_VOLUMEUP) + CROS_STD_MAIN_KEYMAP + >; +}; + +&mt6366_vproc11_reg { + status = "disabled"; +}; + +&cluster1_opp_14 { + opp-hz = /bits/ 64 <2050000000>; + opp-microvolt = <1118750>; +}; + +&cluster1_opp_15 { + opp-hz = /bits/ 64 <2200000000>; +}; + +&rt1019p{ + status = "disabled"; +}; + +&sound { + compatible = "mediatek,mt8186-mt6366-rt5682s-max98360-sound"; + status = "okay"; + + spk-hdmi-playback-dai-link { + codec { + sound-dai = <&it6505dptx>, <&max98360a>; + }; + }; +}; + +&spmi { + pinctrl-names = "default"; + pinctrl-0 = <&spmi_pins>; + #address-cells = <2>; + #size-cells = <0>; + status = "okay"; + + pmic@6 { + compatible = "mediatek,mt6319-regulator", "mediatek,mt6315-regulator"; + reg = <0x6 SPMI_USID>; + + regulators { + mt6319_buck1: vbuck1 { + regulator-name = "ppvar_dvdd_proc_bc_mt6319"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1193750>; + regulator-enable-ramp-delay = <256>; + regulator-allowed-modes = <0 1 2>; + regulator-always-on; + }; + }; + }; +}; + +&touchscreen { + status = "disabled"; +};