From patchwork Tue Jan 3 20:36:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hawkins, Nick" X-Patchwork-Id: 38654 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4808698wrt; Tue, 3 Jan 2023 12:43:51 -0800 (PST) X-Google-Smtp-Source: AMrXdXuLZR84+4SyYkQyFn9f20y7uCkcCF1YzaexIVDCfDt/n96/eVA98eloHO9e4z+QLSnIXG0S X-Received: by 2002:a17:907:6e05:b0:7c1:235d:2a2b with SMTP id sd5-20020a1709076e0500b007c1235d2a2bmr49772521ejc.24.1672778630862; Tue, 03 Jan 2023 12:43:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672778630; cv=none; d=google.com; s=arc-20160816; b=uAbhUWw/Cd8sytzDtz9X5evqFMyEF77EM15CvQWu1gu4rUwKwutd6+sMYrTeTE4ECh xfVUwsWAnJ/IhZ6Hk1yM+HoC+OJkXX2713DjOHTTZEl5keFVm3w4Qjcwk/XQgRV1A3Aa nQEivOk0+hwTGINbBmMRXD8keq94iK8XZWO1n+DK7PcyeZ43w+2rrN4LZpC3mfU+5S7y M/PlHtyi5P8f12k58cADdvXYVi1K27tR8VIs3EpBTdkTHvtNOytlbHPslG6HArtJ3CUc zwefjf/S/egppCmaQcm9ZdSfJrEVtNRKOr7ZeWMVutVxiD9UML6yDOYiZM1/UmMyRISC 6+5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :to:from:dkim-signature; bh=6ojOKbvjctn5ulXO5a1Hn2afk2yz1RPUY1cDzDSTQ0U=; b=N51dmcTJxw5De7xcnYmdwvVHUlDk1V8rjesKVWmaQqpoanMybyMKVCsXdgKtSZ1lu2 xGyCEAroFvKuWQADhLpRv03VOHektDuMdmRasKd+qVkSSPB6EyKRT3l1SmKwhzD1RDo8 GR/pJcCCqhJ7wuAaKPLUaUjy7aY4H8svZd8nkPfrrTN4MFf6FzQZi+/elHZvZHSDmTPQ H8SvkyFg1E9emUHazdzHIOOUkLR/ROBc92F3RxXNvCTuMnaYKJx0qFyuVT+5z9ZoTBhV GQp5DCQ3lzLpLTDjv7Ra5LJK0d6tie7FtDflov7K5WXo65KCRgdA4sUvVJ4xUYcwqaJg mEXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=btKh6Wuh; 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=hpe.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o16-20020a170906975000b0084c83fd7847si16705431ejy.102.2023.01.03.12.43.27; Tue, 03 Jan 2023 12:43:50 -0800 (PST) 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=@hpe.com header.s=pps0720 header.b=btKh6Wuh; 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=hpe.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238708AbjACUjv (ORCPT + 99 others); Tue, 3 Jan 2023 15:39:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238529AbjACUja (ORCPT ); Tue, 3 Jan 2023 15:39:30 -0500 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCF94D2F0; Tue, 3 Jan 2023 12:39:29 -0800 (PST) Received: from pps.filterd (m0134424.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 303JglTv022711; Tue, 3 Jan 2023 20:38:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : subject : date : message-id : in-reply-to : references; s=pps0720; bh=6ojOKbvjctn5ulXO5a1Hn2afk2yz1RPUY1cDzDSTQ0U=; b=btKh6WuhxeKy96Zj/9SJIVGDaOBpVfAJvZ2b/BWM2kGtfmZwtedde2zSrklUCJKfxq+D wCp8Q8v4krjEvDyCHUsG5/wLHJVVUEw5RJsBbqFQNo1neUWfAVkJ5s5oD3yvHaokIKpB zDMp3IY07NBmdOx1oKjnvG2K0Q94p8OFRQmkynoajMqKC0sIpqjR1qGvR+lO2jUktTvR CBvpyYVMZvYZvDP8zPRDvmeSqZg1SV2zSdA6B7vj8LEPOmaFIB+hmBIo2GjuJxgO8OFh rXqx0yCjhfk2mYC8ZEKZKsnMTSds7eRRY0NNznKO5rF/PwvfOQvJ0YMbkeaq/t1zzEU2 iA== Received: from p1lg14881.it.hpe.com (p1lg14881.it.hpe.com [16.230.97.202]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3mvtrmg95c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 03 Jan 2023 20:38:52 +0000 Received: from p1lg14886.dc01.its.hpecorp.net (unknown [10.119.18.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by p1lg14881.it.hpe.com (Postfix) with ESMTPS id 000D28085D8; Tue, 3 Jan 2023 20:38:51 +0000 (UTC) Received: from hpe.com (unknown [16.231.227.36]) by p1lg14886.dc01.its.hpecorp.net (Postfix) with ESMTP id 607D4800BA0; Tue, 3 Jan 2023 20:38:51 +0000 (UTC) From: nick.hawkins@hpe.com To: verdun@hpe.com, nick.hawkins@hpe.com, jdelvare@suse.com, linux@roeck-us.net, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, corbet@lwn.net, linux@armlinux.org.uk, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 4/5] ARM: multi_v7_defconfig: Add GXP Fan and SPI support Date: Tue, 3 Jan 2023 14:36:53 -0600 Message-Id: <20230103203654.59322-5-nick.hawkins@hpe.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230103203654.59322-1-nick.hawkins@hpe.com> References: <20230103203654.59322-1-nick.hawkins@hpe.com> X-Proofpoint-GUID: BMmqaeHlKLPmeoGdd_EM6X_8MCDd1ZJn X-Proofpoint-ORIG-GUID: BMmqaeHlKLPmeoGdd_EM6X_8MCDd1ZJn X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-03_07,2023-01-03_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 mlxlogscore=999 priorityscore=1501 impostorscore=0 lowpriorityscore=0 bulkscore=0 mlxscore=0 clxscore=1015 spamscore=0 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301030174 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE 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?1754035525494477685?= X-GMAIL-MSGID: =?utf-8?q?1754035525494477685?= From: Nick Hawkins In order for HPE platforms to be supported by linux on GXP it is necessary for there to be fan and spi driver support. There fan driver can support up to 16 fans that are driven by pwm through the CPLD. The SPI driver supports access to the core flash and bios part. The SPI driver spi-gxp was added previously to linux. Signed-off-by: Nick Hawkins Acked-by: Guenter Roeck --- v4: *No change v3: *No change v2: *No change --- arch/arm/configs/multi_v7_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index b61b2e3d116b..192c89bfd02a 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/configs/multi_v7_defconfig @@ -441,6 +441,7 @@ CONFIG_SPI_CADENCE=y CONFIG_SPI_DAVINCI=y CONFIG_SPI_FSL_QUADSPI=m CONFIG_SPI_GPIO=m +CONFIG_SPI_GXP=m CONFIG_SPI_FSL_DSPI=m CONFIG_SPI_OMAP24XX=y CONFIG_SPI_ORION=y @@ -530,6 +531,7 @@ CONFIG_SENSORS_NTC_THERMISTOR=m CONFIG_SENSORS_PWM_FAN=m CONFIG_SENSORS_RASPBERRYPI_HWMON=m CONFIG_SENSORS_INA2XX=m +CONFIG_SENSORS_GXP_FAN_CTRL=m CONFIG_CPU_THERMAL=y CONFIG_DEVFREQ_THERMAL=y CONFIG_IMX_THERMAL=y