From patchwork Mon May 15 13:04:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 683751 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B2BAFC7EE26 for ; Mon, 15 May 2023 13:04:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242090AbjEONEb (ORCPT ); Mon, 15 May 2023 09:04:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242064AbjEONEa (ORCPT ); Mon, 15 May 2023 09:04:30 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E87A71999 for ; Mon, 15 May 2023 06:04:28 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2acb6571922so112762801fa.0 for ; Mon, 15 May 2023 06:04:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684155867; x=1686747867; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=froMVBkhiao5KfF7Z0DAyeGNQcRj1djapSOzel/BeiI=; b=UTgfb+pN1vt2XTPKYjGSrjBbDflYC9SLePW4nNvYfLJCzF6uZ8flJ2KKHpWKdnHi3J yN3xR5/r5I6DYLkJynIa0zTX10FTivNY0BkqtacNzD7/tZkZo5q13+kU+NHIQf6GxXNO r2nkdy7957B4LlEpd9J+vC/o2oZU0NH/5AS/jHvJl5nmJ3YcNfbp35VJNdXf4PMcPbt/ 5nsGYfnioYKEq246b8oCIKEoYV6HACcXbNkmsQYFY8T57mYYnqWuXLMv43LBdPBiGmDO eJ88ElaRiRtMb6wtIxngm+wpZNzh9thia3TI59MUhB2dmclof/I28vDHpHYoJXG4CXSL 0uqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684155867; x=1686747867; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=froMVBkhiao5KfF7Z0DAyeGNQcRj1djapSOzel/BeiI=; b=FjoZz4XVoRc81LMiKap47WjYi1wKBu7V8OLy+Ul0RQOMG2Rd+RdwXHhAbcmVlbcE61 UisTLrUUtQoiHREhnkswg23TmL0ZEFV6kvgY+MfCsKVzZuTmuRPfR8goyV9X3negYVkn 5LFVKP+9WOJnuloiJ8oDD2uPzQz1XWHlmKX3sn2cMvblTkUYd5fdK8x0hRksALvggfN/ yBbcdXTLRKa82FWr8zwQha2RCv4ACANj75V3MezlV1tdUG1b4aHsmMRfvs/aTK5/qKY1 Zy6V3lR7zsW8lBf54FjgUhVivaIBUVJKEDQBKQ17SOUl0Hgij8WhxBskrMDrvQDaDn42 RCig== X-Gm-Message-State: AC+VfDzN3IV82zcsFc8/VXY3oBpZekHBHQ+/qrIFZINiFpAEAFSjQKjl cpXMTxttVNT+Nxo21F2vGbXfXQ== X-Google-Smtp-Source: ACHHUZ5wGmFoVZqgFVjB9Wm7ewnQw7HjXRa9sG96Tj33yUU+bQ7tscGFpGKlrOe5/NMzIrgh2NaqjQ== X-Received: by 2002:a05:6512:2181:b0:4e8:4a21:9c92 with SMTP id b1-20020a056512218100b004e84a219c92mr6447193lft.4.1684155867126; Mon, 15 May 2023 06:04:27 -0700 (PDT) Received: from [192.168.1.101] (abxi58.neoplus.adsl.tpnet.pl. [83.9.2.58]) by smtp.gmail.com with ESMTPSA id x27-20020ac25ddb000000b004f37a64c90asm785823lfq.303.2023.05.15.06.04.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 06:04:26 -0700 (PDT) From: Konrad Dybcio Date: Mon, 15 May 2023 15:04:12 +0200 Subject: [PATCH 1/5] arm64: dts: qcom: qrb4210-rb2: Describe fixed regulators MIME-Version: 1.0 Message-Id: <20230515-topic-rb2-bits-v1-1-a52d154a639d@linaro.org> References: <20230515-topic-rb2-bits-v1-0-a52d154a639d@linaro.org> In-Reply-To: <20230515-topic-rb2-bits-v1-0-a52d154a639d@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bhupesh Sharma Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1684155864; l=3058; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=GScLO8rtCKVnaqomkuQBjV5ndf+TerTFxlAHtwKZGT8=; b=m+UhjhC7gCcc0/ESEOtUDg6b5jWWuamr9Tb+sNQJh99qnPLNYchXIFGZPeIXYRBYja0LEUJho 1dcF7U1ce5nDtpp8ka/lfEj+ibRfbf019F/5wF5fXaK4gq3AcYoHQeT X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The board hosts a whole lot of fixed regulators. Describe them. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 77 +++++++++++++++++++++++++++++++- 1 file changed, 76 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts index 7843495b0076..80c6b59c8ff6 100644 --- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts +++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts @@ -19,11 +19,86 @@ chosen { stdout-path = "serial0:115200n8"; }; - vph_pwr: vph-pwr-regulator { + vreg_hdmi_out_1p2: regulator-hdmi-out-1p2 { + compatible = "regulator-fixed"; + regulator-name = "VREG_HDMI_OUT_1P2"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + vin-supply = <&vdc_1v2>; + regulator-always-on; + regulator-boot-on; + }; + + lt9611_3v3: regulator-lt9611-3v3 { + compatible = "regulator-fixed"; + regulator-name = "LT9611_3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vdc_3v3>; + regulator-always-on; + regulator-boot-on; + }; + + /* Main barrel jack input */ + vdc_12v: regulator-vdc-12v { + compatible = "regulator-fixed"; + regulator-name = "DC_12V"; + regulator-min-microvolt = <12000000>; + regulator-max-microvolt = <12000000>; + regulator-always-on; + regulator-boot-on; + }; + + /* 1.2V supply stepped down from the barrel jack input */ + vdc_1v2: regulator-vdc-1v2 { + compatible = "regulator-fixed"; + regulator-name = "VDC_1V2"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + vin-supply = <&vdc_12v>; + regulator-always-on; + regulator-boot-on; + }; + + /* 3.3V supply stepped down from the barrel jack input */ + vdc_3v3: regulator-vdc-3v3 { + compatible = "regulator-fixed"; + regulator-name = "VDC_3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vdc_12v>; + regulator-always-on; + regulator-boot-on; + }; + + /* 5V supply stepped down from the barrel jack input */ + vdc_5v: regulator-vdc-5v { + compatible = "regulator-fixed"; + regulator-name = "VDC_5V"; + + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + regulator-boot-on; + }; + + /* "Battery" voltage for the SoM, stepped down from the barrel jack input */ + vdc_vbat_som: regulator-vdc-vbat { + compatible = "regulator-fixed"; + regulator-name = "VBAT_SOM"; + regulator-min-microvolt = <4200000>; + regulator-max-microvolt = <4200000>; + regulator-always-on; + regulator-boot-on; + }; + + /* PMI632 charger out, supplied by VBAT */ + vph_pwr: regulator-vph-pwr { compatible = "regulator-fixed"; regulator-name = "vph_pwr"; regulator-min-microvolt = <3700000>; regulator-max-microvolt = <3700000>; + vin-supply = <&vdc_vbat_som>; regulator-always-on; regulator-boot-on; From patchwork Mon May 15 13:04:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 682140 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EAFDAC7EE23 for ; Mon, 15 May 2023 13:04:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242104AbjEONEd (ORCPT ); Mon, 15 May 2023 09:04:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242102AbjEONEc (ORCPT ); Mon, 15 May 2023 09:04:32 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAE201BE4 for ; Mon, 15 May 2023 06:04:29 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-4f139de8cefso65122901e87.0 for ; Mon, 15 May 2023 06:04:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684155868; x=1686747868; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=sA9pxSNs0w6vr3YV0vpThuHVdvo3Cg5A6ey/gFP/ZOk=; b=TlP0M676RjiiWcBQhumG9PGPSL4eAdpuxgBsmHjMQ3QW/Skra7jpxpO8wS+T9Sx2EB NuxqgiPyQjuC8nYOenCI5Xfe4ZFkdTVarr/FEK4UovQCh18rt8UH9RRSCGip8g172hyo rWzaHQM4J1hUljKWMLTnXq9zfrlHLyBrLlxSMYxPuU+kuwNHK3NKJMnNIBPZWPix9UQP 7A30uqGFQUQmQpOo0MnwkrAmeTiHuvUP7+AvlOrC8nwqyR+uVsStCXSVHHQ81T3aAUP2 n2ie5+cRoL/3oOsbdmMXtRH/9hvw80gCRjO3hV2PKaq7XdbRMu744gmaIlxgeACSZ4QO SarQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684155868; x=1686747868; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sA9pxSNs0w6vr3YV0vpThuHVdvo3Cg5A6ey/gFP/ZOk=; b=OLIPzSdnikcyiSuKSdb7DNNJlBDbrfWzmKeWOpWDRR9QEG/fHudW0WSgv9cjOKaqOr +ca+TqaGziQutamRqG0z1zUB3476sUg2KZce5lfU8Oq9Nht5+i+x8ESoXlS6x8jH/iy9 iWVg/bfsnpfRYpv8UPT5UH7eMF4IEfy92X3es9V+VKQARUylt0D/IDNW/0yYzw+Tef2v wbLpDu8mmU7COY74l6WSA2vSp/Obr4qzALiHqcEth3JoLIC8Jub3njyJEHaTxFqrXKjp R3K3qpeuMLZm3tuXzrB2ew1a5M7WtXuSzakLg+IQgSq2GHu5EUSVMdurKMRIg94ipZXL r2cg== X-Gm-Message-State: AC+VfDwnK+XhOyKHTyHex0vcjnA+SawPuza6YuqXNp+WzQ8j4cEx9qaK G1gc0jRUZ2TyjkDHMhqe9AAc4g== X-Google-Smtp-Source: ACHHUZ4qb3B+rc7WjlH9tVLqeIyZD9AThfiHoAE3mO9i0oJOvtlfHBKashsMCHY4YPwXFtwk23VSuw== X-Received: by 2002:ac2:50c3:0:b0:4ed:300c:10b6 with SMTP id h3-20020ac250c3000000b004ed300c10b6mr7304771lfm.21.1684155868299; Mon, 15 May 2023 06:04:28 -0700 (PDT) Received: from [192.168.1.101] (abxi58.neoplus.adsl.tpnet.pl. [83.9.2.58]) by smtp.gmail.com with ESMTPSA id x27-20020ac25ddb000000b004f37a64c90asm785823lfq.303.2023.05.15.06.04.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 06:04:28 -0700 (PDT) From: Konrad Dybcio Date: Mon, 15 May 2023 15:04:13 +0200 Subject: [PATCH 2/5] arm64: dts: qcom: qrb4210-rb2: Enable display out MIME-Version: 1.0 Message-Id: <20230515-topic-rb2-bits-v1-2-a52d154a639d@linaro.org> References: <20230515-topic-rb2-bits-v1-0-a52d154a639d@linaro.org> In-Reply-To: <20230515-topic-rb2-bits-v1-0-a52d154a639d@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bhupesh Sharma Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1684155864; l=2637; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=avvssNTgG0e3S5Kryg79ULmCxgvbqADEkl/jEuLJ6M4=; b=weZU+7DXgUJ9tQ8ae/JaYWlwn62DzmanmUnc1lZooL601zypgm81gQOp3Eulc7oCgnUg4JLEi N41WnNPI7+BAJ5s6NQg3AUTPqXrgGBTJhaxDoeaXiX9Q0GVGjG3cJew X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The RB2 has a HDMI output via an LT9611UXC bridge. Set it up. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 88 +++++++++++++++++++++++++++++++- 1 file changed, 87 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts index 80c6b59c8ff6..9b539720f05d 100644 --- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts +++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts @@ -19,6 +19,17 @@ chosen { stdout-path = "serial0:115200n8"; }; + hdmi-connector { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_con: endpoint { + remote-endpoint = <<9611_out>; + }; + }; + }; + vreg_hdmi_out_1p2: regulator-hdmi-out-1p2 { compatible = "regulator-fixed"; regulator-name = "VREG_HDMI_OUT_1P2"; @@ -109,6 +120,68 @@ &eud { status = "okay"; }; +&gpi_dma0 { + status = "okay"; +}; + +&i2c2 { + clock-frequency = <400000>; + status = "okay"; + + lt9611_codec: hdmi-bridge@2b { + compatible = "lontium,lt9611uxc"; + reg = <0x2b>; + interrupts-extended = <&tlmm 46 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&tlmm 41 GPIO_ACTIVE_HIGH>; + + vdd-supply = <&vreg_hdmi_out_1p2>; + vcc-supply = <<9611_3v3>; + + pinctrl-0 = <<9611_irq_pin <9611_rst_pin>; + pinctrl-names = "default"; + #sound-dai-cells = <1>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + lt9611_a: endpoint { + remote-endpoint = <&mdss_dsi0_out>; + }; + }; + + port@2 { + reg = <2>; + + lt9611_out: endpoint { + remote-endpoint = <&hdmi_con>; + }; + }; + }; + }; +}; + +&mdss { + status = "okay"; +}; + +&mdss_dsi0 { + vdda-supply = <&vreg_l18a_1p232>; + status = "okay"; +}; + +&mdss_dsi0_out { + remote-endpoint = <<9611_a>; + data-lanes = <0 1 2 3>; +}; + +&mdss_dsi0_phy { + status = "okay"; +}; + &qupv3_id_0 { status = "okay"; }; @@ -312,11 +385,24 @@ &sleep_clk { }; &tlmm { - gpio-reserved-ranges = <37 5>, <43 2>, <47 1>, + gpio-reserved-ranges = <43 2>, <47 1>, <49 1>, <52 1>, <54 1>, <56 3>, <61 2>, <64 1>, <68 1>, <72 8>, <96 1>; + lt9611_rst_pin: lt9611-rst-state { + pins = "gpio41"; + function = "gpio"; + input-disable; + output-high; + }; + + lt9611_irq_pin: lt9611-irq-state { + pins = "gpio46"; + function = "gpio"; + bias-disable; + }; + sdc2_card_det_n: sd-card-det-n-state { pins = "gpio88"; function = "gpio"; From patchwork Mon May 15 13:04:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 683750 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9260AC7EE2E for ; Mon, 15 May 2023 13:04:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242099AbjEONEf (ORCPT ); Mon, 15 May 2023 09:04:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242089AbjEONEc (ORCPT ); Mon, 15 May 2023 09:04:32 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 239981999 for ; Mon, 15 May 2023 06:04:31 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-4f004cc54f4so14683683e87.3 for ; Mon, 15 May 2023 06:04:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684155869; x=1686747869; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=TGOJOYG70cN/KGmZclN4Kq6rfFVITAlENQe3wvldGFk=; b=a5nDGF7rksHDgevXg2zyWmIWc8vj2V5NROKEZVW5SsCDhfUkFbh/HagIviZR+7JvI0 LTwBO0a2RSIYhHRNQ75PAfl7gwOmFDzd8iar6DtY91nhlhFuvOT6+ajuq19iZAzbzu3Q tjCm3FWOdHmDuT0XAonZWPFrGRKNfDZNZXXzWmixbYTdQF214lu9No8kgV5+C7WbS/PI 5wSkaqOs40/HPFF3Pv426msimLO/iA6tT89HztE3jMvgJnbUkqrFeqysE4+cu2aNoGrA 1LLctSnuZngzIDd2ohtPyN9Q/LbkzY4hsQSp7U5hkwRAGef5ReFS85WcqTbfIQrcyMCX S3Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684155869; x=1686747869; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TGOJOYG70cN/KGmZclN4Kq6rfFVITAlENQe3wvldGFk=; b=M7/q4EKZbKihO9ZDhX1KLdrthT7NpLHY+lKd8GOtoErqHBygOXPbI6d98hShNLgAzZ Zk7euWb5CjbJbn650O7xLBT90O9xVmQtsNgmBrKy2m3bhMh0ELSxSWG/uTRDKBpNkcQk VUYoqiBiNv2zPD+Btl9yOEZzd1GTXTsW5iDu2JECWKBH0Ab4wsPSAug/p4s2Er7bZcVA XOITTlc66fWPYogmhwU0HtNtHqQPm7GLqk6A3obwBX3yHBc0Y7vxFPvEcy6x/NjPgl1E xqBrRM5y2u+SQggPkhago/UfFL6kb+n67Vlvn7ERytxC7llw0g20KLkTQXFwmH4X7IV9 KkLQ== X-Gm-Message-State: AC+VfDxcfU+a0p+7BR43M5KTQrPsihJgwDlWUghqItQRG8Knp1tFFMQ3 JNhrHM9vPXkEruK+GMAcDSYJkA== X-Google-Smtp-Source: ACHHUZ62QeRsBJLuZ86JMb5gIDlBTyRP1XPTcVM+7GKy4gX/gFNF1oWdNsslGDUQa6nUX/AKEi4JKA== X-Received: by 2002:ac2:46fc:0:b0:4e8:4abf:f19d with SMTP id q28-20020ac246fc000000b004e84abff19dmr6724908lfo.15.1684155869511; Mon, 15 May 2023 06:04:29 -0700 (PDT) Received: from [192.168.1.101] (abxi58.neoplus.adsl.tpnet.pl. [83.9.2.58]) by smtp.gmail.com with ESMTPSA id x27-20020ac25ddb000000b004f37a64c90asm785823lfq.303.2023.05.15.06.04.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 06:04:29 -0700 (PDT) From: Konrad Dybcio Date: Mon, 15 May 2023 15:04:14 +0200 Subject: [PATCH 3/5] arm64: dts: qcom: qrb4210-rb2: Add GPIO LEDs MIME-Version: 1.0 Message-Id: <20230515-topic-rb2-bits-v1-3-a52d154a639d@linaro.org> References: <20230515-topic-rb2-bits-v1-0-a52d154a639d@linaro.org> In-Reply-To: <20230515-topic-rb2-bits-v1-0-a52d154a639d@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bhupesh Sharma Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1684155864; l=1837; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=gmZbSh+JOUC+q5+4Lzmg2xUn1mIKUGv1YtKkgkYpX78=; b=fZAz1gy9ePR31Ep8NxEzX/W0TI0WEiBFUIeyMvp9kchEpAsW12jE3xheLtb/D+6lfseIw//GW +NHQruS5/M2DS4c3wnx0n0kdFILoBibvbEBjQaIYHdPKjHvZRNOpNK6 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add the three LEDs (blue/yellow/green) connected to TLMM GPIOs. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 36 ++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts index 9b539720f05d..eeee268ebfe2 100644 --- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts +++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts @@ -5,6 +5,7 @@ /dts-v1/; +#include #include "sm4250.dtsi" / { @@ -30,6 +31,38 @@ hdmi_con: endpoint { }; }; + leds { + compatible = "gpio-leds"; + + led-bt { + label = "blue:bt"; + function = LED_FUNCTION_BLUETOOTH; + color = ; + gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "bluetooth-power"; + default-state = "off"; + }; + + led-user0 { + label = "green:user0"; + function = LED_FUNCTION_INDICATOR; + color = ; + gpios = <&tlmm 52 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "none"; + default-state = "off"; + panic-indicator; + }; + + led-wlan { + label = "yellow:wlan"; + function = LED_FUNCTION_WLAN; + color = ; + gpios = <&tlmm 47 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "phy0tx"; + default-state = "off"; + }; + }; + vreg_hdmi_out_1p2: regulator-hdmi-out-1p2 { compatible = "regulator-fixed"; regulator-name = "VREG_HDMI_OUT_1P2"; @@ -385,8 +418,7 @@ &sleep_clk { }; &tlmm { - gpio-reserved-ranges = <43 2>, <47 1>, - <49 1>, <52 1>, <54 1>, + gpio-reserved-ranges = <43 2>, <49 1>, <54 1>, <56 3>, <61 2>, <64 1>, <68 1>, <72 8>, <96 1>; From patchwork Mon May 15 13:04:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 682139 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7991FC7EE2F for ; Mon, 15 May 2023 13:04:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242109AbjEONEg (ORCPT ); Mon, 15 May 2023 09:04:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242106AbjEONEd (ORCPT ); Mon, 15 May 2023 09:04:33 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61F6519B7 for ; Mon, 15 May 2023 06:04:32 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2ac80ed7f26so135377181fa.1 for ; Mon, 15 May 2023 06:04:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684155870; x=1686747870; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=m2/tkDIoYNjgUmzZJee4bBP3k9tNdqD/UOXI+DkOBoc=; b=gy32jItCDuWHzsiEBoXF+Lxe78CF2xA6qCgJLYKIRzjMYE9xEhu4ewIfGiR+FsIvcX 4m7BwmZy6iy9y5EmRQcsj1E2wpeYTGIAuTEUxIVnKkHmEduUAFBu2oFvBWNfCcjgJ8bf VD31nJKbvI+rr7DQdpbvoKRWkGCpCTC89oDsMiQXa6KWevRnU9mpDy2u9UImVQGBZzeW SrjgHwm/TUxsJP8tLLBSFYpnT6d/udz3OFRxKC5/ky/P5GIqJGuR4ouKzVHp1bH4BQ22 vyCVrfqWhEiClClzYViofKIxBOUq3lI2BUGlNuQFf8/scbzF7gbyZwn5UW8Q/laJHobC JD9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684155870; x=1686747870; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=m2/tkDIoYNjgUmzZJee4bBP3k9tNdqD/UOXI+DkOBoc=; b=dSa9tzCbLvEy9G+Tlri1PKYt16JcvCCTaxVs/kTMcAZLVqHry4c8b6iAWoNhlFcAhd OSixRUOTUiykFWCK7SO4tRTBTtxW38wxX2+IYlvC+QrBEDypAQr6fJ8EHkLBAy1pNM3X hegOk4kjERUwRBnT5eGdi/G1QRo8ZVvIBLZqtu8d6co/VMOP9PlkzdyBU/Bniyry/U7y 1nDwIlVQItHmizmq0TXylJs8oRhNALbPf1fLL0g0u6iMNabLwJdJLIn58p7p/8KrKjQg 7k45QIihNRYGs4+f5ej9t6iEo0X5W+2eCAPf4NWJ2YnDJE0b/LwaovDeMfw9nHgHZI6z bXWQ== X-Gm-Message-State: AC+VfDwFLkpYjQESX4aMbzhsHtvTN5nhn6SVRZ68kHsVenIDciiKV4qr VUmq/eWswnicqzcsPkQLUBB+9Q== X-Google-Smtp-Source: ACHHUZ6dhCM9WsTOgBuzUKY8VdLldrJJ2ARzWzNRChRiYgE79NdxYYyP+feT993QbDiIqNt/ICqGWg== X-Received: by 2002:a2e:9d03:0:b0:2a7:a616:c39 with SMTP id t3-20020a2e9d03000000b002a7a6160c39mr7060152lji.48.1684155870641; Mon, 15 May 2023 06:04:30 -0700 (PDT) Received: from [192.168.1.101] (abxi58.neoplus.adsl.tpnet.pl. [83.9.2.58]) by smtp.gmail.com with ESMTPSA id x27-20020ac25ddb000000b004f37a64c90asm785823lfq.303.2023.05.15.06.04.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 06:04:30 -0700 (PDT) From: Konrad Dybcio Date: Mon, 15 May 2023 15:04:15 +0200 Subject: [PATCH 4/5] arm64: dts: qcom: qrb4210-rb2: Enable load setting on SDHCI VQMMC MIME-Version: 1.0 Message-Id: <20230515-topic-rb2-bits-v1-4-a52d154a639d@linaro.org> References: <20230515-topic-rb2-bits-v1-0-a52d154a639d@linaro.org> In-Reply-To: <20230515-topic-rb2-bits-v1-0-a52d154a639d@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bhupesh Sharma Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1684155864; l=994; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=5QQdPjDBeY9vuV0k49Svsx2cwcJ7/t3g8jImhtA6NXg=; b=KWq0dG+FBeabaLiR2bgh96N0xMCpj8Ka3o/MSpg0kbUs/LqrwosH+WVvzQ8PclNGQopB6U0YX 7nI4tVqXY8kAQLmECPpJBSsrYqcB71CGhySzryHIW4D91R0YSaL/rFP X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The MMC core calls regulator_set_load on VQMMC, enable loadsetting to make it effective. Fixes: 8d58a8c0d930 ("arm64: dts: qcom: Add base qrb4210-rb2 board dts") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts index eeee268ebfe2..224c96bba35f 100644 --- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts +++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts @@ -283,6 +283,7 @@ vreg_l4a_0p9: l4 { vreg_l5a_2p96: l5 { regulator-min-microvolt = <1648000>; regulator-max-microvolt = <3056000>; + regulator-allow-set-load; }; vreg_l6a_0p6: l6 { @@ -313,6 +314,7 @@ vreg_l10a_1p8: l10 { vreg_l11a_1p8: l11 { regulator-min-microvolt = <1704000>; regulator-max-microvolt = <1952000>; + regulator-allow-set-load; }; vreg_l12a_1p8: l12 { From patchwork Mon May 15 13:04:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 683749 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06538C77B75 for ; Mon, 15 May 2023 13:04:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242126AbjEONEh (ORCPT ); Mon, 15 May 2023 09:04:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242113AbjEONEf (ORCPT ); Mon, 15 May 2023 09:04:35 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 641801FD7 for ; Mon, 15 May 2023 06:04:33 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2ac826a1572so131268101fa.0 for ; Mon, 15 May 2023 06:04:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684155871; x=1686747871; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=bHrRwJZNmR4vO/RyDtfQTesrckzCKnVFHgmO5Rc+8Yc=; b=TULdDFG0A6XCg1kPrRqYeAen4Sup0En+HIRYQ5hbebwHu1yf8R7/rtfpcG4CAHErU3 aYl/HJQ/sMM8/wZhPoKAVm7bTzWOFfIOOalAlT5aFCYhwwzsrwQkuIw8NK5SAbdTpAWO EaQFBIPZh9i580piap/E3+oZYEmDnXQq5wmfHASe8feZ8b7dQ9q12htNNYd9PzHt4AnC g+JaEvIzthgz91G+JgGQt4tRSprLzbKO6x2vx699+lGSrb8hiDgnM2C8B8OsSpOAdv+E 4BJgb5yO4M1DnCUlx/T+OZMn1P95Nd+QrR4BS4TfiEo+XR3UbKq2xocXBkGxFdbXrOSd VDEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684155871; x=1686747871; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bHrRwJZNmR4vO/RyDtfQTesrckzCKnVFHgmO5Rc+8Yc=; b=WyB+gINkC+DAG4KSRwi+JDcfapKIJka4YDgDQp4WmB2Rozgd70fuXjSMW2Xy9Crrsn XVeoP7h0sy7hRzkxTej89zMbvJrfyHIRDFAxV/GivrVIE52RMdlL/nkE7treS5sK3Gy0 zwp2n1BSqT52EXoMIVX68d7EquFfm/hWN0FJ5+HmTqfig0VJv53Ie2bMHBW7MWbG4/vc nRL0d4TEW6BYT2sVrVpYQOKKbRHf1RmOFJajlTCZAnRpmCv6PwinBOVpaXQPQZ3xGrq8 K6XuttNmOgrDPba/AvpnOJWQX6tOwhDAKZ+oK9UGfH6wvFiHgNX2E6pXQwYRezK3G8LI DTQg== X-Gm-Message-State: AC+VfDy9+qN7v3Exdv91ylwWEsZ3ZmpxhX/8aY6Y7+hCiC0dvuaAUppL 4e855pLT+8RBSlKCdAr8aPIJkA== X-Google-Smtp-Source: ACHHUZ4eI0PryuqQnmub3Yb1zlIRfC/ATwu3Y1K2XJZHSAPArQZmY4OyHkeO2muauqast5oLswYLbQ== X-Received: by 2002:a05:6512:507:b0:4f1:4fe6:56c8 with SMTP id o7-20020a056512050700b004f14fe656c8mr6621241lfb.34.1684155871779; Mon, 15 May 2023 06:04:31 -0700 (PDT) Received: from [192.168.1.101] (abxi58.neoplus.adsl.tpnet.pl. [83.9.2.58]) by smtp.gmail.com with ESMTPSA id x27-20020ac25ddb000000b004f37a64c90asm785823lfq.303.2023.05.15.06.04.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 06:04:31 -0700 (PDT) From: Konrad Dybcio Date: Mon, 15 May 2023 15:04:16 +0200 Subject: [PATCH 5/5] arm64: dts: qcom: qrb4210-rb2: Enable CAN bus controller MIME-Version: 1.0 Message-Id: <20230515-topic-rb2-bits-v1-5-a52d154a639d@linaro.org> References: <20230515-topic-rb2-bits-v1-0-a52d154a639d@linaro.org> In-Reply-To: <20230515-topic-rb2-bits-v1-0-a52d154a639d@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bhupesh Sharma Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1684155864; l=1168; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=AZ/Op7kTNY+Rd0mmluqshowmHdxgH+CEwOfMytzuYpc=; b=DEY+Mv6nuwLuNQ4u5dz5EePSZ+OYPbGN8uNJUATj+7/wFqrdDqLdjyIFL4gBsQyfocto3ryMk Zbl9P6UpJezD3Sps80bAaZF8kALbz3Njwpj6o1ocYvgbT4rPHNwngcM X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Enable the Microchip mcp2518fd hosted on the SPI5 bus. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts index 224c96bba35f..e2e82dd83c55 100644 --- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts +++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts @@ -20,6 +20,14 @@ chosen { stdout-path = "serial0:115200n8"; }; + clocks { + clk40M: can-clk { + compatible = "fixed-clock"; + clock-frequency = <40000000>; + #clock-cells = <0>; + }; + }; + hdmi-connector { compatible = "hdmi-connector"; type = "a"; @@ -415,6 +423,20 @@ &sdhc_2 { status = "okay"; }; +&spi5 { + status = "okay"; + + can@0 { + compatible = "microchip,mcp2518fd"; + reg = <0>; + interrupts-extended = <&tlmm 39 IRQ_TYPE_LEVEL_LOW>; + clocks = <&clk40M>; + spi-max-frequency = <10000000>; + vdd-supply = <&vdc_5v>; + xceiver-supply = <&vdc_5v>; + }; +}; + &sleep_clk { clock-frequency = <32000>; };