From patchwork Fri Aug 7 09:48:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1584 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id AE4593F22D for ; Fri, 7 Aug 2020 11:48:44 +0200 (CEST) Received: by mail-pl1-f197.google.com with SMTP id o10sf1067489plk.12 for ; Fri, 07 Aug 2020 02:48:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1596793722; cv=pass; d=google.com; s=arc-20160816; b=olqmPuCYFupQAOlSnbGYEjVJTvgzcc5ZgloSVQIjHvgH3r+ntKew2b/ThzTRZBrT7L mk7uHWex3G7RPcfMbN1rZElqyxZckFYD9B6pjZJvW19fVXM97khmOrWHfwLbh2t86Vuf j5LfRuu/Cjb/gvW60w49vjXhZYA+IOnMme9exfAZTaU3IetERmmSazgzkcd3SH7B76uI m1oxBSeUVfQBSzQYDK9wmnlTp7QjY3O5PbuXr7Xa4+gxZu9kBrHdhePdnV6Z4WdGCJ0e Dx9TAuLXu2UPf7fT29iwp7bLHzhA/G62XlzsuL1nTG4/SSsh9rG+YlLZk+yc8l7KvlC8 G+Yw== 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=rnCUF3jipEB6Z4HONm6Q6m71awkxB9kcKcEBtM8MO9U=; b=Bbe7cmkzERdZ3L9Fv2kj/0NbTevlkmp63pgLdnWrS2Ekl2+ikRxcRU3fAxlyrkAOcQ JM5UxO2mkhVB00OlJwypGAzmtRsfyBWFUJtwAWE9Hu1teBKxqJCCZ88memVHAZEmL7tI uHSdkOkysUbCdpRfC4Iy9Z5gCmr3u1D/3knyER6DkUlz5T+hjzMReQTuC4Fk3SQE2Xhw lEnjtrvM45lmBSsEyxoSFecBOSjKHchmozWUyabzo+M4GyYWARVt7MixLR+XsFyNGV01 w6KzedD/1i14Psy9jtlZ7rTUg4KJe7qEoqrlMIuFz6ln33NgW5/Yqd9aXno6A5yBHdbV WiYw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SJ8+3B0u; 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=rnCUF3jipEB6Z4HONm6Q6m71awkxB9kcKcEBtM8MO9U=; b=OemKxJmDFPQRqMYlpNc9D/UYmCXeEVzaIi9Qucw8QK+tljI+M/hFuPjk8ZVnqVIBTV TFe9udK9pPOrvSYvNKoXuJ0M/2sgExjo1BpCr6Q7y+bqlUERRYJAGaGIwNfa+NX2OiMG dhckhNuHX6ag7a3GBK9HOqoc+mLgLDz7HV3Vo= 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=rnCUF3jipEB6Z4HONm6Q6m71awkxB9kcKcEBtM8MO9U=; b=DSqSWWzYdGf/SCw2CZDwyhXmLUhBO+nwTBLrY94vlOXqpjxUBqPAp0K2mn7wnqj06R 3IPvDQEd1XKrnFCqJuY3QpcSZO/K+7kF3VrQtnftJtLKzVHhR1wT4zUdtxOqsvzUd/IV ql+i+chPXFODMTFOxYbynqF1DZKxr1abHZPgYNHHZJilk1mlNKaufh1jZ5Pd/7fWoQw9 Kbulppdm0l6Ot1WESgrOtv3gL9LbtErby2De0OV5vxt4du+VWtAsQgIxpvmNE36PHLwj 7kXnuqQnB0xaiFOc6kglItTAbfg6YN2Bj3dgHaLLY8H9CU5FH7fDjCnTruSC4mWOex0N lXZQ== X-Gm-Message-State: AOAM5321lFf3/9ZBc+FhzYrlG/U43+5UqaNX5ErHVC/CvgUA9QLHQvZf q3JiNOPIgf6IyMzgDu0HjgLkcY2+ X-Google-Smtp-Source: ABdhPJzFqEb+/crKKxV6pvwoOs/yUMV0gBVef5W2+nxlEKGfy32LqDSueQdqBdP1FBGPk+Mbd2gy6g== X-Received: by 2002:a63:4c48:: with SMTP id m8mr11141200pgl.290.1596793722364; Fri, 07 Aug 2020 02:48:42 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:a9c1:: with SMTP id b1ls3847732plr.0.gmail; Fri, 07 Aug 2020 02:48:42 -0700 (PDT) X-Received: by 2002:a17:90a:202c:: with SMTP id n41mr13091152pjc.126.1596793721938; Fri, 07 Aug 2020 02:48:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596793721; cv=none; d=google.com; s=arc-20160816; b=PWQVs0L7UyISWtakFPDIqsObX0iRegpeget7m/zQwER7+8TUinubaqrFMrdhRK12L4 acxvVh4Gse34AxnV+xtzumBo5GsmW32Xd3TXcQp/PAF+qudkePRED9jxSZAee1t0/AZ7 xaY7AIPH104INWpG92X5U7+T47Th1HS1kUL0rtsbtnjEz4smaILy0pmnNzfMeuFaHhc9 hEwtnnu1dGIAw3iZj1lhlUz+Hr/Ocbl9Q5TpCBM4ULrEWSLrakeVTkoAfVrqZjgVIFmO 9fdc0HSd+JcjhsBDPXsFZglBeO3BZ4jWaDlz3HfshIgI9RO6yzo4ljHfWd0DNMz1MEei WQaA== 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=JbWvohNnPXJo/dYG1vb/RrldXZGnizxAUyzSnzTjrPA=; b=IqufvLoCc0dxG249ROVrOwCNuHjTu+tTWc6Fso8AH1EDBCuujIMiAWHWQmn1ASjm93 TUbB+Zn+nl8+azF/pqLxD91OriDkNL8ylfjmSi6sHbw0kky40gOZ5AWcHEaa6aLoSi9k Oge9mqqiBoqPuhP8PxMPSWBMG+emTnVLteK7D0fqcy41DXHJbPEWW60Mgqw+/mXSjfp/ CPMmcX24o95zq+xI4lsvM5sL+4K7ONxUecZhzI+8F7gcCXe5nTPh9dWDUdWuZUlzok5Z 6QoubtfkScD+Sw0uofRLWDchQC5SswlrJx9aD9rrr6pvSG3xIjqLNVEj0oWS/14qCoSA ddlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SJ8+3B0u; 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 v18sor9508447pga.3.2020.08.07.02.48.41 for (Google Transport Security); Fri, 07 Aug 2020 02:48:41 -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:5b5d:: with SMTP id l29mr11110552pgm.206.1596793720666; Fri, 07 Aug 2020 02:48:40 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:6097:2d32:26bb:64fe]) by smtp.gmail.com with ESMTPSA id d65sm11412112pfc.97.2020.08.07.02.48.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Aug 2020 02:48:40 -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 v4 1/4] dt-bindings: arm: rockchip: Update ROCKPi 4 binding Date: Fri, 7 Aug 2020 15:18:23 +0530 Message-Id: <20200807094826.12019-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=SJ8+3B0u; 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 Acked-by: Rob Herring --- Changes for v4: - update binding to satisfy dt_binding_check. 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..7025d00c06cc 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: + - radxa,rockpi4a + - radxa,rockpi4b + - radxa,rockpi4c - const: radxa,rockpi4 - const: rockchip,rk3399 From patchwork Fri Aug 7 09:48:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1585 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8F1803F22D for ; Fri, 7 Aug 2020 11:48:47 +0200 (CEST) Received: by mail-pf1-f200.google.com with SMTP id a73sf1370225pfa.10 for ; Fri, 07 Aug 2020 02:48:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1596793725; cv=pass; d=google.com; s=arc-20160816; b=algqzISHs+wcFR/pFGggOsFgGqE2J0VkmQvdKVLV3VK+FyTrTcrdQU41yKnOGURyF0 RJ7cayPr6hD8P1CSGd6PFA7JkwF3D5SQX08WOD5uGNh2nEoV1TAcKGhzyvYB1OWaCkhq HDGMVec8pW3QZPKFF7M+CuMsfaI7VRFfo9X7Ad0vHjxeQnySShDplpKI90LtOtdGnqE8 g3zMR+kUSCD7IsBERECBWNy9XSq6u4nIwjdtYqnvdSIf+MopC9GO1Mk45dM4Ctu3CgC0 9V1zJylaMbY7ZrczlF3l9xH511TR8hBVVKj/GDPsH0zUKhAQuUEDHSqRwdV3o9+QIFJc ofZA== 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=3DHxQQOtnzBy3hkln2JDTQ5wGmYh7MKIRudweO8zL6E=; b=e5e+6gssbi9TmsBxwzYfHTdeh/YYBwh5Du+zALi9GiKTZLpbpiY4eTV4bRYI8149bM kLthJ1wOyiwgUXGMWm3nIbteHAA9AWB3yKbT9LxnAuOtBEoiCBHcqNpjAgVsAIIgjwXK dDXqGBb86FgqXHQBixYnPwlL+yUs+z/xAIPwiY7E26RNoqY5/u8qokf1bspoPhPWhAfc XZomlrU5nKZ7soskj9RDrx4nV8atoeHBSYyg3rxp81YIrkRJII1aV0xGfW3fHdiGF3xb MOYVZprml9/wHiN5XIbHsXuBRRjvxlSD8piebTXU2yzBbqu9oqhKlz0tzgWyPYURmIOZ ZOWw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=RGpxzowG; 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=3DHxQQOtnzBy3hkln2JDTQ5wGmYh7MKIRudweO8zL6E=; b=IE0qneLRztm1p9UT8QGtjT+e50EIwb86h2uFdpiy27+3URybfzINpKDFdi/nJg7qgh HKjVOBwEYCdPqtsuBCE6MHYxhD7mmK6vFgMVaaCS4VJ/J1PwxrbVCMv7Hcfdpwyz9HfC Ks6Vx7stM4as1gys2n+EB4Jo5qzlBsPxegU8M= 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=3DHxQQOtnzBy3hkln2JDTQ5wGmYh7MKIRudweO8zL6E=; b=H+V5rrNtAD2aRcm67Kyo0BVk8WmxDitxOMPvkiuVxsoYcHfKEk2E2S9WEGKzffHifz 3bwbWbrNBVThxl+3vwmVeLt2rUwuB0GfUtTBJiLJkLKKysnq+8fcJqnbI4zzUdG6aviU EyIfy6GB28O38+8ffqjvwKie6cpwgA+uXdVcab6FS1nNzWz1Bfbeb6rGP0YFq/aY/2Pd tbQrQdEpKIEFcWiAKw8hMtymB/3fgQOFAGwgEojKT641pvOTUzhQH7IGLiZIX9wkjRfE JeZfoZj7E7gYxpORHWqDa6qOIZZ9/o1kI4XyUNcdo/WpeWZdk1tUCXQlbGRw8ytTbZ9N 7VPA== X-Gm-Message-State: AOAM532wFw1tXssXZeN5XebwGrwZgVNx+KtaeC5ZLTMkbslbpcyMwCHA UDlVd39ysIApBeT2gxIVvfprxcoE X-Google-Smtp-Source: ABdhPJyr9KzuV4mSAJiHg6x7BfMalzUf8YX+alsSIvAxLvFlPpLDSuYW5g1Vu/I+UqJ8Zc1PwblyFg== X-Received: by 2002:a17:902:8609:: with SMTP id f9mr12055638plo.324.1596793725494; Fri, 07 Aug 2020 02:48:45 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:8cc7:: with SMTP id m190ls155992pfd.2.gmail; Fri, 07 Aug 2020 02:48:45 -0700 (PDT) X-Received: by 2002:a62:482:: with SMTP id 124mr8212879pfe.310.1596793725027; Fri, 07 Aug 2020 02:48:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596793725; cv=none; d=google.com; s=arc-20160816; b=xs7AhY1CuOkKANWfQlbJGT+n+qoRstkoUU8pkAkXF0iK3d5LxAPeM3dfvFuzVuwLvB zZ6+t2HUuS9qK12dpqaRMFVTvENGlqMnFT115BV4185u7j7BWRWk2QndCalwUowqB1HS mPDpkU+vJMx6K9ESN+F/y6pcj7aXQiCGpfufKVsvS2GcpxQq/L7PK+G3eL53VBLg8an1 U+jzYsiFYIYOa7zCmSdPMvbA4wB7PzaNKtuGbRkSD1rc2m/4cknZqGBT6q/x8+dY9226 rfCl/c6Gwm/QwFzhrD+RZ3vQ9fbWzmIvnXBwEY+7reNoa3RE6xxudtLjdplM6Eox2e9Y DWbw== 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=02o/duJFuPsa51rahLQuUkgKqOgWknYxohHZSpeLSFM=; b=dFEjERSJZtLzs9MHNX4arVqx8mgKulePt1z51cR4IXKg2hCB9HjKiOC4mSKPX2WUEO eADeFvky6MMRfPvvmlypQVZ3Btr+5D7EaQYeK6OISiyNXI1W46YJdfyuTkuxIt3YP5T3 903e0hhE1zfWlkQ5UgV5+nzi7olErBl6COtp6zuESE2nFGrutibC3KDEawyzal92Tq6i kDFjwzxUcno/TTJQwnMDN4ChEMvw+ZqswGUnvWaMf4mRuk9VPmWdCY5NtXGexD+h8wsj LjMokomFaSE0F1DZTz5FeOPNaFVsF+pQRbucXkHwzvZmVVvT4JSELVNi7vPwztmt5D+Y dSng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=RGpxzowG; 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 p125sor9777775pfp.94.2020.08.07.02.48.45 for (Google Transport Security); Fri, 07 Aug 2020 02:48:45 -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:a62:cfc1:: with SMTP id b184mr11610684pfg.262.1596793724650; Fri, 07 Aug 2020 02:48:44 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:6097:2d32:26bb:64fe]) by smtp.gmail.com with ESMTPSA id d65sm11412112pfc.97.2020.08.07.02.48.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Aug 2020 02:48:43 -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 v4 2/4] arm64: dts: rockchip: Mark rock-pi-4 as rock-pi-4a dts Date: Fri, 7 Aug 2020 15:18:24 +0530 Message-Id: <20200807094826.12019-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200807094826.12019-1-jagan@amarulasolutions.com> References: <20200807094826.12019-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=RGpxzowG; 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 v4, 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 Fri Aug 7 09:48:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1586 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 61E3B3F22D for ; Fri, 7 Aug 2020 11:48:51 +0200 (CEST) Received: by mail-pj1-f71.google.com with SMTP id oc8sf1182382pjb.4 for ; Fri, 07 Aug 2020 02:48:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1596793729; cv=pass; d=google.com; s=arc-20160816; b=zq/b234Nqcff/A9XE1oTz/MfegE7T4etYl0IvEFGytVj8th7g2zIHkk+aDyaYQoirV wDqxIieeKDa1vybECNwEqV97YCbvPKRkrEoZAJ+jqfHtsi8/f1sYzPvrJyq+oAyYy40l 7xx4zGZvwqMGdbzf/6vTpgySv5Sf1/6rlqIWy3Ov8CMqQexx3a6ywBNhpBfNNosNz0Ce APOUnKrgzt+EZ5yihbuivtu0Jc1r+0wfOXrlO0VAgsIWLaxTpXtmujarmhV3b4Z//lVf mBFoBNfsWXFMgX7slgy71xjyIR/+GfHizpN1h73oECCzpb5BKM2x/xF885g4rzoPJ8HM i9uw== 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=eiSMxer15CCxuBHBP2aZeno9OEhkLDl9J2nq8qRTNds=; b=EhDxoQIEG3vd2yk8ldhqTFUSyR4SxxIQdvwTFNFTzKkaEnEMwnzDhEsvuT2NlxJ6G7 hlG8AE6bdF4ocR3empTR/xdmzCaFjWJv0jBYnZhTRKMwZGdKOWMQA+vDvW12adZnzb4S VAmst/mx9fJKtN9SHMhUQwjm2vNGV6nuLGvPiRulvquxnxhCyz6YUMonw2WMh7bgh42F YuR8qunMwyUZ4zHRhefAeahJf89Y39Y3WjQs/xM5g2Qab1yl6++DFFgH5SfUUfoe1k5a eN45zjXQvF5kGkkoR/34Mt90EaTJ0CqEJXQNEsQO5QtKLeIhffzoxKBlKiORZ42T4jdf QWGg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZJhlgW2q; 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=eiSMxer15CCxuBHBP2aZeno9OEhkLDl9J2nq8qRTNds=; b=fAcgmVDqKmO4i2UjQ9CcZHQSUSB4H6wHno6GIYCAjoEBfMdpA53vh6RyHRv41uCbG6 E8+bwmdFcfTiS6IHtSHkVjspAlqOSw6MJAJmeVFVjNtN2QjnxKjFSYr4vo2ambiARFCl 9euc/fmYrQD3LZO4tPQsQJ0x/jGL1aD5fsyxg= 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=eiSMxer15CCxuBHBP2aZeno9OEhkLDl9J2nq8qRTNds=; b=qqoFmPGeuNaSFPd8UvoiLxm4HTxn9H0hpB6o4gMbVIrf53lPFNVdM6UMfGjGKG8AJB maUHjrbYYEUglD7++TOwD5eoOy2ydt6eFTKsejutH1ubP2Q1HWOjX+XDUGGyEMNT+jCr 2EPOmMIos/PetR/Qyl2jkysC+nkdpKiwfCB7sWgVLPq2LnRogH4FuSH0RdP8Bo/fW3Li 8XVNjirDWPT2Xx763JygGK1kyKkI2bdDe+2uvIrbkhl4AdA9Yqf8eUK+Qr7SUHuUn646 I3b4E+W1lGKRNL1gkdCzObMP+Lc7DO5oamkj9ThedPzvhEzleeVYUd5qMop/UkQin1D1 cKGQ== X-Gm-Message-State: AOAM532V/DWYvOvV2quRYwAVbqm5H3As2PuIfbMkA9mxXuXwUuaPMdPv 4owp/zk6tqQREtRnK4pdnSjHpmW2 X-Google-Smtp-Source: ABdhPJw4EmmMgHrmf+Qgi5bFFrA2AtDv35JRahZ/pC+aozLUY4CwtyEpePl6zqMDpyvzgviImPhfBQ== X-Received: by 2002:a63:7a06:: with SMTP id v6mr10821038pgc.441.1596793729725; Fri, 07 Aug 2020 02:48:49 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:525b:: with SMTP id s27ls2389827pgl.11.gmail; Fri, 07 Aug 2020 02:48:49 -0700 (PDT) X-Received: by 2002:a63:31c6:: with SMTP id x189mr10732718pgx.182.1596793729271; Fri, 07 Aug 2020 02:48:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596793729; cv=none; d=google.com; s=arc-20160816; b=xKNuMrhKcwdX9d90ddSfcBqSQwgIFv+5n/LERCXLJW+u4Y51Jj+ft3U0Fn2DDcv6g3 iylCOdnlS9rQ3rTVR55TSx0aEYTQLVEEtCOt/KekT6j3s1jZ+wMjgiP0vl92dLdvpHSs H9kg46APNu5gzl+JZ3BG+iqqTCG03uorS7JUCf66zfiDG0JOydsrQcyI/b/kNY+niXww cwcYhoYaZV3mbufLafxUXTTtx3qfwVbg9jwfJ8DoB53+TqSMdIuuzaVttpmusYWuNhiD E8wS6iqGHeafHjsTXgNe4p+6IyYRHkpR8OGrrc4rSGk57q/Uvw/C8eHHfatahFVicanP C8LQ== 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=xpgEOhtDJgg+JHNnGT0zB8AHGVroP0sa6vGC4+WgrY0=; b=NblDv4N3R+uaG/4YmFJpp3zMg1qb4E5y+/KOt2OZAlLvbaRG3ujdZWAscVr19oSX/v RDaMVxaims2wAFIZRHAlofhMlHqtmcgnbWmpgfPsF3hv8JJksEM3Nt8/xTKCr5Xc6VBs zHlICW5c5OvuHwzuBA1iflxWwr+KB6inwTSQIpz5r3J1AKoG8vuuKtX2fboOq1ElMIzB jkBdwqMOLNlV/3RocGQBZ7LJHa/3K9bg72pKmerdPghsm07ihcsY+clMq1QPVIlzj8T/ 3sluZ678RhJJkX8VEBdpO02/DBEmwqjDjC+6dwmQnYF0TIKHt99917Pa5lzDy5RJcWA5 N3qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZJhlgW2q; 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 mg18sor9728774pjb.7.2020.08.07.02.48.49 for (Google Transport Security); Fri, 07 Aug 2020 02:48:49 -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:2110:: with SMTP id a16mr12756782pje.104.1596793728986; Fri, 07 Aug 2020 02:48:48 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:6097:2d32:26bb:64fe]) by smtp.gmail.com with ESMTPSA id d65sm11412112pfc.97.2020.08.07.02.48.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Aug 2020 02:48:48 -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 v4 3/4] arm64: dts: rockchip: Add Radxa ROCK Pi 4B support Date: Fri, 7 Aug 2020 15:18:25 +0530 Message-Id: <20200807094826.12019-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200807094826.12019-1-jagan@amarulasolutions.com> References: <20200807094826.12019-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=ZJhlgW2q; 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 v4, 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 Fri Aug 7 09:48:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1587 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8DDC43F22D for ; Fri, 7 Aug 2020 11:48:55 +0200 (CEST) Received: by mail-pg1-f197.google.com with SMTP id e4sf1192573pgv.7 for ; Fri, 07 Aug 2020 02:48:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1596793734; cv=pass; d=google.com; s=arc-20160816; b=vrNJMcN+wubMNqus/3VoSY5IhKMo6ccgfRilVtb/D3SMppg4gbLx5e5+CrDJPnnSBR iAQtWJnah8HoHnAcSOOczSCRZPRDgPwjJ4EwDLAzQZKp7xDn+pNnjQHWaiKutguQ1yVw 5r3Xh2f1R5uv2hsL00nbHBEzRXahwGJKVU7rD+2OSKSO2mlmhu4Vtw07vudH5LKoik95 U4cOEzkg7jz64DpmB0XkElJw18xG37qSY3UGsdIjj3IK2U50lWy4rYT8iyWdjuiHVq2Z Vv6P4QTm+G0R4KQU9M1HDF/8A+kz9h3GesPhWnFeFIYSIUT1gnRRzzhh3JRynYQ5XU6h mXDw== 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=2J7FKHX0k9PbW4ZzodoLblxrGBMvO1opwvJCZraMSJc=; b=yRP+ZJRX4JtXa74lI847vFS3IYT3L6/3fj0cJRiaJBz/NXhp9W6j1eNfWSl7MNFjcJ Q9/pCpmdtSntRWOr86xOPFJ0Wp81P0OGf3N0Q/UxUDpQkuUdGtl9293pL/7qxmXmPXK+ yRd5o4CawGS3Sjn2HdQ2j+9mntChbMfhbz/qxedXTSDvJ7L2FEhaj6x9SFSzywtYReT/ ZTaMK7uxfdBlsm8atV5O6eKm4496w7if1etw36tCK+1ZWF6mskHf1bqzcRrN4btnmKUI mdmmHyfuVCbizTigpQzqYf7Jr5h0VqNoNd4s0l89wV2hgGH6N0b6ix0v8myms9t7K4a6 5byw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FnPFmg0+; 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=2J7FKHX0k9PbW4ZzodoLblxrGBMvO1opwvJCZraMSJc=; b=lwFpJbcu1lK9MMsiDAsJTdc17UmptQCjo00r6oiGinQ2qGCM+mkWdV4No0SwaOjh/p SAlknp118T4e8Ca5o0JR0hcunXQ7xHgV1ZR+xfkHELe3mpDkgtopN4nAERuHsonmCYd9 8sTCkODm83ew8I63dFD/x9/iyN8pjv432XkDg= 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=2J7FKHX0k9PbW4ZzodoLblxrGBMvO1opwvJCZraMSJc=; b=SObqix+oE5OG7jVcoRjdZoTdLuV3RrbKXtNjMUi7CD09QDdtknbFkASPPL8x1R7UKY pqvFJOZ30VMVjqs56Rie+g/aO7KebJxXl0dSWcynNSMclUBpiW6mWPPGG8G2KDfmtX3S OLgTKE24h0jibaV7q0uUcTE9XDDWPrtDS4xhufDBVqt7OCV5Oja3yDUMmyrPl1uxAcuc Zmwq0wBDgTgMq5NiJqw7PBplR+/lhZsJHzUsiTQQQQsirjvm/3yQmvJ4+lYyMBmLhoA0 TEsGWOW3c+3Olnvx6+mqzTfOa7vRLoUgF1GwlYAst7Gb5jhbmSKBKLY1TpbGDkomFo6c +EmA== X-Gm-Message-State: AOAM530Qr3vqhp3Xp/l/W9uT25HVaMYka6KeQDbdaYEed1IJ+BVHttSp u6ljGL3spWvfI17/flYBn7OQ810U X-Google-Smtp-Source: ABdhPJyrNrQAQA2MJy02R570e/Epts7wTSI6fP1LEWP8LtKMVZl5Ll02pg+hct/yXQs925EFQlJxvw== X-Received: by 2002:a17:90a:c291:: with SMTP id f17mr12849278pjt.92.1596793734096; Fri, 07 Aug 2020 02:48:54 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:6d86:: with SMTP id i128ls2390965pgc.6.gmail; Fri, 07 Aug 2020 02:48:53 -0700 (PDT) X-Received: by 2002:a63:b709:: with SMTP id t9mr10734653pgf.376.1596793733606; Fri, 07 Aug 2020 02:48:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596793733; cv=none; d=google.com; s=arc-20160816; b=0oqaOhXKgFwf7krQIyUFUI0/X2TRujNFsNhw/MMhrJRxrUuyNgHcDX1x5TnttWFQs+ iez+q014Q0jkeALGtS4M1gSyEzomIyWLKIEimhK0dZcZTFbHYI8MuqFC0neavPZ7uDPC XT4r/2PegoO5aovTeQAX2oUddxU6ZWi0QDq/r9g+eNW2pwF/rYU68NPVeFYcy5XVjKhT DY/gTyQTsvDCdy5E7OT/o6vwokow30b2eKVew2UA92ijWBgYxdQccGHq9dJc1icflNaY VeKBJq19iv1QJ7gfySGqXgD+BkVLMzyUXUmxAeJA3gP+x0gfV/TMTOpCaRTefix0IVjm 6o8A== 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=Qtqjn9bdXGvUfpcD1HWzU/py18DJffCjiF+w/RFjz2g=; b=SNnHM1Vy/Cy1/5Z/MgdE/ETBqqB3sGYOnUCHkzNt5V+7RlSbxYtuEy5yuT1b4/V4RI 9vuYoquXDTdEonqNLNHAFoTX7bM6oIg1PuEUQtr8QHwHc89oav9rTQF6Y0az0wRBG7qe 5S8kJf1dsWZfe4l1mvKkAlJi65TkxSlURzLl6i95t84zlEy8SnJ9qz5oZgNEAiuhiG5y YPz+TQ9noGQgu72lClDsgLg+N96Tb3iZGNcfvYUSFMSZ6mxWoopFXPO7J9riUKrdNJ2O beD5kCHlOsDamMokaq5PTg2VyMETlZQcIAn5yqkYR+U3GDefzLT5Kpx9gXUev1rt0uVB a6pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FnPFmg0+; 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 m126sor9790233pfb.9.2020.08.07.02.48.53 for (Google Transport Security); Fri, 07 Aug 2020 02:48:53 -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:a62:7ac2:: with SMTP id v185mr12567409pfc.277.1596793733318; Fri, 07 Aug 2020 02:48:53 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:6097:2d32:26bb:64fe]) by smtp.gmail.com with ESMTPSA id d65sm11412112pfc.97.2020.08.07.02.48.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Aug 2020 02:48:52 -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 v4 4/4] arm64: dts: rockchip: Add Radxa ROCK Pi 4C support Date: Fri, 7 Aug 2020 15:18:26 +0530 Message-Id: <20200807094826.12019-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200807094826.12019-1-jagan@amarulasolutions.com> References: <20200807094826.12019-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=FnPFmg0+; 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 v4, 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>; +};