Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2614308pxb; Sun, 17 Oct 2021 20:33:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0epTjWzqDyuZvO9y1eUyp3qxDUDuJrJ48H6UvwaQJTmEQPAxgElKm93dk7YUk5GPT1UZD X-Received: by 2002:a63:705e:: with SMTP id a30mr13140389pgn.14.1634527992297; Sun, 17 Oct 2021 20:33:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634527992; cv=none; d=google.com; s=arc-20160816; b=L/H1AIMIHrRnt1kR823tx3slHHSq+ZhfR3KD5B56hppkM/csakkcojv4vQQGOtuFh9 vlOnWL1qss2gWmA/VljH+KkCH7kmEdaSN3ARALJOrtV6PgBA4zzJERr6atWPwvJ9mdoV Fv+/HsFuOWDDgb/UZFhjyLaAzJdg/keGOZ+Vg1B61dsuJeqB9WaYTUhExp8wNc8/sPQz Rg6WNn32Hqjc8LJ1/M33odifRUfceCVotOLQY+aKbBfL+OvAixbz6WWIKkRjt8VOemKI gtlQ8UF1H4NkNl1lU52DPNDg34e+5Zv2mOcG0tqWk6ZvxLiV8aOsjyUEYbmJv9wTlu37 CyfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=r6OYVyXiNpcVBNTOjtgGawM5jDx8Fz9ZQ7mKZ3R7XJc=; b=gyP+dCABKSwx+LBFQDTeo99csODRu4qp6TQoDDDKP6NZJEf0/65pnRU1KJ/dkJRTY/ ID/FWY39i+rZrriJyPXgQdWhLKucEhmbp2vO2W64zPeTJ2395NTOXuc/C76UvDkqJ+79 QBfZLvBZHrWnTka4eXqS7xKwfq8n9uQhDFoWcZkuou6uXRkThxbUF5FVkFPC2o6OJL0o kjNGtpgZ8YRUKvOMh3jawcNinw5FhEGyREmscpGnGfxarW97IrhERlE0fHEAHr2EWtHU 7hAb9RA2GfGwfULgvDArOJrjP4VEJCiY7btfN0WT5hAeaMVlL9ihlWhtr7oBAOkXJdbV T5bw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d6si18500944pgm.332.2021.10.17.20.33.00; Sun, 17 Oct 2021 20:33:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244172AbhJPKW5 (ORCPT + 98 others); Sat, 16 Oct 2021 06:22:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244094AbhJPKWr (ORCPT ); Sat, 16 Oct 2021 06:22:47 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02BB2C061570; Sat, 16 Oct 2021 03:20:40 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: aferraris) with ESMTPSA id CE78F1F44DC5 From: Arnaud Ferraris To: linux-kernel@vger.kernel.org Cc: linux-rockchip@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Martin Kepplinger , Heiko Stuebner , Bjorn Andersson , Andy Gross , Fabio Estevam , Pengutronix Kernel Team , Sascha Hauer , Shawn Guo , Jernej Skrabec , Chen-Yu Tsai , Maxime Ripard , Rob Herring , Krzysztof Kozlowski , Lucas Stach , Angus Ainslie , Guido Gunther , Tomasz Figa , Johan Jonker , Eddie Cai , Shunqian Zheng , Brian Norris , Dan Johansen , Simon South , Matthias Brugger , Arnaud Ferraris Subject: [PATCH 4/4] arm64: dts: rockchip: add 'chassis-type' property Date: Sat, 16 Oct 2021 12:20:25 +0200 Message-Id: <20211016102025.23346-5-arnaud.ferraris@collabora.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211016102025.23346-1-arnaud.ferraris@collabora.com> References: <20211016102025.23346-1-arnaud.ferraris@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A new 'chassis-type' root node property has recently been approved for the device-tree specification, in order to provide a simple way for userspace to detect the device form factor and adjust their behavior accordingly. This patch fills in this property for end-user devices (such as laptops, smartphones and tablets) based on Rockchip ARM64 processors. Signed-off-by: Arnaud Ferraris --- arch/arm64/boot/dts/rockchip/rk3399-gru-bob.dts | 1 + arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts | 1 + arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi | 1 + arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts | 1 + 4 files changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru-bob.dts b/arch/arm64/boot/dts/rockchip/rk3399-gru-bob.dts index e6c1c94c8d69..31ebb4e5fd33 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-gru-bob.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-gru-bob.dts @@ -16,6 +16,7 @@ / { "google,bob-rev7", "google,bob-rev6", "google,bob-rev5", "google,bob-rev4", "google,bob", "google,gru", "rockchip,rk3399"; + chassis-type = "convertible"; edp_panel: edp-panel { compatible = "boe,nv101wxmn51"; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts b/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts index 2bbef9fcbe27..6863689df06f 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts @@ -24,6 +24,7 @@ / { "google,kevin-rev9", "google,kevin-rev8", "google,kevin-rev7", "google,kevin-rev6", "google,kevin", "google,gru", "rockchip,rk3399"; + chassis-type = "convertible"; /* Power tree */ diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi index 61afb5f0f15b..355c61fb7b42 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet.dtsi @@ -8,6 +8,7 @@ #include "rk3399-gru.dtsi" /{ + chassis-type = "tablet"; /* Power tree */ /* ppvar_sys children, sorted by name */ diff --git a/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts b/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts index dae8c252bc2b..c2f021a1a18f 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts @@ -17,6 +17,7 @@ / { model = "Pine64 Pinebook Pro"; compatible = "pine64,pinebook-pro", "rockchip,rk3399"; + chassis-type = "laptop"; aliases { mmc0 = &sdio0; -- 2.33.0