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: 94124 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp6904342vqo; Mon, 15 May 2023 06:05:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ42FQq/rRhdgFX6o8fYv2/xd20wywUGaotySGkkaP2l+drjdckW8XJGdUOQcnqDj/M62zsZ X-Received: by 2002:a05:6a20:9144:b0:104:41a0:c51a with SMTP id x4-20020a056a20914400b0010441a0c51amr15226795pzc.38.1684155953348; Mon, 15 May 2023 06:05:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684155953; cv=none; d=google.com; s=arc-20160816; b=iK774TqiLHd5oeKEc/gdOogFsH3PLJuH9yW6cuQWe+ABqv1nncwvqT1TMsndvGsODS YtIOcuuNP6rJ1oTfBoWu2k0YWrFoKJPy4FIiRXpPrO7q99KxSu43NmwmvTtRkbfyJC/a il7yhYFwbgrV5rUQ/um8qXmqVd2tbEUIjVnh3hB0ULWR4dvgmA6uNPdteW37N6eQnogK 4Tlc8vlPatnXtqe1ljzcRAk1BjnX1cevrNLzECgT28H3kKdxtqLQiCMjJ3yciusGM5CW Qhg3nwfYaH0+6MHwFir4Pe5h6VxwQB05F6O+e83GmOCCQgvw+LVMylPaJ5hGH//mUtpH DyFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=froMVBkhiao5KfF7Z0DAyeGNQcRj1djapSOzel/BeiI=; b=QLXSNQBYbMLEX89nQ1pKwg8W87zPesANabfLOxioiNmKQjx0gdby6aj9kP55kRr29B cTud5qEDh57Hxwzc/MD3eJ2yGLbidWuMeouHOm3c2bSXP9PxA0DP2p7soTqnCsJurIIL s3PVKk3vc53xdJqT5oPEu/SBgswub8m7x5ZlYB3Oo9Tb4Sj6bVXTxrysSWWguVePx5Bj l5a97L47DsRj5AFJUctceE8q0/iOPQqAij3xXqnKDIb3MmmOhfSbzIRwp6j+agMF64VO HpdN83JBW9sw3je6WCbCkXcTL1RnKwWfShpCiGKHTFlqEooF0Uq/swjDGBgvRI6MceJl HpHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UTgfb+pN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pi16-20020a17090b1e5000b00252b824d13esi8845833pjb.30.2023.05.15.06.05.35; Mon, 15 May 2023 06:05:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UTgfb+pN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242122AbjEONEg (ORCPT + 99 others); Mon, 15 May 2023 09:04:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242093AbjEONEb (ORCPT ); Mon, 15 May 2023 09:04:31 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E91B419BA for ; Mon, 15 May 2023 06:04:28 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4f24ddf514eso10890282e87.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=gXG5gyGTw6TjzYv1bBgpi8ddK/lU7033SMKRubOs0v/2QcDyavEAlG6VuMEK9eX08X bW70Cvs9Ak7puEwE2TD4pAA6IVHLVkIpiG8t0TqNknqWsumHr0x8c6wZHTS/G0gtX15Q tZhjhwrEu9DLuLKfHeYBFAe0Ui7mwjni0JMigewFUPN59GDs1ArZ7dIJcKu1qSNOyKmD ikkNCgqs0afYBSjj8+T++ga94iwnwckvW7H4KQ8g5i5NYrlchGJlSF3OyyBsVdK57ow3 L2e7eWYGrCTNknlZH9d+L4xl3QsOgcwpopdvE+2y+fi9Ne/Bevih7tcAKpNHJPWTT9Gm 6Bsg== X-Gm-Message-State: AC+VfDygn/Mceskac676hKamyGLBFhBT3vdBhNFZ4C3dKwZcMYTxW8WH ZbZsUtk9wL217E0GKB5vqc51Gw== 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= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765965512942566734?= X-GMAIL-MSGID: =?utf-8?q?1765965512942566734?= 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: 94132 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp6914360vqo; Mon, 15 May 2023 06:17:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6UWNjZsewGKaqdsQU0bZvky1xfoEFgzL6oTrUPcedBDkObvO23TkxIrdAq1+21nhIvM6ho X-Received: by 2002:a17:902:ec8c:b0:1a9:80a0:47ef with SMTP id x12-20020a170902ec8c00b001a980a047efmr48698668plg.20.1684156677809; Mon, 15 May 2023 06:17:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684156677; cv=none; d=google.com; s=arc-20160816; b=hZTtm6TtgLkZ3eIzYF+qGEGqr/RdfyTjjJgzPUCfloTy5GwjaQeqApO6EHDNcllYe8 krs5eCCeqLArBYUzzJg8x0tlY+s2GaAfHO7spDL16fhvsLAPT7/sN4GVE6VOXBuehlEZ F26SexOEySNXTSJvU1lAqRATV3QT3JUSNmzOzHLtgLCAuMJIBG5QXoiBCPtWmd+MkNHZ 3FmhvhkjMirsXimsvBlM8e5i8vDtIL2BWpL/gyMmoUM8aAgfKpp3YPr+WAvaL9lnq32Z 7DgVfNb0fnUfq+XHEkc2QBEnjsq3hfWc3RKI1F0RdWW35M7+/Cj6Rgk4kt9/Hwc0vmHp BKOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=sA9pxSNs0w6vr3YV0vpThuHVdvo3Cg5A6ey/gFP/ZOk=; b=q4pNX3qbeeT/1FKk159Tw54O00ENvJkGTgEEZfFf6pBhjpYcB64zs5ntlBqvGbCYrV gi3Gpq8x/50T4Lpd0VYlhvUmYagOuZ/ypzpdvUkEhCp0646zAXBtlCzjmngbRLY7rCta jU3i10kUwAJSWlWtWu1HHK3MAadq4O4Jc7bGVHSh5mc+4HcivgFl8a00emk1ks2X3Pjr X6mUJ0E4z5JpLXWSKiAlGGS8+u8f4Sij/V0kHqY8Ac08EaukgFKbIfRLebNo4kdKWiRD RV7UwU1Muze2OJ1Wd8acEhh1nB7VWgni0p9Q+sYx5e26B8Dplx5U54yBDpcJZETrrOcA Fezg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TlP0M676; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 5-20020a170902ee4500b001ab0e4c0218si15883375plo.140.2023.05.15.06.17.42; Mon, 15 May 2023 06:17:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TlP0M676; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242132AbjEONEj (ORCPT + 99 others); Mon, 15 May 2023 09:04:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242095AbjEONEb (ORCPT ); Mon, 15 May 2023 09:04:31 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA2D119B7 for ; Mon, 15 May 2023 06:04:29 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-4f139de8cefso65122900e87.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=AhRprLbFmDQbCnmiKMXM0L+ZnJLVQHjDfiJPHueNltuDVDKZ4vHdkc30Ex9cP8xhfP g88iKHYJAIUGEVDemwZxktx7uuKmrbreAtQP4PHN3xfxOoIAPs+iVoFbCGYp/Vy2UnNw 8E/Xnm+KC/SPZNff8JB/6aYNqw/bTm9OXeSU74HHPrgBxJ1GxWCeDjCQcgoRzmoEf/FX X+bzatiXyC4XYpz80YjhZjkbe1q3VTAQSYq5NV0UfP4ExzuRaKeoz0wBeQpxnsLxjpAl n4rPhTuisNayQrfh34tv2ohWDHg+2MwkNRejiza5n9QT8c8iB+p2NnD0hsmua8qol/4o OELg== X-Gm-Message-State: AC+VfDzjhQfXWXfCm7J7D2bYhBAOWcXdhGlA5f9mUveM4n8mpJ7IWMXY xPrUawEVt0nXHKsgJVc/+jbJiw== 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= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765966272700310740?= X-GMAIL-MSGID: =?utf-8?q?1765966272700310740?= The RB2 has a HDMI output via an LT9611UXC bridge. Set it up. Signed-off-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov Tested-by: Dmitry Baryshkov --- 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: 94128 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp6911711vqo; Mon, 15 May 2023 06:14:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7NzfhE5O2HLksIBqVorFq/pLcXO+UdbLVeQOfhb8HWpu6oXL5XVs4Uoa8xC2Yl408Yxtr3 X-Received: by 2002:a17:902:ed43:b0:1a6:6bd4:cd8c with SMTP id y3-20020a170902ed4300b001a66bd4cd8cmr31712612plb.25.1684156479497; Mon, 15 May 2023 06:14:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684156479; cv=none; d=google.com; s=arc-20160816; b=za1p38lHC3tB+DFSPnPgNXWQGilCbzQ63ONR1RLngWD8UosFde5b5VKeBE2+u6rrLR kZ9jHqXfZCoAg2l/ZUdJPGBBfe7jGBwk80KTKEfmCJ1w2VTXUaI5Mjs8I72Xl0//VGXT GXYOPRXtYJSeZdtiggGR9ZsPOruaDx+kTt20eXplourm/olmW5em47J12XOJDLQFLuEs UWVOWc+6NJx+SSgeoRtOtFvl+VsJcKv+4w+atWtf0db4ZhVoUtxc6VXoPUs/NgocxQWX rmMBNlgy76nqd9iO16YMHzHeZrfPPNlkxS9MyJ0sF44+n2vMjBUbOwAkDVoNLT/2LDea 6TrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=TGOJOYG70cN/KGmZclN4Kq6rfFVITAlENQe3wvldGFk=; b=rR26KoK3MUOtkIFXRmgzOSRF/AaxkVJzQqfchzBzQ/PfiRNck6cQ29YrXveEnwFFlJ EhIk4kwlz8EgIkWgzbWiFC1xPT34RlqWgVzKz/d3F4IC/6Z+xCPaVem1e1b0levEfpID sAcYh8ij78gMPrcjVr0XhG7pJexCKoo0fo38504rW7jmAQ026JAXU6DT1D6MkEeDc/8/ NQuvwtpXwWpQ8wowiRQ2/NuxdjUXukkNjNy/7a6m1uhTVMsRZzyZq2sXkKwXTXKnud1Y 1SVt1PH6zmZDqGTELKH+peRm1s5XhZlniIGqFcOqB5TTOF6wpxfZO8uYN1XWqvxKxuvJ /N4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a5nDGF7r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n2-20020a170902e54200b001a1f6671a6dsi17490236plf.397.2023.05.15.06.14.23; Mon, 15 May 2023 06:14:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a5nDGF7r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242137AbjEONEl (ORCPT + 99 others); Mon, 15 May 2023 09:04:41 -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 S242064AbjEONEc (ORCPT ); Mon, 15 May 2023 09:04:32 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B6F51FCD for ; Mon, 15 May 2023 06:04:31 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2ac8c0fbb16so123685521fa.2 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=FJ2m6wBzrnRbUk97LNy2IabrfBrToO93XMsNtS6Eu7ppCuCJsNLP7jUXyY++AwHPo1 2blf5PItJtkQ5BMJMy9sB62yLtzYnxzbjmLjb22cllsynyHn6w3K7DI36VCMYiN7Bwyq 2VP0ADRHMU46f4xGCmJq+Xu0t+0ur8Y79B0733qATXWB32fxveaGtE2DCP0zM8fkwm8B Ps7+h/sNoCcchn3VIqtqjVM4hwbt3PFFCFNexAk+QyXavBl01rNWt/OtXM65C67MRpV0 HIkvvWm6N5m1dGW7NzlaSG/Qi88nBa9VRe7EuAUh/Rqmqq0t2IleinT0W+AEhWDAZtaT hs6w== X-Gm-Message-State: AC+VfDyxwE/8YahexqjOnSn42pOMCF+On6HK83visS7GHOxWXn91qJZA 0p1pm/ChmyxDI1wFOirjR8uAWw== 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= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765966064139084052?= X-GMAIL-MSGID: =?utf-8?q?1765966064139084052?= 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: 94133 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp6914430vqo; Mon, 15 May 2023 06:18:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5OFrxMnNcOBAht7TfvWX1NYa7Jyrv2woU8he9ui6yhiNeiN+rfPDDWSMYvjJijMVETSjxk X-Received: by 2002:a05:6a20:160c:b0:100:e1f3:9bd2 with SMTP id l12-20020a056a20160c00b00100e1f39bd2mr32195022pzj.40.1684156682970; Mon, 15 May 2023 06:18:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684156682; cv=none; d=google.com; s=arc-20160816; b=YmzDpu+KrmH0Oo4QBr1+3HVTAG++sHgBE5ajbU9prNlLXtpLNQFLzYy1lgLPkd7CX2 aNHwcEtsUGdGUsIVp922Zzp196cEPox/PPawD3gVypJvKAVCkNeJGf/cRC8Ao7PFGYjM aF2zRjZG3JJiU3g5UTFLxTCUslGoWFSte53xYOz6wQqV3vbYkrLM+NRVJ0FODL/KCVyY lLA2/gOhZvxK/uoR1denxJS759vwFVsaYUQS8WczIge8S03tiJARxdGVvW6PodHqF5+I kr6dxHUB13OAovOuHxeNgAxUMYHY+01cOTFtM9uMnnYkid/MlZNOeTndhs+JLWY5Rf/A Vjhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=m2/tkDIoYNjgUmzZJee4bBP3k9tNdqD/UOXI+DkOBoc=; b=QCgWB1rpTsCOgj2GtOXpHGzA/ex07EwNz/8yrbQWtcfHt4djAr428H/wWMhkJtNEwj ABNhGpoCMCZEbW6lQdx281AadowsE0lw4HgbQ9JuvLZseREVNO5sUvQQfHt+jNwMNzqw 6eEEaU/nPt7Dn6BdTWEtThF5+w6OKnUcit0iqBWTZuWSDhknWk+OzqOvW55Gs0A/3HVJ AKPwftasJ04xoi7+BNCWX97UICrgnL/nkc4yXcPlbOAhUwIYNgy9ebYArH7x8cAZWKGG s3WF+gWO1tNS91qd1SjlvARXaCkCUc6E571lnSxsH0kVqSngh9ldLuBECdJGr7lbZefl /kNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gy32jItC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r11-20020aa7962b000000b0064309ecbad9si16726435pfg.30.2023.05.15.06.17.46; Mon, 15 May 2023 06:18:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gy32jItC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242143AbjEONEo (ORCPT + 99 others); Mon, 15 May 2023 09:04:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242111AbjEONEe (ORCPT ); Mon, 15 May 2023 09:04:34 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6245C19BC for ; Mon, 15 May 2023 06:04:32 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2ad819ab8a9so105307351fa.0 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=VOsoKEAK1F+CXBPdRrK+f76Dn5B7GxEwr7sVk5BbZ0xFANVfD7u//cB0DQ9IJz/6ic aGqcuy8e4mDar6BEZg8Y0VNGwajVgYDoW6pe3mCPR03BJ3Q9hOlhYZVgG8StRkcD1Tz1 6GPS/9+OYHtb13rVV23SWcwpH91NzBGIS+RINwux46vHySAnLgZsYbuzs7RXECcjelPA 1wHvG9ezeDWnUQXrcS28icLEHL3arz3FRSPbin/8QDQpwDEQNhy/XlMoMF66TfUBDHqd W9uO12SH7Mw5F17VVdl+2GD8Fh00gCWK2jy/nV1/VPEk5jCLwd/OW3s8wk0ehwnpXiUD vDFw== X-Gm-Message-State: AC+VfDyftbpmxR+gzuC3UI1KBa8MnJzF02Ohr3U8Eky6iDcUi05/z6++ JBP5s9GtkbI6MqLNhkDjfzZmWw== 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= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765966277844079415?= X-GMAIL-MSGID: =?utf-8?q?1765966277844079415?= 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: 94130 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp6912275vqo; Mon, 15 May 2023 06:15:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5n3jvKRpVZ2z2PPInLAC/gQM+dWygD72mAldw210T4E6ooJecJ08Vkq4isLMFa09gm87M9 X-Received: by 2002:a05:6a20:840f:b0:106:8b:99cc with SMTP id c15-20020a056a20840f00b00106008b99ccmr4622666pzd.45.1684156521979; Mon, 15 May 2023 06:15:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684156521; cv=none; d=google.com; s=arc-20160816; b=QJ+3PuP76yQtRnVYIn11RC9vVQwvh63ieikFHmmEGNBql08RX3LcjhBPOdBRwsG1j3 Jdcjjk8TLj8b4tnI28ZNOy/XgYZkOEE7PUdbtOqFs/i1QadskuaXsjAsG3oSMoPPvteL NRZXIWRLPoshYsZztPw50CP+m7ssXu6B0NPHVKudYA9MRmyqxverNAp7YMYG4yxOb3CE 1RUxAM/zrPgQXljoaQxfKzd86WyMZ++cr8QvihFO9tdukvhvCLV2gel5NmBTUCgNPxf6 /zrZIG7GWLt4yQqV2UuyAL97JtpnDmcxpylxDjdy/922p0dRoKu+ofKPkt3qzmh+cPQW Jtsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=bHrRwJZNmR4vO/RyDtfQTesrckzCKnVFHgmO5Rc+8Yc=; b=nPo8qjX4ocX8gDIBlOTbxHxEQu9J22L7DmocCORgIVXJPcLf496PJ2i3++6BJPdpb8 fJCv9NXEChmTwXCPvrYvAV9hJWTntyV/E4jwe+8pss8kz2EgoywDcmok7M9yd9d24SPg h22tYO5XL11eTMuwKofip3RYkM+OCvr5yuI25dQcivnOO+UBLqK4ZU/lBLeu3WSOp4jO jHcQE3pl8Gmcyn6y0+MfvVO4ezLGkVnR+FOyM2lphSNIoA5+8IAD3WubptRnRmoV8yr+ JSgwoDMRfRiFWxgk4cuq10NvP6+OfsL0sNPMlsUVxki4Lkf0+ZfPqQt4SzGdoi1Sjdwf rxWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TULdDFG0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t17-20020a639551000000b0050fad5c9f36si15908756pgn.354.2023.05.15.06.15.06; Mon, 15 May 2023 06:15:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TULdDFG0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242153AbjEONEt (ORCPT + 99 others); Mon, 15 May 2023 09:04:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242102AbjEONEf (ORCPT ); Mon, 15 May 2023 09:04:35 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70DC11FDE for ; Mon, 15 May 2023 06:04:33 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2ac826a1572so131268111fa.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=hpis/RzcOnT7CTfFLFk21PYGthKPcjagw8LcdovC2e7+xueEq0Fl398He89HwGHq3r iA+lwqMTqLSaD9daBfYdY4TkeL15UHcbwK4yUUBSFun+miNigV51n62Bd4xz56DXqABy J9z2A9hPXC6CTEvN/5ur3gVP5CrvwW7Hv3zSoptIMRRij5H2/4+1mGnWhnlZRloFhoAS 5peDCty+29uIGnX3QhIpifyjJM8r14z1xSgvU1nE4nXpn4TRLWPCrDnxY+qxEyrJM6kL pnJUzLOhtbirAIik9SQkOQpkE3ysx6DLv/Ki3J8HlI4RWUCNj8jeVi7Sv9HlbIgBFB96 zufg== X-Gm-Message-State: AC+VfDze2bnWiNsQmObT92yXUMAvPAIuGU+hX3IPemdgnmmHSKnwMvHu 6Eb3hynp/4Stwnr3kta6CgcF1Q== 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= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765966108950928222?= X-GMAIL-MSGID: =?utf-8?q?1765966108950928222?= 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>; };