From patchwork Fri May 13 16:59:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 572668 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C48FEC433EF for ; Fri, 13 May 2022 16:59:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382555AbiEMQ7q (ORCPT ); Fri, 13 May 2022 12:59:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352805AbiEMQ7q (ORCPT ); Fri, 13 May 2022 12:59:46 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 339E9DF71 for ; Fri, 13 May 2022 09:59:45 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id v11so8183761pff.6 for ; Fri, 13 May 2022 09:59:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2AgZWiDnfccUKA3OwEQAKus4Qo+rKb2hQK1i7GLxmw8=; b=CVYmgNe+9a+uCaaCVsW9H7CyjyFhEwNUa7ihbudBQHfG162jKe8sMPtnieG2d1QtxE l9vlBM1YtcicmqU6GjKySVfe+mPRtn0SCwtJLo+toUJqvs7j/D7iCrg9eHIsDleczjUH 6aUG1WgB8ISEBE1nwN56kqY7Xqa4CdD3gbgUA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2AgZWiDnfccUKA3OwEQAKus4Qo+rKb2hQK1i7GLxmw8=; b=kOqKgLYUpcgQl7g0HtEUs4qz4QOdaLi+I5vLkHxL7y4Jtnezw9SJErNgaolmxqGsTA 4FosKr7i4UbYP50jjL3yqiDlV+p3lLWfFFjwg4ml1c/OYIu2aV6kge0LbMvxUMEPySs4 MH9BZXv2QqHLSXbbG4/UEqDVmWXDJNViqb7V5lWgJ3S7ISOfywz2wOwQ7e5MG5BibeYL neHlecJm2NCyrPjVeWv8jn2T/obDUvTvoJuKOTj8B9vZkyGllXNrZ3wuDfiVeAhkpGiU ufy8K7M95Z0OR2VwHeTdNta+V7hFkvtvumfI0tS4xSORaCfmOLjL++XXELvXcYl1HitN vBZQ== X-Gm-Message-State: AOAM5318sJ5+s/gME9mSNC0bQJizJef8PStdiAv4Jg/Og0O77yBGLbl3 CkUuG1yj1BSSpS7uCC+R01Bxrg== X-Google-Smtp-Source: ABdhPJzVWTA20vEKV9V4QJx2ATY9c+mQdG4XnARJDOapEYmFZYnd1atbSyOTCeenauGwT063N08BzQ== X-Received: by 2002:a65:6e8b:0:b0:3ab:a3fb:e95a with SMTP id bm11-20020a656e8b000000b003aba3fbe95amr4713189pgb.433.1652461184707; Fri, 13 May 2022 09:59:44 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:201:f334:6f80:82ed:5653]) by smtp.gmail.com with ESMTPSA id m1-20020a17090a7f8100b001d97f7fca06sm1824548pjl.24.2022.05.13.09.59.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 09:59:44 -0700 (PDT) From: Douglas Anderson To: Rob Herring , Bjorn Andersson Cc: Stephen Boyd , Krzysztof Kozlowski , Matthias Kaehlcke , Rajendra Nayak , Alexandru M Stan , Julius Werner , "Joseph S . Barrera III" , Douglas Anderson , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/4] dt-bindings: Document how Chromebooks with depthcharge boot Date: Fri, 13 May 2022 09:59:17 -0700 Message-Id: <20220513095722.v2.1.I71e42c6174f1cec17da3024c9f73ba373263b9b6@changeid> X-Mailer: git-send-email 2.36.0.550.gb090851708-goog MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This documents how many Chromebooks pick the device tree that will be passed to the OS and can help understand the revisions / skus listed as the top-level "compatible" in many Chromebooks. Signed-off-by: Douglas Anderson --- Changes in v2: - ("Document how Chromebooks with depthcharge boot") new for v2. .../devicetree/chromebook-boot-flow.rst | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/chromebook-boot-flow.rst diff --git a/Documentation/devicetree/chromebook-boot-flow.rst b/Documentation/devicetree/chromebook-boot-flow.rst new file mode 100644 index 000000000000..84aeb0a17ee4 --- /dev/null +++ b/Documentation/devicetree/chromebook-boot-flow.rst @@ -0,0 +1,63 @@ +.. SPDX-License-Identifier: GPL-2.0 + +====================================== +Chromebook Boot Flow +====================================== + +Most recent Chromebooks that use device tree boot using the opensource +depthcharge bootloader. Depthcharge expects the OS to be packaged as a "FIT +Image" which contains an OS image as well as a collection of device trees. It +is up to depthcharge to pick the right device tree from the FIT Image and +provide it to the OS. + +The scheme that depthcharge uses to pick the device tree takes into account +three variables: +- Board name, specified at compile time. +- Board revision number, read from GPIO strappings at boot time. +- SKU number, read from GPIO strappings at boot time. + +For recent Chromebooks, depthcharge creates a match list that looks like this: +- google,$(BOARD)-rev$(REV)-sku$(SKU) +- google,$(BOARD)-rev$(REV) +- google,$(BOARD)-sku$(SKU) +- google,$(BOARD) + +Note that some older Chromebooks may use a slightly different list that may +not include sku matching or may prioritize sku/rev differently. + +Note that for some boards there may be extra board-specific logic to inject +extra compatibles into the list, but this is uncommon. + +Depthcharge will look through all device trees in the FIT image trying to +find one that matches the most specific compatible. It will then look +through all device trees in the FIT image trying to find the one that +matches the _second most_ specific compatible, etc. + +When searching for a device tree, depthcharge doesn't care where the +compatible falls within a given device tree. As an example, if we're on +board "lazor", rev 4, sku 0 and we have two device trees: +- "google,lazor-rev5-sku0", "google,lazor-rev4-sku0", "qcom,sc7180" +- "google,lazor", "qcom,sc7180" + +Then depthcharge will pick the first device tree even though +"google,lazor-rev4-sku0" was the second compatible listed in that device tree. +This is because it is a more specific compatible than "google,lazor". + +It should be noted that depthcharge does not have any smarts to try to +match board or SKU revisions that are "close by". That is to say that +if depthcharge knows it's on "rev4" of a board but there is no "rev4" +device tree that depthcharge _won't_ look for a "rev3" device tree. + +In general when any significant changes are made to a board the board +revision number is increased even if none of those changes need to +be reflected in the device tree. Thus it's fairly common to see device +trees with multiple revisions. + +It should be noted that, taking into account the above system that the +depthcharge has, the most flexibility is achieved if the device tree +supporting the newest revision(s) of a board omits the "-rev{REV}" +compatible strings. When this is done then if you get a new board +revision and try to run old software on it then we'll at pick the most +reasonable device tree. If it turns out that the new revision actually +has no device-tree visible changes then we'll not only pick the most +reasonable device tree, we'll pick the exact right one. \ No newline at end of file From patchwork Fri May 13 16:59:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 572266 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9C6EC43217 for ; Fri, 13 May 2022 16:59:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382607AbiEMQ7v (ORCPT ); Fri, 13 May 2022 12:59:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382598AbiEMQ7t (ORCPT ); Fri, 13 May 2022 12:59:49 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9008B193C7 for ; Fri, 13 May 2022 09:59:46 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id d22so8503442plr.9 for ; Fri, 13 May 2022 09:59:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=88cXYGf2a3kEgwR2h8/l8Xtu/XQd7ToHbj5N0nGGw1w=; b=HWDMU6p8QL0lxHSVeZUBZ132GR7Wb/czeaoslJWtHKkO7mZz1EoT6XHkzDCfv8Xjdd HmeU5J64qoIfIYJcFd2eVFe0oweFCcwmexA0qL49JwyAcGUtmLtYIGXvM9rST/evubfw sj+jEWmV3gMHJInhMLAN7qiCKmdGz7xewrbZc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=88cXYGf2a3kEgwR2h8/l8Xtu/XQd7ToHbj5N0nGGw1w=; b=PDQwOHQft518rsEGGdUhacuwO7G9PMaxETTq268nrlTl2VP5+YXUd19ZoD4awOqwGX ai+hQXqmTbjNS11hKNXzaHzh8SsAgcONs8n/5GmSW+TtlxaNyvLN5qJ2lhj+r1SXY8rR Gn/R0kwsx4vKrWwl5DaxFLRjtkickdv9bTL/GE6MSu3ARKvX/METMI2Uz9U48YaprGqs r+0NB+wJmxsYoguAZiKPiMZ9pjffDwpqc5X1axeBOVQnBqHDY4EEP1isc5AwnDlz5HV0 2QrprxZ7BFJnCcY9GPnPITYZSrTQrxP+JkkpdDsbcNapyAJCPTYW4cPNuxIDbgks+tEB 6oog== X-Gm-Message-State: AOAM530Kxu0m2yQaXQwcD6t8soRuPmuXpxEgumkM9VURKK+7ewIXZ8CH sTviVPkYTAx9E1BxXtLY+0/uLA== X-Google-Smtp-Source: ABdhPJzuCUTXcWeOfQkKVdQE5i6ogThov0/FQ+KjF6lDOyjbO1edZB2GNn5rmCQtZkF4nj7fOJzBMg== X-Received: by 2002:a17:903:240a:b0:14e:dad4:5ce4 with SMTP id e10-20020a170903240a00b0014edad45ce4mr5717988plo.125.1652461186049; Fri, 13 May 2022 09:59:46 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:201:f334:6f80:82ed:5653]) by smtp.gmail.com with ESMTPSA id m1-20020a17090a7f8100b001d97f7fca06sm1824548pjl.24.2022.05.13.09.59.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 09:59:45 -0700 (PDT) From: Douglas Anderson To: Rob Herring , Bjorn Andersson Cc: Stephen Boyd , Krzysztof Kozlowski , Matthias Kaehlcke , Rajendra Nayak , Alexandru M Stan , Julius Werner , "Joseph S . Barrera III" , Douglas Anderson , Andy Gross , Krzysztof Kozlowski , Rob Herring , Stephen Boyd , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/4] dt-bindings: arm: qcom: Add sc7180 Chromebook board bindings Date: Fri, 13 May 2022 09:59:18 -0700 Message-Id: <20220513095722.v2.2.I9804fcd5d6c8552ab25f598dd7a3ea71b15b55f0@changeid> X-Mailer: git-send-email 2.36.0.550.gb090851708-goog In-Reply-To: <20220513095722.v2.1.I71e42c6174f1cec17da3024c9f73ba373263b9b6@changeid> References: <20220513095722.v2.1.I71e42c6174f1cec17da3024c9f73ba373263b9b6@changeid> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This copy-pastes compatibles from sc7180-based boards from the device trees to the yaml file so that `make dtbs_check` will be happy. NOTES: - I make no attempt to try to share an "item" for all sc7180 based Chromebooks. Because of the revision matching scheme used by the Chromebook bootloader, at times we need a different number of revisions listed. - Some of the odd entries in here (like google,homestar-rev23 or the fact that "Google Lazor Limozeen without Touchscreen" changed from sku5 to sku6) are not typos but simply reflect reality. - Many revisions of boards here never actually went to consumers, but they are still in use within various companies that were involved in Chromebook development. Since Chromebooks are developed with an "upstream first" methodology, having these revisions supported with upstream Linux is important. Making it easy for Chromebooks to be developed with an "upstream first" methodology is valuable to the upstream community because it improves the quality of upstream and gets Chromebooks supported with vanilla upstream faster. This patch also adds a link to the Chromebook boot flow documentation to explain that Chromebooks don't use the scheme described for the Qualcomm bootloader. Signed-off-by: Douglas Anderson Reviewed-by: Matthias Kaehlcke --- The link added here will (obviously) not function until the documentation patch makes it to mainline. Presumably folks who want to read it in the meantime can find it pretty easily. If there's a better way to link this then please let me know. Changes in v2: - Add link to doc about how Chromebook devicetrees work. - Use a "description" instead of a comment for each item. - Use the marketing name instead of the code name where possible. .../devicetree/bindings/arm/qcom.yaml | 187 +++++++++++++++++- 1 file changed, 186 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml index 5c06d1bfc046..8ec0805f4996 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -90,6 +90,11 @@ description: | A dragonboard board v0.1 of subtype 1 with an apq8074 SoC version 2, made in foundry 2. + There are many devices in the list below that run the standard ChromeOS + bootloader setup and use the open source depthcharge bootloader to boot the + OS. These devices do not use the scheme described above. For details, see: + https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/chromebook-boot-flow.rst + properties: $nodename: const: "/" @@ -214,11 +219,191 @@ properties: - qcom,ipq8074-hk10-c2 - const: qcom,ipq8074 - - items: + - description: Qualcomm Technologies, Inc. SC7180 IDP + items: - enum: - qcom,sc7180-idp - const: qcom,sc7180 + - description: HP Chromebook x2 11c (rev1 - 2) + items: + - const: google,coachz-rev1 + - const: google,coachz-rev2 + - const: qcom,sc7180 + + - description: HP Chromebook x2 11c (newest rev) + items: + - const: google,coachz + - const: qcom,sc7180 + + - description: HP Chromebook x2 11c with LTE (rev1 - 2) + items: + - const: google,coachz-rev1-sku0 + - const: google,coachz-rev2-sku0 + - const: qcom,sc7180 + + - description: HP Chromebook x2 11c with LTE (newest rev) + items: + - const: google,coachz-sku0 + - const: qcom,sc7180 + + - description: Lenovo Chromebook Duet 5 13 (rev2) + items: + - const: google,homestar-rev2 + - const: google,homestar-rev23 + - const: qcom,sc7180 + + - description: Lenovo Chromebook Duet 5 13 (rev3) + items: + - const: google,homestar-rev3 + - const: qcom,sc7180 + + - description: Lenovo Chromebook Duet 5 13 (newest rev) + items: + - const: google,homestar + - const: qcom,sc7180 + + - description: Acer Chromebook Spin 513 (rev0) + items: + - const: google,lazor-rev0 + - const: qcom,sc7180 + + - description: Acer Chromebook Spin 513 (rev1 - 2) + items: + - const: google,lazor-rev1 + - const: google,lazor-rev2 + - const: qcom,sc7180 + + - description: Acer Chromebook Spin 513 (rev3 - 8) + items: + - const: google,lazor-rev3 + - const: google,lazor-rev4 + - const: google,lazor-rev5 + - const: google,lazor-rev6 + - const: google,lazor-rev7 + - const: google,lazor-rev8 + - const: qcom,sc7180 + + - description: Acer Chromebook Spin 513 (newest rev) + items: + - const: google,lazor + - const: qcom,sc7180 + + - description: Acer Chromebook Spin 513 with KB Backlight (rev1 - 2) + items: + - const: google,lazor-rev1-sku2 + - const: google,lazor-rev2-sku2 + - const: qcom,sc7180 + + - description: Acer Chromebook Spin 513 with KB Backlight (rev3 - 8) + items: + - const: google,lazor-rev3-sku2 + - const: google,lazor-rev4-sku2 + - const: google,lazor-rev5-sku2 + - const: google,lazor-rev6-sku2 + - const: google,lazor-rev7-sku2 + - const: google,lazor-rev8-sku2 + - const: qcom,sc7180 + + - description: Acer Chromebook Spin 513 with KB Backlight (newest rev) + items: + - const: google,lazor-sku2 + - const: qcom,sc7180 + + - description: Acer Chromebook Spin 513 with LTE (rev1 - 2) + items: + - const: google,lazor-rev1-sku0 + - const: google,lazor-rev2-sku0 + - const: qcom,sc7180 + + - description: Acer Chromebook Spin 513 with LTE (rev3 - 8) + items: + - const: google,lazor-rev3-sku0 + - const: google,lazor-rev4-sku0 + - const: google,lazor-rev5-sku0 + - const: google,lazor-rev6-sku0 + - const: google,lazor-rev7-sku0 + - const: google,lazor-rev8-sku0 + - const: qcom,sc7180 + + - description: Acer Chromebook Spin 513 with LTE (newest rev) + items: + - const: google,lazor-sku0 + - const: qcom,sc7180 + + - description: Acer Chromebook 511 (rev4 - rev8) + items: + - const: google,lazor-rev4-sku4 + - const: google,lazor-rev5-sku4 + - const: google,lazor-rev6-sku4 + - const: google,lazor-rev7-sku4 + - const: google,lazor-rev8-sku4 + - const: qcom,sc7180 + + - description: Acer Chromebook 511 (newest rev) + items: + - const: google,lazor-sku4 + - const: qcom,sc7180 + + - description: Acer Chromebook 511 without Touchscreen (rev4) + items: + - const: google,lazor-rev4-sku5 + - const: qcom,sc7180 + + - description: Acer Chromebook 511 without Touchscreen (rev5 - rev8) + items: + - const: google,lazor-rev5-sku5 + - const: google,lazor-rev5-sku6 + - const: google,lazor-rev6-sku6 + - const: google,lazor-rev7-sku6 + - const: google,lazor-rev8-sku6 + - const: qcom,sc7180 + + - description: Acer Chromebook 511 without Touchscreen (newest rev) + items: + - const: google,lazor-sku6 + - const: qcom,sc7180 + + - description: Sharp Dynabook Chromebook C1 (rev1) + items: + - const: google,pompom-rev1 + - const: qcom,sc7180 + + - description: Sharp Dynabook Chromebook C1 (rev2) + items: + - const: google,pompom-rev2 + - const: qcom,sc7180 + + - description: Sharp Dynabook Chromebook C1 (newest rev) + items: + - const: google,pompom + - const: qcom,sc7180 + + - description: Sharp Dynabook Chromebook C1 with LTE (rev1) + items: + - const: google,pompom-rev1-sku0 + - const: qcom,sc7180 + + - description: Sharp Dynabook Chromebook C1 with LTE (rev2) + items: + - const: google,pompom-rev2-sku0 + - const: qcom,sc7180 + + - description: Sharp Dynabook Chromebook C1 with LTE (newest rev) + items: + - const: google,pompom-sku0 + - const: qcom,sc7180 + + - description: Google Trogdor (newest rev) + items: + - const: google,trogdor + - const: qcom,sc7180 + + - description: Google Trogdor with LTE (newest rev) + items: + - const: google,trogdor-sku0 + - const: qcom,sc7180 + - items: - enum: - qcom,sc7280-crd From patchwork Fri May 13 16:59:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 572667 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 42CEFC4332F for ; Fri, 13 May 2022 16:59:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382603AbiEMQ7u (ORCPT ); Fri, 13 May 2022 12:59:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382589AbiEMQ7s (ORCPT ); Fri, 13 May 2022 12:59:48 -0400 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD56B193CC for ; Fri, 13 May 2022 09:59:47 -0700 (PDT) Received: by mail-pg1-x534.google.com with SMTP id 31so8033967pgp.8 for ; Fri, 13 May 2022 09:59:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Z+QQA0s7nyDs9BM2EhvV+3A+fminA8LpaU1NJGXjcLo=; b=hL1NBu4POZdPxhSikhfLyBRG4riwOdOJ/CPbSr+/jJsUJRmN7HqBSgM2de468tghgL Q+ESZ11vD6nLA380hIKLidIfwmAVii8qeZvC7TDx9t6wh3DViJxfoM/qsk3OQLMnPqOV OMJgsJ22NR3I38htH0K6C8NfCkF+fKAwqN4JU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Z+QQA0s7nyDs9BM2EhvV+3A+fminA8LpaU1NJGXjcLo=; b=zBL13mG718Kmjuk8Sp4L1Du9+w5PfDoLFbJoKPXtGW+hgULsrpDB1JBGUN2lJ34tmq 83bZjZwXon0LElpugZA8/HuIPWDU2Pqdfo8xq5dxaonOF1Y3f2XpNsdVaLdD3JAwwJW2 z7MdxOQm5yfF08mJGP5Y4UqNSAnh0gl/C4TEX8zQ6HAi9ZRqn3E5e90D1mu77v2e8xsu 87dmA8Eje0T8/eaWEIAnOpanJ6dWtHd22wC8bE425qGWzIMWjXW6NMJJGnM6OYuvBxf0 JUsLszpfNRIWsNsIndEVEj3vaRzLrHBya4HPggl05tAKGPCUcNIhciK7aekIQSeKvRIG nlhw== X-Gm-Message-State: AOAM533QNHgJ4DA8HLMiI41FwU/2XZHT+NzkvdR1a8nBZgNq6uZCjNEl VM0v40d/FecG51u54TUIQtc6qQ== X-Google-Smtp-Source: ABdhPJxnX5aT2CaKMHadwtsb1I27ePUchFw0f0cLKhqXTK4o8m4H2OG2UYB3TuqVqD4f3kl1t7L6rQ== X-Received: by 2002:a05:6a00:2408:b0:4f7:a8cb:9b63 with SMTP id z8-20020a056a00240800b004f7a8cb9b63mr5416931pfh.33.1652461187378; Fri, 13 May 2022 09:59:47 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:201:f334:6f80:82ed:5653]) by smtp.gmail.com with ESMTPSA id m1-20020a17090a7f8100b001d97f7fca06sm1824548pjl.24.2022.05.13.09.59.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 09:59:46 -0700 (PDT) From: Douglas Anderson To: Rob Herring , Bjorn Andersson Cc: Stephen Boyd , Krzysztof Kozlowski , Matthias Kaehlcke , Rajendra Nayak , Alexandru M Stan , Julius Werner , "Joseph S . Barrera III" , Douglas Anderson , Andy Gross , Krzysztof Kozlowski , Rob Herring , Stephen Boyd , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/4] dt-bindings: arm: qcom: Add / fix sc7280 board bindings Date: Fri, 13 May 2022 09:59:19 -0700 Message-Id: <20220513095722.v2.3.I1318c1ae2ce55ade1d092fc21df846360b15c560@changeid> X-Mailer: git-send-email 2.36.0.550.gb090851708-goog In-Reply-To: <20220513095722.v2.1.I71e42c6174f1cec17da3024c9f73ba373263b9b6@changeid> References: <20220513095722.v2.1.I71e42c6174f1cec17da3024c9f73ba373263b9b6@changeid> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This copy-pastes compatibles from sc7280-based boards from the device trees to the yaml file. It also fixes the CRD/IDP bindings which had gotten stale. Signed-off-by: Douglas Anderson Reviewed-by: Krzysztof Kozlowski --- It should be noted that these match the sc7280 boards as of the top of the "for-next" branch of the tree git.kernel.org/pub/scm/linux/kernel/git/qcom/linux.git Changes in v2: - Use a "description" instead of a comment for each item. .../devicetree/bindings/arm/qcom.yaml | 42 +++++++++++++++---- 1 file changed, 34 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml index 8ec0805f4996..c76ea703c2e6 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -404,14 +404,40 @@ properties: - const: google,trogdor-sku0 - const: qcom,sc7180 - - items: - - enum: - - qcom,sc7280-crd - - qcom,sc7280-idp - - qcom,sc7280-idp2 - - google,hoglin - - google,piglin - - google,senor + - description: Qualcomm Technologies, Inc. sc7280 CRD platform (rev3 - 4) + items: + - const: qcom,sc7280-crd + - const: google,hoglin-rev3 + - const: google,hoglin-rev4 + - const: google,piglin-rev3 + - const: google,piglin-rev4 + - const: qcom,sc7280 + + - description: Qualcomm Technologies, Inc. sc7280 CRD platform (newest rev) + items: + - const: google,hoglin + - const: qcom,sc7280 + + - description: Qualcomm Technologies, Inc. sc7280 IDP SKU1 platform + items: + - const: qcom,sc7280-idp + - const: google,senor + - const: qcom,sc7280 + + - description: Qualcomm Technologies, Inc. sc7280 IDP SKU2 platform + items: + - const: qcom,sc7280-idp2 + - const: google,piglin + - const: qcom,sc7280 + + - description: Google Herobrine (newest rev) + items: + - const: google,herobrine + - const: qcom,sc7280 + + - description: Google Villager (newest rev) + items: + - const: google,villager - const: qcom,sc7280 - items: From patchwork Fri May 13 16:59:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 572265 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 756B7C433EF for ; Fri, 13 May 2022 16:59:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382589AbiEMQ7w (ORCPT ); Fri, 13 May 2022 12:59:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382602AbiEMQ7u (ORCPT ); Fri, 13 May 2022 12:59:50 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23ABC29805 for ; Fri, 13 May 2022 09:59:49 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id a15-20020a17090ad80f00b001dc2e23ad84so11328054pjv.4 for ; Fri, 13 May 2022 09:59:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=akI0HHvtv/s/0pYeEJ5z0Kcqmea/A/JWqccnsMWH/Bc=; b=ESma4KX3+jT8KWhTcJtBAzLW4Tb8V6hUsR8CIKfFbN7/2k+fJve/LLDaVNp2SOIsPW ivHOJxEGI1QClXGOJybL8HXZOhIzXaSmWH2B5vnHryfSNOW4eT9Zn0nkJX8ftQiDeQvn L4qevS03Y7JrWKCCxFvoUgqn8lS1jZUQJg9Jk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=akI0HHvtv/s/0pYeEJ5z0Kcqmea/A/JWqccnsMWH/Bc=; b=2vxL+qNx+oOGuXtm+oOG4sqqhlnR0ATTxktO7XBUJfzUdrS7o+fO7L32aHCUB5hAPW 8WjytEdQv8tKVAjPOyrmWE4UAjfibH9ZZQelTtSv1bHRuhQD1DezImQQZp8s3W6SYHVq XbXbb8YGvFfUwxBaUZZIiFSElt3msp+uw3MmOTuDlG6uaKiFusI4ekEmKm01D7AYJzDg tNOYiDR2ar0ImAmgrai0GcXAdDTk1ND3b/85gWCLJUpzTKS0pQmThVzT/pAePU8TXxp0 jiL4D0W1k+JqlZaLROAEtr03VhA80wi5Ce6wE4Xq2lGuybQ9qykDcWkfHN+Suh0v4ng9 d/Mw== X-Gm-Message-State: AOAM530UOySVx0e7xVb/+UBeEyG+6FvVSIzTL0AjJn8w2n4Q10eGmECb aKBeC/GNxDLc9xbgCjGp6d7tNpy2qemWn8XOA9tIiA== X-Google-Smtp-Source: ABdhPJxOwiVCRMWvIXzR7DXZ9hmayF1Kb036D4jPInNvsL5Hjh7pF0J0LTyja7wpNVc77s8EZ+hZBg== X-Received: by 2002:a17:903:41cb:b0:15e:ab0c:5172 with SMTP id u11-20020a17090341cb00b0015eab0c5172mr5336743ple.170.1652461188656; Fri, 13 May 2022 09:59:48 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:201:f334:6f80:82ed:5653]) by smtp.gmail.com with ESMTPSA id m1-20020a17090a7f8100b001d97f7fca06sm1824548pjl.24.2022.05.13.09.59.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 09:59:48 -0700 (PDT) From: Douglas Anderson To: Rob Herring , Bjorn Andersson Cc: Stephen Boyd , Krzysztof Kozlowski , Matthias Kaehlcke , Rajendra Nayak , Alexandru M Stan , Julius Werner , "Joseph S . Barrera III" , Douglas Anderson , Andy Gross , Krzysztof Kozlowski , Rob Herring , Stephen Boyd , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/4] dt-bindings: arm: qcom: Add more sc7180 Chromebook board bindings Date: Fri, 13 May 2022 09:59:20 -0700 Message-Id: <20220513095722.v2.4.Ie8713bc0377672ed8dd71189e66fc0b77226fb85@changeid> X-Mailer: git-send-email 2.36.0.550.gb090851708-goog In-Reply-To: <20220513095722.v2.1.I71e42c6174f1cec17da3024c9f73ba373263b9b6@changeid> References: <20220513095722.v2.1.I71e42c6174f1cec17da3024c9f73ba373263b9b6@changeid> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds board bindings for boards that are downstream but not quite upstream yet. Signed-off-by: Douglas Anderson Reviewed-by: Matthias Kaehlcke --- Changes in v2: - Use a "description" instead of a comment for each item. - Use the marketing name instead of the code name where possible. .../devicetree/bindings/arm/qcom.yaml | 92 +++++++++++++++++++ 1 file changed, 92 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml index c76ea703c2e6..6d1d44b48289 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -263,6 +263,16 @@ properties: - const: google,homestar - const: qcom,sc7180 + - description: Google Kingoftown (rev0) + items: + - const: google,kingoftown-rev0 + - const: qcom,sc7180 + + - description: Google Kingoftown (newest rev) + items: + - const: google,kingoftown + - const: qcom,sc7180 + - description: Acer Chromebook Spin 513 (rev0) items: - const: google,lazor-rev0 @@ -364,6 +374,48 @@ properties: - const: google,lazor-sku6 - const: qcom,sc7180 + - description: Google Mrbland with AUO panel (rev0) + items: + - const: google,mrbland-rev0-sku0 + - const: qcom,sc7180 + + - description: Google Mrbland with AUO panel (newest rev) + items: + - const: google,mrbland-sku1536 + - const: qcom,sc7180 + + - description: Google Mrbland with BOE panel (rev0) + items: + - const: google,mrbland-rev0-sku16 + - const: qcom,sc7180 + + - description: Google Mrbland with BOE panel (newest rev) + items: + - const: google,mrbland-sku1024 + - const: google,mrbland-sku768 + - const: qcom,sc7180 + + - description: Google Pazquel with Parade (newest rev) + items: + - const: google,pazquel-sku5 + - const: qcom,sc7180 + + - description: Google Pazquel with TI (newest rev) + items: + - const: google,pazquel-sku1 + - const: qcom,sc7180 + + - description: Google Pazquel with LTE and Parade (newest rev) + items: + - const: google,pazquel-sku4 + - const: qcom,sc7180 + + - description: Google Pazquel with LTE and TI (newest rev) + items: + - const: google,pazquel-sku0 + - const: google,pazquel-sku2 + - const: qcom,sc7180 + - description: Sharp Dynabook Chromebook C1 (rev1) items: - const: google,pompom-rev1 @@ -394,6 +446,16 @@ properties: - const: google,pompom-sku0 - const: qcom,sc7180 + - description: Google Quackingstick (newest rev) + items: + - const: google,quackingstick-sku1537 + - const: qcom,sc7180 + + - description: Google Quackingstick with LTE (newest rev) + items: + - const: google,quackingstick-sku1536 + - const: qcom,sc7180 + - description: Google Trogdor (newest rev) items: - const: google,trogdor @@ -404,6 +466,36 @@ properties: - const: google,trogdor-sku0 - const: qcom,sc7180 + - description: Lenovo IdeaPad Chromebook Duet 3 with BOE panel (rev0) + items: + - const: google,wormdingler-rev0-sku16 + - const: qcom,sc7180 + + - description: Lenovo IdeaPad Chromebook Duet 3 with BOE panel (newest rev) + items: + - const: google,wormdingler-sku1024 + - const: qcom,sc7180 + + - description: Lenovo IdeaPad Chromebook Duet 3 with BOE panel and rt5682s (newest rev) + items: + - const: google,wormdingler-sku1025 + - const: qcom,sc7180 + + - description: Lenovo IdeaPad Chromebook Duet 3 with INX panel (rev0) + items: + - const: google,wormdingler-rev0-sku0 + - const: qcom,sc7180 + + - description: Lenovo IdeaPad Chromebook Duet 3 with INX panel (newest rev) + items: + - const: google,wormdingler-sku0 + - const: qcom,sc7180 + + - description: Lenovo IdeaPad Chromebook Duet 3 with INX panel and rt5682s (newest rev) + items: + - const: google,wormdingler-sku1 + - const: qcom,sc7180 + - description: Qualcomm Technologies, Inc. sc7280 CRD platform (rev3 - 4) items: - const: qcom,sc7280-crd