Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1318291rwb; Thu, 6 Oct 2022 11:14:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ASG9uh3MBzRKQJySpyduUeLPlW8FZksG+s8OObAK9vIb351gETiH3WvK1PBwdEMUOVlXo X-Received: by 2002:a17:90a:f190:b0:20a:a8b1:b199 with SMTP id bv16-20020a17090af19000b0020aa8b1b199mr11996768pjb.83.1665080051379; Thu, 06 Oct 2022 11:14:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665080051; cv=none; d=google.com; s=arc-20160816; b=NdB0ww24eyHLw95LhtF/QKHZkBarBuYdfgGsUWY61aV7GQuQqdWvklaSP6DybvObmx uZ1OBxChXphP3jUYPUFodpZXVokJmCmE9URqLWmnz1LGEPi5lBDvTjwLNrMOGTWI/Rnv sJcdGIQtOlR/R23bt/Y2gVXx1+CfN8dT2fHW7P5UmxCBQ8y4af1N3S/TIAJkngUBJcZo KmHmkFt8Y4xn+8JnXCksZK9b+y5gla6muukdQUirjnLO4EHFXr+R2fH0Lz4UAPjpRWHy vtLjgc0AVyBixl0jh41qqeujRm87pYrRS7LU0w7d4q+WgnQjV5ChEGdvkfDfPf0YlzJ6 HX9Q== 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 :dkim-signature; bh=uUBxrKTn0KBwv2ASstftMeX0Vji5z3CD2huvTjfWSDU=; b=BVrzYRL9s7c8zGX3SOs24hFtKAmzScQ3LwSa9hEs44zz4TCMwRkKfvSJ7jjWIOncIn 1Qu9UZaQf0Ap5fwBScurS4V5HbqPWANKFhK1YJdl6pIqh2AZqW3v9AEpctuCpove0vK+ ieqxpmuh11ocBk0aPAYmIEwayVIdPTcYIAhSquwjBqDk23bWlVOLCDr4T4aabx8CPFOD llpowLnmkdtkJPXIeAbb4nO9nNo2WTV1WnHlftgtWKMfXNOhvrGms898VNAyOoH32dWi aSPpdVf9fpDhsP5ZfzCHpQLEmfNGcqUiY+US9LdowolV7Fi1AoRKjrKc8CdIMjbv97Zm Ejcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dYaoh64e; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s7-20020a17090302c700b00178a4067331si20203098plk.295.2022.10.06.11.13.52; Thu, 06 Oct 2022 11:14:11 -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=@gmail.com header.s=20210112 header.b=dYaoh64e; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231805AbiJFRp7 (ORCPT + 99 others); Thu, 6 Oct 2022 13:45:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230403AbiJFRpu (ORCPT ); Thu, 6 Oct 2022 13:45:50 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E7BEBC445; Thu, 6 Oct 2022 10:45:49 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id k2so6258068ejr.2; Thu, 06 Oct 2022 10:45:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=uUBxrKTn0KBwv2ASstftMeX0Vji5z3CD2huvTjfWSDU=; b=dYaoh64eNVlgTzO+tH3Sg7fglmg+SIV+LynGlJE3o9wkZmP5YFBH7S14+1C0srDyhV 5mAEPqkx50lVoW5Jp6WoRa8d1+tryJG+CcZGxdFiS5YlwTMzEgN3XE4E1T3lWyBs5Dj8 lCEDjB1MNEvLE/GqvJ0nmrUJEld+sSRYLvIy9tJZF5fBlBV+h8O80t+bTuWRXH+sGVaG wPjQmyeAGAn0kbfqBzRItQQkSGwMlOTmr8jETLsguoAJ8EVq5T7daGeWxLioYjTu7S3f NJX3wJtSqTYMyTL1vqWSpngau2PyYHKO85EH8d0NQDLzNRxWTNAdS2NIa6h2FKyPSJ+3 hb5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=uUBxrKTn0KBwv2ASstftMeX0Vji5z3CD2huvTjfWSDU=; b=r7pB7SIT5PUemYhCNH0poePgkRohVUuF6o0BIIaPWoKqKtuVxrsDcttJ6DJ7T3S/B5 qazVvswaxxIHGnWWSDRBcm3fIgW9zUw+IYdL2nMo2/kaf3kElc/HLFqGXPJchz5Yxql5 pWx+9w9mMFWH+41LQCbMtdOF+vVOz/lF0UR7Ud45dbPX3IZVbCG0USd+forndSbCvByy yxgKASkUFdAeujfG0g6I6h/H8rLeaQAKd9Bf6UDQsG/uYPLLqEKzSZzgVNm9z2ZChoV0 D0khiWbpoZONRxmWRstowCCsazCKO9M2UBxAd12+V0Gj2LQyQdKS2kVy0e+/Teu7Rk/U INyQ== X-Gm-Message-State: ACrzQf3A/EQql1OpLLtB88Ulxawe3Zg7lBE3Z7TDqTL8qCfWMbspCCTc W8lWHgbM5ZJBdlN8N1Doj+8= X-Received: by 2002:a17:906:ef8f:b0:77e:44be:790 with SMTP id ze15-20020a170906ef8f00b0077e44be0790mr818930ejb.409.1665078348056; Thu, 06 Oct 2022 10:45:48 -0700 (PDT) Received: from localhost.localdomain (83.24.77.202.ipv4.supernova.orange.pl. [83.24.77.202]) by smtp.gmail.com with ESMTPSA id w23-20020aa7cb57000000b00452878cba5bsm6105035edt.97.2022.10.06.10.45.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 10:45:47 -0700 (PDT) From: Maya Matuszczyk To: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner Cc: macroalpha@hotmail.com, Maya Matuszczyk , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] arm64: dts: rockchip: Add devicetree for Odroid Go Advance Black Edition Date: Thu, 6 Oct 2022 19:45:19 +0200 Message-Id: <20221006174519.46161-3-maccraft123mc@gmail.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221006174519.46161-1-maccraft123mc@gmail.com> References: <20221006174519.46161-1-maccraft123mc@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 This device is a revision of Odroid Go Advance, with added wifi card on sdio interface and two trigger buttons. Signed-off-by: Maya Matuszczyk --- arch/arm64/boot/dts/rockchip/Makefile | 1 + .../dts/rockchip/rk3326-odroid-go2-v11.dts | 104 ++++++++++++++++++ 2 files changed, 105 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3326-odroid-go2-v11.dts diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile index ef79a672804a..9fdbe7e83fc8 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -8,6 +8,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-roc-cc.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-rock-pi-s.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3318-a95x-z2.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3326-odroid-go2.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3326-odroid-go2-v11.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-a1.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-evb.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-nanopi-r2s.dtb diff --git a/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2-v11.dts b/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2-v11.dts new file mode 100644 index 000000000000..da48d070d9af --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2-v11.dts @@ -0,0 +1,104 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 Hardkernel Co., Ltd + * Copyright (c) 2020 Theobroma Systems Design und Consulting GmbH + * Copyright (c) 2022 Maya Matuszczyk + */ + +/dts-v1/; +#include "rk3326-odroid-go.dtsi" + +/ { + model = "ODROID-GO Advance Black Edition"; + compatible = "hardkernel,rk3326-odroid-go2-v11", "rockchip,rk3326"; + + aliases { + mmc1 = &sdio; + }; + + gpio-keys { + button-sw20 { + gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; + label = "TOP-LEFT 2"; + linux,code = ; + }; + button-sw21 { + gpios = <&gpio3 RK_PB2 GPIO_ACTIVE_LOW>; + label = "TOP-RIGHT 2"; + linux,code = ; + }; + }; + + wifi_pwrseq: wifi-pwrseq { + compatible = "mmc-pwrseq-simple"; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_pwrseq_pins>; + reset-gpios = <&gpio3 RK_PB1 GPIO_ACTIVE_LOW>; + }; +}; + +&rk817 { + regulators { + vcc_wifi: LDO_REG9 { + regulator-name = "vcc_wifi"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <3300000>; + }; + }; + }; +}; + +&sdio { + bus-width = <4>; + cap-sd-highspeed; + cap-sdio-irq; + disable-wp; + keep-power-in-suspend; + mmc-pwrseq = <&wifi_pwrseq>; + non-removable; + vmmc-supply = <&vcc_wifi>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + esp8089: wifi@1 { + compatible = "esp,esp8089"; + reg = <1>; + }; +}; + +&pinctrl { + btns { + btn_pins: btn-pins { + rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>, + <1 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>, + <1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>, + <1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>, + <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>, + <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>, + <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_up>, + <1 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>, + <2 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>, + <2 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up>, + <2 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>, + <2 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>, + <2 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>, + <2 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>, + <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>, + <2 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>, + <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>, + <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; + + wifi { + wifi_pwrseq_pins: wifi-pwrseq-pins { + rockchip,pins = <3 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>, + <3 RK_PB6 RK_FUNC_GPIO &pcfg_output_high>; + }; + }; +}; -- 2.38.0