From patchwork Thu Jul 23 09:02:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1564 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 7E7F641487 for ; Thu, 23 Jul 2020 11:02:26 +0200 (CEST) Received: by mail-pl1-f200.google.com with SMTP id 67sf3074700pla.23 for ; Thu, 23 Jul 2020 02:02:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1595494944; cv=pass; d=google.com; s=arc-20160816; b=KfpoumBsIq7XF8o7PKXwIv6bfrr4P5LkCuJxe99Y8D+AxPUAY5QnSeYU56o337Tyiu gx5xPIpHZ83ahMx6Is4scSXGu9hnnh9F8kRYMInwsSre0cnsoT4MnDe+bNUZTzk/VOvH NxwuKgrKpQsGqJsHUWLekqyVsBEDDi9qSz1Al5WyNA5yJSuvZ4ENKfeB8qPOP/nCQPPw CvArjdWDzKKIZf0+4QcFjq3T1ZJDYMNa5+j4P3Y73Gkx7iv124loYnBdMs3PqKvoGB9i gFP4FSMvtqUrxI+bRpac3rPLhanUnD2SH4+QoxxoEdiTYNpxAuZw1gFqHFLomw7oGByb AtFA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=roI85g1Kcb/HDaR5DYkfHoxyXYKovRG4GZZDSH8To5M=; b=BiQ1dgoXWvTIGJWsYjdofVU644kNYm+kyLYCvWwR5g/WWqKcYa37M2NQTZ3lCQPbKC gF1Eh2ntJeB7Nat0tVh6Z8iHhML4GoSkr8LhHH79T3TzsCv6vTDIFohmUIXyss9kzuVg gHuKvLeKr+c5CgCNviUSxMv7mHufKM+WEu9rWRPuaaqXPHmSUuHXC6ojlrJTiDvNoONV QaSJx+2xzFp1XjLopo8aApFQABjGZkZN2rYGquz3EZ8rpsV0Oku4xHZatf9bg/wHbouX 57aL5qpjO+eJ91QJs2VmBrVuqao050PcLCveYG8wU8RSycgZjvENMWwDZPvDvK959uXL cP6Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZozH9q0A; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=roI85g1Kcb/HDaR5DYkfHoxyXYKovRG4GZZDSH8To5M=; b=WnCiFpeY/I8j+AVeybADr2nyJMTPy4tohk+jh3x8626ZKOUYSAaXQHv1qGj1KQ3BnQ ck9Nc9IJn3aSH4XqhkAdk84AXxJvbw4bwui25MOV4ZTMetJvoltYMggXM1fAMqm2cqkK fwHq8cKMnyD9Aba6NVqM31PpMXtkiTO6GYb1Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=roI85g1Kcb/HDaR5DYkfHoxyXYKovRG4GZZDSH8To5M=; b=CH3AZGroqWh4KcdPt4joYJJxKT9z2f7aHPR7zEypHfrtMGV7rdt2SsQ272TrizLUkD 8xJP2QSJvdifbiAv4MxMrBpLEsZh3RCRyvo8nQD1M2SXtmXPLPFzp2fkGffYrepYur0+ 6TWb2E/g4cF3Y7d1TjQGPGF2wEl9T1Pt5mfpJbeMxNBRgQWdcXHxkqilWx8lUfC5OBTn 1k9MgK86fw/s5jlbdoABt+rM70ydkPXrjW4OMPQ1hBEXWQp7Z+4me0tJfEvsyeN8T5/P Mf/DkVuXRGoLH5tUnUXb4ld9kUWNmvTaXc1ITfVxsnyTVVc+6/2D0XdGnFk/n1zLe4p6 fEIw== X-Gm-Message-State: AOAM531Scu7UYz7tsUFSrgQfkUPuIHQLDC0lXyrUHtM2Hy4c7NcCwm7p NWlHtOqWAO2FXgtOtaKuo67M7TTY X-Google-Smtp-Source: ABdhPJyGmDHLpCPAL1ZmSl77UCt0u7OoO+o7A2aUI4Z0LeH+7JTKEizd0A3GUeVBdX/XQTtFfcQVMw== X-Received: by 2002:a17:90a:30ea:: with SMTP id h97mr193723pjb.32.1595494944396; Thu, 23 Jul 2020 02:02:24 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a65:6715:: with SMTP id u21ls1426691pgf.8.gmail; Thu, 23 Jul 2020 02:02:24 -0700 (PDT) X-Received: by 2002:a63:e556:: with SMTP id z22mr3319115pgj.130.1595494943854; Thu, 23 Jul 2020 02:02:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595494943; cv=none; d=google.com; s=arc-20160816; b=g/TKt2YEXCJslj8egtrPm7/CHIRFmU4ItWeYtOd+zeKC6YT3bhTMAULfbWyV+6gp1U abMSiwVJ67RBKJ+G1qjVWZgGWoQ4+PeTSkzqDRO4eG5bLxOcaHXQY8w5sM+QC255mFiK VeJcTUzzqoTn7zwRFygcnME0N0K+uOarhjqw9xCWV1qSre335KJ2QY72nF6024sl6x94 YlnTCXlVY17pmLd+z2LnEYmeXwQTTQJJhwbWx09pGbxLA6JICYeX0JxvINhdQXeuE9nI 3cI4c67kTDNgMasqW+Pr/GSUx261jCM0x4uRLMSztqgZdnYIyQcq8KS6DXtiw+WrvWF8 IV8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=4tPRnuMo6P2al0fa5yE86no6k6kmiCiMMqx340iPK/0=; b=QlVX5bIrVhTWG3AuSNq+ftY/JM/JVuTRNcZF1g281Fbvs/H+rhuFRTEdADNDCbH4WJ 2BCxMQb1mXMx4jUmMruS5x5Qe0AFsy2xBL8c0x5pbwfha+p4tSK+pOE75+iBFvQoSlzw kEFVBp4VCGJaEamhHMccQjVK0AZ4JO+AAoCeTRK+GaeVR4ESs+203VjyRFYGI4PoBId6 lswYLP4fAeCMqNpKQlrLjhg984o/vEcindqHa7tn7Eb3Z7pEzrdx76JZ6pPyY7G0blD5 V8fxewrZQFMeNvzNY9WJi/PcMKNeesQBzOmPU8tbTMpe2a7tWqrwdHi51DfzVg7d3DRZ WPvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZozH9q0A; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id t18sor2437341pge.6.2020.07.23.02.02.23 for (Google Transport Security); Thu, 23 Jul 2020 02:02:23 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a65:6650:: with SMTP id z16mr3505091pgv.161.1595494942657; Thu, 23 Jul 2020 02:02:22 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:cbf:ea0:8a30:a3af]) by smtp.gmail.com with ESMTPSA id k23sm2319383pgb.92.2020.07.23.02.02.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 02:02:21 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring Cc: Suniel Mahesh , Michael Trimarchi , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amarula , Jagan Teki Subject: [PATCH v3 1/4] dt-bindings: arm: rockchip: Update ROCKPi 4 binding Date: Thu, 23 Jul 2020 14:32:07 +0530 Message-Id: <20200723090210.41201-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZozH9q0A; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , ROCKPi 4 has 3 variants of hardware platforms called ROCKPi 4A, 4B, and 4C. - ROCKPi 4A has no Wif/BT. - ROCKPi 4B has AP6256 Wifi/BT, PoE. - ROCKPi 4C has AP6256 Wifi/BT, PoE, miniDP, USB Host enabled GPIO pin change compared to 4B, 4C So, update the existing ROCKPi 4 binding to support ROCKPi 4A/B/C hardware platforms. Signed-off-by: Jagan Teki --- Changes for v3: - new patch Documentation/devicetree/bindings/arm/rockchip.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Documentation/devicetree/bindings/arm/rockchip.yaml index db2e35796795..e6f656b0bd56 100644 --- a/Documentation/devicetree/bindings/arm/rockchip.yaml +++ b/Documentation/devicetree/bindings/arm/rockchip.yaml @@ -430,8 +430,12 @@ properties: - const: radxa,rock - const: rockchip,rk3188 - - description: Radxa ROCK Pi 4 + - description: Radxa ROCK Pi 4A/B/C items: + - enum: + - const: radxa,rockpi4a + - const: radxa,rockpi4b + - const: radxa,rockpi4c - const: radxa,rockpi4 - const: rockchip,rk3399 From patchwork Thu Jul 23 09:02:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1565 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E14C941487 for ; Thu, 23 Jul 2020 11:02:29 +0200 (CEST) Received: by mail-pl1-f199.google.com with SMTP id y24sf3084117plp.18 for ; Thu, 23 Jul 2020 02:02:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1595494948; cv=pass; d=google.com; s=arc-20160816; b=EzFioVZAbmH4j18SjLCJNBWnZQSdD4BlN3JSCAtAI62SOgBzyl9bEkHHJKLjl5nbi8 MxOHapQGFdQU3wXfE39BXL6jADV5uPOuheQN/Q+aLYLzCRHo+LfXIznivBgTfC7+l1aZ ZI1b/NJ1O2rxoRpOpHVhG9FT1tQh2vXS/yon67oQigvmAE6iqQpNDxtyu6sx+JwmLsaI xelZ5+xnKZ8EDqLDEy7W8tIALrPrH54T6GBAHpCfpO6jkR2s91WRE5SLxpwQV9tBKoC/ HzocNKKaOvfeVoD1qsHUVc0DCXQOOtq6f2ud2TfM7ckhANxGJYRXpeqXkPO1H3ygx9aM TebQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Ba+YVJEnA6zqehcDqt8kCLHXYzfCu8fUv08YI81S+JA=; b=ytAzGchQjtJd4wpHTzINcqnq3lWmSy94wnY4QEiCUjbKccyOqycg5fSF1kzYA/8OKC yagdV7Il9TZYOyYdUjY/MG4j2yqw+aa8/d6AsPLCsqo4jS1bGaSjd/dlwzOR6KKTZ61k XCmKYY6tb92cQoepuAx0dfc5sHzyE+SO7upIblasB11gT2w3pxMFxgSJTfo+fa2mC+Da Qxgx/wEwBh6gWzAPqLPjg3hmuU4VNsALrVORDZZ/PUF4ccAbFT2r2P+9OZ1UI7in0myS Eb54jj80qUFKR5rCdoWj4TedisyXhCTddCORODTyIBa87EJF/rZtwhBK+BxtG0VG1WHv eoEA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=HU0nk8lz; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=Ba+YVJEnA6zqehcDqt8kCLHXYzfCu8fUv08YI81S+JA=; b=AAmaW5iDBwnonqM8nVrh11xH1A+nQY5gEFLE5aGd3o/dEU/kqnf5LAoq3UgqRV7USt Lwli9gMZw/Gy6VwBJI7OtkU49wX9p1ntirNUsuGIw8T55t3C+LKa8B0w8XCBulpmRsTN znk0pZ5/7k2pLQNmDKr5vHZiMdcZNSlSI5/4U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=Ba+YVJEnA6zqehcDqt8kCLHXYzfCu8fUv08YI81S+JA=; b=Rsy7S6qgDA0P6mr8/m6KGTuUlvsM9ZA5q4k/Bj8yksXhacqNNlikWuwvBA5dZT1zhY tdL+jh51nbz2/cZZdkBDPf6ZvlOaj3PZtgK1gLxty3HieNTcL4mvsYXo5Tzw7uXtPJN2 lWwAdeYLwDtK1WN2g0QNSXASscqgzVYRqv1CCCPPKq1adJ0VG4kLL9eCg+/Nnr+Eq/sG v9D4ZyNX65ihlzfj76ibnesG6skR0aHT865pGNvkDEDr8AiTiLUnlA9TGuHUfdYDGP36 m3WrLdGBDDnpL1382EeY+oSBC8bqjbq8XphwSooDY9842bwhLsTutFPQ6XeeNFiIZcQw md9g== X-Gm-Message-State: AOAM533B9KHCN5SuwF/ZUgLFdFwgQMpHGVSJGOeDIwK6Hm3LBdvKBZkD vITP9zz0mIdOy4Imk8mIr+PJq9ur X-Google-Smtp-Source: ABdhPJyY4d2tK99m6K32yzNceLXTu5EHXyP8utZuh+x/jTfWrqTuJgl5jsndRS4nK78vWdHWjFvNYg== X-Received: by 2002:a05:6a00:1514:: with SMTP id q20mr3297798pfu.243.1595494948625; Thu, 23 Jul 2020 02:02:28 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:be15:: with SMTP id r21ls2026599pls.11.gmail; Thu, 23 Jul 2020 02:02:28 -0700 (PDT) X-Received: by 2002:a17:90a:24ed:: with SMTP id i100mr205038pje.22.1595494948113; Thu, 23 Jul 2020 02:02:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595494948; cv=none; d=google.com; s=arc-20160816; b=eZyVcZkbhpBJjB1ToTdbvdxOv8IRaUI0exQOtCvt34FJyHh/PhAH+oj6SsF+bZ7VRa nky2CjKDMpfQbfZJABuIXJzrKkJp/DzRi4xmllFp195wm8klPxidtIrSvdexjw7hdzp4 +eeuQvghyIs2uMUOx6pa4YOG/a+jJ8SualdG9CH51QBfnsprEu435g+6MWsWTjf2jERI BQoATYLW/inQIOYYxabRJMAitUFVT6dc1ei3qYXhbwUHacCfKFVbRxmM9bZ4YWp98ioa 6Gs1M2EJ37iwpL2+aRud51BlsQI3/WU7mi8yuFpNcY3vvgv/HWULDfBcC7MR5Jfy6bWB BQSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=DJCSwxnGk2Ssl9aVpet8CDGQoGguzrl/jiXKGzvc19M=; b=BysQ5SLTxyfDboSazQodMKtqmVaINFDsUW8c3jsqP+lIqT8fdkkPnvGjcwloIZRoIK RuZ3OyMX4BGH9KMqZzGIFmJr9Xbo+/cU7bTeEEbaLj8seGOsHLuwgS00sCzIgQTzc5J4 0899jnPSbqmfTYsamkfIXihUFo0eig9ZGaKlTajh1KpqeRltC6Bu/pP9lMDMwzzE6PMN fNt8WSODcfpl1ldb7YQ4g62GKNPImM84QwG9QVFFhTluh13JwgKeh2qLeMrKUwh6wQnh tr8SMaYjpSv01mvsZ5yLzOyF7ZDZhZPgN/jOHLeBYxb08TfrGevM86w08hphVBwqIynX EpZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=HU0nk8lz; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id d9sor2575446pjz.25.2020.07.23.02.02.28 for (Google Transport Security); Thu, 23 Jul 2020 02:02:28 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:90a:784b:: with SMTP id y11mr161257pjl.51.1595494947770; Thu, 23 Jul 2020 02:02:27 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:cbf:ea0:8a30:a3af]) by smtp.gmail.com with ESMTPSA id k23sm2319383pgb.92.2020.07.23.02.02.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 02:02:26 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring Cc: Suniel Mahesh , Michael Trimarchi , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amarula , Jagan Teki Subject: [PATCH v3 2/4] arm64: dts: rockchip: Mark rock-pi-4 as rock-pi-4a dts Date: Thu, 23 Jul 2020 14:32:08 +0530 Message-Id: <20200723090210.41201-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200723090210.41201-1-jagan@amarulasolutions.com> References: <20200723090210.41201-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=HU0nk8lz; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , ROCKPi 4 has 3 variants of hardware platforms called RockPI 4A, 4B, and 4C. - ROCKPi 4A has no Wif/BT. - ROCKPi 4B has AP6256 Wifi/BT, PoE. - ROCKPi 4C has AP6256 Wifi/BT, PoE, miniDP, USB Host enabled GPIO pin change compared to 4B, 4C So move common nodes, properties into dtsi file and include on respective variant dts files. Signed-off-by: Jagan Teki --- Changes for v3: - none Changes for v2: - update commit message - add radxa,rockpi4a arch/arm64/boot/dts/rockchip/Makefile | 2 +- .../{rk3399-rock-pi-4.dts => rk3399-rock-pi-4.dtsi} | 3 --- arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4a.dts | 13 +++++++++++++ 3 files changed, 14 insertions(+), 4 deletions(-) rename arch/arm64/boot/dts/rockchip/{rk3399-rock-pi-4.dts => rk3399-rock-pi-4.dtsi} (99%) create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4a.dts diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile index b87b1f773083..42f9e1861461 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -33,7 +33,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-pinebook-pro.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-puma-haikou.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-roc-pc.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-roc-pc-mezzanine.dtb -dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-pi-4.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-pi-4a.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock960.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rockpro64-v2.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rockpro64.dtb diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dts b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi similarity index 99% rename from arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dts rename to arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi index 60f98a3e19d8..e163f438f836 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi @@ -11,9 +11,6 @@ #include "rk3399-opp.dtsi" / { - model = "Radxa ROCK Pi 4"; - compatible = "radxa,rockpi4", "rockchip,rk3399"; - chosen { stdout-path = "serial2:1500000n8"; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4a.dts b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4a.dts new file mode 100644 index 000000000000..89f2af5e111d --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4a.dts @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 Akash Gajjar + * Copyright (c) 2019 Pragnesh Patel + */ + +/dts-v1/; +#include "rk3399-rock-pi-4.dtsi" + +/ { + model = "Radxa ROCK Pi 4A"; + compatible = "radxa,rockpi4a", "radxa,rockpi4", "rockchip,rk3399"; +}; From patchwork Thu Jul 23 09:02:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1566 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 4EC6F41487 for ; Thu, 23 Jul 2020 11:02:34 +0200 (CEST) Received: by mail-pj1-f69.google.com with SMTP id h93sf3472896pjb.2 for ; Thu, 23 Jul 2020 02:02:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1595494953; cv=pass; d=google.com; s=arc-20160816; b=TE8OBIJtvQ9XJeL5mzs5BTeT1daOKECv3lhY70tVPUWUvWHuPymGMbit/Lg6854IQb iw5x7QLPD+G0SMQVnNnpp3UdD4vOjRkHqKyBrv7IGj/r2EiLHB3LYE6/ubHyeA3tWJV3 dROix2tEazJ86ILmBGO5m+Vf4ZYPl2VF0bdUwmk5a/xSq2OM7vwvomPVBCmgMZEOA71s KoPt0aflVTHoo/8LaInQbLJC2F5KSs/n1mxfsHxsLceFKbRAsRi5519Ne8AI/yf2cYUe 7SzsMs58m2x8pv/oKyHaZDSCgqV2vCvLeWpTbgQAr3GWaKOaD4FyUvT1Eca/nHx5aL+g R57Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=ZCa1YE8+/I5e/fGZdzUQDVggghjH0aNiJhTSdoB9WIo=; b=u0jDtgtyzPufr/A2eqeaYmyxn7oRfS41TlLL/NEGplcKsMrT45lAH4j34uw4azcCn1 DyBNpqZGTscEdq821neBNWgmgznq1RbhLkM2RmVAa+GucQs9BoM+0t4qzB1OMJUbii1u 9FdBtWO23lnsw0dM4Q7ciGHl0LJCvb9D0j9JkPsIftAspBOLehfCHxEeBbwCbiWSfI9w STViRrwhDlGYVWudVOVTdf/XnLqQgCCbbhQm/evDmTx/+mRTaJBAzXvDq7jTI/8FXeFy XqtOIcWcB04DcWY/Zu6pbQeCTfocxhCjO2P/tIlMYFs54pKL1PVFRx95LUSv5oTczx2G 7s6g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IAju02F8; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=ZCa1YE8+/I5e/fGZdzUQDVggghjH0aNiJhTSdoB9WIo=; b=PtwEFkCPcR9dIFogHUBC/EMqptYAT8EkZdc1tRu6pCXWgGVyzwXE2spyUVICQKe8Vc PQ5MhheX8KYlsvc3AKLAuQBDdAwUqtQJhEPsncy1GrpmyQqG7wJ7J3JMoo9d4cV+C27t 2Twks6kAjxOD3LzjWg/5HALV2FexbhmlNI/ho= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=ZCa1YE8+/I5e/fGZdzUQDVggghjH0aNiJhTSdoB9WIo=; b=F8A12Goqw2PrIywqatAPkNsoLdXWuNxmavXkpkb5J+ZDtpx9Anmk+Ex0r5iLcFqh7a BUxwCiD28XgTDOk0SG7mqNwqNjsH5haNVwzVD3BREX0LsQYi2Zf+ijRMifNCKhp8F45f v7TrkadMojIMe/1BolrwwcU4bDR+9DGUJHPmV9OGa2IU0xhe9YchLfajwa5IxT1IhZLT gXMPmN22x0GAQfg0QTtw2JUdakBxB3IXdQkkrEV5GxQEScSuowvBOSI4JVJ3y2i5Kuqi RMv/oj2PBHznRSsmCCFoqWLpObOa4r9gGmNe6efoKF96AxpVdmDBU2P4Bqaj1N9zWt/f 7CpQ== X-Gm-Message-State: AOAM532X5ad3HIX4+vo8fNEaRcJT9Enftr+W1cPFADooyuE7T+0OaWrB jx0SgiXnwepNuNA6FSoI0mEfL5dD X-Google-Smtp-Source: ABdhPJzyh7U8jBcuijLfLhC4m3YKCh7ATMMfHnwhit0S5VBKerHexC7mULMQSd1m30D5XufzsXbC2g== X-Received: by 2002:a17:90a:8993:: with SMTP id v19mr183218pjn.122.1595494952989; Thu, 23 Jul 2020 02:02:32 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:864e:: with SMTP id a14ls1579152pfo.7.gmail; Thu, 23 Jul 2020 02:02:32 -0700 (PDT) X-Received: by 2002:a62:cfc2:: with SMTP id b185mr3199332pfg.125.1595494952498; Thu, 23 Jul 2020 02:02:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595494952; cv=none; d=google.com; s=arc-20160816; b=wj6FnU7Aly8PiLM/Vc41aJ14+fhzoyJU2Pv0MCPUc0S8U8bO5tNP1kY/Us5T0k3Yhu ZSR2TZm0GP94m5SuAR/z9QpEbbTqzWy0Xjqd0/aaP5t7rKbK/1WnzINsTKpVAnhC5a/v 3WEmOUlKHttEpGI3YbX0iqDsfha4gYqQ2jIQZ9XB6StGy8h9n8eed++QaPy1J3BHc6cP 1WP6R36FRDEBc9voe/ccSPbns7zSoGyEF2mVBdGSMxWcVf/OI2sLu5wMRHfwRvJFBJmX a08ScY0z3L454WATNPPZocJJrL+stvqwgkgh361LDciyoIjVte6nHS9VcIsYOfNnakNu iFew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=mXAoChgL41EYHlBynT6RAmQ3PERwS+BjK2PhZPY9IXA=; b=0DSNRQ8jx+Qh3pDh+cOm1BEVo7gH7CN4xJBscUmOX+TBXCd8wRu1wtG1qdHuwzfRAK 7OBsILxVlHR9IbKjgEkqeG6ZNKlv/HIDLAIaopIVtDmOJ0eCmU51NU9lGg0OWoI7UIJH hOKNBFTHZmvxoZa1XQgNQP/kbEnSQElrIxVOlDFIyDPB+uuSHFOhq4acwRpQmMUjabrt CEDJ5B6kdH6lmVnHsNy1Ud1zIuYV5LhdcSMm/a2INE760RCvnSoezhjZCDi92Mp0qu5A y21BlpmUk2S22luXdCq0p/w6CahGg9Wv+XPO9nTt1OAB5i1HbYEFIJ4PUOpSDXoR3eb2 79vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IAju02F8; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 140sor2588562pfb.45.2020.07.23.02.02.32 for (Google Transport Security); Thu, 23 Jul 2020 02:02:32 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a05:6a00:10:: with SMTP id h16mr3218673pfk.214.1595494952164; Thu, 23 Jul 2020 02:02:32 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:cbf:ea0:8a30:a3af]) by smtp.gmail.com with ESMTPSA id k23sm2319383pgb.92.2020.07.23.02.02.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 02:02:31 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring Cc: Suniel Mahesh , Michael Trimarchi , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amarula , Jagan Teki Subject: [PATCH v3 3/4] arm64: dts: rockchip: Add Radxa ROCK Pi 4B support Date: Thu, 23 Jul 2020 14:32:09 +0530 Message-Id: <20200723090210.41201-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200723090210.41201-1-jagan@amarulasolutions.com> References: <20200723090210.41201-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IAju02F8; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , RockPI 4B has AP6256 Wifi/BT, so enable them in 4B dts instead of enable in common dtsi. Signed-off-by: Jagan Teki --- Changes for v3: - none Changes for v2: - update commit message - add radxa,rockpi4b arch/arm64/boot/dts/rockchip/Makefile | 1 + .../boot/dts/rockchip/rk3399-rock-pi-4.dtsi | 23 ---------- .../boot/dts/rockchip/rk3399-rock-pi-4b.dts | 42 +++++++++++++++++++ 3 files changed, 43 insertions(+), 23 deletions(-) create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b.dts diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile index 42f9e1861461..8832d05c2571 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -34,6 +34,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-puma-haikou.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-roc-pc.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-roc-pc-mezzanine.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-pi-4a.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-pi-4b.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock960.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rockpro64-v2.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rockpro64.dtb diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi index e163f438f836..678a336010bf 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi @@ -584,17 +584,6 @@ &sdio0 { pinctrl-names = "default"; pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>; sd-uhs-sdr104; - status = "okay"; - - brcmf: wifi@1 { - compatible = "brcm,bcm4329-fmac"; - reg = <1>; - interrupt-parent = <&gpio0>; - interrupts = ; - interrupt-names = "host-wake"; - pinctrl-names = "default"; - pinctrl-0 = <&wifi_host_wake_l>; - }; }; &sdmmc { @@ -663,18 +652,6 @@ u2phy1_host: host-port { &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>; - status = "okay"; - - bluetooth { - compatible = "brcm,bcm43438-bt"; - clocks = <&rk808 1>; - clock-names = "ext_clock"; - device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>; - host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>; - shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>; - pinctrl-names = "default"; - pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>; - }; }; &uart2 { diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b.dts b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b.dts new file mode 100644 index 000000000000..f0055ce2fda0 --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b.dts @@ -0,0 +1,42 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 Akash Gajjar + * Copyright (c) 2019 Pragnesh Patel + */ + +/dts-v1/; +#include "rk3399-rock-pi-4.dtsi" + +/ { + model = "Radxa ROCK Pi 4B"; + compatible = "radxa,rockpi4b", "radxa,rockpi4", "rockchip,rk3399"; +}; + +&sdio0 { + status = "okay"; + + brcmf: wifi@1 { + compatible = "brcm,bcm4329-fmac"; + reg = <1>; + interrupt-parent = <&gpio0>; + interrupts = ; + interrupt-names = "host-wake"; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_host_wake_l>; + }; +}; + +&uart0 { + status = "okay"; + + bluetooth { + compatible = "brcm,bcm43438-bt"; + clocks = <&rk808 1>; + clock-names = "ext_clock"; + device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>; + host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>; + shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>; + }; +}; From patchwork Thu Jul 23 09:02:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1567 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id C3D7341487 for ; Thu, 23 Jul 2020 11:02:39 +0200 (CEST) Received: by mail-pg1-f199.google.com with SMTP id 75sf3580927pga.20 for ; Thu, 23 Jul 2020 02:02:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1595494958; cv=pass; d=google.com; s=arc-20160816; b=vbNCRMBuf7PeBVim6jndy0wMtjk5XbZEnO4qbjCiU10fex/vF45vV7qHRtSczAtY8p UNTai2q01JhBDdwey9wnTN+nKqgxyikKrqdHXq9ZA9o9chDIf/FB/7kZijZDlA/iL06k FiyJWS09aNzEZoVRCgTbjhm/UYHdKij4HeHJNEVi4nhi9EzQSlsLHSEbaDkTvrkj1p1U S7ZqAwM6ZrgDxAwTS/cLNgRuQV3nicOpdmI2hlDN8fWyuDY1gQVlZmb9hEK66eBcl3y1 WjCTOidAWUF/G63ohI9Zy22bQUTKo7UZ4CapI9e7RATG2xkO1pQLTFcoZ5Mv+OnKBi+1 ZobQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=n84w4zWwtRgXzHqMf0x3kTHibCKM+g0xZXrtR0/Pneg=; b=wTOuTtnyGLrT4MWl84NmOzGZk6D3fJ74uFpPn1M9yTBGZip4mstJOwsFdJkfp+XaIN KA6bA4h7MS7FVL6d+nQfjKMzk7FKTNt2GwKhtOm+QrYQRCQA8a63IGl0HW1qr0bj/7Pa aXgPXwaGle4LuuIPvNIXd0mkd8/vFUDmrX7T/MZZdXwmg9x4RVnGQFXYsMk3MHfU6x/D iioKmHThk6n6zYPLJj3Wu6a/M8SiEv7o/atQLZbCGMbSF2RlyDb1Hf/EEAIgzRg03bWq jG5juzVpDCoqWzmVj3zqbj/aG5ZmU/RaR++nvW5/wQzr2P8avAjHZHzHY6w6rn05mWHC aHXA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=rqJG1uSN; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=n84w4zWwtRgXzHqMf0x3kTHibCKM+g0xZXrtR0/Pneg=; b=SrQB1qfA7U5vCfqG0eqCNpx7fVhPcq5BI4XeUJjOvyEulzu9VxAYRHfBdKjAHp5TGj 7E8O6cJtj28JqPnDDtjJDtbYYp4X7dg8cKJdnsuJ5z8cegibhs7//Ja8cYJSusaViDTk sfvvimNMUipK/efdLxlEu2b+of5xpMjdmTbuI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=n84w4zWwtRgXzHqMf0x3kTHibCKM+g0xZXrtR0/Pneg=; b=gEYcVpBbbzuyE3CAwluEhUNmEht3N8n5yk2eNLb9kKodAKjrhPDu2LmiDycriiYSO0 w0aR/Y1HZCqwVUPK6jkH9+ZbcqHk0elET43uLYmWuwcAQwIxIgQCbAop91fac+tCG5W9 yWcPskaDVEugpaLNG1wp6nRK1r2u//wrN2DVzfT+udeLlh3msYEorkFIsDEi/yNu+TAk cngc2F1047RxS7603Baxpc6W9oRL7xEsDMHBhzE9VGOZmuZi049c7oO0h1jiGe15XhLI VzwHWnSX93rSasa5ZVdsT5JLt6ZaSFSypuDKoEtqbT0JZvNsR/NnUHoCxlF9OEobFI76 qivA== X-Gm-Message-State: AOAM531NOBRMmgejokhgCtXCAcs1cKHEnXUBe2nR5SNjf2HwMTaKXlJ4 1lzjNh1F6NCeAGWbes2glyCu6Q6A X-Google-Smtp-Source: ABdhPJyjE7oUNazgrQT4JaU0TQiNWAtKK9CO+DXPqRlWuZBSPw9FiCjNMMpucnw6YtSKSnT63OTeNw== X-Received: by 2002:a17:90b:338d:: with SMTP id ke13mr189662pjb.60.1595494957942; Thu, 23 Jul 2020 02:02:37 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:a9c1:: with SMTP id b1ls2043420plr.0.gmail; Thu, 23 Jul 2020 02:02:37 -0700 (PDT) X-Received: by 2002:a17:90a:f18c:: with SMTP id bv12mr163185pjb.15.1595494957491; Thu, 23 Jul 2020 02:02:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595494957; cv=none; d=google.com; s=arc-20160816; b=mUi3ykRD1mbAtdZpFdcIdj5jheJdRyxj9kQyBOEEtIECpI+oUxHHe3v2dZT6+SejsQ bjbGGo87/J+M7jkB24sPt0UxqvJRoWp0NOyagn7dhzsK0FnfSFKx2pHP04xis2KRlB+4 voItJdP/kpjfMLw55Ic3o5I1iHOZpJ9+D5XKXXVA+Ebm8+9NcXeZbVmpJQtU0L9lbFO1 jF2ZPV3FyvkEREBHO8VekGgvSkBfj4qwZwVZ1iU6v0+rUFch+ZuzyHuRl4SK2MCJB2Sy CswU8EpFPU+JQnu2pZuODn0G5vUgRgJejI8sUh/IDhfHU7sc8jILxIRS2QqKaSm766ko /KvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=nMTCvpA03j/HvhHxdleIon+wdOLzcdNROWHhfNRo/CA=; b=Gl4V0XY3DVhfpl8gURwcv4wONbd7BMvQ0qoxrAedxt9hgJukW7G1L4BVxu64cSOxcb rXTQzm+sbji0Egoo9VgQNsYETkyasC1HYxzA49bFZzbb05Py3TK35pNIeg83DbxiZvia 9ylGToZZKdgsQ/K324TSimYN4P1Ad9ibfQNvNvq1T6M7cjdMyHgW+x37KfnWOeFA7E2E 3j0PZb7GQjPMitHWwY8+x/Ee2muChrKyHSK/N0HgT3C5/YsT/YuN7m9rmWVUxrAylBO6 D9lJbmRF4hYi+vWtf1ey53Tn5PWXyVnEniE9CXInYXzQ3JbKl4WHhUsNiMVIc3U3QiM3 vn4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=rqJG1uSN; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 28sor2370681pgl.60.2020.07.23.02.02.37 for (Google Transport Security); Thu, 23 Jul 2020 02:02:37 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a63:a558:: with SMTP id r24mr3446741pgu.70.1595494957109; Thu, 23 Jul 2020 02:02:37 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:cbf:ea0:8a30:a3af]) by smtp.gmail.com with ESMTPSA id k23sm2319383pgb.92.2020.07.23.02.02.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 02:02:35 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring Cc: Suniel Mahesh , Michael Trimarchi , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amarula , Jagan Teki Subject: [PATCH v3 4/4] arm64: dts: rockchip: Add Radxa ROCK Pi 4C support Date: Thu, 23 Jul 2020 14:32:10 +0530 Message-Id: <20200723090210.41201-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200723090210.41201-1-jagan@amarulasolutions.com> References: <20200723090210.41201-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=rqJG1uSN; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Rock PI 4C has AP6256 Wifi/BT, PoE, miniDP, USB Host enabled GPIO pin change compared to 4B, 4C. So, add or enable difference nodes/properties in 4C dts by including common dtsi. Signed-off-by: Jagan Teki --- Changes for v3: - none Changes for v2: - update commit message - add radxa,rockpi4c arch/arm64/boot/dts/rockchip/Makefile | 1 + .../boot/dts/rockchip/rk3399-rock-pi-4c.dts | 51 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4c.dts diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile index 8832d05c2571..02cdb3c4a6c1 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -35,6 +35,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-roc-pc.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-roc-pc-mezzanine.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-pi-4a.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-pi-4b.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock-pi-4c.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock960.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rockpro64-v2.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rockpro64.dtb diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4c.dts b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4c.dts new file mode 100644 index 000000000000..4c7ebb1c5d2d --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4c.dts @@ -0,0 +1,51 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd + * Copyright (c) 2019 Radxa Limited + * Copyright (c) 2019 Amarula Solutions(India) + */ + +/dts-v1/; +#include "rk3399-rock-pi-4.dtsi" + +/ { + model = "Radxa ROCK Pi 4C"; + compatible = "radxa,rockpi4c", "radxa,rockpi4", "rockchip,rk3399"; +}; + +&sdio0 { + status = "okay"; + + brcmf: wifi@1 { + compatible = "brcm,bcm4329-fmac"; + reg = <1>; + interrupt-parent = <&gpio0>; + interrupts = ; + interrupt-names = "host-wake"; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_host_wake_l>; + }; +}; + +&uart0 { + status = "okay"; + + bluetooth { + compatible = "brcm,bcm43438-bt"; + clocks = <&rk808 1>; + clock-names = "ext_clock"; + device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>; + host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>; + shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>; + }; +}; + +&vcc5v0_host { + gpio = <&gpio3 RK_PD6 GPIO_ACTIVE_HIGH>; +}; + +&vcc5v0_host_en { + rockchip,pins = <3 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>; +};