From patchwork Mon Sep 18 17:32:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Morgan X-Patchwork-Id: 724235 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7BB24262A2 for ; Mon, 18 Sep 2023 17:33:05 +0000 (UTC) Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D4E4FD for ; Mon, 18 Sep 2023 10:33:04 -0700 (PDT) Received: by mail-ot1-x32f.google.com with SMTP id 46e09a7af769-6c0b40a13ebso2620400a34.0 for ; Mon, 18 Sep 2023 10:33:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695058383; x=1695663183; darn=vger.kernel.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=fOcE1gEVv8k+1mKB0BOnHrQMjIkGHZfrQmU9eoEzouw=; b=IXmNaA5gTl929v+KdTmEq3LgPIj60FWbmZEXfDbnTO8Cn5GKaIQX5WeufS3JTnvcc2 6U3J2XlJ4TtJVEcLSp2i89+xWRyYLvno1Lwm3mf/ZC7av93zMyjnPbzwB3h42Xts2yTX c9Pe3ysK8tU23oARZ+EuHNz08kr1xd6IIKNvsKQn92MCrMtgMJR2IqkgScXsC6BSeqEJ cvRcRlc07v/IR1kY5GrIFNcjZGsyI5u/FCoGQRdLhiztf8efnrtUHhDA60BpEZOqDnWp Wd1HEHOs+w4HSq4yD3w9sIoxcIXcAtYESI7J2e7X9g6qY9UUE8QwJPH8mRKcIevqjX8Y 9EJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695058383; x=1695663183; 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=fOcE1gEVv8k+1mKB0BOnHrQMjIkGHZfrQmU9eoEzouw=; b=VyQbXhgdBEyluqjEUXM8MLHU0zkjLyP90GH64dWraeaFs7oIWtzSmO0F66PsnyJDtl u8ILVL/kFEOBgN5YTkHxj1UbJTny67uoqw4jw+/Pixx5R+apUS6iAuQlDV7iFyzs7Zop Rqf+hghjJEYN2LI0OptaIbjB/9hUsEL9wYkZZiZZzd9+O/+QPKv4x/J75774mKH7jnFk H3Cchv/kKy0B4tcfKMrLj6FRuApHnlZo7kvWQALb0VKOOHQrRbOzKV54lO8qQ/zgqEQO KTdByzyD9rY4N3y1k+nXIP06y9HsRCG/2IYMxS4awzQr9SmeVXJrz1y1I7FiNjE3pbaT 7Nnw== X-Gm-Message-State: AOJu0Ywkgd2/62K6CZldzG9EuTAwfesIXClXliF5xs7jyuLxxGH7/msa YC/7agndCkpPqNp2jSBoGVjZGtxGJr0= X-Google-Smtp-Source: AGHT+IHwJnfJ+vNpzCxFe1Y+gVZMxsNsok+2pobr3vm625PSwkZzk7Gd+IgfVNKsp37mzVgFeJHbdA== X-Received: by 2002:a05:6830:3493:b0:6bd:8067:21ec with SMTP id c19-20020a056830349300b006bd806721ecmr256313otu.15.1695058383320; Mon, 18 Sep 2023 10:33:03 -0700 (PDT) Received: from localhost.localdomain ([75.28.21.198]) by smtp.gmail.com with ESMTPSA id z5-20020a056830128500b006bf0f95f702sm4315755otp.64.2023.09.18.10.33.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 10:33:03 -0700 (PDT) From: Chris Morgan To: devicetree@vger.kernel.org Cc: linux-rockchip@lists.infradead.org, jagan@edgeble.ai, heiko@sntech.de, conor+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, Chris Morgan Subject: [PATCH V2 1/3] arm64: dts: rockchip: add PCIe to rk3588s-indiedroid-nova Date: Mon, 18 Sep 2023 12:32:53 -0500 Message-Id: <20230918173255.1325-2-macroalpha82@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230918173255.1325-1-macroalpha82@gmail.com> References: <20230918173255.1325-1-macroalpha82@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,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 From: Chris Morgan Add the necessary nodes to the Indiedroid Nova to activate the PCI express port that is used by the RTL8111 ethernet controller. Signed-off-by: Chris Morgan --- .../dts/rockchip/rk3588s-indiedroid-nova.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-indiedroid-nova.dts b/arch/arm64/boot/dts/rockchip/rk3588s-indiedroid-nova.dts index d1503a4b233a..646f49cc9e53 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-indiedroid-nova.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-indiedroid-nova.dts @@ -109,6 +109,10 @@ vcc5v0_usbdcin: vcc5v0-usbdcin-regulator { }; }; +&combphy0_ps { + status = "okay"; +}; + &cpu_l0 { cpu-supply = <&vdd_cpu_lit_s0>; }; @@ -348,6 +352,12 @@ i2s0_8ch_p0_0: endpoint { }; }; +&pcie2x1l2 { + pinctrl-0 = <&rtl8111_perstb>; + pinctrl-names = "default"; + status = "okay"; +}; + &pinctrl { bluetooth-pins { bt_reset: bt-reset { @@ -366,6 +376,12 @@ bt_wake_host: bt-wake-host { }; }; + ethernet-pins { + rtl8111_perstb: rtl8111-perstb { + rockchip,pins = <3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; + hym8563 { hym8563_int: hym8563-int { From patchwork Mon Sep 18 17:32:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Morgan X-Patchwork-Id: 724234 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 020E9262A2 for ; Mon, 18 Sep 2023 17:33:06 +0000 (UTC) Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69414DB for ; Mon, 18 Sep 2023 10:33:05 -0700 (PDT) Received: by mail-ot1-x32c.google.com with SMTP id 46e09a7af769-6c0f3f24c27so2876671a34.2 for ; Mon, 18 Sep 2023 10:33:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695058384; x=1695663184; darn=vger.kernel.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=XK3Zx4cA9xhlrAxpKhxgK0rFJrxd0HOs9F/T85uolkQ=; b=KT8n7d303w9fwG+WaJ4RkKOuhyfriT6UjDsBKQkKWEVKYEFzu4yCiL5aWD3lV/zHbq JNN1efBc74D22UbeiE6wLg6kFgG3rIdgCLd5GEBTh0nLiveHsWjAEUVyiBFgfjCbqLJ6 Eq2YDrjyYKYhASRMAlA2jucY3/O6t9OZowHc+jmj/JUGVBkGLk27euHy591WGKslRZw8 EuwZI7syIuJ2UI4thSojnT7goLZR01xxVS5C2+gBmIoLQMbzdg4zcvl44R1LiANw8mc0 xakN8N9rUCMFWlKNJbirDQJJNGMQytNs2s6RVN8w8vzqA4wRXzk9be+0IZ7qxZQ2WYjg 4huA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695058384; x=1695663184; 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=XK3Zx4cA9xhlrAxpKhxgK0rFJrxd0HOs9F/T85uolkQ=; b=Yr01rebxz8BT3kLAZNuAM2aFkkgDcGS0sY8jmw496bvTei7hvnCAfQRz+8SpvoJNTT etr3PWCr1a4QrQ+K698fscYhwbxNNdxj/yot4jX77OUeVLHcpMdfK7nsF8SZABWNspix VBz8llyHdW1eXhcR4twkzsjo2B0CbdHT3xKd/4aQygBB/9P8rOdcfnBDgbOzpARMQIfk MgIKS3zdqsgiTYkWF/sRzgWNTZctHREcnxYXzCpJj0YfwMvxLFWsJY+4nyn7+zISTLl1 h3ReiXpdYEamcmXDRMp/CrS+lLPTqh/Snx6cxILQOiyE0KkNYVXxXvrK+BEgCMGaKCV2 IG3g== X-Gm-Message-State: AOJu0Yzh2wMi/AMlhHd1QYlNi9M5aDk15tEgZArioOBKH+l3iDEN00DP 7FZSsJ9KDW1tOc95eAhG8FlZiOiiOFs= X-Google-Smtp-Source: AGHT+IG099pZXcuRlYWQ4u4WN0bBrYtPwrlrp3XmF1JITM2fdMwNCInhOudAchYGgcQDm9Og8WM1Qg== X-Received: by 2002:a9d:4f0b:0:b0:6be:c1b:ded4 with SMTP id d11-20020a9d4f0b000000b006be0c1bded4mr10608390otl.3.1695058384590; Mon, 18 Sep 2023 10:33:04 -0700 (PDT) Received: from localhost.localdomain ([75.28.21.198]) by smtp.gmail.com with ESMTPSA id z5-20020a056830128500b006bf0f95f702sm4315755otp.64.2023.09.18.10.33.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 10:33:04 -0700 (PDT) From: Chris Morgan To: devicetree@vger.kernel.org Cc: linux-rockchip@lists.infradead.org, jagan@edgeble.ai, heiko@sntech.de, conor+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, Chris Morgan Subject: [PATCH V2 3/3] arm64: dts: rockchip: Add saradc node to Indiedroid Nova Date: Mon, 18 Sep 2023 12:32:55 -0500 Message-Id: <20230918173255.1325-4-macroalpha82@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230918173255.1325-1-macroalpha82@gmail.com> References: <20230918173255.1325-1-macroalpha82@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,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 From: Chris Morgan Add ADC support for the Indiedroid Nova, as well as the two ADC buttons found on the device. The buttons are documented as "boot" and "recovery". The boot button is used by the bootloader to boot into USB recovery mode. The recovery button use is currently unknown. Signed-off-by: Chris Morgan --- .../dts/rockchip/rk3588s-indiedroid-nova.dts | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-indiedroid-nova.dts b/arch/arm64/boot/dts/rockchip/rk3588s-indiedroid-nova.dts index 1e2336d3065b..60f00ceb630e 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-indiedroid-nova.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-indiedroid-nova.dts @@ -3,6 +3,7 @@ /dts-v1/; #include +#include #include #include #include "rk3588s.dtsi" @@ -11,6 +12,34 @@ / { model = "Indiedroid Nova"; compatible = "indiedroid,nova", "rockchip,rk3588s"; + adc-keys-0 { + compatible = "adc-keys"; + io-channel-names = "buttons"; + io-channels = <&saradc 0>; + keyup-threshold-microvolt = <1800000>; + poll-interval = <100>; + + button-boot { + label = "boot"; + linux,code = ; + press-threshold-microvolt = <18000>; + }; + }; + + adc-keys-1 { + compatible = "adc-keys"; + io-channel-names = "buttons"; + io-channels = <&saradc 1>; + keyup-threshold-microvolt = <1800000>; + poll-interval = <100>; + + button-recovery { + label = "recovery"; + linux,code = ; + press-threshold-microvolt = <18000>; + }; + }; + aliases { mmc0 = &sdhci; mmc1 = &sdmmc; @@ -410,6 +439,11 @@ typec5v_pwren: typec5v-pwren { }; }; +&saradc { + vref-supply = <&vcca_1v8_s0>; + status = "okay"; +}; + /* HS400 modes seemed to cause io errors. */ &sdhci { bus-width = <8>;