From patchwork Mon Oct 31 16:47:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 926 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2422013wru; Mon, 31 Oct 2022 09:52:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5kkRecaqIfAQZ7lDNGGV+ufmqO10oK2FOsRuwV2r7Uow6ABeiskyJNxbRz1tucqcnPoMvt X-Received: by 2002:a17:902:eecc:b0:187:1d13:f6cf with SMTP id h12-20020a170902eecc00b001871d13f6cfmr7512532plb.127.1667235126365; Mon, 31 Oct 2022 09:52:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667235126; cv=none; d=google.com; s=arc-20160816; b=CmIQQ6RFyW3imLDJqMgmUVjFqTx2ARHP85B/Fxy9aipUuBApvWOtV95Z8+PVYtGgin 5IBLzFjhmdMebGEmETXL4mSbipbaXCgmAfoDuepckrwwqcMihXX7NS3ctyJ4IBypfV8e LT5l92j8B9I/4DdsJLAcUx65CjfCtF2QnbkpDWb3hDLjEa3ag7c3rGo63wVZ5+DyTnph 028mYThabGCX/ZkznlWZIrAifW6tZnIkFnGRUhFcyO8tCPwRn50d9GcRu0qNrgvJ8yEF N3kqLPOn01P/gNLHIFKFbEwnQKU1j8A5zY3kOXluJZNG8CAkUMNjT23bCUdVK2s6w8Y4 F8yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:message-id:date:from :content-transfer-encoding:mime-version:subject:dkim-signature; bh=jxq7Kit5ewu9alvw6v26dSql8rnzDq0nCvqHaHXZbsc=; b=ibfM0/CFo0HZW4ca7TTYIiTKZr++kqI60e0deM/3/dUYMANa4hgeP+FgXZ3JhPWfih zWG1D6IyrkaM3CN17QaJ0FMSzHSOuLETK6cxEXTkqgDguj1rRKIpXflhaqgHa3uLwwzX FT6gY+FMOzO3t+mu71+lyEM6Eq08VIIn98//w7wPp7Jpg/r4m80xNPmljowyMRRIGXaW Y9rci6ps5CcmnJFYtMlVHR+Th0AxaJ+JFc/CJxYL2PjkWahNBxEkXgt49a8wHYKfyE5G P+X8bYfmCt/fkk7u2piBQOI8mf3PyRbWw13z73vSSGtVRj6vq/YwMAdqtX+xNT00/gfA PJAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BLgwe1Df; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pg5-20020a17090b1e0500b001fe2de6a2c9si11094152pjb.4.2022.10.31.09.51.50; Mon, 31 Oct 2022 09:52:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BLgwe1Df; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231754AbiJaQrf (ORCPT + 99 others); Mon, 31 Oct 2022 12:47:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231727AbiJaQrb (ORCPT ); Mon, 31 Oct 2022 12:47:31 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35F6D12629 for ; Mon, 31 Oct 2022 09:47:29 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id k8so16841913wrh.1 for ; Mon, 31 Oct 2022 09:47:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:message-id:date:from:content-transfer-encoding:mime-version :subject:from:to:cc:subject:date:message-id:reply-to; bh=jxq7Kit5ewu9alvw6v26dSql8rnzDq0nCvqHaHXZbsc=; b=BLgwe1DfbNcToNja0I5ablkTHUZTolxvc/J+2guV1ofgW2O0ZkmzsTV+rbohlGCiMO 6alYezYMn3i1bUec2jl8HIBLbZsSTOPEIuUmgumFBOxKb8joazGFaf81bqFWbGKu8lcQ kq9WQo4RnI8nX8ANFFXx6p+bIzoN/j9Bg/n63dyNS2TiCEOrnZVHX3gswMnmkBqy3CLB Tv24Fklhb/f56VQKGKx/vvhTMV98yd0SSWhu/LHi5kZRarR6Ncw1i5XgrznM0opIg1qd d7nBoVcBy6l81sY1EEvv4CNgFx67bYZq6l6ZOD1kWHVi4JvCOFAAAoFn91k04Z/mr5Nb +zng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:message-id:date:from:content-transfer-encoding:mime-version :subject:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jxq7Kit5ewu9alvw6v26dSql8rnzDq0nCvqHaHXZbsc=; b=2v+e8SAylv2ZTqDBIamK6PHHXw9uU5HKhXY/hSl4VCcazf+GDOLHVKQ7ZUQUsSTh7t STfAJvpZn+lkU+x5IOXXPlN+6Z/EBFEkVjpYWS9BG0FKU+ilDyr8OziHY0YeYkLtSWnP O5ZOVGKUmGOHZRbiicQOE0UD916288BALSJA+6Z2wid0KpkUUUM1IP+8S2xbkWC/B1nh RzBd1xKoyVN8x8eVfi6WkahvGckI8TbNfG0rvDJE39puXAEWhxkdmCBN/CSFjfJc8I2a c2hACIk+mMDj/tQLPRlI7Bfdb+derCYKyHRqSqxBb/YGz+aS6hpb8uzl8eh69pjliQE5 T6kw== X-Gm-Message-State: ACrzQf1N8rhavyurecBaV7NLsGly0cHOhHTuemBTaO0H1XStg+7PBEPc dM6Cif+rPpRPatbpURdhkeEw2A== X-Received: by 2002:a5d:6d42:0:b0:236:c9a6:5523 with SMTP id k2-20020a5d6d42000000b00236c9a65523mr4378601wri.222.1667234847726; Mon, 31 Oct 2022 09:47:27 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id q8-20020a05600c46c800b003b4868eb71bsm7488871wmo.25.2022.10.31.09.47.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Oct 2022 09:47:27 -0700 (PDT) Subject: [PATCH 0/4] arm64: amlogic: add initial Odroid Go Ultra DTS MIME-Version: 1.0 X-b4-tracking: H4sIABz8X2MC/w3MMQ6AIAwAwK+YzjYREAd/U6DRJqQkRV2Mf5fxlnuhswl32KcXjB/p0nTAzRPkk/ RglDIMfvHeLcFhWrEVa1LwaHjXywhF5RKqGHmLuXBkHwhGkKgzJiPN5yj0rvX7fvF2aJ9xAAAA From: Neil Armstrong Date: Mon, 31 Oct 2022 17:47:24 +0100 Message-Id: <20221031-b4-odroid-go-ultra-initial-v1-0-42e3dbea86d5@linaro.org> To: Martin Blumenstingl , Krzysztof Kozlowski , Rob Herring , Kevin Hilman , Sebastian Reichel , Jerome Brunet Cc: linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.10.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748222739984353009?= X-GMAIL-MSGID: =?utf-8?q?1748222739984353009?= This adds initial support for the Hardkernel Odroid Go Ultra. The Odroid Go Ultra is a portable gaming device with the following characteristics: - Amlogic S922X SoC - RK817 & RK818 PMICs - 2GiB LPDDR4 - On board 16GiB eMMC - Micro SD Card slot - 5inch 854×480 MIPI-DSI TFT LCD - Earphone stereo jack, 0.5Watt 8Ω Mono speaker - Li-Polymer 3.7V/4000mAh Battery - USB-A 2.0 Host Connector - x16 GPIO Input Buttons - 2x ADC Analog Joysticks - USB-C Port for USB2 Device and Charging The following are not yet handled: - Battery RK818 Gauge and Charging - Earphone stereo jack detect - 5inch 854×480 MIPI-DSI TFT LCD This adds: - Poweroff bindings - Poweroff driver - Device bindings - Initial device DT This serie depends on: - https://lore.kernel.org/all/20221025-rk808-multi-v2-0-d292d51ada81@linaro.org/ To: Sebastian Reichel To: Rob Herring To: Krzysztof Kozlowski To: Kevin Hilman To: Jerome Brunet To: Martin Blumenstingl Cc: linux-pm@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-amlogic@lists.infradead.org Signed-off-by: Neil Armstrong --- Neil Armstrong (4): dt-bindings: reset: document Odroid Go Ultra power-off power: reset: add Odroid Go Ultra poweroff driver dt-bindings: amlogic: document Odroid Go Ultra compatible arm64: dts: amlogic: add initial Odroid Go Ultra DTS Documentation/devicetree/bindings/arm/amlogic.yaml | 1 + .../reset/hardkernel,odroid-go-ultra-poweroff.yaml | 42 ++ arch/arm64/boot/dts/amlogic/Makefile | 1 + .../dts/amlogic/meson-g12b-odroid-go-ultra.dts | 730 +++++++++++++++++++++ drivers/power/reset/Kconfig | 7 + drivers/power/reset/Makefile | 1 + drivers/power/reset/odroid-go-ultra-poweroff.c | 122 ++++ 7 files changed, 904 insertions(+) --- base-commit: 247f34f7b80357943234f93f247a1ae6b6c3a740 change-id: 20221031-b4-odroid-go-ultra-initial-5e65cde5e23a Best regards,