From patchwork Sun Nov 19 13:03:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13460451 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 385D1C54E76 for ; Sun, 19 Nov 2023 13:05:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=EVfoNMTFpOho2BjJbLgohYePDwglxEi5+WyJliF/UJ0=; b=RC1uUmOq3htkFs k8rD3DCdV4U4Jg9BlDFDkPTx66nOuSBk6argGFuiNVbsUFL5Gix2P+XJCo22hJ3+OPXJEowPv7BT+ TaIyC8xrt5VuVttWyZ9fJmb6Ocg6X3uF60bhcYU6IfuymR3wtPU+JzD060Fun82ElTC0OHOItC7AR iieWw7uuvQcwIrVKFbnMVR4cgSjQ+pJSy64ZkyxXPV48NBE5cOqa5fRme7MldvhmfCrF9NAuo/ZWF Eo0g9LCtIB4QIae5iNrjGzhRQXW3kc3uf4xdDwH9+SFeBO1FfzDonLRbunaromSG2qJeqgx5V7Gge Xm0mEsl1E1ASSPTFPYOA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r4hTa-00AC5T-03; Sun, 19 Nov 2023 13:04:38 +0000 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r4hTY-00AC4U-0i; Sun, 19 Nov 2023 13:04:37 +0000 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-507973f3b65so4938468e87.3; Sun, 19 Nov 2023 05:04:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700399075; x=1701003875; darn=lists.infradead.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=NzT0lRkt7N8UBpPYeMIE5NMpA+DwB2IGbll8lyHIHPQ=; b=FqS0RWxWRx5bFVwvxqPt6f05Ig1gXFpNvXs6HXXhvMbLZsm7jjAFcEoExFeYNrX8bi GFMDeFeLuzz67iukNbjIb/Bw20QE5BhP2ykNaN4tOclbM2m8WjGRdQpCYEPYBrhDka/c qMdJsT7enBagWugBL9vQvxn9tH6NeDUYToN05GpyTk8pPmhVzew++OlisXi33Y5iST7+ 17/JETmN5xvukdpDtfRuQjB56XmGW9/08hfvB6e4YavLiVcyaSaWwA5AnidcYkSo7jkI 3FfuulUDzlZ3K7o2AsYZzon4xtDL4Uuh/6b6Lbu3Q/uDkoxeS1+x8gUJCiUU+9jxPh87 bbSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700399075; x=1701003875; 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=NzT0lRkt7N8UBpPYeMIE5NMpA+DwB2IGbll8lyHIHPQ=; b=qgaHmNoaDKbpekKviP8R/sBB21d7NRY6u6FREJioWDvgW5Xd7d/U2+2fV+Uk/J+/NV UJA6/T0gITRhO+hHwvCuniRc3k9O+8F+F2NgygGR2t85RDiCfGaVtikrRUZQdH05jgkd 7K3VaYE2q9w+pl6T2N6O0TZqnf+YK7DCITbVw68ld4UiwbVDJ1066tocuwSxgHLlUGCW 4TjdnIFMY4lMLm6eT3hVppTMKcH1HWlTOpdH+SSbhO+7OezTrYciSWJjoRp+9DiTuXph 1IBfExzbJjsttwHu7vKFw8hQymMATTFfb7ptaNXe6HRt2yMI5gngcaCD+dkV+4v+eUfM ah3w== X-Gm-Message-State: AOJu0YwtIIIM79Uym21mZoRazsbh867cwfxeV2sJwNZDAbAym9h0TF/a ZNMkS4u+h/F9zSIoQGndWw== X-Google-Smtp-Source: AGHT+IHKIxJAIXgZQLYbHr6rTD0G7bwgZjyxT5KiMK1hCbcOm03nmnlAG9qhMMglsw+0h+Kf8N32VQ== X-Received: by 2002:a05:6512:41d:b0:503:1d46:6f29 with SMTP id u29-20020a056512041d00b005031d466f29mr3342940lfk.37.1700399074597; Sun, 19 Nov 2023 05:04:34 -0800 (PST) Received: from U4.lan ([2a02:810b:f40:4300:7017:f42c:e243:8c57]) by smtp.gmail.com with ESMTPSA id n8-20020a1709062bc800b009dd8473559dsm2827866ejg.110.2023.11.19.05.04.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 05:04:34 -0800 (PST) From: Alex Bee To: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Alex Bee , Krzysztof Kozlowski Subject: [PATCH v2 1/3] dt-bindings: arm: rockchip: Add Geniatech XPI-3128 Date: Sun, 19 Nov 2023 14:03:51 +0100 Message-ID: <20231119130351.112261-4-knaerzche@gmail.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231119130351.112261-2-knaerzche@gmail.com> References: <20231119130351.112261-2-knaerzche@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231119_050436_291446_11DFB338 X-CRM114-Status: UNSURE ( 9.64 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add Geniatech XPI-3128, a RK3128 based single board computer. Signed-off-by: Alex Bee Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/rockchip.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Documentation/devicetree/bindings/arm/rockchip.yaml index 5f7c6c4aad8f..d3c5b25fc2fd 100644 --- a/Documentation/devicetree/bindings/arm/rockchip.yaml +++ b/Documentation/devicetree/bindings/arm/rockchip.yaml @@ -237,6 +237,11 @@ properties: - const: geekbuying,geekbox - const: rockchip,rk3368 + - description: Geniatech XPI-3128 + items: + - const: geniatech,xpi-3128 + - const: rockchip,rk3128 + - description: Google Bob (Asus Chromebook Flip C101PA) items: - const: google,bob-rev13 From patchwork Sun Nov 19 13:03:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13460453 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1DBFCC072A2 for ; Sun, 19 Nov 2023 13:05:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=eUzjYFwESp0WL2fCWV2fjVnPQJ5pj0BTKJR88fenYRk=; b=S+We4chJYc7sIm 2gc4TJi0QT4ID8KzM67zr/SrDsc4/giH5yc6uhneZ7FhyateUpdPbJPO2qEjWSgff+1LcTG2uIoJK axkb3oReoiB+dso7kMwagG4sR8TBVJS0DOn2TnA+6h4RjDWq7Q8AD9uPygQbA1BvPy9Al5BStcSxy eUqXQgYw7CbhsfdQcvFMAjh0Kuov585/FOff+h2B2QxCrjaiimgZefJcvcMCv34W1gY+dh1MHBRKb livU0jacTAP+1A2MRrlEipzkX4intHKktRTCaaItdPcbj3SmqV48Pk3xx+YGIc31Ea4TeNRSlui7d yFiFubTMj8Zaa2a4FDOw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r4hTp-00AC9O-1z; Sun, 19 Nov 2023 13:04:53 +0000 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r4hTm-00AC87-30; Sun, 19 Nov 2023 13:04:52 +0000 Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-9d216597f64so471584866b.3; Sun, 19 Nov 2023 05:04:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700399089; x=1701003889; darn=lists.infradead.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=5D7FwSNbPTp8jaj1UJACdG2GoQE4etSzcaqgDznPLTY=; b=O2/T0vchOSwYsm51pg6QEI1zgAb7qmfR8DdMu3i2DxUZvfU0FXU24r4uHKbGmFVPFM SSo5ePLJ2yTB3yaOq0gZ04AwQAm3kQYXra+d6hT2IR9iC44suOTkaU/IF1jqjepgVns1 sjhd5YzoLR76/hcUJnnZQy+kdkHOB0S90KDwIhI9r3pCfz21gYgwNCv+lDelPkIgg+uP HQci22iF2ock8szLiBgQLgtUhKKHHfT/726EMg8dLH/awbNwAHSUh+YF5W8Q6Sq2cMrD PNLWue0IfIFJif/I4OeuipJuO4gWBLmSSxjPszM3RVzEbfRcaYBs0oyxqkb1eon2JN/k 6chw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700399089; x=1701003889; 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=5D7FwSNbPTp8jaj1UJACdG2GoQE4etSzcaqgDznPLTY=; b=JIxnrSDB6AzPHo8RMx+0oSDR9gtqYH5D8jOLtDFvs4wkSYfi51Be52aanI16TXSwuU lRAg2J5kMU6zi2LcPmxAAZgK8g/45qcc2kFhFZq8T5f7nmD0zAm2JTbQqZpU5Amh13Bv T5eH/0zjHikmfVolShTsSEATa/ibdGErO4i2XszsLZf8PC3MqNT8rXPSg0syVyZyDCEn kjsXSRjg+PNslwp/U3HuFPWsqAZcOThuAQoabKX4HsQ8W8b6vVG4dzZ/5QTAlp8CMGC2 OHyOupE8juO0QEJn9SirP975IUWrZAx4Re3QLxveuPdInf8CC+N5WMd41OiCVSSrRICJ xbvQ== X-Gm-Message-State: AOJu0Yy1vrna9AvJoPgrbYrAdyHuF+VLqQDETcEBc0NTSnDh+SroeWmI DASZycQqE+82iDKl8ce/ew== X-Google-Smtp-Source: AGHT+IEwNDO4gimoaB9m92VdbE3A3oya64/Ue+tkhBwip4/WPt2BUK2ndGWYskgSHqJLW+J0pcgMkg== X-Received: by 2002:a17:906:2d0:b0:9b2:b152:b0f2 with SMTP id 16-20020a17090602d000b009b2b152b0f2mr3379718ejk.10.1700399088899; Sun, 19 Nov 2023 05:04:48 -0800 (PST) Received: from U4.lan ([2a02:810b:f40:4300:7017:f42c:e243:8c57]) by smtp.gmail.com with ESMTPSA id n8-20020a1709062bc800b009dd8473559dsm2827866ejg.110.2023.11.19.05.04.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 05:04:48 -0800 (PST) From: Alex Bee To: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Alex Bee Subject: [PATCH v2 2/3] ARM: dts: rockchip: Add sdmmc_det pinctrl for RK3128 Date: Sun, 19 Nov 2023 14:03:53 +0100 Message-ID: <20231119130351.112261-6-knaerzche@gmail.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231119130351.112261-2-knaerzche@gmail.com> References: <20231119130351.112261-2-knaerzche@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231119_050450_970823_F767C091 X-CRM114-Status: GOOD ( 11.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The pincontrol for sd card detection is currently missing. Add it. Signed-off-by: Alex Bee --- arch/arm/boot/dts/rockchip/rk3128.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/rockchip/rk3128.dtsi b/arch/arm/boot/dts/rockchip/rk3128.dtsi index 7bf557c99561..797906ba321d 100644 --- a/arch/arm/boot/dts/rockchip/rk3128.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3128.dtsi @@ -843,6 +843,10 @@ sdmmc_cmd: sdmmc-cmd { rockchip,pins = <1 RK_PB7 1 &pcfg_pull_default>; }; + sdmmc_det: sdmmc-det { + rockchip,pins = <1 RK_PC1 1 &pcfg_pull_default>; + }; + sdmmc_wp: sdmmc-wp { rockchip,pins = <1 RK_PA7 1 &pcfg_pull_default>; }; From patchwork Sun Nov 19 13:03:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13460454 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 44D88C54E76 for ; Sun, 19 Nov 2023 13:05:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=fl1vQSoglNalZHckQQp2LC5aRXiASqKnEJSKTRQ9M30=; b=dIzHVVVOxmHZjq O6lbx1TEdSYsRjAKisNK3Nw8EEdI3QQdsVz5ghZBnqh7APuXAsWrT3gc0VMFtnKqKr+YkpIuQk85E I8Lo6ezOz9ln597GYYnY4m2XjVYD4DZuOBEQH7DTak3PufLmaQ5PdjEAOHPdDiVc79RoDr6566ztM FoYxJ2CaXQYtM0zG6+TxiBsTzektnx6Mm12Xo0Iz9e57Y15Og7NVJquI7qiKP/twxqog0GLc9Fjt8 53L2wfFu7e6ik0sto7PAhPIrrdGJiYt4aHZzRhLe3h9WKftRNhMqGqH2xEnBe++UWgJ2t65JkBu3r vWojvyK3EaenP7KX2uzQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r4hTz-00ACED-1w; Sun, 19 Nov 2023 13:05:03 +0000 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r4hTw-00ACBy-29; Sun, 19 Nov 2023 13:05:02 +0000 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-507a0907896so5030004e87.2; Sun, 19 Nov 2023 05:05:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700399099; x=1701003899; darn=lists.infradead.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=YZoMsaRCdrwzQIgA4pCYsDBIzIpTKt2NvoS4IbctX9k=; b=Jyb8RWzRRG5pVt6847v9QqyqBW71G9e5uSznW5JTnAtB4BDT4uncaWEkMAzQKvLmnJ 5zxeNZbl9orB3nTKf6cqzhxC9i6QDgJcr9Nly1o56gUMwOPa4UTmHDsb+TlXiOqYsvfl 88BvRd4GNikxAEaJD/5ivUBzmLeysBkfUBgKqNrkwJusFvuxQCcd98V0X+PFSBFYdr9M q87Fob02dE84sdSrfSlqWklqbUsMpiLhMiBwZTjRdudG0fcVRuPOuE571jUUyz3eBHH7 pLGF2VMB7ewfLnXmXUcmufEKQEaAT5f2Muvc6zHwo7sxzz4xAKd1KVORuleAo5kZoW5C YssA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700399099; x=1701003899; 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=YZoMsaRCdrwzQIgA4pCYsDBIzIpTKt2NvoS4IbctX9k=; b=i9XMnRekGjeDhu+HiCgq0O3ENksZ+wznsqYzIGBlgYkujXgo+pdeZHXYevHquUwMtJ 0DEYaOCZaVE0wcKLuBg+BAf41aO1mkzts/tg0yjW9ksvAAX1HWjJUtqONmy//IaaDwjz kFjwP/FSG7jmD/VLD6++StCQe2N69HrQ7HPK8/lP6T97x1l29CevbS4iIhQsxG/LrFmv Di3Q1kggXalaUzX9CS18bw6YEOlRO6L56MN46oA4otfGBZx8KvP4WhYD932kpdtKhA4g pJc/Rh/A6DSbKg+CvMkTpU/NauH5p35A3THQQjsASE/QN5YcWXNe2xVD+1t2/tbH0RdP ynuw== X-Gm-Message-State: AOJu0YyLGJbHD1c24AeI4v2UrFuF2qYTrZ1AIL+9ZMg+Fh52z2q+Bi8y YHDOMWQoS6BJv8pxbPHLNA== X-Google-Smtp-Source: AGHT+IFM7L62fT2HxJg7ttHyaEqv4FrEgsAF5QE/0DhVscMChbLCIWZlM9L3YQDBy86/KX2TgStsCw== X-Received: by 2002:ac2:5e81:0:b0:507:b14f:e3bc with SMTP id b1-20020ac25e81000000b00507b14fe3bcmr3437685lfq.33.1700399098722; Sun, 19 Nov 2023 05:04:58 -0800 (PST) Received: from U4.lan ([2a02:810b:f40:4300:7017:f42c:e243:8c57]) by smtp.gmail.com with ESMTPSA id n8-20020a1709062bc800b009dd8473559dsm2827866ejg.110.2023.11.19.05.04.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 05:04:58 -0800 (PST) From: Alex Bee To: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Alex Bee Subject: [PATCH v2 3/3] ARM: dts: Add Geniatech XPI-3128 RK3128 board Date: Sun, 19 Nov 2023 14:03:55 +0100 Message-ID: <20231119130351.112261-8-knaerzche@gmail.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231119130351.112261-2-knaerzche@gmail.com> References: <20231119130351.112261-2-knaerzche@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231119_050500_705842_6CBC9F0D X-CRM114-Status: GOOD ( 18.94 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org XPI-3128 is RK3128 based SBC form Geniatec in RPi form factor Specs: - Rockchip RK3128 - 512MB/1 GB DDR3 DRAM - 8/16 GB eMMC - TF card slot - 100 MBit ethernet / RJ45 (TI DP83848C phy) - optional Marvell 88W8897 (USB version) - 3 x USB host (onboard GL852G hub connected to SoC ehci host) - 1 x USB otg - 1 x Type-C (solely for powering the board) - HDMI 1.4 out - ADC button - IR receiver - Artasie AM1805 RTC - 40 pin header Signed-off-by: Alex Bee --- arch/arm/boot/dts/rockchip/Makefile | 1 + .../arm/boot/dts/rockchip/rk3128-xpi-3128.dts | 397 ++++++++++++++++++ 2 files changed, 398 insertions(+) create mode 100644 arch/arm/boot/dts/rockchip/rk3128-xpi-3128.dts diff --git a/arch/arm/boot/dts/rockchip/Makefile b/arch/arm/boot/dts/rockchip/Makefile index 0f46e18fe275..58868cf0510b 100644 --- a/arch/arm/boot/dts/rockchip/Makefile +++ b/arch/arm/boot/dts/rockchip/Makefile @@ -10,6 +10,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \ rk3066a-mk808.dtb \ rk3066a-rayeager.dtb \ rk3128-evb.dtb \ + rk3128-xpi-3128.dtb \ rk3188-bqedison2qc.dtb \ rk3188-px3-evb.dtb \ rk3188-radxarock.dtb \ diff --git a/arch/arm/boot/dts/rockchip/rk3128-xpi-3128.dts b/arch/arm/boot/dts/rockchip/rk3128-xpi-3128.dts new file mode 100644 index 000000000000..61b9f069c8a2 --- /dev/null +++ b/arch/arm/boot/dts/rockchip/rk3128-xpi-3128.dts @@ -0,0 +1,397 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) + +/dts-v1/; + +#include +#include +#include "rk3128.dtsi" + +/ { + model = "Geniatech XPI-3128"; + compatible = "geniatech,xpi-3128", "rockchip,rk3128"; + + aliases { + gpio0 = &gpio0; + gpio1 = &gpio1; + gpio2 = &gpio2; + gpio3 = &gpio3; + mmc0 = &emmc; + mmc1 = &sdmmc; + serial0 = &uart1; + }; + + memory@60000000 { + device_type = "memory"; + reg = <0x60000000 0x40000000>; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + adc-keys { + compatible = "adc-keys"; + io-channels = <&saradc 1>; + io-channel-names = "buttons"; + keyup-threshold-microvolt = <3300000>; + + button-recovery { + label = "Recovery"; + linux,code = ; + press-threshold-microvolt = <0>; + }; + }; + + dc_5v: dc-5v-regulator { + compatible = "regulator-fixed"; + regulator-name = "DC_5V"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + regulator-boot-on; + }; + + /* + * This is a vbus-supply, which also supplies the GL852G usb hub, + * thus has to be always-on + */ + host_pwr_5v: host-pwr-5v-regulator { + compatible = "regulator-fixed"; + gpio = <&gpio3 RK_PC4 GPIO_ACTIVE_HIGH>; + startup-delay-us = <1500>; + regulator-name = "HOST_PWR_5V"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&dc_5v>; + pinctrl-names = "default"; + pinctrl-0 = <&host_drv>; + enable-active-high; + regulator-always-on; + }; + + ir-receiver { + compatible = "gpio-ir-receiver"; + gpios = <&gpio3 RK_PD2 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&ir_int>; + }; + + leds { + compatible = "gpio-leds"; + + led-power { + gpios = <&gpio0 RK_PD2 GPIO_ACTIVE_HIGH>; + function = LED_FUNCTION_POWER; + color = ; + default-state = "on"; + pinctrl-names = "default"; + pinctrl-0 = <&power_led>; + }; + + led-spd { + gpios = <&gpio3 RK_PB3 GPIO_ACTIVE_LOW>; + function = LED_FUNCTION_LAN; + color = ; + /* + * currently not allowed to be set as per + * https://www.kernel.org/doc/Documentation/devicetree/bindings/leds/common.yaml + * and needs to set in userspace: + * + * linux,default-trigger = "netdev"; + */ + pinctrl-names = "default"; + pinctrl-0 = <&spd_led>; + }; + }; + + mcu3v3: mcu3v3-regulator { + compatible = "regulator-fixed"; + regulator-name = "MCU3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vcc_io>; + regulator-always-on; + regulator-boot-on; + }; + + vcc_ddr: vcc-ddr-regulator { + compatible = "regulator-fixed"; + regulator-name = "VCC_DDR"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <1500000>; + vin-supply = <&vcc_sys>; + regulator-always-on; + regulator-boot-on; + }; + + vcc_io: vcc-io-regulator { + compatible = "regulator-fixed"; + regulator-name = "VCC_IO"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vcc_sys>; + regulator-always-on; + regulator-boot-on; + }; + + vcc_lan: vcc-lan-regulator { + compatible = "regulator-fixed"; + regulator-name = "VCC_LAN"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vcc_io>; + regulator-always-on; + regulator-boot-on; + }; + + vcc_sd: vcc-sd-regulator { + compatible = "regulator-fixed"; + gpio = <&gpio1 RK_PB6 GPIO_ACTIVE_LOW>; + startup-delay-us = <500>; + regulator-name = "VCC_SD"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vcc_io>; + pinctrl-names = "default"; + pinctrl-0 = <&sdmmc_pwren>; + }; + + vcc_sys: vcc-sys-regulator { + compatible = "regulator-fixed"; + regulator-name = "VCC_SYS"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&dc_5v>; + regulator-always-on; + regulator-boot-on; + }; + + vcc33_hdmi: vcc33-hdmi-regulator { + compatible = "regulator-fixed"; + regulator-name = "VCC33_HDMI"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vcca_33>; + regulator-always-on; + regulator-boot-on; + }; + + vcca_33: vcca-33-regulator { + compatible = "regulator-fixed"; + regulator-name = "VCCA_33"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vcc_sys>; + regulator-always-on; + regulator-boot-on; + }; + + vdd_11: vdd-11-regulator { + compatible = "regulator-fixed"; + regulator-name = "VDD_11"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + vin-supply = <&vcc_sys>; + regulator-always-on; + regulator-boot-on; + }; + + vdd11_hdmi: vdd11-hdmi-regulator { + compatible = "regulator-fixed"; + regulator-name = "VDD11_HDMI"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + vin-supply = <&vdd_11>; + regulator-always-on; + regulator-boot-on; + }; + + vdd_arm: vdd-arm-regulator { + compatible = "pwm-regulator"; + regulator-name = "VDD_ARM"; + pwms = <&pwm1 0 25000 1>; + pwm-supply = <&vcc_sys>; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <1400000>; + regulator-always-on; + regulator-boot-on; + }; + + /* + * As per schematics vdd_log is minimum 900 mV, maximum 1400 mV. + * Since there are HW blocks in PD_LOGIC (which are all driven by + * this supply), that either do not have a driver at all or the + * driver does not implement regulator support we have to make + * sure here that the voltage never drops below 1050 mV. + */ + vdd_log: vdd-log-regulator { + compatible = "pwm-regulator"; + regulator-name = "VDD_LOG"; + pwms = <&pwm2 0 25000 1>; + pwm-dutycycle-range = <30 100>; + pwm-supply = <&vcc_sys>; + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1400000>; + regulator-ramp-delay = <4000>; + regulator-always-on; + regulator-boot-on; + }; + +}; + +&cpu0 { + cpu-supply = <&vdd_arm>; +}; + +&emmc { + bus-width = <8>; + vmmc-supply = <&vcc_io>; + pinctrl-names = "default"; + pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>; + cap-mmc-highspeed; + mmc-ddr-3_3v; + no-sd; + no-sdio; + status = "okay"; +}; + +&gpio0 { + gpio-line-names = /* GPIO0 A0-A7 */ + "", "", "HEADER_5", "HEADER_3", + "", "", "", "", + /* GPIO0 B0-B7 */ + "HEADER_22", "HEADER_23", "", "HEADER_19", + "HEADER_26", "HEADER_21", "HEADER_24", "", + /* GPIO0 C0-C7 */ + "", "HEADER_18", "", "", + "", "", "", "", + /* GPIO0 D0-D7 */ + "HEADER_36", "", "", "", + "", "", "HEADER_13", ""; +}; + +&gpio1 { + gpio-line-names = /* GPIO1 A0-A7 */ + "HEADER_7", "HEADER_35", "HEADER_33", "HEADER_37", + "HEADER_40", "HEADER_38", "", "", + /* GPIO1 B0-B7 */ + "HEADER_11", "", "", "HEADER_29", + "HEADER_31", "", "", "", + /* GPIO1 C0-C7 */ + "", "", "", "", + "", "", "", "", + /* GPIO1 D0-D7 */ + "", "", "", "", + "", "", "", ""; +}; + +&gpio2 { + gpio-line-names = /* GPIO2 A0-A7 */ + "", "", "", "", + "", "", "", "", + /* GPIO2 B0-B7 */ + "", "", "", "", + "", "", "", "", + /* GPIO2 C0-C7 */ + "", "", "", "", + "HEADER_27", "", "", "", + /* GPIO2 D0-D7 */ + "", "", "HEADER_8", "HEADER_10", + "", "", "", ""; +}; + +&gpio3 { + gpio-line-names = /* GPIO3 A0-A7 */ + "", "", "", "", + "", "", "", "", + /* GPIO3 B0-B7 */ + "", "", "", "", + "", "", "", "", + /* GPIO3 C0-C7 */ + "", "HEADER_32", "", "", + "", "", "", "HEADER_12", + /* GPIO3 D0-D7 */ + "", "", "", "HEADER_15", + "", "", "", ""; +}; + +&pinctrl { + dp83848c { + dp83848c_rst: dp83848c-rst { + rockchip,pins = <2 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + ir-receiver { + ir_int: ir-int { + rockchip,pins = <3 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + leds { + power_led: power-led { + rockchip,pins = <0 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + spd_led: spd-led { + rockchip,pins = <3 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + usb2 { + host_drv: host-drv { + rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; +}; + +&pwm1 { + status = "okay"; +}; + +&pwm2 { + status = "okay"; +}; + +&saradc { + vref-supply = <&vcc_io>; + status = "okay"; +}; + +&sdmmc { + bus-width = <4>; + vmmc-supply = <&vcc_sd>; + pinctrl-names = "default"; + pinctrl-0 = <&sdmmc_bus4 &sdmmc_clk &sdmmc_cmd &sdmmc_det>; + disable-wp; + cap-sd-highspeed; + no-mmc; + no-sdio; + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +&usb_host_ehci { + status = "okay"; +}; + +&usb_otg { + vusb_a-supply = <&vcc_io>; + vusb_d-supply = <&vdd_11>; + status = "okay"; +}; + +&usb2phy { + status = "okay"; +}; + +&usb2phy_host { + status = "okay"; +}; + +&usb2phy_otg { + status = "okay"; +};