From patchwork Thu Nov 21 14:14:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 912 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 D542D3F069 for ; Thu, 21 Nov 2019 15:15:23 +0100 (CET) Received: by mail-pl1-f200.google.com with SMTP id c2sf1779365plz.16 for ; Thu, 21 Nov 2019 06:15:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1574345722; cv=pass; d=google.com; s=arc-20160816; b=CBC4hlMEMYQMJunyR4GZgLoQURIQr0SbaDLTt3H6UZQLZmUO7s1gUpLmWKDA6vz57r zN1PLpsi6Pbh2IkzD0tPoHpHGPR2LoeUDMb5dJl0GpIWUb01ETDGcX0Eb/sRfcl2QbNs zpTHsyXzIkCdvbSiaEUN7Iz+WiSr1+iRboqW+TIuZGAhicc61vH+B8t94PFYDwj6jqeV WoblBkNbUU0p5aMumghIDRQHBXOfDJlbc0FiSKQV63szqNkEkeKQNcFEfeq8PNvGS6XR Sn6gybTy1Xij1mB2bEDwuna/1JGB6/ux5qZXdGyJqKqRfF2mofIB1xp+JsPIpqGR3iI6 /00w== 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=X+sLaWcHZV79RvR94DiAp/lbKS2KCV9DYLe4JV1xJ/A=; b=kbx+VGJvI4zFiHfyeLD4+AZ+1ZpnqddJ9TUYVwHh3epm8g+4YzB3NLiBijCLapz2qz 7xiSs/nWtDyqjLrknpyOBeeEFd9xi0ygmwmAQaeKEXEyLRcBaDyvJ38WIz6kutfAiatV bQGtdaNJdNOif3m7zVzUTbYtZR85eHqU+XHgyP+W96YQoMZk2M2D2jyPtrDRgAJbyks7 IK0GX6jEB00b1DJNWXX0fZFVX7679tgc5IFI3qDpd9+r3HVorLgUiym7OM2FpYiDGOty gvpu3C9OXSl6mx+zDeuTnkSdLuytuBA9aACyTAK6/8/DVL4SCoWApbt1B5ctrCaNXrrk kfXA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="J/G0CEgF"; 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=X+sLaWcHZV79RvR94DiAp/lbKS2KCV9DYLe4JV1xJ/A=; b=BqflQHvfiIivyxau9Qp4RmtObRi63X3mG0ok1R9UXJY7D4do4chyL7U3k6W8bztvVE gIv4RXRsONdLt+KbRz0EqY9EkH2+vX0XoliPHwhu5WlWA4nU3qdAYFXsF1E8QieyYAcz MYg85eBIJO8VN/12BP5ri9OFOFx9659Z+1LE0= 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=X+sLaWcHZV79RvR94DiAp/lbKS2KCV9DYLe4JV1xJ/A=; b=SBcGOSm/ik/2W3/8+mxw3olYlmlGRkCs2PIIsodUA8iQFWanh4irw6CUk+wqabXsK2 jyqEhoRTmHaNznf04/VsYDBo7KbXcpMINtyiWoHUvupZ4izu/2l9edoXzfRZO6fti9v1 1Bc+kI2OrfpPC8SWx0IHCaNadClWixoXkpgMNZNIHz1fY0cU/UtnwS6zsmpOPEMbCNYk Alx8f3G9//cxVInX43Zpf4vZtxSYAmLkuqBpFpVq4ktu27IHs0N+0xDUutni/AM3vT5g Pc7qez8SKbOOviWPp0ZqJmc6jwxprjDFJS/sKPMBxLxDgwa1QJTKcQit1Qen5/hECmtp gB1A== X-Gm-Message-State: APjAAAW0etHj3mU8/XtahGcUVdsNUYZ/04JPna3Lt6JG3KxwMvV9M3OE /9MohFFuahQKAZ4BM2gdKI1ZF5iV X-Google-Smtp-Source: APXvYqyTrwaa2GEgFg3UfjuAPm+Sr6Vjh96ilBj3LxioiRcuGlvnfIz57T7yEDDa18QbNwR6Z5Wftw== X-Received: by 2002:a17:90a:3746:: with SMTP id u64mr11650428pjb.4.1574345722639; Thu, 21 Nov 2019 06:15:22 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:cb98:: with SMTP id a24ls1471339pju.4.canary-gmail; Thu, 21 Nov 2019 06:15:22 -0800 (PST) X-Received: by 2002:a17:902:d205:: with SMTP id t5mr2929069ply.31.1574345722047; Thu, 21 Nov 2019 06:15:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574345722; cv=none; d=google.com; s=arc-20160816; b=yogBzOrmzHijo6kHwV0ta/lH/+4lhGhRfx2weN4CZORIWGjNvBq3p5xZ4Y0oBL1Zbz kqaHvlxEh7S4EmgZtnYGLZpwj+TG9qiKCypfo+5Z06u5yPr/cMJq7I08Wj8VbOgU1ZOs WQc7wYR811FsXPRy7orf5zDqlEo7rRx7YxOmReyeOcBSfxa3SwiXWgFI9agwj2KopxX5 kE/Fd8ywzS/62kl6u/Tsl+6I/gp0v9aK414jomgVFwz9QKhNV0upkbaU1FQcUHXjIZ5m NufPne1jXx5Rw6Ui96YGSVDV0TctHnbGfS4cDiSIRLnTiJ70E6BVciMty9vHz/L6pVpO V1QQ== 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=28NKNs8dkxykNhTWIYrgk/H7+AdKWGipA1r9x9pF6H4=; b=z9Q/QrYWR9S91gj5V/w9K1tVhP22rl8jO272esHFRjElTEcYo+1HEpqHikdKYffkQY NSFZ0Ipv5QuUEytdLN99DYHPIUCwhMb67y27B+S49HZhZI0afL2Egbt/Zk3ENQIG1yNd Pst0ZCpAGjtYaKCrWncX5MnCyIgMlJFJ1yHOy63aE8c7ygPMRDy4dvTe9uxrs0e2PM/b 1YChakqhD+zzNGLj3kA/uYM6k97VIGYaWYIi2s+gPE1SSexvI8rf6pYjfIkknxNLQC/m 6qLqG64H7cdCJhcJfMJXvAMxgY+GTAh+NgcKSrJR+1TqiYtf2ZHunCCJ++CVECOHb28m pcww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="J/G0CEgF"; 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 ay9sor3055229plb.23.2019.11.21.06.15.22 for (Google Transport Security); Thu, 21 Nov 2019 06:15:22 -0800 (PST) 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:902:bb83:: with SMTP id m3mr8695155pls.94.1574345721637; Thu, 21 Nov 2019 06:15:21 -0800 (PST) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id w138sm4072304pfc.68.2019.11.21.06.15.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Nov 2019 06:15:20 -0800 (PST) From: Jagan Teki To: Heiko Stuebner , Rob Herring , Mark Rutland Cc: Manivannan Sadhasivam , Akash Gajjar , Tom Cubie , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 4/5] ARM: dts: rockchip: Add Radxa Dalang Carrier board Date: Thu, 21 Nov 2019 19:44:44 +0530 Message-Id: <20191121141445.28712-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191121141445.28712-1-jagan@amarulasolutions.com> References: <20191121141445.28712-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="J/G0CEgF"; 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: , Carrier board often referred as baseboard. For making complete SBC or any other industrial boards, these carrier boards will used with associated SOMs. Radxa has Dalang carrier board which supports on board peripherals, ports like USB-2.0, USB-3.0, HDMI, MIPI DSI/CSI, eDP, Ethernet, WiFi, PCIe, USB-C, 40-Pin GPIO header and etc. Right now Dalang carrier board is using with two variants SBC, like Rock Pi N10 => VMARC RK3399Por SOM + Dalang carrier board Rock Pi N8 => VMARC RK3288 SOM + Dalang carrier board(+codec) So add this carrier board dtsi as a separate file in ARM directory, so-that the same can reuse it in both rk3288, rk3399pro variants of Rockchip SOMs. Signed-off-by: Jagan Teki --- Changes for v2: - use dalang carrier board as product name - s/rockchip-radxa-carrierboard.dtsi/rockchip-radxa-dalang-carrier.dtsi .../dts/rockchip-radxa-dalang-carrier.dtsi | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 arch/arm/boot/dts/rockchip-radxa-dalang-carrier.dtsi diff --git a/arch/arm/boot/dts/rockchip-radxa-dalang-carrier.dtsi b/arch/arm/boot/dts/rockchip-radxa-dalang-carrier.dtsi new file mode 100644 index 000000000000..df3712aedf8a --- /dev/null +++ b/arch/arm/boot/dts/rockchip-radxa-dalang-carrier.dtsi @@ -0,0 +1,81 @@ +// 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) + */ + +#include + +/ { + chosen { + stdout-path = "serial2:1500000n8"; + }; +}; + +&gmac { + status = "okay"; +}; + +&i2c1 { + status = "okay"; + i2c-scl-rising-time-ns = <140>; + i2c-scl-falling-time-ns = <30>; +}; + +&i2c2 { + status = "okay"; + clock-frequency = <400000>; + + hym8563: hym8563@51 { + compatible = "haoyu,hym8563"; + reg = <0x51>; + #clock-cells = <0>; + clock-frequency = <32768>; + clock-output-names = "hym8563"; + pinctrl-names = "default"; + pinctrl-0 = <&hym8563_int>; + interrupt-parent = <&gpio4>; + interrupts = <30 IRQ_TYPE_LEVEL_LOW>; + }; +}; + +&pwm0 { + status = "okay"; +}; + +&pwm2 { + status = "okay"; +}; + +&sdmmc { + bus-width = <4>; + cap-mmc-highspeed; + cap-sd-highspeed; + cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>; + disable-wp; + vqmmc-supply = <&vccio_sd>; + max-frequency = <150000000>; + pinctrl-names = "default"; + pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>; + status = "okay"; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_xfer &uart0_cts>; + status = "okay"; +}; + +&uart2 { + status = "okay"; +}; + +&pinctrl { + hym8563 { + hym8563_int: hym8563-int { + rockchip,pins = + <4 RK_PD6 0 &pcfg_pull_up>; + }; + }; +};