From patchwork Wed Jun 10 10:36:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1358 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 374143F066 for ; Wed, 10 Jun 2020 12:37:30 +0200 (CEST) Received: by mail-pj1-f69.google.com with SMTP id l62sf1456766pje.9 for ; Wed, 10 Jun 2020 03:37:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1591785449; cv=pass; d=google.com; s=arc-20160816; b=DVEBw6zy+n/wSBzinrNHkKpTsq8EFzxYJpAx6UtmHPxlxKwCDK3sFN86BPEGS4Ppz9 ZlMt6yfwIPgKots3cETtVJgFg8IA88GabAOGsFA0bmBdVoowkWH6uh08gcvpLcMh5n00 E1wLcPyawEhouHg/bECdCkE+J7jW9JhtB1lDSuyT+UcU32f8IWY3OSyPkQ+CHQs9CFta oJBTcigNoiM5hhDjmHDGpeahShcC0xZDmvI7EUiKvPKboHQJS9D/AJfuS3DXnCr9MIWI 9jxBne9h4HyUPi6/XKqutOW2LkBjtORxqx1CpHA6S1Ohm/2bPSyk4yJW4nmB3H/zqJpg yV1w== 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=m4TCyvqTIim6Y2rV+iD6DUiUvoghNVzbFQPdOnlmCsw=; b=0CRU9Zy9mgZLmfqmBI0s1XoituhM+QukynJ5cAHhRFI1sjUhGDTKcjMxAqrCSXBnsw 3Fm2E8nfxls/2dp3NWlMaQc4k+TdJJoBrfb8RyC+jpcMB1ef3rZFOXCeqi3VRLIjD0Ps 0ihUwPfV/E/yAXHUNpqvrR7IVhCeBeyyhDwBL2sup6RAccpl7TFOs9iL34ocfRaRkbzk J9bnSd/V3AWDZxkvq6KeRBijpfp01ZcNs45EM9VAmWwWgiiVvizYDz/dwXfrA+yuoVjM kOeytxKTgTwsPLKtmcbfbQEqOHMwm0mpEvsaddY7oiM5VlvzaLZSTUzIshYqFBwYtbFx jBbQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=rTCjh+Hf; 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=m4TCyvqTIim6Y2rV+iD6DUiUvoghNVzbFQPdOnlmCsw=; b=VSqqN1ujlvlDSb+X2tv/uYpycFOwoE0pVmUjxISAdVNp5qQ/n3obvpAzc0C8DIYV17 /iAC//GE3dVYUr5rJ0HjdeM19li4tkivBgerNiM3NyqffdcjXmvNIuNlCmAk8LfFQXaw yAfOUhzrMjD8b22xSh+kZTfFnmEi900yKZrgk= 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=m4TCyvqTIim6Y2rV+iD6DUiUvoghNVzbFQPdOnlmCsw=; b=Y1SPyMdbqXIrYrAH6z+foUe7+KY0L4ZpXsjKR02U4wDCAjdSWECatVAMU2okPSmq42 811f3eQ2Zy26aZahXmzRJqKlyn1vIffdZFpfOrKySNl08qjAtsU7mYlWgKUQYJebTDJv bUJsKiFMn1DkeNwe3FOWGlBiX+3W470EQmpZBOGlQXDNQ7yFqLkF1ou7/6IEvcinoosR 06PK+oC0zQ7gH+M6MI3n0GC3rIKFRanhsZm4vO4NChBWeWwB4QQIZemR5P7onp0vnriL GMMgQUtPLDcuiKcfc4aINhy7aU0bopDMqHa+nCgCxlRr9M3BORl2MV6o3dLD6JXibeBZ npQw== X-Gm-Message-State: AOAM530duyXtZ3ISSk7xl6P7CHdBT7B7c41Ac13IyvRy0yDC+75Vyy12 svlwmqu7yRUlpbOBTnXLfPCwbYVY X-Google-Smtp-Source: ABdhPJxyXac7+peZa8F5vOTwy8zewmnr6ozQwG1JpPDIwo93Kl5G00cmWujyLOP4rS2ytOfs8Qc6kQ== X-Received: by 2002:a65:6801:: with SMTP id l1mr2110785pgt.73.1591785448931; Wed, 10 Jun 2020 03:37:28 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:3c1:: with SMTP id 184ls6306932pgd.11.gmail; Wed, 10 Jun 2020 03:37:28 -0700 (PDT) X-Received: by 2002:a63:63c6:: with SMTP id x189mr2122936pgb.36.1591785448447; Wed, 10 Jun 2020 03:37:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591785448; cv=none; d=google.com; s=arc-20160816; b=bwW4UqcSM2iYiPV18n2QsG/ra2NIMSK9OhWzb+jSGt76AbCPVcIBDHPM7ndybrd4Kk yWuZvDop5iPYAhsxbI39LJ9n/Rky6bETwI5FCcAjzWSDI+Nl1P0TTN7G3rRcDCC3k2Or 9zEfDi9rOL64qSsNGoYc1WyBoSPNyupvqWF7WVL2fg/qTIx12fmcN6TAfUavPmAVuEvc nV4F3OigcAeAWb6sozo9MBgtZU0LhZ4FCnBbt6sxUAMMNPrNoPhl5DaAwTOWP/qwjGFV 0iBWodIxMo2gvoNtIRp2M2+Q8ycpT6xVDEwHiV5FQ76iCsMsXM5yJW9qUlHW5v1+ZTZ6 ez9w== 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=eyJ3QtIXYHjXan2xSx8t9mjX3yXNm5zgQujvAJEqQlc=; b=C4LQ0F/ygpg7ohbWJZtno/a/6Nz2//tdZQa7HJa0m1kDXxdG/gzcODU2IAMOr/UI/V o8pbGnGCJ3M/yE0q1Ja2ic1qq0/to0veOaMvc/nthOdEABx6j9rb4/ACnL45CFrdPZ56 S0fCl9t1f1e1ACceysqLKzXSjwE7G1/eTLrranKrWCLZQ9ofSPdcSV1QSe5OvR3R6f0O olZ0OU8LbLN8FE092r2Adeq+TMybC3f3B9sYz1XU9xNEG8zqlheaOySLwOZUTuKk0tlW aAuYayI0Jj3+Qf62hUpw4C5P14UETs6DwP7mHGnvYWS7Qi3nFSVXd5gQdD2VRwUPIndv ahaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=rTCjh+Hf; 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 23sor2591879pgx.57.2020.06.10.03.37.28 for (Google Transport Security); Wed, 10 Jun 2020 03:37: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:a63:550d:: with SMTP id j13mr2112855pgb.139.1591785448097; Wed, 10 Jun 2020 03:37:28 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:9daa:1b72:7bd0:50df]) by smtp.gmail.com with ESMTPSA id x191sm12454754pfd.37.2020.06.10.03.37.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 03:37:27 -0700 (PDT) From: Jagan Teki To: Kever Yang , Philipp Tomsich , Simon Glass Cc: Tom Cubie , Suniel Mahesh , U-Boot-Denx , linux-rockchip@lists.infradead.org, linux-amarula , Jagan Teki Subject: [PATCH 3/4] ARM: dts: rockchip: Sync v5.7-rc1 Radxa Dalang Carrier Date: Wed, 10 Jun 2020 16:06:57 +0530 Message-Id: <20200610103658.96678-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200610103658.96678-1-jagan@amarulasolutions.com> References: <20200610103658.96678-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=rTCjh+Hf; 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 be 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 used with two SBC-variants: 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. Sync this dtsi from linux-next v5.7-rc1. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- .../dts/rockchip-radxa-dalang-carrier.dtsi | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 arch/arm/dts/rockchip-radxa-dalang-carrier.dtsi diff --git a/arch/arm/dts/rockchip-radxa-dalang-carrier.dtsi b/arch/arm/dts/rockchip-radxa-dalang-carrier.dtsi new file mode 100644 index 0000000000..df3712aedf --- /dev/null +++ b/arch/arm/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>; + }; + }; +};